comparison src/protocols/irc/parse.c @ 9597:d6f398e80b32

[gaim-migrate @ 10440] denyri added a void *data argument to most of the command related functions. This makes it easier for language binding and such. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Mon, 26 Jul 2004 03:27:03 +0000
parents 1e6bba55447c
children d54f14237255
comparison
equal deleted inserted replaced
9596:7b3212aa698c 9597:d6f398e80b32
135 { "whois", "n", irc_cmd_whois, N_("whois &lt;nick&gt;: Get information on a user.") }, 135 { "whois", "n", irc_cmd_whois, N_("whois &lt;nick&gt;: Get information on a user.") },
136 { NULL, NULL, NULL } 136 { NULL, NULL, NULL }
137 }; 137 };
138 138
139 static GaimCmdRet irc_parse_gaim_cmd(GaimConversation *conv, const gchar *cmd, 139 static GaimCmdRet irc_parse_gaim_cmd(GaimConversation *conv, const gchar *cmd,
140 gchar **args, gchar **error) 140 gchar **args, gchar **error, void *data)
141 { 141 {
142 GaimConnection *gc; 142 GaimConnection *gc;
143 struct irc_conn *irc; 143 struct irc_conn *irc;
144 struct _irc_user_cmd *cmdent; 144 struct _irc_user_cmd *cmdent;
145 145
183 break; 183 break;
184 } 184 }
185 185
186 args[i] = '\0'; 186 args[i] = '\0';
187 187
188 gaim_cmd_register(c->name, args, GAIM_CMD_P_PRPL, f, "prpl-irc", irc_parse_gaim_cmd, 188 gaim_cmd_register(c->name, args, GAIM_CMD_P_PRPL, f, "prpl-irc",
189 _(c->help)); 189 irc_parse_gaim_cmd, _(c->help), NULL);
190 } 190 }
191 191
192 void irc_register_commands(void) 192 void irc_register_commands(void)
193 { 193 {
194 struct _irc_user_cmd *c; 194 struct _irc_user_cmd *c;