1 #ifndef LYGETFILE_H
2 #define LYGETFILE_H
3 
4 #include <LYStructs.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 #define NOT_FOUND 0
10 #define NORMAL 1
11 #define NULLFILE 3
12     extern int getfile(DocInfo *doc, int *target);
13     extern void srcmode_for_next_retrieval(int);
14     extern int follow_link_number(int c,
15 				  int cur,
16 				  DocInfo *doc,
17 				  int *num);
18     extern void add_trusted(char *str, int type);
19     extern BOOLEAN exec_ok(const char *source, const char *linkpath, int type);
20 
21     extern char *WWW_Download_File;
22 
23 /* values for follow_link_number() */
24 #define DO_LINK_STUFF		1
25 #define DO_GOTOLINK_STUFF	2
26 #define DO_GOTOPAGE_STUFF	3
27 #define DO_FORMS_STUFF		4
28 #define PRINT_ERROR		5
29 
30 /* values for add_trusted() and exec_ok() */
31 #define EXEC_PATH 0
32 #define ALWAYS_EXEC_PATH  1
33 #define CGI_PATH  2
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 #endif				/* LYGETFILE_H */
39