1 /* ------------------------------------------------------------ */
2 /*
3 HTTrack Website Copier, Offline Browser for Windows and Unix
4 Copyright (C) 1998-2017 Xavier Roche and other contributors
5 
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10 
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 Important notes:
20 
21 - We hereby ask people using this source NOT to use it in purpose of grabbing
22 emails addresses, or collecting any other private information on persons.
23 This would disgrace our work, and spoil the many hours we spent on it.
24 
25 Please visit our Website: http://www.httrack.com
26 */
27 
28 /* ------------------------------------------------------------ */
29 /* File: httrack.c subroutines:                                 */
30 /*       robots.txt (website robot file)                        */
31 /* Author: Xavier Roche                                         */
32 /* ------------------------------------------------------------ */
33 
34 #ifndef HTSROBOTS_DEFH
35 #define HTSROBOTS_DEFH
36 
37 // robots wizard
38 #ifndef HTS_DEF_FWSTRUCT_robots_wizard
39 #define HTS_DEF_FWSTRUCT_robots_wizard
40 typedef struct robots_wizard robots_wizard;
41 #endif
42 struct robots_wizard {
43   char adr[128];
44   char token[4096];
45   struct robots_wizard *next;
46 };
47 
48 /* Library internal definictions */
49 #ifdef HTS_INTERNAL_BYTECODE
50 int checkrobots(robots_wizard * robots, const char *adr, const char *fil);
51 void checkrobots_free(robots_wizard * robots);
52 int checkrobots_set(robots_wizard * robots, const char *adr, const char *data);
53 #endif
54 
55 #endif
56