Blender  V3.3
bpy_path.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
9 #include <Python.h>
10 
11 #include "BLI_utildefines.h"
12 
13 #include "bpy_path.h"
14 
15 #include "../generic/py_capi_utils.h"
16 
17 /* #include "IMB_imbuf_types.h" */
18 extern const char *imb_ext_image[];
19 extern const char *imb_ext_movie[];
20 extern const char *imb_ext_audio[];
21 
22 /*----------------------------MODULE INIT-------------------------*/
23 static struct PyModuleDef _bpy_path_module_def = {
24  PyModuleDef_HEAD_INIT,
25  "_bpy_path", /* m_name */
26  NULL, /* m_doc */
27  0, /* m_size */
28  NULL, /* m_methods */
29  NULL, /* m_reload */
30  NULL, /* m_traverse */
31  NULL, /* m_clear */
32  NULL, /* m_free */
33 };
34 
35 PyObject *BPyInit__bpy_path(void)
36 {
37  PyObject *submodule;
38 
39  submodule = PyModule_Create(&_bpy_path_module_def);
40 
41  PyModule_AddObject(submodule, "extensions_image", PyC_FrozenSetFromStrings(imb_ext_image));
42  PyModule_AddObject(submodule, "extensions_movie", PyC_FrozenSetFromStrings(imb_ext_movie));
43  PyModule_AddObject(submodule, "extensions_audio", PyC_FrozenSetFromStrings(imb_ext_audio));
44 
45  return submodule;
46 }
const char * imb_ext_movie[]
Definition: util.c:81
static struct PyModuleDef _bpy_path_module_def
Definition: bpy_path.c:23
const char * imb_ext_audio[]
Definition: util.c:88
PyObject * BPyInit__bpy_path(void)
Definition: bpy_path.c:35
const char * imb_ext_image[]
Definition: util.c:43
PyObject * PyC_FrozenSetFromStrings(const char **strings)