X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=core%2Fconnection.pxd;h=48893da697b1e0a1c816bdfbf6bc443166c97dd2;hp=0504324b45a2d93ac8ae119d07eb6cb1913f2578;hb=a29730a9b6c00cfeaacc64311349df4da9ce1c8b;hpb=11fae5285905f05afb2030183b874333d64f91ee diff --git a/core/connection.pxd b/core/connection.pxd index 0504324..48893da 100644 --- a/core/connection.pxd +++ b/core/connection.pxd @@ -18,19 +18,13 @@ # cdef extern from "libpurple/connection.h": - ctypedef struct PurpleConnection: - pass + cdef struct PurpleConnection - 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()