diff options
Diffstat (limited to 'gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h')
| -rw-r--r-- | gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h | 56 |
1 files changed, 52 insertions, 4 deletions
diff --git a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h index edee6ded9de..976e18b0956 100644 --- a/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h +++ b/gnu/usr.bin/lynx/WWW/Library/Implementation/HTFile.h @@ -42,7 +42,7 @@ extern int HTDirReadme; /* Include readme files in listing? */ /* ** Convert filenames between local and WWW formats */ -extern char * HTURLPath_toFile PARAMS((CONST char * name, BOOL expand_all)); +extern char * HTURLPath_toFile PARAMS((CONST char * name, BOOL expand_all, BOOL is_remote)); extern char * HTnameOfFile_WWW PARAMS((CONST char * name, BOOL WWW_prefix, BOOL expand_all)); #define HTLocalName(name) HTnameOfFile_WWW(name,TRUE,TRUE) #define HTfullURL_toFile(name) HTnameOfFile_WWW(name,FALSE,TRUE) @@ -69,7 +69,7 @@ extern char * HTCacheFileName PARAMS((CONST char * name)); */ extern BOOL HTDirTitles PARAMS(( HTStructured * target, - HTAnchor * anchor, + HTParentAnchor* anchor, BOOL tildeIsTop)); /* @@ -276,6 +276,55 @@ extern CONST char * HTFileSuffix PARAMS(( CONST char* enc)); /* + * Enumerate external programs that lynx may assume exists. Unlike those + * given in download scripts, etc., lynx would really like to know their + * absolute paths, for better security. + */ +typedef enum { + ppUnknown = 0 + ,ppBZIP2 + ,ppCHMOD + ,ppCOMPRESS + ,ppCOPY + ,ppCSWING + ,ppGZIP + ,ppINSTALL + ,ppMKDIR + ,ppMV + ,ppRLOGIN + ,ppRM + ,ppRMDIR + ,ppTAR + ,ppTELNET + ,ppTN3270 + ,ppTOUCH + ,ppUNCOMPRESS + ,ppUNZIP + ,ppUUDECODE + ,ppZCAT + ,ppZIP + ,pp_Last +} ProgramPaths; + +/* + * Given a program number, return its path + */ +extern CONST char * HTGetProgramPath PARAMS(( + ProgramPaths code)); + +/* + * Store a program's path + */ +extern void HTSetProgramPath PARAMS(( + ProgramPaths code, + CONST char *path)); + +/* + * Reset the list of known program paths to the ones that are compiled-in + */ +extern void HTInitProgramPaths NOPARAMS; + +/* ** The Protocols */ #ifdef GLOBALREF_IS_MACRO @@ -284,6 +333,5 @@ extern GLOBALREF (HTProtocol,HTFile); #else GLOBALREF HTProtocol HTFTP, HTFile; #endif /* GLOBALREF_IS_MACRO */ -#endif /* HTFILE_H */ -/* end of HTFile */ +#endif /* HTFILE_H */ |
