]>
jfr.im git - irc/quakenet/newserv.git/blob - trusts/newsearch/tns-thastrust.c
2 * thastrust functionality
5 #include "../../newsearch/newsearch.h"
10 void *thastrust_exe(searchCtx
*ctx
, struct searchNode
*thenode
, void *theinput
);
11 void thastrust_free(searchCtx
*ctx
, struct searchNode
*thenode
);
13 struct searchNode
*thastrust_parse(searchCtx
*ctx
, int argc
, char **argv
) {
14 struct searchNode
*thenode
;
16 if(!(thenode
=(struct searchNode
*)malloc(sizeof (struct searchNode
)))) {
17 parseError
= "malloc: could not allocate memory for this search.";
21 thenode
->returntype
= RETURNTYPE_BOOL
;
22 thenode
->exe
= thastrust_exe
;
23 thenode
->free
= thastrust_free
;
28 void *thastrust_exe(searchCtx
*ctx
, struct searchNode
*thenode
, void *theinput
) {
30 trusthost
*th
= gettrusthost(np
);
38 void thastrust_free(searchCtx
*ctx
, struct searchNode
*thenode
) {