Simplifyed definitions call, moved signal callback example to Cython code.
[python-purple] / libpurple / connection.pxd
index 5e2c99a..510307c 100644 (file)
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 
+cimport account
+
 cdef extern from "libpurple/connection.h":
     ctypedef struct PurpleConnection:
         pass
 
 cdef extern from "libpurple/connection.h":
     ctypedef struct PurpleConnection:
         pass
 
-    void connect_to_signals_for_demonstration_purposes_only()
+    ctypedef struct PurpleConnectionUiOps:
+        pass
+
+    account.PurpleAccount *c_purple_connection_get_account "purple_connection_get_account" (PurpleConnection *gc)
+    void *c_purple_connections_get_handle "purple_connections_get_handle" ()
+    void c_purple_connections_set_ui_ops "purple_connections_set_ui_ops" (PurpleConnectionUiOps *ops)