diff options
Diffstat (limited to 'pysource.h')
-rw-r--r-- | pysource.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pysource.h b/pysource.h new file mode 100644 index 0000000..23903d5 --- /dev/null +++ b/pysource.h @@ -0,0 +1,13 @@ +#ifndef _PYSOURCE_H_ +#define _PYSOURCE_H_ + +#include <Python.h> + +/* condition is G_INPUT_READ or G_INPUT_WRITE */ +int pysource_input_add_list(GSList **list, int fd, int cond, PyObject *func, PyObject *data, int once); +int pysource_timeout_add_list(GSList **list, int msecs, PyObject *func, PyObject *data, int once); + +int pysource_remove_tag(GSList **list, int handle); +void pysource_remove_list(GSList *list); + +#endif |