X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=connection_cbs.pxd;h=58b58adb3b2802734b4ac2a148b96287a50962e9;hp=ca39432c171d6db569bbe1dbb727906ddbb98143;hb=4c0c79b5e686d123a21bd4b4cdc356782f0b24c8;hpb=07bfe51b3e6afa82ca011f8a4c29fb4d669ed848 diff --git a/connection_cbs.pxd b/connection_cbs.pxd index ca39432..58b58ad 100644 --- a/connection_cbs.pxd +++ b/connection_cbs.pxd @@ -28,7 +28,6 @@ cdef void connect_progress (connection.PurpleConnection *gc, const_char *text, size_t step, size_t step_count): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "connect_progress\n") - global connection_cbs try: (connection_cbs["connect_progress"])("connect_progress") except KeyError: @@ -37,7 +36,6 @@ cdef void connect_progress (connection.PurpleConnection *gc, const_char *text, cdef void connected (connection.PurpleConnection *gc): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "connected\n") - global connection_cbs try: (connection_cbs["connected"])("connected") except KeyError: @@ -46,7 +44,6 @@ cdef void connected (connection.PurpleConnection *gc): cdef void disconnected (connection.PurpleConnection *gc): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "disconnected\n") - global connection_cbs try: (connection_cbs["disconnected"])("disconnected") except KeyError: @@ -55,7 +52,6 @@ cdef void disconnected (connection.PurpleConnection *gc): cdef void notice (connection.PurpleConnection *gc, const_char *text): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "notice\n") - global connection_cbs try: (connection_cbs["notice"])("notice") except KeyError: @@ -65,7 +61,6 @@ cdef void report_disconnect (connection.PurpleConnection *gc, const_char *text): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "report_disconnect\n") - global connection_cbs try: (connection_cbs["report_disconnect"])("report_disconnect") except KeyError: @@ -74,7 +69,6 @@ cdef void report_disconnect (connection.PurpleConnection *gc, cdef void network_connected (): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "network_connected\n") - global connection_cbs try: (connection_cbs["network_connected"])("network_connected") except KeyError: @@ -83,7 +77,6 @@ cdef void network_connected (): cdef void network_disconnected (): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "network_disconnected\n") - global connection_cbs try: (connection_cbs["network_disconnected"])("network_disconnected") except KeyError: @@ -94,7 +87,6 @@ cdef void report_disconnect_reason (connection.PurpleConnection *gc, const_char *text): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "report_disconnect_reason\n") - global connection_cbs try: (connection_cbs["report_disconnect_reason"])("report_disconnect_reason") except KeyError: