Mercurial > pidgin
comparison libpurple/protocols/jabber/libxmpp.c @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | c6943fd38d44 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
51 | 51 |
52 static PurplePlugin *my_protocol = NULL; | 52 static PurplePlugin *my_protocol = NULL; |
53 | 53 |
54 static PurplePluginProtocolInfo prpl_info = | 54 static PurplePluginProtocolInfo prpl_info = |
55 { | 55 { |
56 sizeof(PurplePluginProtocolInfo), /* struct_size */ | |
56 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_MAIL_CHECK | | 57 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_MAIL_CHECK | |
57 #ifdef HAVE_CYRUS_SASL | 58 #ifdef HAVE_CYRUS_SASL |
58 OPT_PROTO_PASSWORD_OPTIONAL | | 59 OPT_PROTO_PASSWORD_OPTIONAL | |
59 #endif | 60 #endif |
60 OPT_PROTO_SLASH_COMMANDS_NATIVE, | 61 OPT_PROTO_SLASH_COMMANDS_NATIVE, |
95 NULL, /* chat_whisper */ | 96 NULL, /* chat_whisper */ |
96 jabber_message_send_chat, /* chat_send */ | 97 jabber_message_send_chat, /* chat_send */ |
97 jabber_keepalive, /* keepalive */ | 98 jabber_keepalive, /* keepalive */ |
98 jabber_register_account, /* register_user */ | 99 jabber_register_account, /* register_user */ |
99 NULL, /* get_cb_info */ | 100 NULL, /* get_cb_info */ |
100 NULL, /* get_cb_away */ | |
101 jabber_roster_alias_change, /* alias_buddy */ | 101 jabber_roster_alias_change, /* alias_buddy */ |
102 jabber_roster_group_change, /* group_buddy */ | 102 jabber_roster_group_change, /* group_buddy */ |
103 jabber_roster_group_rename, /* rename_group */ | 103 jabber_roster_group_rename, /* rename_group */ |
104 NULL, /* buddy_free */ | 104 NULL, /* buddy_free */ |
105 jabber_convo_closed, /* convo_closed */ | 105 jabber_convo_closed, /* convo_closed */ |
120 jabber_prpl_send_raw, /* send_raw */ | 120 jabber_prpl_send_raw, /* send_raw */ |
121 jabber_roomlist_room_serialize, /* roomlist_room_serialize */ | 121 jabber_roomlist_room_serialize, /* roomlist_room_serialize */ |
122 jabber_unregister_account, /* unregister_user */ | 122 jabber_unregister_account, /* unregister_user */ |
123 jabber_send_attention, /* send_attention */ | 123 jabber_send_attention, /* send_attention */ |
124 jabber_attention_types, /* attention_types */ | 124 jabber_attention_types, /* attention_types */ |
125 | |
126 sizeof(PurplePluginProtocolInfo), /* struct_size */ | |
127 NULL, /* get_account_text_table */ | 125 NULL, /* get_account_text_table */ |
128 jabber_initiate_media, /* initiate_media */ | 126 jabber_initiate_media, /* initiate_media */ |
129 jabber_get_media_caps, /* get_media_caps */ | 127 jabber_get_media_caps, /* get_media_caps */ |
130 jabber_get_moods, /* get_moods */ | 128 jabber_get_moods, /* get_moods */ |
131 NULL, /* set_public_alias */ | 129 NULL, /* set_public_alias */ |
132 NULL, /* get_public_alias */ | 130 NULL /* get_public_alias */ |
133 NULL, /* add_buddy_with_invite */ | |
134 NULL /* add_buddies_with_invite */ | |
135 }; | 131 }; |
136 | 132 |
137 static gboolean load_plugin(PurplePlugin *plugin) | 133 static gboolean load_plugin(PurplePlugin *plugin) |
138 { | 134 { |
139 jabber_plugin_init(plugin); | 135 jabber_plugin_init(plugin); |