diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-14 15:59:17 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-14 15:59:17 +0000 |
commit | a5ab3f27e084a5b0f887137ad3c16fe19f3ebba9 (patch) | |
tree | 7b8a0f2562bdb6430ddcd6ab6154589bbe0b7f86 /file.c | |
parent | [w3m-dev 02832] external URI loader support (diff) | |
download | w3m-a5ab3f27e084a5b0f887137ad3c16fe19f3ebba9.tar.gz w3m-a5ab3f27e084a5b0f887137ad3c16fe19f3ebba9.zip |
[w3m-dev 02832] external URI loader support
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | file.c | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.42 2002/01/12 13:33:47 ukai Exp $ */ +/* $Id: file.c,v 1.43 2002/01/14 15:59:17 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -1069,14 +1069,27 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, else { b = dirBuffer(pu.real_file); if (b == NULL) - return NULL; + return NO_BUFFER; t = "text/html"; b->real_scheme = pu.scheme; goto loaded; } } } + break; +#ifdef USE_EXTERNAL_URI_LOADER + case SCM_UNKNOWN: + tmp = searchURIMethods(&pu); + if (tmp != NULL) { + b = loadGeneralFile(tmp->ptr, NULL, NO_REFERER, 0, NULL); + if (b != NO_BUFFER) + return b; + } + break; +#endif } + disp_err_message(Sprintf("Unknown URI: %s", + parsedURL2Str(&pu)->ptr)->ptr, FALSE); return NO_BUFFER; } |