diff options
Diffstat (limited to 'ctracecmd.i')
-rw-r--r-- | ctracecmd.i | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ctracecmd.i b/ctracecmd.i index 624fb63..a0baa3c 100644 --- a/ctracecmd.i +++ b/ctracecmd.i | |||
@@ -34,6 +34,12 @@ static int python_callback(struct trace_seq *s, | |||
34 | struct event_format *event, | 34 | struct event_format *event, |
35 | void *context); | 35 | void *context); |
36 | 36 | ||
37 | PyObject *convert_pevent(unsigned long pevent) | ||
38 | { | ||
39 | void *pev = (void *)pevent; | ||
40 | return SWIG_NewPointerObj(SWIG_as_voidptr(pev), SWIGTYPE_p_pevent, 0); | ||
41 | } | ||
42 | |||
37 | void py_pevent_register_event_handler(struct pevent *pevent, int id, | 43 | void py_pevent_register_event_handler(struct pevent *pevent, int id, |
38 | char *subsys, char *evname, | 44 | char *subsys, char *evname, |
39 | PyObject *pyfunc) | 45 | PyObject *pyfunc) |