mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Unification of protocol handler names.
This commit is contained in:
parent
98a7ca3635
commit
6c7fbaeeaa
@ -65,7 +65,7 @@ get_request(struct connection *conn)
|
||||
}
|
||||
|
||||
void
|
||||
execute_mailcap(struct connection *conn)
|
||||
mailcap_protocol_handler(struct connection *conn)
|
||||
{
|
||||
unsigned char *script, *ref;
|
||||
pid_t pid;
|
||||
|
@ -5,6 +5,6 @@
|
||||
#include "protocol/protocol.h"
|
||||
|
||||
extern struct module mailcap_protocol_module;
|
||||
extern protocol_handler_T execute_mailcap;
|
||||
extern protocol_handler_T mailcap_protocol_handler;
|
||||
|
||||
#endif
|
||||
|
@ -69,7 +69,7 @@ static const struct protocol_backend protocol_backends[] = {
|
||||
{ "http", 80, http_protocol_handler, 1, 1, 0, 0, 1 },
|
||||
{ "https", 443, https_protocol_handler, 1, 1, 0, 1, 1 },
|
||||
{ "javascript", 0, NULL, 0, 0, 1, 0, 1 },
|
||||
{ "mailcap", 0, execute_mailcap, 0, 0, 1, 0, 0 },
|
||||
{ "mailcap", 0, mailcap_protocol_handler, 0, 0, 1, 0, 0 },
|
||||
{ "news", 0, news_protocol_handler, 0, 0, 1, 0, 1 },
|
||||
{ "nntp", 119, nntp_protocol_handler, 1, 1, 0, 0, 0 },
|
||||
{ "nntps", 563, nntp_protocol_handler, 1, 1, 0, 1, 0 },
|
||||
|
@ -115,8 +115,8 @@ msg_box(struct terminal *term, struct memory_list *mem_list,
|
||||
|
||||
/* declared in "protocol/file/mailcap.h" */
|
||||
void
|
||||
execute_mailcap(struct connection *conn)
|
||||
mailcap_protocol_handler(struct connection *conn)
|
||||
{
|
||||
stub_called("execute_mailcap");
|
||||
stub_called("mailcap_protocol_handler");
|
||||
return NULL;
|
||||
}
|
||||
|
@ -459,7 +459,7 @@ download_data_store(struct download *download, struct file_download *file_downlo
|
||||
if (file_download->copiousoutput) {
|
||||
exec_later(file_download->ses,
|
||||
file_download->external_handler, file_download->file);
|
||||
/* Temporary file is deleted by the execute_mailcap */
|
||||
/* Temporary file is deleted by the mailcap_protocol_handler */
|
||||
file_download->delete = 0;
|
||||
} else {
|
||||
exec_on_terminal(term, file_download->external_handler,
|
||||
|
Loading…
Reference in New Issue
Block a user