summaryrefslogtreecommitdiffstats
path: root/pysource.h
blob: 23903d5d86a7b45f0f56dedbc1714e26f9f6f67f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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