summaryrefslogtreecommitdiff
path: root/efl/dbus_mainloop/dbus_mainloop.pxd
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2013-04-07 17:40:21 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2013-04-07 17:41:10 +0300
commit79022bf27b101e106dc0c2e9935ae725ef299bcb (patch)
tree1f03de050776d7947c8f6dd0523238d8fe907ed0 /efl/dbus_mainloop/dbus_mainloop.pxd
parent89ec2edd8830986219952c874fe44cb8fe89824a (diff)
Convert dbus_mainloop C code to Cython.
Diffstat (limited to 'efl/dbus_mainloop/dbus_mainloop.pxd')
-rw-r--r--efl/dbus_mainloop/dbus_mainloop.pxd27
1 files changed, 27 insertions, 0 deletions
diff --git a/efl/dbus_mainloop/dbus_mainloop.pxd b/efl/dbus_mainloop/dbus_mainloop.pxd
new file mode 100644
index 0000000..3a363a5
--- /dev/null
+++ b/efl/dbus_mainloop/dbus_mainloop.pxd
@@ -0,0 +1,27 @@
1from cpython cimport PyObject
2from libc.string cimport const_char
3
4cdef extern from "dbus/dbus.h":
5 ctypedef int dbus_bool_t
6 ctypedef struct DBusConnection
7 ctypedef struct DBusServer
8
9cdef extern from "dbus/dbus-python.h":
10 ctypedef dbus_bool_t (*_dbus_py_conn_setup_func)(DBusConnection *, void *)
11 ctypedef dbus_bool_t (*_dbus_py_srv_setup_func)(DBusServer *, void *)
12 ctypedef void (*_dbus_py_free_func)(void *)
13 PyObject *DBusPyNativeMainLoop_New4(_dbus_py_conn_setup_func conn_func, _dbus_py_srv_setup_func srv_func, _dbus_py_free_func free_func, void *)
14 int import_dbus_bindings(const_char *this_module_name)
15
16cdef extern from "Ecore.h":
17 int ecore_init()
18 void ecore_shutdown()
19
20cdef extern from "e_dbus.h":
21 ctypedef struct E_DBus_Connection
22
23 int e_dbus_init()
24 int e_dbus_shutdown()
25 E_DBus_Connection *e_dbus_connection_setup(DBusConnection *conn)
26 void e_dbus_connection_close(E_DBus_Connection *conn)
27