merge all nntp code in nntp.c and move it toplevel
[apps/madmutt.git] / nntp.h
similarity index 82%
rename from nntp/nntp.h
rename to nntp.h
index 18b20fe..c1bde6e 100644 (file)
+++ b/nntp.h
@@ -17,9 +17,6 @@
 
 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
 
@@ -29,11 +26,6 @@ enum {
   NNTP_BYE
 };
 
-typedef struct {
-  int first;
-  int last;
-} NEWSRC_ENTRY;
-
 typedef struct {
   unsigned feat_known   : 1;
   unsigned hasXPAT      : 1;
@@ -59,6 +51,11 @@ typedef struct {
   char *path;
 } NNTP_CACHE;
 
+typedef struct {
+  int first;
+  int last;
+} NEWSRC_ENTRY;
+
 typedef struct {
   NEWSRC_ENTRY *entries;
   int num;             /* number of used entries */
@@ -82,18 +79,6 @@ typedef struct {
 
 /* 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 *);