Getting rid of useless settings.
[apps/madmutt.git] / nntp.h
diff --git a/nntp.h b/nntp.h
index 3bc9103..6d10aec 100644 (file)
--- a/nntp.h
+++ b/nntp.h
@@ -28,7 +28,7 @@ enum {
 
 typedef struct nntp_data_t nntp_data_t;
 
-typedef struct {
+typedef struct nntp_server_t {
     unsigned feat_known   : 1;
     unsigned hasXPAT      : 1;
     unsigned hasXGTITLE   : 1;
@@ -45,7 +45,7 @@ typedef struct {
     hash_t *newsgroups;
     nntp_data_t *list;                   /* list of newsgroups */
     CONNECTION *conn;
-} NNTP_SERVER;
+} nntp_server_t;
 
 typedef struct {
     int   index;
@@ -76,7 +76,7 @@ struct nntp_data_t {
     char *group;
     char *desc;
     char *cache;
-    NNTP_SERVER *nserv;
+    nntp_server_t *nserv;
     NNTP_CACHE acache[NNTP_CACHE_LEN];
 };
 
@@ -86,26 +86,24 @@ DO_NEW(nntp_data_t, nntp_data);
 DO_DELETE(nntp_data_t, nntp_data);
 DO_SLIST(nntp_data_t, nntp_data, nntp_data_delete);
 
-NNTP_SERVER *mutt_select_newsserver (char *);
-nntp_data_t *mutt_newsgroup_subscribe (NNTP_SERVER *, char *);
-nntp_data_t *mutt_newsgroup_unsubscribe (NNTP_SERVER *, char *);
-nntp_data_t *mutt_newsgroup_catchup (NNTP_SERVER *, char *);
-nntp_data_t *mutt_newsgroup_uncatchup (NNTP_SERVER *, char *);
-void nntp_clear_cacheindex (NNTP_SERVER *);
-int mutt_newsrc_update (NNTP_SERVER *);
+nntp_server_t *mutt_select_newsserver (char *);
+nntp_data_t *mutt_newsgroup_subscribe (nntp_server_t *, char *);
+nntp_data_t *mutt_newsgroup_unsubscribe (nntp_server_t *, char *);
+nntp_data_t *mutt_newsgroup_catchup (nntp_server_t *, char *);
+nntp_data_t *mutt_newsgroup_uncatchup (nntp_server_t *, char *);
+void nntp_clear_cacheindex (nntp_server_t *);
+int mutt_newsrc_update (nntp_server_t *);
 int nntp_close_mailbox (CONTEXT *);
 int nntp_fetch_message (MESSAGE *, CONTEXT *, int);
 int nntp_post (const char *);
 int nntp_check_msgid (CONTEXT *, const char *);
 int nntp_check_children (CONTEXT *, const char *);
-int nntp_get_active (NNTP_SERVER *);
+int nntp_get_active (nntp_server_t *);
 void nntp_buffy (char* dst, ssize_t dstlen);
 void nntp_expand_path (char *, ssize_t, ACCOUNT *);
 void nntp_logout_all(void);
-const char *nntp_format_str(char *, ssize_t, char, const char *, const char *,
-                            const char *, const char *, anytype, format_flag);
 void nntp_sync_sidebar (nntp_data_t*);
 
-WHERE NNTP_SERVER *CurrentNewsSrv INITVAL (NULL);
+WHERE nntp_server_t *CurrentNewsSrv INITVAL (NULL);
 
 #endif /* _NNTP_H_ */