2 * Dolda Connect - Modular multiuser Direct Connect-style client
3 * Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com)
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #include "sysevents.h"
45 struct wcslist *next, *prev;
71 struct srchfnnlist *next;
74 CBCHAIN(searchfnl_destroy, struct srchfnnlist *ln);
79 struct search *next, *prev;
87 struct srchfnnlist *fnl;
88 struct srchres *results;
90 struct timer *freetimer;
91 CBCHAIN(search_eta, struct search *srch);
92 CBCHAIN(search_commit, struct search *srch);
93 CBCHAIN(search_result, struct search *srch, struct srchres *sr);
94 CBCHAIN(search_destroy, struct search *srch);
99 struct srchres *next, *prev;
103 wchar_t *peerid, *peernick;
110 wchar_t *regexunquotesimple(wchar_t *re);
111 struct sexpr *parsesexpr(int argc, wchar_t **argv);
112 void optsexpr(struct sexpr *sexpr);
113 void getsexpr(struct sexpr *sexpr);
114 void putsexpr(struct sexpr *sexpr);
115 struct search *newsearch(wchar_t *owner, struct sexpr *sexpr);
116 void searchaddfn(struct search *srch, struct fnetnode *fn);
117 void queuesearch(struct search *srch);
118 void freesearch(struct search *srch);
119 struct wcslist *regexfindstrings(wchar_t *re);
120 void freesl(struct wcslist **list);
121 void slmergemax(struct wcslist **dest, struct wcslist *src);
122 struct wcslist *slmergemin(struct wcslist *l1, struct wcslist *l2);
123 struct wcslist *findsexprstrs(struct sexpr *sexpr);
124 struct srchres *newsrchres(struct fnet *fnet, wchar_t *filename, wchar_t *peerid);
125 void freesrchres(struct srchres *sr);
126 void submitsrchres(struct srchres *sr);
127 struct search *findsearch(int id);
129 extern struct search *searches;
130 EGCBCHAIN(newsrchcb, struct search *);