X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=connection_cbs.pxd;h=bd36f096f1085be20966581319977d702a4a8bb7;hp=fd0d05ae439093cf38b48f3cadde632fe440e86a;hb=5fe506a5d23d5f7ba01599247a58bd03ca9eb7da;hpb=08b9cb7c8233e99135baf3fe1dfb90e73412fac0 diff --git a/connection_cbs.pxd b/connection_cbs.pxd index fd0d05a..bd36f09 100644 --- a/connection_cbs.pxd +++ b/connection_cbs.pxd @@ -26,32 +26,28 @@ cdef extern from *: 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") + debug.c_purple_debug_info("connection", "%s", "connect-progress\n") try: (connection_cbs["connect-progress"])(text, step, step_count) except KeyError: pass cdef void connected (connection.PurpleConnection *gc): - debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", - "connected\n") + debug.c_purple_debug_info("connection", "%s", "connected\n") try: (connection_cbs["connected"])("connected: TODO") except KeyError: pass cdef void disconnected (connection.PurpleConnection *gc): - debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", - "disconnected\n") + debug.c_purple_debug_info("connection", "%s", "disconnected\n") try: (connection_cbs["disconnected"])("disconnected: TODO") except KeyError: pass cdef void notice (connection.PurpleConnection *gc, const_char *text): - debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", - "notice\n") + debug.c_purple_debug_info("connection", "%s", "notice\n") try: (connection_cbs["notice"])("notice: TODO") except KeyError: @@ -59,24 +55,21 @@ cdef void notice (connection.PurpleConnection *gc, const_char *text): cdef void report_disconnect (connection.PurpleConnection *gc, const_char *text): - debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", - "report-disconnect\n") + debug.c_purple_debug_info("connection", "%s", "report-disconnect\n") try: (connection_cbs["report-disconnect"])(text) except KeyError: pass cdef void network_connected (): - debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", - "network-connected\n") + debug.c_purple_debug_info("connection", "%s", "network-connected\n") try: (connection_cbs["network-connected"])("network-connected: TODO") except KeyError: pass cdef void network_disconnected (): - debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", - "network-disconnected\n") + debug.c_purple_debug_info("connection", "%s", "network-disconnected\n") try: (connection_cbs["network-disconnected"])("network-disconnected: TODO") except KeyError: @@ -85,8 +78,7 @@ cdef void network_disconnected (): cdef void report_disconnect_reason (connection.PurpleConnection *gc, connection.PurpleConnectionError reason, const_char *text): - debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", - "report-disconnect-reason\n") + debug.c_purple_debug_info("connection", "%s", "report-disconnect-reason\n") reason_string = { 0: 'Network error',