summaryrefslogtreecommitdiffstats
path: root/pysource.h
blob: 78b55ecf5b5ea7aacc4b0ddc4cedd15201684e2f (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef _PYSOURCE_H_
#define _PYSOURCE_H_

#include <Python.h>

/* condition is G_INPUT_READ or G_INPUT_WRITE */
int pysource_io_add_watch_list(GSList **list, int fd, int cond, PyObject *func, PyObject *data);
int pysource_timeout_add_list(GSList **list, int msecs, PyObject *func, PyObject *data);

#endif