projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Final simplifications of the sidebar module.
[apps/madmutt.git]
/
nntp.h
diff --git
a/nntp.h
b/nntp.h
index
037d8a1
..
09472c5
100644
(file)
--- a/
nntp.h
+++ b/
nntp.h
@@
-44,6
+44,7
@@
typedef struct nntp_server_t {
time_t check_time;
hash_t *newsgroups;
nntp_data_t *list; /* list of newsgroups */
time_t check_time;
hash_t *newsgroups;
nntp_data_t *list; /* list of newsgroups */
+ nntp_data_t **tail;
CONNECTION *conn;
} nntp_server_t;
CONNECTION *conn;
} nntp_server_t;
@@
-64,8
+65,7
@@
struct nntp_data_t {
int num; /* number of used entries */
int max; /* number of allocated entries */
int unread;
int num; /* number of used entries */
int max; /* number of allocated entries */
int unread;
- int firstMessage;
- int lastMessage;
+ int first, last;
int lastLoaded;
int lastCached;
unsigned subscribed:1;
int lastLoaded;
int lastCached;
unsigned subscribed:1;
@@
-91,7
+91,6
@@
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 *);
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 mutt_newsrc_update (nntp_server_t *);
int nntp_close_mailbox (CONTEXT *);
int nntp_fetch_message (MESSAGE *, CONTEXT *, int);
@@
-102,8
+101,6
@@
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);
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_t *CurrentNewsSrv INITVAL (NULL);
void nntp_sync_sidebar (nntp_data_t*);
WHERE nntp_server_t *CurrentNewsSrv INITVAL (NULL);