extern mx_t const nntp_mx;
-#define NNTP_PORT 119
-#define NNTP_SSL_PORT 563
-
/* number of entries in the hash table */
#define NNTP_CACHE_LEN 10
NNTP_BYE
};
-typedef struct {
- int first;
- int last;
-} NEWSRC_ENTRY;
-
typedef struct {
unsigned feat_known : 1;
unsigned hasXPAT : 1;
char *path;
} NNTP_CACHE;
+typedef struct {
+ int first;
+ int last;
+} NEWSRC_ENTRY;
+
typedef struct {
NEWSRC_ENTRY *entries;
int num; /* number of used entries */
/* internal functions */
int nntp_get_active (NNTP_SERVER *);
-int nntp_get_cache_all (NNTP_SERVER *);
-int nntp_save_cache_index (NNTP_SERVER *);
-int nntp_check_newgroups (NNTP_SERVER *, int);
-int nntp_save_cache_group (CONTEXT *);
-int nntp_parse_url (const char *, ACCOUNT *, char *, ssize_t);
-void newsrc_gen_entries (CONTEXT *);
-void nntp_get_status (CONTEXT *, HEADER *, char *, int);
-void mutt_newsgroup_stat (NNTP_DATA *);
-void nntp_delete_cache (NNTP_DATA *);
-void nntp_add_to_list (NNTP_SERVER *, NNTP_DATA *);
-void nntp_cache_expand (char *, const char *);
-void nntp_delete_data (void *);
/* exposed interface */
NNTP_SERVER *mutt_select_newsserver (char *);