]> jfr.im git - irc/quakenet/newserv.git/blame - patriciasearch/patriciasearch.h
LUA: port luadb to dbapi2 to drop postgres dependency
[irc/quakenet/newserv.git] / patriciasearch / patriciasearch.h
CommitLineData
3128667f
P
1#include "../newsearch/newsearch.h"
2#include "../patricia/patricia.h"
3#include "../patricianick/patricianick.h"
a4b2a5b9 4#include "../newsearch/parser.h"
3128667f
P
5
6typedef void (*NodeDisplayFunc)(struct searchCtx *, nick *, patricia_node_t *);
7
8void printnode(searchCtx *, nick *, patricia_node_t *);
9
6b2202d0 10void pnodesearch_exe(struct searchNode *search, searchCtx *ctx, patricia_node_t *subset);
3128667f
P
11
12int do_pnodesearch_real(replyFunc reply, wallFunc wall, void *source, int cargc, char **cargv);
13
4860501e 14int ast_nodesearch(searchASTExpr *tree, replyFunc reply, void *sender, wallFunc wall, NodeDisplayFunc display, HeaderFunc header, void *headerarg, int limit, patricia_node_t *target);
3128667f 15
79304922
P
16void regpnodedisp(const char *name, NodeDisplayFunc handler);
17void unregpnodedisp(const char *name, NodeDisplayFunc handler);
18
3128667f
P
19extern NodeDisplayFunc defaultpnodefn;
20extern searchCmd *reg_nodesearch;
21
22struct searchNode *ps_nick_parse(searchCtx *ctx, int argc, char **argv);
23struct searchNode *ps_users_parse(searchCtx *ctx, int argc, char **argv);
a4b2a5b9 24struct searchNode *ps_ipv6_parse(searchCtx *ctx, int argc, char **argv);