Blender
V4.3
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
11
#include <Python.h>
12
13
#include "
BLI_utildefines.h
"
14
15
#include "
bpy_path.hh
"
16
17
#include "
../generic/py_capi_utils.hh
"
18
19
/* #include "IMB_imbuf_types.hh" */
20
extern
const
char
*
imb_ext_image
[];
21
extern
const
char
*
imb_ext_movie
[];
22
extern
const
char
*
imb_ext_audio
[];
23
24
/*----------------------------MODULE INIT-------------------------*/
25
static
PyModuleDef
_bpy_path_module_def
= {
26
/*m_base*/
PyModuleDef_HEAD_INIT,
27
/*m_name*/
"_bpy_path"
,
28
/*m_doc*/
nullptr
,
29
/*m_size*/
0,
30
/*m_methods*/
nullptr
,
31
/*m_slots*/
nullptr
,
32
/*m_traverse*/
nullptr
,
33
/*m_clear*/
nullptr
,
34
/*m_free*/
nullptr
,
35
};
36
37
PyObject *
BPyInit__bpy_path
()
38
{
39
PyObject *submodule;
40
41
submodule = PyModule_Create(&
_bpy_path_module_def
);
42
43
PyModule_AddObject(submodule,
"extensions_image"
,
PyC_FrozenSetFromStrings
(
imb_ext_image
));
44
PyModule_AddObject(submodule,
"extensions_movie"
,
PyC_FrozenSetFromStrings
(
imb_ext_movie
));
45
PyModule_AddObject(submodule,
"extensions_audio"
,
PyC_FrozenSetFromStrings
(
imb_ext_audio
));
46
47
return
submodule;
48
}
BLI_utildefines.h
BPyInit__bpy_path
PyObject * BPyInit__bpy_path()
Definition
bpy_path.cc:37
_bpy_path_module_def
static PyModuleDef _bpy_path_module_def
Definition
bpy_path.cc:25
imb_ext_movie
const char * imb_ext_movie[]
Definition
source/blender/imbuf/intern/util.cc:66
imb_ext_audio
const char * imb_ext_audio[]
Definition
source/blender/imbuf/intern/util.cc:74
imb_ext_image
const char * imb_ext_image[]
Definition
source/blender/imbuf/intern/util.cc:47
bpy_path.hh
PyC_FrozenSetFromStrings
PyObject * PyC_FrozenSetFromStrings(const char **strings)
Definition
py_capi_utils.cc:762
py_capi_utils.hh
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0