X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=connection_cbs.pxd;h=fd0d05ae439093cf38b48f3cadde632fe440e86a;hp=ea707e6aee9a38a9b042948cdf00529723d70957;hb=501c0498d70144d950602879e44840e761e8cc00;hpb=6ad4afacade908a5195e9b0e12c118d62e8a53ae diff --git a/connection_cbs.pxd b/connection_cbs.pxd index ea707e6..fd0d05a 100644 --- a/connection_cbs.pxd +++ b/connection_cbs.pxd @@ -27,9 +27,9 @@ 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") + "connect-progress\n") try: - (connection_cbs["connect_progress"])(text, step, step_count) + (connection_cbs["connect-progress"])(text, step, step_count) except KeyError: pass @@ -37,7 +37,7 @@ cdef void connected (connection.PurpleConnection *gc): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "connected\n") try: - (connection_cbs["connected"])() + (connection_cbs["connected"])("connected: TODO") except KeyError: pass @@ -45,7 +45,7 @@ cdef void disconnected (connection.PurpleConnection *gc): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "disconnected\n") try: - (connection_cbs["disconnected"])() + (connection_cbs["disconnected"])("disconnected: TODO") except KeyError: pass @@ -53,32 +53,32 @@ cdef void notice (connection.PurpleConnection *gc, const_char *text): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", "notice\n") try: - (connection_cbs["notice"])("notice") + (connection_cbs["notice"])("notice: TODO") except KeyError: pass cdef void report_disconnect (connection.PurpleConnection *gc, const_char *text): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", - "report_disconnect\n") + "report-disconnect\n") try: - (connection_cbs["report_disconnect"])(text) + (connection_cbs["report-disconnect"])(text) except KeyError: pass cdef void network_connected (): debug.c_purple_debug(debug.PURPLE_DEBUG_INFO, "connection", - "network_connected\n") + "network-connected\n") try: - (connection_cbs["network_connected"])("network_connected") + (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") + "network-disconnected\n") try: - (connection_cbs["network_disconnected"])("network_disconnected") + (connection_cbs["network-disconnected"])("network-disconnected: TODO") except KeyError: pass @@ -86,7 +86,7 @@ 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") + "report-disconnect-reason\n") reason_string = { 0: 'Network error', @@ -108,6 +108,6 @@ cdef void report_disconnect_reason (connection.PurpleConnection *gc, 16: 'Other error' }[reason] try: - (connection_cbs["report_disconnect_reason"])(reason_string, text) + (connection_cbs["report-disconnect-reason"])(reason_string, text) except KeyError: pass