Commit | Line | Data |
---|---|---|
0d04e87e FT |
1 | /* |
2 | * Dolda Connect - Modular multiuser Direct Connect-style client | |
302a2600 | 3 | * Copyright (C) 2007 Fredrik Tolf <fredrik@dolda2000.com> |
0d04e87e FT |
4 | * |
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. | |
9 | * | |
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. | |
14 | * | |
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 | |
18 | */ | |
19 | ||
20 | #ifndef _HUBLIST_H | |
21 | #define _HUBLIST_H | |
22 | ||
23 | #include <regex.h> | |
24 | ||
25 | #define PHO_INIT 0 | |
26 | #define PHO_DATA 1 | |
27 | #define PHO_EOF 2 | |
28 | #define PHO_FINI 3 | |
29 | ||
b0d389ac | 30 | void aborthublist(void); |
0d04e87e FT |
31 | int validhub(char *field, ...); |
32 | void fetchhublist(char *url, regex_t *flt); | |
33 | ||
34 | int pubhubxmlhandler(int op, char *buf, size_t len); | |
35 | int pubhuboldhandler(int op, char *buf, size_t len); | |
36 | ||
37 | #endif |