]> jfr.im git - irc/quakenet/newserv.git/blobdiff - patriciasearch/patriciasearch.h
update patricia search for ast + add ipvsix command
[irc/quakenet/newserv.git] / patriciasearch / patriciasearch.h
index 3655bfdc82e69f341d29d2c340d1ae35d2d39775..6436509b2e72d19f02fe36ad30026e3e86bcac58 100644 (file)
@@ -1,19 +1,24 @@
 #include "../newsearch/newsearch.h"
 #include "../patricia/patricia.h"
 #include "../patricianick/patricianick.h"
+#include "../newsearch/parser.h"
 
 typedef void (*NodeDisplayFunc)(struct searchCtx *, nick *, patricia_node_t *);
 
 void printnode(searchCtx *, nick *, patricia_node_t *);
 
-void pnodesearch_exe(struct searchNode *search, searchCtx *ctx, nick *sender, NodeDisplayFunc display, int limit, patricia_node_t *subset);
+void pnodesearch_exe(struct searchNode *search, searchCtx *ctx, patricia_node_t *subset);
 
 int do_pnodesearch_real(replyFunc reply, wallFunc wall, void *source, int cargc, char **cargv);
 
 int ast_pnodesearch(searchASTExpr *tree, replyFunc reply, void *sender, wallFunc wall, NodeDisplayFunc display, HeaderFunc header, void *headerarg, int limit);
 
+void regpnodedisp(const char *name, NodeDisplayFunc handler);
+void unregpnodedisp(const char *name, NodeDisplayFunc handler);
+
 extern NodeDisplayFunc defaultpnodefn;
 extern searchCmd *reg_nodesearch;
  
 struct searchNode *ps_nick_parse(searchCtx *ctx, int argc, char **argv);
 struct searchNode *ps_users_parse(searchCtx *ctx, int argc, char **argv);
+struct searchNode *ps_ipv6_parse(searchCtx *ctx, int argc, char **argv);