Blender V5.3
usd_api_hook.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include <memory>
8
9#include "RNA_types.hh"
10
11namespace blender {
12
13namespace io::usd {
14
16struct USDHook {
17
18 /* Identifier used for class name. */
19 char idname[64];
20 /* Identifier used as label. */
21 char name[64];
22 /* Short help/description. */
23 char description[/*RNA_DYN_DESCR_MAX*/ 1024];
24
25 /* rna_ext.data points to the USDHook class PyObject. */
27};
28
29void USD_register_hook(std::unique_ptr<USDHook> hook);
34void USD_unregister_hook(const USDHook *hook);
35USDHook *USD_find_hook_name(const char idname[]);
36
37}; // namespace io::usd
38
39} // namespace blender
void USD_unregister_hook(const USDHook *hook)
Definition usd_hook.cc:71
void USD_register_hook(std::unique_ptr< USDHook > hook)
Definition usd_hook.cc:60
USDHook * USD_find_hook_name(const char idname[])
Definition usd_hook.cc:77
BMesh Iterators.