nullclient.py
[python-purple] / core / connection.pxd
index 665e21e..48893da 100644 (file)
 #
 
 cdef extern from "libpurple/connection.h":
-    ctypedef struct PurpleConnection
+    cdef struct PurpleConnection
 
-    cdef PurpleAccount* c_purple_connection_get_account "purple_connection_get_account" (PurpleConnection *gc)
+    void connect_to_signals_for_demonstration_purposes_only()
 
-class Connection(object):
+cdef class Connection:
     """ Connection class """
+    cdef PurpleConnection *__conn
 
-    def __init__(self):
-        purple_connection = None
-
-    # FIXME
-    """
-    def purple_connection_get_account(gc):
-        return purple_connection_get_account(gc)
-    """
+    def connect(self):
+        connect_to_signals_for_demonstration_purposes_only()