ELinks 0.18.0
nntp.c File Reference
#include "elinks.h"
#include "config/options.h"
#include "intl/libintl.h"
#include "main/module.h"
#include "protocol/nntp/nntp.h"
Include dependency graph for nntp.c:

Macros

#define NNTP_HEADER_ENTRIES   "Subject,From,Date,Message-ID,Newsgroups"
 
#define get_opt_nntp(which)   nntp_protocol_options[(which)].option
 

Enumerations

enum  nntp_protocol_option { NNTP_PROTOCOL_TREE , NNTP_PROTOCOL_SERVER , NNTP_PROTOCOL_HEADER_ENTRIES , NNTP_PROTOCOL_OPTIONS }
 

Functions

char * get_nntp_server (void)
 
char * get_nntp_header_entries (void)
 

Variables

static union option_info nntp_protocol_options []
 
struct module nntp_protocol_module
 

Macro Definition Documentation

◆ get_opt_nntp

#define get_opt_nntp ( which)    nntp_protocol_options[(which)].option

◆ NNTP_HEADER_ENTRIES

#define NNTP_HEADER_ENTRIES   "Subject,From,Date,Message-ID,Newsgroups"

Enumeration Type Documentation

◆ nntp_protocol_option

Enumerator
NNTP_PROTOCOL_TREE 
NNTP_PROTOCOL_SERVER 
NNTP_PROTOCOL_HEADER_ENTRIES 
NNTP_PROTOCOL_OPTIONS 

Function Documentation

◆ get_nntp_header_entries()

char * get_nntp_header_entries ( void )

◆ get_nntp_server()

char * get_nntp_server ( void )

Variable Documentation

◆ nntp_protocol_module

struct module nntp_protocol_module
Initial value:
N_("NNTP"),
)
#define NULL
Definition explodename.c:35
#define N_(msg)
Definition libintl.h:25
#define struct_module(name, options, hooks, submods, data, init, done, getname)
Definition module.h:47
static union option_info nntp_protocol_options[]
Definition nntp.c:31

◆ nntp_protocol_options

union option_info nntp_protocol_options[]
static
Initial value:
= {
INIT_OPT_TREE("protocol", N_("NNTP"),
"nntp", OPT_ZERO,
N_("NNTP and news specific options.")),
INIT_OPT_STRING("protocol.nntp", N_("Default news server"),
"server", OPT_ZERO, "",
N_("Used when resolving news: URIs. "
"If set to the empty string the value of the NNTPSERVER "
"environment variable will be used.")),
INIT_OPT_STRING("protocol.nntp", N_("Message header entries"),
"header_entries", OPT_ZERO, NNTP_HEADER_ENTRIES,
N_("Comma separated list of which entries in the article "
"header to show. E.g. 'Subject' and 'From'. "
"All header entries can be read in the header info dialog.")),
NULL_OPTION_INFO,
}
@ OPT_ZERO
Definition options.h:23
#define NNTP_HEADER_ENTRIES
Definition nntp.c:18