diff options
Diffstat (limited to 'objects/pyscript-object.h')
-rw-r--r-- | objects/pyscript-object.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/objects/pyscript-object.h b/objects/pyscript-object.h index 8565053..fafa94b 100644 --- a/objects/pyscript-object.h +++ b/objects/pyscript-object.h @@ -10,6 +10,7 @@ typedef struct { PyObject *modules; /* dict of imported modules for script */ GSList *signals; /* list of bound signals and commands */ GSList *registered_signals; /* list of signal names registered */ + GSList *sources; /* list of io and timeout sources */ } PyScript; extern PyTypeObject PyScriptType; @@ -17,10 +18,11 @@ extern PyTypeObject PyScriptType; int pyscript_init(void); PyObject *pyscript_new(PyObject *module, char **argv); void pyscript_remove_signals(PyObject *script); +void pyscript_remove_sources(PyObject *script); void pyscript_clear_modules(PyObject *script); #define pyscript_check(op) PyObject_TypeCheck(op, &PyScriptType) #define pyscript_get_name(scr) PyModule_GetName(((PyScript*)scr)->module) #define pyscript_get_filename(scr) PyModule_GetFilename(((PyScript*)scr)->module) -#define pyscript_get_module(scr) ((PyScript*)scr)->module +#define pyscript_get_module(scr) (((PyScript*)scr)->module) #endif |