1 /* WHOHandler.h - NeonServ v5.1
2 * Copyright (C) 2011 Philipp Kreil (pk910)
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #define USERLIST_CALLBACK(NAME) void NAME(UNUSED_ARG(struct ClientSocket *client), UNUSED_ARG(struct ChanNode *chan), UNUSED_ARG(void *data))
27 typedef USERLIST_CALLBACK(userlist_callback_t);
29 #define USERAUTH_CALLBACK(NAME) void NAME(UNUSED_ARG(struct ClientSocket *client), UNUSED_ARG(char *user_nick), UNUSED_ARG(struct UserNode *user), UNUSED_ARG(void *data))
30 typedef USERAUTH_CALLBACK(userauth_callback_t);
32 void recv_whohandler_354(struct ClientSocket *client, char **argv, unsigned int argc);
33 void recv_whohandler_315(struct ClientSocket *client, char **argv, unsigned int argc);
34 void get_userlist(struct ChanNode *chan, userlist_callback_t callback, void *data);
35 void get_userlist_with_invisible(struct ChanNode *chan, userlist_callback_t callback, void *data);
36 void get_userauth(struct UserNode *user, userauth_callback_t callback, void *data);