Blender
V5.0
source
blender
python
intern
bpy_path.cc
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11
#include <Python.h>
12
13
#include "
bpy_path.hh
"
14
15
#include "
../generic/py_capi_utils.hh
"
16
17
/* #include "IMB_imbuf_types.hh" */
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
PyModuleDef
_bpy_path_module_def
= {
24
/*m_base*/
PyModuleDef_HEAD_INIT
,
25
/*m_name*/
"_bpy_path"
,
26
/*m_doc*/
nullptr
,
27
/*m_size*/
0,
28
/*m_methods*/
nullptr
,
29
/*m_slots*/
nullptr
,
30
/*m_traverse*/
nullptr
,
31
/*m_clear*/
nullptr
,
32
/*m_free*/
nullptr
,
33
};
34
35
PyObject *
BPyInit__bpy_path
()
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
}
imb_ext_movie
const char * imb_ext_movie[]
Definition
source/blender/imbuf/intern/util.cc:81
imb_ext_audio
const char * imb_ext_audio[]
Definition
source/blender/imbuf/intern/util.cc:89
imb_ext_image
const char * imb_ext_image[]
Definition
source/blender/imbuf/intern/util.cc:30
BPyInit__bpy_path
PyObject * BPyInit__bpy_path()
Definition
bpy_path.cc:35
_bpy_path_module_def
static PyModuleDef _bpy_path_module_def
Definition
bpy_path.cc:23
bpy_path.hh
PyModuleDef_HEAD_INIT
PyC_FrozenSetFromStrings
PyObject * PyC_FrozenSetFromStrings(const char **strings)
Definition
py_capi_utils.cc:758
py_capi_utils.hh
Generated on
for Blender by
doxygen
1.16.1