diff options
Diffstat (limited to 'pysignals.h')
-rw-r--r-- | pysignals.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pysignals.h b/pysignals.h new file mode 100644 index 0000000..823472e --- /dev/null +++ b/pysignals.h @@ -0,0 +1,14 @@ +#ifndef _PYSIGNALS_H_ +#define _PYSIGNALS_H_ +#include <Python.h> + +typedef struct +{ + char *name; + PyObject *handler; +} PY_COMMAND_REC; + +void py_command_bind(const char *category, PY_COMMAND_REC *crec); +void py_command_unbind(PY_COMMAND_REC *crec); + +#endif |