X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=account_cbs.pxd;h=06cd2cafd0586be0de017eb7c76244aee63333f4;hb=HEAD;hp=2ca1414f5b42bb8e1feb622834a64d95478b3c38;hpb=2a0862580362384e379dc404be98b8a6619e32d3;p=python-purple
diff --git a/account_cbs.pxd b/account_cbs.pxd
index 2ca1414..06cd2ca 100644
--- a/account_cbs.pxd
+++ b/account_cbs.pxd
@@ -17,8 +17,6 @@
# along with this program. If not, see .
#
-cimport purple
-
cdef extern from *:
ctypedef char const_char "const char"
@@ -50,35 +48,93 @@ def call_deny_cb():
c_request_authorize_deny_cb = NULL
c_request_authorize_user_data = NULL
-cdef void notify_added(account.PurpleAccount *account, \
+cdef void notify_added(account.PurpleAccount *c_account, \
const_char *remote_user, const_char *id, const_char *alias, \
- const_char *message):
+ const_char *c_message):
"""
A buddy who is already on this account's buddy list added this account to
their buddy list.
"""
+ cdef connection.PurpleConnection *gc = \
+ account.purple_account_get_connection(c_account)
+
debug.purple_debug_info("account", "%s", "notify-added\n")
- if account_cbs.has_key("notify-added"):
- (