summaryrefslogtreecommitdiffstats
path: root/src/LYGetFile.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:37:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:37:15 +0000
commitae5d181b854d3ccb373b6bc01b4869e44ff4d87a (patch)
tree91f59efb48c56a84cc798e012fccb667b63d3fee /src/LYGetFile.h
parentInitial commit. (diff)
downloadlynx-upstream.tar.xz
lynx-upstream.zip
Adding upstream version 2.9.0dev.12.upstream/2.9.0dev.12upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/LYGetFile.h')
-rw-r--r--src/LYGetFile.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/LYGetFile.h b/src/LYGetFile.h
new file mode 100644
index 0000000..f204d07
--- /dev/null
+++ b/src/LYGetFile.h
@@ -0,0 +1,38 @@
+#ifndef LYGETFILE_H
+#define LYGETFILE_H
+
+#include <LYStructs.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+#define NOT_FOUND 0
+#define NORMAL 1
+#define NULLFILE 3
+ extern int getfile(DocInfo *doc, int *target);
+ extern void srcmode_for_next_retrieval(int);
+ extern int follow_link_number(int c,
+ int cur,
+ DocInfo *doc,
+ int *num);
+ extern void add_trusted(char *str, int type);
+ extern BOOLEAN exec_ok(const char *source, const char *linkpath, int type);
+
+ extern char *WWW_Download_File;
+
+/* values for follow_link_number() */
+#define DO_LINK_STUFF 1
+#define DO_GOTOLINK_STUFF 2
+#define DO_GOTOPAGE_STUFF 3
+#define DO_FORMS_STUFF 4
+#define PRINT_ERROR 5
+
+/* values for add_trusted() and exec_ok() */
+#define EXEC_PATH 0
+#define ALWAYS_EXEC_PATH 1
+#define CGI_PATH 2
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* LYGETFILE_H */