mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[uri] int -> enum protocol
This commit is contained in:
parent
a4c8d2a2b9
commit
a7c6fb2ab9
@ -164,6 +164,9 @@ get_proxy_worker(struct uri *uri, char *proxy,
|
|||||||
"FTP_PROXY", "ftp_proxy",
|
"FTP_PROXY", "ftp_proxy",
|
||||||
"ftp://", "http://");
|
"ftp://", "http://");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (protocol_proxy && *protocol_proxy) {
|
if (protocol_proxy && *protocol_proxy) {
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#define EL__PROTOCOL_URI_H
|
#define EL__PROTOCOL_URI_H
|
||||||
|
|
||||||
#include "main/object.h"
|
#include "main/object.h"
|
||||||
|
#include "protocol/protocol.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@ -36,7 +37,7 @@ struct uri {
|
|||||||
char *string;
|
char *string;
|
||||||
|
|
||||||
/* The internal type of protocol. Can _never_ be PROTOCOL_UNKNOWN. */
|
/* The internal type of protocol. Can _never_ be PROTOCOL_UNKNOWN. */
|
||||||
int protocol; /* enum protocol */
|
enum protocol protocol; /* enum protocol */
|
||||||
|
|
||||||
/* A special ELinks extension allows i.e. 'http4' or 'ftp6' protocols,
|
/* A special ELinks extension allows i.e. 'http4' or 'ftp6' protocols,
|
||||||
* forcing the given IP family. 0 means the IP family is not forced. */
|
* forcing the given IP family. 0 means the IP family is not forced. */
|
||||||
|
Loading…
Reference in New Issue
Block a user