]>
jfr.im git - irc/quakenet/newserv.git/blob - chansearch/chansearch.h
4 #include "../parser/parser.h"
5 #include "../channel/channel.h"
6 #include "../nick/nick.h"
8 typedef int (*SearchFunc
)(chanindex
*cip
, void *arg
);
9 typedef void (*DisplayFunc
)(nick
*sender
, chanindex
*cip
);
11 typedef struct filter
{
12 SearchFunc sf
; /* Actual search execute function to be filled in by setup func */
13 void *arg
; /* Argument for above to be filled in by setup func */
14 int mallocarg
; /* This should be set by the setup func if arg was malloc()'d (it will cause arg to be freed at the end) */
19 void regchansearchfunc(const char *name
, int args
, CommandHandler handler
);
20 void unregchansearchfunc(const char *name
, CommandHandler handler
);
21 void regchansearchdisp(const char *name
, DisplayFunc handler
);
22 void unregchansearchdisp(const char *name
, DisplayFunc handler
);