diff options
| author | John (J5) Palmieri <johnp@redhat.com> | 2005-08-23 17:43:59 +0000 | 
|---|---|---|
| committer | John (J5) Palmieri <johnp@redhat.com> | 2005-08-23 17:43:59 +0000 | 
| commit | 54988532f404d17141807b5dc59dd6acd6e9633b (patch) | |
| tree | 16f6935e95f42e805d7a7503d233f19774bb46d7 /python | |
| parent | c7be77449d7f18858a6e9dcbca060fdbd0158c74 (diff) | |
* python/dbus_glib_bindings.pyx: reorder imports and c definitions
to fix some wranings. We now use dbus_bindings.DBusConnection instead
of defining DBusConnection ourselves.
Diffstat (limited to 'python')
| -rw-r--r-- | python/dbus_glib_bindings.pyx | 12 | 
1 files changed, 5 insertions, 7 deletions
| diff --git a/python/dbus_glib_bindings.pyx b/python/dbus_glib_bindings.pyx index 314fadad..e432352a 100644 --- a/python/dbus_glib_bindings.pyx +++ b/python/dbus_glib_bindings.pyx @@ -1,15 +1,13 @@ -cdef extern from "dbus.h": -    ctypedef struct DBusConnection +cimport dbus_bindings +import dbus_bindings  cdef extern from "dbus-glib.h":      ctypedef struct GMainContext -    cdef void dbus_connection_setup_with_g_main (DBusConnection *connection, -                                                 GMainContext   *context)      cdef void dbus_g_thread_init () -cimport dbus_bindings -import dbus_bindings - +cdef extern from "dbus-glib-lowlevel.h": +    cdef void dbus_connection_setup_with_g_main (dbus_bindings.DBusConnection *connection, +                                                 GMainContext   *context)  def setup_with_g_main(conn):     cdef dbus_bindings.Connection connection     connection = conn | 
