Blender V5.0
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
16
17/* #include "IMB_imbuf_types.hh" */
18extern const char *imb_ext_image[];
19extern const char *imb_ext_movie[];
20extern const char *imb_ext_audio[];
21
22/*----------------------------MODULE INIT-------------------------*/
23static 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
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[]
const char * imb_ext_audio[]
const char * imb_ext_image[]
PyObject * BPyInit__bpy_path()
Definition bpy_path.cc:35
static PyModuleDef _bpy_path_module_def
Definition bpy_path.cc:23
PyObject * PyC_FrozenSetFromStrings(const char **strings)