Mercurial > pidgin.yaz
comparison libpurple/protocols/msnp9/msn.c @ 23111:718a9c287839
Use up the last padding for PurplePluginProtocolInfo in a way that allows
adding newer functions without causing any major version bump. This is
based on the changes from the .vv branch. I changed the
PURPLE_PROTOCOL_PLUGIN_HAS_FUNC macro a little so it can be used for the
old as well as the new functions. Someone should confirm this looks OK.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 05 May 2008 06:19:46 +0000 |
parents | 3fee7e01e51c |
children | bb41bdce8981 |
comparison
equal
deleted
inserted
replaced
23110:53bf3c21b79d | 23111:718a9c287839 |
---|---|
130 _("%s has nudged you!"), _("Nudging %s..."))); | 130 _("%s has nudged you!"), _("Nudging %s..."))); |
131 } | 131 } |
132 | 132 |
133 return list; | 133 return list; |
134 } | 134 } |
135 | |
136 | 135 |
137 static PurpleCmdRet | 136 static PurpleCmdRet |
138 msn_cmd_nudge(PurpleConversation *conv, const gchar *cmd, gchar **args, gchar **error, void *data) | 137 msn_cmd_nudge(PurpleConversation *conv, const gchar *cmd, gchar **args, gchar **error, void *data) |
139 { | 138 { |
140 PurpleAccount *account = purple_conversation_get_account(conv); | 139 PurpleAccount *account = purple_conversation_get_account(conv); |
2146 NULL, /* roomlist_room_serialize */ | 2145 NULL, /* roomlist_room_serialize */ |
2147 NULL, /* unregister_user */ | 2146 NULL, /* unregister_user */ |
2148 msn_send_attention, /* send_attention */ | 2147 msn_send_attention, /* send_attention */ |
2149 msn_attention_types, /* attention_types */ | 2148 msn_attention_types, /* attention_types */ |
2150 | 2149 |
2151 /* padding */ | 2150 sizeof(PurplePluginProtocolInfo), /* struct_size */ |
2152 NULL | |
2153 }; | 2151 }; |
2154 | 2152 |
2155 static PurplePluginInfo info = | 2153 static PurplePluginInfo info = |
2156 { | 2154 { |
2157 PURPLE_PLUGIN_MAGIC, | 2155 PURPLE_PLUGIN_MAGIC, |