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
24 #include "sysevents.h"
47 struct wcslist *next, *prev;
74 struct srchfnnlist *next;
77 CBCHAIN(searchfnl_destroy, struct srchfnnlist *ln);
82 struct search *next, *prev;
90 struct srchfnnlist *fnl;
91 struct srchres *results;
93 struct timer *freetimer;
94 CBCHAIN(search_eta, struct search *srch);
95 CBCHAIN(search_commit, struct search *srch);
96 CBCHAIN(search_result, struct search *srch, struct srchres *sr);
97 CBCHAIN(search_destroy, struct search *srch);
102 struct srchres *next, *prev;
106 wchar_t *peerid, *peernick;
114 wchar_t *regexunquotesimple(wchar_t *re);
115 struct sexpr *parsesexpr(int argc, wchar_t **argv);
116 void optsexpr(struct sexpr *sexpr);
117 void getsexpr(struct sexpr *sexpr);
118 void putsexpr(struct sexpr *sexpr);
119 struct search *newsearch(wchar_t *owner, struct sexpr *sexpr);
120 void searchaddfn(struct search *srch, struct fnetnode *fn);
121 void queuesearch(struct search *srch);
122 void freesearch(struct search *srch);
123 struct wcslist *regexfindstrings(wchar_t *re);
124 void freesl(struct wcslist **list);
125 void slmergemax(struct wcslist **dest, struct wcslist *src);
126 struct wcslist *slmergemin(struct wcslist *l1, struct wcslist *l2);
127 struct wcslist *findsexprstrs(struct sexpr *sexpr);
128 struct srchres *newsrchres(struct fnet *fnet, wchar_t *filename, wchar_t *peerid);
129 void freesrchres(struct srchres *sr);
130 void submitsrchres(struct srchres *sr);
131 struct search *findsearch(int id);
133 extern struct search *searches;
134 EGCBCHAIN(newsrchcb, struct search *);