-typedef struct {
- NEWSRC_ENTRY *entries;
- int num; /* number of used entries */
- int max; /* number of allocated entries */
- int unread;
- int firstMessage;
- int lastMessage;
- int lastLoaded;
- int lastCached;
- unsigned subscribed:1;
- unsigned rc:1;
- unsigned new:1;
- unsigned allowed:1;
- unsigned deleted:1;
- char *group;
- char *desc;
- char *cache;
- NNTP_SERVER *nserv;
- NNTP_CACHE acache[NNTP_CACHE_LEN];
-} NNTP_DATA;
+struct nntp_data_t {
+ struct nntp_data_t *next;
+
+ NEWSRC_ENTRY *entries;
+ int num; /* number of used entries */
+ int max; /* number of allocated entries */
+ int unread;
+ int first, last;
+ int lastLoaded;
+ int lastCached;
+ unsigned subscribed:1;
+ unsigned rc:1;
+ unsigned new:1;
+ unsigned allowed:1;
+ unsigned deleted:1;
+ char *group;
+ char *desc;
+ char *cache;
+ nntp_server_t *nserv;
+ NNTP_CACHE acache[NNTP_CACHE_LEN];
+};
+
+DO_INIT(nntp_data_t, nntp_data);
+void nntp_data_wipe(nntp_data_t *);
+DO_NEW(nntp_data_t, nntp_data);
+DO_DELETE(nntp_data_t, nntp_data);
+DO_SLIST(nntp_data_t, nntp_data, nntp_data_delete);