1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-29 01:45:34 +00:00

Unification of protocol handler names.

This commit is contained in:
Witold Filipczyk 2010-07-27 10:07:52 +02:00 committed by Witold Filipczyk
parent 98a7ca3635
commit 6c7fbaeeaa
5 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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

View File

@ -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 },

View File

@ -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;
}

View File

@ -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,