move namespace creation function into py_capi_utils.c, to be used in more general cases, not just the blender/rna api.

This commit is contained in:
2010-09-18 15:30:03 +00:00
parent a45797fe55
commit db7a4e530e
5 changed files with 37 additions and 34 deletions

View File

@@ -26,6 +26,7 @@
#define PY_CAPI_UTILS_H
struct PyObject;
struct PyTypeObject;
void PyC_ObSpit(char *name, PyObject *var);
void PyC_LineSpit(void);
@@ -38,4 +39,7 @@ int PyC_AsArray(void *array, PyObject *value, int length, PyTypeObject *type,
PyObject * PyC_UnicodeFromByte(const char *str);
const char * PuC_UnicodeAsByte(PyObject *py_str, PyObject **coerce); /* coerce must be NULL */
/* name namespace function for bpy & bge */
PyObject * PyC_DefaultNameSpace(const char *filename);
#endif // PY_CAPI_UTILS_H