comparison libpurple/protocols/yahoo/libyahoo.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
192 NULL 192 NULL
193 }; 193 };
194 194
195 static PurplePluginProtocolInfo prpl_info = 195 static PurplePluginProtocolInfo prpl_info =
196 { 196 {
197 sizeof(PurplePluginProtocolInfo), /* struct_size */
197 OPT_PROTO_MAIL_CHECK | OPT_PROTO_CHAT_TOPIC, 198 OPT_PROTO_MAIL_CHECK | OPT_PROTO_CHAT_TOPIC,
198 NULL, /* user_splits */ 199 NULL, /* user_splits */
199 NULL, /* protocol_options */ 200 NULL, /* protocol_options */
200 {"png,gif,jpeg", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND}, 201 {"png,gif,jpeg", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND},
201 yahoo_list_icon, 202 yahoo_list_icon,
255 yahoo_offline_message, /* offline_message */ 256 yahoo_offline_message, /* offline_message */
256 &yahoo_whiteboard_prpl_ops, 257 &yahoo_whiteboard_prpl_ops,
257 NULL, /* send_raw */ 258 NULL, /* send_raw */
258 NULL, /* roomlist_room_serialize */ 259 NULL, /* roomlist_room_serialize */
259 NULL, /* unregister_user */ 260 NULL, /* unregister_user */
260
261 yahoo_send_attention, 261 yahoo_send_attention,
262 yahoo_attention_types, 262 yahoo_attention_types,
263
264 sizeof(PurplePluginProtocolInfo), /* struct_size */
265 yahoo_get_account_text_table, /* get_account_text_table */ 263 yahoo_get_account_text_table, /* get_account_text_table */
266 NULL, /* initiate_media */ 264 NULL, /* initiate_media */
267 NULL, /* get_media_caps */ 265 NULL, /* get_media_caps */
268 NULL, /* get_moods */ 266 NULL, /* get_moods */
269 NULL, /* set_public_alias */ 267 NULL, /* set_public_alias */