X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=nntp%2Fnntp.h;h=3e89c394c8964a2368a39a070720ee520a4fb85d;hp=261a1566542ad8f96a31c1f01b81dbda15a40820;hb=330047119d7dc2674918d12253fc24146aefc8d3;hpb=700dbab719f75421b81f8c603d239bbf38cfa6f9 diff --git a/nntp/nntp.h b/nntp/nntp.h index 261a156..3e89c39 100644 --- a/nntp/nntp.h +++ b/nntp/nntp.h @@ -12,11 +12,9 @@ #ifndef _NNTP_H_ #define _NNTP_H_ 1 -#include "mutt_socket.h" +#include #include "mx.h" -#include - #define NNTP_PORT 119 #define NNTP_SSL_PORT 563 @@ -48,8 +46,8 @@ typedef struct { time_t newgroups_time; time_t check_time; HASH *newsgroups; - LIST *list; /* list of newsgroups */ - LIST *tail; /* last entry of list */ + string_list_t *list; /* list of newsgroups */ + string_list_t *tail; /* last entry of list */ CONNECTION *conn; } NNTP_SERVER; @@ -85,7 +83,7 @@ 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 *, size_t); +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 *); @@ -111,10 +109,10 @@ 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 *); -void nntp_buffy (char* dst, size_t dstlen); -void nntp_expand_path (char *, size_t, ACCOUNT *); +void nntp_buffy (char* dst, ssize_t dstlen); +void nntp_expand_path (char *, ssize_t, ACCOUNT *); void nntp_logout_all (); -const char *nntp_format_str (char *, size_t, char, const char *, const char *, +const char *nntp_format_str (char *, ssize_t, char, const char *, const char *, const char *, const char *, unsigned long, format_flag); void nntp_sync_sidebar (NNTP_DATA*);