Mercurial > pidgin
comparison libpurple/protocols/jabber/presence.c @ 31995:3caef255ad47
Convert jabber prpl to use accessor functions purple_connection_get_protocol_data() and purple_connection_set_protocol_data().
author | andrew.victor@mxit.com |
---|---|
date | Tue, 30 Aug 2011 19:11:26 +0000 |
parents | 2ef7fb1f1154 |
children | 348a933fed78 |
comparison
equal
deleted
inserted
replaced
31994:cf796628b2c0 | 31995:3caef255ad47 |
---|---|
391 | 391 |
392 static void authorize_add_cb(gpointer data) | 392 static void authorize_add_cb(gpointer data) |
393 { | 393 { |
394 struct _jabber_add_permit *jap = data; | 394 struct _jabber_add_permit *jap = data; |
395 if(PURPLE_CONNECTION_IS_VALID(jap->gc)) | 395 if(PURPLE_CONNECTION_IS_VALID(jap->gc)) |
396 jabber_presence_subscription_set(jap->gc->proto_data, | 396 jabber_presence_subscription_set(purple_connection_get_protocol_data(jap->gc), |
397 jap->who, "subscribed"); | 397 jap->who, "subscribed"); |
398 g_free(jap->who); | 398 g_free(jap->who); |
399 g_free(jap); | 399 g_free(jap); |
400 } | 400 } |
401 | 401 |
402 static void deny_add_cb(gpointer data) | 402 static void deny_add_cb(gpointer data) |
403 { | 403 { |
404 struct _jabber_add_permit *jap = data; | 404 struct _jabber_add_permit *jap = data; |
405 if(PURPLE_CONNECTION_IS_VALID(jap->gc)) | 405 if(PURPLE_CONNECTION_IS_VALID(jap->gc)) |
406 jabber_presence_subscription_set(jap->gc->proto_data, | 406 jabber_presence_subscription_set(purple_connection_get_protocol_data(jap->gc), |
407 jap->who, "unsubscribed"); | 407 jap->who, "unsubscribed"); |
408 g_free(jap->who); | 408 g_free(jap->who); |
409 g_free(jap); | 409 g_free(jap); |
410 } | 410 } |
411 | 411 |