Mercurial > pidgin
comparison libpurple/protocols/qq/keep_alive.c @ 21358:ba41f2a60253
Rename:
* PurpleDisconnectReason to PurpleConnectionError;
* elements of that enum from PURPLE_REASON_* to PURPLE_CONNECTION_ERROR_*;
* purple_connection_reason_is_fatal to purple_connection_error_is_fatal.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Sun, 14 Oct 2007 21:08:42 +0000 |
parents | 3e8531514ad7 |
children | 217fffe3f46f |
comparison
equal
deleted
inserted
replaced
21357:5a3242b676ad | 21358:ba41f2a60253 |
---|---|
82 if (NULL == (segments = split_data(data, len, "\x1f", 6))) | 82 if (NULL == (segments = split_data(data, len, "\x1f", 6))) |
83 return; | 83 return; |
84 /* segments[0] and segment[1] are all 0x30 ("0") */ | 84 /* segments[0] and segment[1] are all 0x30 ("0") */ |
85 qd->all_online = strtol(segments[2], NULL, 10); | 85 qd->all_online = strtol(segments[2], NULL, 10); |
86 if(0 == qd->all_online) | 86 if(0 == qd->all_online) |
87 purple_connection_error_reason(gc, PURPLE_REASON_NETWORK_ERROR, | 87 purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
88 _("Keep alive error")); | 88 _("Keep alive error")); |
89 g_free(qd->my_ip); | 89 g_free(qd->my_ip); |
90 qd->my_ip = g_strdup(segments[3]); | 90 qd->my_ip = g_strdup(segments[3]); |
91 qd->my_port = strtol(segments[4], NULL, 10); | 91 qd->my_port = strtol(segments[4], NULL, 10); |
92 g_strfreev(segments); | 92 g_strfreev(segments); |