ELinks 0.18.0
protocol.h File Reference
#include "main/module.h"
Include dependency graph for protocol.h:

Typedefs

typedef unsigned int protocol_T
 
typedef void protocol_handler_T(struct connection *)
 
typedef void protocol_external_handler_T(struct session *, struct uri *)
 

Enumerations

enum  protocol {
  PROTOCOL_ABOUT , PROTOCOL_BITTORRENT , PROTOCOL_BITTORRENT_PEER , PROTOCOL_DATA ,
  PROTOCOL_DGI , PROTOCOL_FILE , PROTOCOL_FINGER , PROTOCOL_FSP ,
  PROTOCOL_FTP , PROTOCOL_FTPES , PROTOCOL_GEMINI , PROTOCOL_GOPHER ,
  PROTOCOL_HTTP , PROTOCOL_HTTPS , PROTOCOL_JAVASCRIPT , PROTOCOL_MAILCAP ,
  PROTOCOL_NEWS , PROTOCOL_NNTP , PROTOCOL_NNTPS , PROTOCOL_PROXY ,
  PROTOCOL_SFTP , PROTOCOL_SMB , PROTOCOL_SNEWS , PROTOCOL_UNKNOWN ,
  PROTOCOL_USER , PROTOCOL_LUA , PROTOCOL_BACKENDS
}
 

Functions

int get_protocol_port (protocol_T protocol)
 
int get_protocol_need_slashes (protocol_T protocol)
 
int get_protocol_keep_double_slashes (protocol_T protocol)
 
int get_protocol_need_slash_after_host (protocol_T protocol)
 
int get_protocol_free_syntax (protocol_T protocol)
 
int get_protocol_need_ssl (protocol_T protocol)
 
protocol_handler_Tget_protocol_handler (protocol_T protocol)
 
protocol_external_handler_Tget_protocol_external_handler (struct terminal *, struct uri *)
 
protocol_T get_protocol (const char *name, int namelen)
 

Variables

struct module protocol_module
 

Typedef Documentation

◆ protocol_external_handler_T

typedef void protocol_external_handler_T(struct session *, struct uri *)

◆ protocol_handler_T

typedef void protocol_handler_T(struct connection *)

◆ protocol_T

typedef unsigned int protocol_T

Enumeration Type Documentation

◆ protocol

enum protocol
Enumerator
PROTOCOL_ABOUT 
PROTOCOL_BITTORRENT 
PROTOCOL_BITTORRENT_PEER 
PROTOCOL_DATA 
PROTOCOL_DGI 
PROTOCOL_FILE 
PROTOCOL_FINGER 
PROTOCOL_FSP 
PROTOCOL_FTP 
PROTOCOL_FTPES 
PROTOCOL_GEMINI 
PROTOCOL_GOPHER 
PROTOCOL_HTTP 
PROTOCOL_HTTPS 
PROTOCOL_JAVASCRIPT 
PROTOCOL_MAILCAP 
PROTOCOL_NEWS 
PROTOCOL_NNTP 
PROTOCOL_NNTPS 
PROTOCOL_PROXY 
PROTOCOL_SFTP 
PROTOCOL_SMB 
PROTOCOL_SNEWS 
PROTOCOL_UNKNOWN 
PROTOCOL_USER 
PROTOCOL_LUA 
PROTOCOL_BACKENDS 

Function Documentation

◆ get_protocol()

protocol_T get_protocol ( const char * name,
int namelen )

◆ get_protocol_external_handler()

protocol_external_handler_T * get_protocol_external_handler ( struct terminal * term,
struct uri * uri )

◆ get_protocol_free_syntax()

int get_protocol_free_syntax ( protocol_T protocol)

◆ get_protocol_handler()

protocol_handler_T * get_protocol_handler ( protocol_T protocol)

◆ get_protocol_keep_double_slashes()

int get_protocol_keep_double_slashes ( protocol_T protocol)

◆ get_protocol_need_slash_after_host()

int get_protocol_need_slash_after_host ( protocol_T protocol)

◆ get_protocol_need_slashes()

int get_protocol_need_slashes ( protocol_T protocol)

◆ get_protocol_need_ssl()

int get_protocol_need_ssl ( protocol_T protocol)

◆ get_protocol_port()

int get_protocol_port ( protocol_T protocol)

Variable Documentation

◆ protocol_module

struct module protocol_module
extern