comparison libpurple/protocols/jabber/libxmpp.c @ 32493:743bb6b1aa30

Move struct_size to the beginning of the struct. Even if we don't rewrite this somehow (as a GObject or otherwise), it really belongs at the start.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 03 Sep 2011 23:30:40 +0000
parents cd1d9e04c587
children c6943fd38d44
comparison
equal deleted inserted replaced
32492:cd1d9e04c587 32493:743bb6b1aa30
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,
120 jabber_prpl_send_raw, /* send_raw */ 121 jabber_prpl_send_raw, /* send_raw */
121 jabber_roomlist_room_serialize, /* roomlist_room_serialize */ 122 jabber_roomlist_room_serialize, /* roomlist_room_serialize */
122 jabber_unregister_account, /* unregister_user */ 123 jabber_unregister_account, /* unregister_user */
123 jabber_send_attention, /* send_attention */ 124 jabber_send_attention, /* send_attention */
124 jabber_attention_types, /* attention_types */ 125 jabber_attention_types, /* attention_types */
125
126 sizeof(PurplePluginProtocolInfo), /* struct_size */
127 NULL, /* get_account_text_table */ 126 NULL, /* get_account_text_table */
128 jabber_initiate_media, /* initiate_media */ 127 jabber_initiate_media, /* initiate_media */
129 jabber_get_media_caps, /* get_media_caps */ 128 jabber_get_media_caps, /* get_media_caps */
130 jabber_get_moods, /* get_moods */ 129 jabber_get_moods, /* get_moods */
131 NULL, /* set_public_alias */ 130 NULL, /* set_public_alias */