diff options
author | Alain Magloire <alainm@gnu.org> | 2004-07-01 04:08:00 +0000 |
---|---|---|
committer | Alain Magloire <alainm@gnu.org> | 2004-07-01 04:08:00 +0000 |
commit | cb55489c800e4706b1b0f070d6f4d91e13f20733 (patch) | |
tree | 400a3d264105b94ff673c83aca8363a06f39dbf9 /include | |
parent | 337ccc5af1e697e7af44a6a4836a710876cbb460 (diff) | |
download | mailutils-cb55489c800e4706b1b0f070d6f4d91e13f20733.tar.gz mailutils-cb55489c800e4706b1b0f070d6f4d91e13f20733.tar.bz2 |
Now part of the distribution.
Diffstat (limited to 'include')
-rw-r--r-- | include/mailutils/Makefile.am | 1 | ||||
-rw-r--r-- | include/mailutils/nntp.h | 32 | ||||
-rw-r--r-- | include/mailutils/pop3.h | 24 | ||||
-rw-r--r-- | include/mailutils/sys/Makefile.am | 3 | ||||
-rw-r--r-- | include/mailutils/sys/nntp.h | 1 | ||||
-rw-r--r-- | include/mailutils/sys/pop3.h | 3 |
6 files changed, 34 insertions, 30 deletions
diff --git a/include/mailutils/Makefile.am b/include/mailutils/Makefile.am index a1609fd29..043c1d9ac 100644 --- a/include/mailutils/Makefile.am +++ b/include/mailutils/Makefile.am | |||
@@ -48,6 +48,7 @@ pkginclude_HEADERS = \ | |||
48 | mu_auth.h \ | 48 | mu_auth.h \ |
49 | mutil.h \ | 49 | mutil.h \ |
50 | nls.h \ | 50 | nls.h \ |
51 | nntp.h \ | ||
51 | observer.h \ | 52 | observer.h \ |
52 | parse822.h \ | 53 | parse822.h \ |
53 | pop3.h \ | 54 | pop3.h \ |
diff --git a/include/mailutils/nntp.h b/include/mailutils/nntp.h index 4b2ff027a..3f943fb59 100644 --- a/include/mailutils/nntp.h +++ b/include/mailutils/nntp.h | |||
@@ -47,9 +47,9 @@ extern int mu_nntp_stls (mu_nntp_t nntp); | |||
47 | 47 | ||
48 | extern int mu_nntp_mode_reader (mu_nntp_t nntp); | 48 | extern int mu_nntp_mode_reader (mu_nntp_t nntp); |
49 | 49 | ||
50 | /* A list is return with the multi-line answer. It is the responsability of | 50 | /* An iterator is return with the multi-line answer. It is the responsability of |
51 | the caller to call list_destroy() to dispose of the list. */ | 51 | the caller to call iterator_destroy() to dispose of the iterator. */ |
52 | extern int mu_nntp_list_extensions (mu_nntp_t nntp, list_t *plist); | 52 | extern int mu_nntp_list_extensions (mu_nntp_t nntp, iterator_t *iterator); |
53 | 53 | ||
54 | extern int mu_nntp_quit (mu_nntp_t nntp); | 54 | extern int mu_nntp_quit (mu_nntp_t nntp); |
55 | 55 | ||
@@ -81,26 +81,26 @@ extern int mu_nntp_date (mu_nntp_t nntp, unsigned int *year, unsigne | |||
81 | extern int mu_nntp_help (mu_nntp_t nntp, stream_t *stream); | 81 | extern int mu_nntp_help (mu_nntp_t nntp, stream_t *stream); |
82 | 82 | ||
83 | 83 | ||
84 | /* A list is return with the multi-line answer. It is the responsability of | 84 | /* An iterator is return with the multi-line answer. It is the responsability of |
85 | the caller to call list_destroy() to dispose of the list. */ | 85 | the caller to call iterator_destroy() to dispose of the iterator. */ |
86 | extern int mu_nntp_newgroups (mu_nntp_t nntp, unsigned int year, unsigned int month, unsigned int day, | 86 | extern int mu_nntp_newgroups (mu_nntp_t nntp, unsigned int year, unsigned int month, unsigned int day, |
87 | unsigned int hour, unsigned int minute, unsigned int second, int is_gmt, list_t *plist); | 87 | unsigned int hour, unsigned int minute, unsigned int second, int is_gmt, iterator_t *iterator); |
88 | /* A list is return with the multi-line answer. It is the responsability of | 88 | /* A iterator is return with the multi-line answer. It is the responsability of |
89 | the caller to call list_destroy() to dispose of the list. */ | 89 | the caller to call iterator_destroy() to dispose of the iterator. */ |
90 | extern int mu_nntp_newnews (mu_nntp_t nntp, const char *wildmat, unsigned int year, unsigned int month, unsigned int day, | 90 | extern int mu_nntp_newnews (mu_nntp_t nntp, const char *wildmat, unsigned int year, unsigned int month, unsigned int day, |
91 | unsigned int hour, unsigned int minute, unsigned int second, int is_gmt, list_t *plist); | 91 | unsigned int hour, unsigned int minute, unsigned int second, int is_gmt, iterator_t *iterator); |
92 | 92 | ||
93 | extern int mu_nntp_post (mu_nntp_t nntp, stream_t stream); | 93 | extern int mu_nntp_post (mu_nntp_t nntp, stream_t stream); |
94 | extern int mu_nntp_ihave (mu_nntp_t nntp, const char *mid, stream_t stream); | 94 | extern int mu_nntp_ihave (mu_nntp_t nntp, const char *mid, stream_t stream); |
95 | 95 | ||
96 | 96 | ||
97 | /* A list is return with the multi-line answer. It is the responsability of | 97 | /* A iterator is return with the multi-line answer. It is the responsability of |
98 | the caller to call list_destroy() to dispose of the list. */ | 98 | the caller to call iterator_destroy() to dispose of the iterator. */ |
99 | extern int mu_nntp_list_active (mu_nntp_t nntp, const char *wildmat, list_t *plist); | 99 | extern int mu_nntp_list_active (mu_nntp_t nntp, const char *wildmat, iterator_t *iterator); |
100 | extern int mu_nntp_list_active_times (mu_nntp_t nntp, const char *wildmat, list_t *plist); | 100 | extern int mu_nntp_list_active_times (mu_nntp_t nntp, const char *wildmat, iterator_t *iterator); |
101 | extern int mu_nntp_list_distributions (mu_nntp_t nntp, const char *wildmat, list_t *plist); | 101 | extern int mu_nntp_list_distributions (mu_nntp_t nntp, const char *wildmat, iterator_t *iterator); |
102 | extern int mu_nntp_list_distrib_pats (mu_nntp_t nntp, list_t *plist); | 102 | extern int mu_nntp_list_distrib_pats (mu_nntp_t nntp, iterator_t *iterator); |
103 | extern int mu_nntp_list_newsgroups (mu_nntp_t nntp, const char *wildmat, list_t *plist); | 103 | extern int mu_nntp_list_newsgroups (mu_nntp_t nntp, const char *wildmat, iterator_t *iterator); |
104 | 104 | ||
105 | 105 | ||
106 | /* Parse the list active response. | 106 | /* Parse the list active response. |
diff --git a/include/mailutils/pop3.h b/include/mailutils/pop3.h index 013d8c7d4..e9785c404 100644 --- a/include/mailutils/pop3.h +++ b/include/mailutils/pop3.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | modify it under the terms of the GNU Lesser General Public |
@@ -18,7 +18,7 @@ | |||
18 | #ifndef _MAILUTILS_POP3_H | 18 | #ifndef _MAILUTILS_POP3_H |
19 | #define _MAILUTILS_POP3_H | 19 | #define _MAILUTILS_POP3_H |
20 | 20 | ||
21 | #include <mailutils/list.h> | 21 | #include <mailutils/iterator.h> |
22 | #include <mailutils/debug.h> | 22 | #include <mailutils/debug.h> |
23 | #include <mailutils/stream.h> | 23 | #include <mailutils/stream.h> |
24 | 24 | ||
@@ -47,18 +47,18 @@ extern int mu_pop3_apop (mu_pop3_t pop3, const char *name, const char * | |||
47 | 47 | ||
48 | extern int mu_pop3_stls (mu_pop3_t pop3); | 48 | extern int mu_pop3_stls (mu_pop3_t pop3); |
49 | 49 | ||
50 | /* It is the responsability of the caller to call list_destroy() when done | 50 | /* It is the responsability of the caller to call iterator_destroy() when done |
51 | with the list. The item in the list is of type "const char *", | 51 | with the iterator. The items return by the iterator are of type "const char *", |
52 | no processing is done on the item except the removal of the trailing newline. */ | 52 | no processing is done on the item except the removal of the trailing newline. */ |
53 | extern int mu_pop3_capa (mu_pop3_t pop3, list_t *plist); | 53 | extern int mu_pop3_capa (mu_pop3_t pop3, iterator_t *iterator); |
54 | 54 | ||
55 | extern int mu_pop3_dele (mu_pop3_t pop3, unsigned int mesgno); | 55 | extern int mu_pop3_dele (mu_pop3_t pop3, unsigned int mesgno); |
56 | 56 | ||
57 | extern int mu_pop3_list (mu_pop3_t pop3, unsigned int mesgno, size_t *mesg_octet); | 57 | extern int mu_pop3_list (mu_pop3_t pop3, unsigned int mesgno, size_t *mesg_octet); |
58 | 58 | ||
59 | /* A list is return with the multi-line answer. It is the responsability of | 59 | /* An iterator is return with the multi-line answer. It is the responsability of |
60 | the caller to call list_destroy() to dipose of the list. */ | 60 | the caller to call iterator_destroy() to dispose of the iterator. */ |
61 | extern int mu_pop3_list_all (mu_pop3_t pop3, list_t *plist); | 61 | extern int mu_pop3_list_all (mu_pop3_t pop3, iterator_t *piterator); |
62 | 62 | ||
63 | extern int mu_pop3_noop (mu_pop3_t pop3); | 63 | extern int mu_pop3_noop (mu_pop3_t pop3); |
64 | 64 | ||
@@ -81,9 +81,9 @@ extern int mu_pop3_top (mu_pop3_t pop3, unsigned int mesgno, unsigned | |||
81 | /* The uidl is malloc and return in puidl, it is the responsability of caller | 81 | /* The uidl is malloc and return in puidl, it is the responsability of caller |
82 | to free() the uild when done. */ | 82 | to free() the uild when done. */ |
83 | extern int mu_pop3_uidl (mu_pop3_t pop3, unsigned int mesgno, char **puidl); | 83 | extern int mu_pop3_uidl (mu_pop3_t pop3, unsigned int mesgno, char **puidl); |
84 | /* A list is return with the multi-line answer. It is the responsability of | 84 | /* An iterator is return with the multi-line answer. It is the responsability of |
85 | the caller to call list_destroy() to dipose of the list. */ | 85 | the caller to call iterator_destroy() to dispose of the iterator. */ |
86 | extern int mu_pop3_uidl_all (mu_pop3_t pop3, list_t *plist); | 86 | extern int mu_pop3_uidl_all (mu_pop3_t pop3, iterator_t *piterator); |
87 | 87 | ||
88 | extern int mu_pop3_user (mu_pop3_t pop3, const char *user); | 88 | extern int mu_pop3_user (mu_pop3_t pop3, const char *user); |
89 | 89 | ||
@@ -97,7 +97,7 @@ extern int mu_pop3_readline (mu_pop3_t pop3, char *buffer, size_t buflen, s | |||
97 | extern int mu_pop3_response (mu_pop3_t pop3, char *buffer, size_t buflen, size_t *nread); | 97 | extern int mu_pop3_response (mu_pop3_t pop3, char *buffer, size_t buflen, size_t *nread); |
98 | 98 | ||
99 | /* pop3_writeline copies the line in the internal buffer, a mu_pop3_send() is | 99 | /* pop3_writeline copies the line in the internal buffer, a mu_pop3_send() is |
100 | needed to do the actual transmission. */ | 100 | needed to do the actual transmission. */ |
101 | extern int mu_pop3_writeline (mu_pop3_t pop3, const char *format, ...); | 101 | extern int mu_pop3_writeline (mu_pop3_t pop3, const char *format, ...); |
102 | 102 | ||
103 | /* mu_pop3_sendline() is equivalent to: | 103 | /* mu_pop3_sendline() is equivalent to: |
diff --git a/include/mailutils/sys/Makefile.am b/include/mailutils/sys/Makefile.am index 2f5e30999..db89086e9 100644 --- a/include/mailutils/sys/Makefile.am +++ b/include/mailutils/sys/Makefile.am | |||
@@ -18,4 +18,5 @@ | |||
18 | ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | 19 | ||
20 | pkginclude_HEADERS = \ | 20 | pkginclude_HEADERS = \ |
21 | pop3.h | 21 | pop3.h \ |
22 | nntp.h | ||
diff --git a/include/mailutils/sys/nntp.h b/include/mailutils/sys/nntp.h index ba3da718f..0f98dd20b 100644 --- a/include/mailutils/sys/nntp.h +++ b/include/mailutils/sys/nntp.h | |||
@@ -150,6 +150,7 @@ struct _mu_nntp | |||
150 | 150 | ||
151 | extern int mu_nntp_debug_cmd (mu_nntp_t); | 151 | extern int mu_nntp_debug_cmd (mu_nntp_t); |
152 | extern int mu_nntp_debug_ack (mu_nntp_t); | 152 | extern int mu_nntp_debug_ack (mu_nntp_t); |
153 | extern int mu_nntp_iterator_create (mu_nntp_t, iterator_t *iterator); | ||
153 | extern int mu_nntp_stream_create (mu_nntp_t nntp, stream_t *pstream); | 154 | extern int mu_nntp_stream_create (mu_nntp_t nntp, stream_t *pstream); |
154 | extern int mu_nntp_carrier_is_ready (stream_t carrier, int flag, int timeout); | 155 | extern int mu_nntp_carrier_is_ready (stream_t carrier, int flag, int timeout); |
155 | extern int mu_nntp_parse_article (mu_nntp_t nntp, int code, unsigned long *pnum, char **mid); | 156 | extern int mu_nntp_parse_article (mu_nntp_t nntp, int code, unsigned long *pnum, char **mid); |
diff --git a/include/mailutils/sys/pop3.h b/include/mailutils/sys/pop3.h index 0ba218ce1..5785c7076 100644 --- a/include/mailutils/sys/pop3.h +++ b/include/mailutils/sys/pop3.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | modify it under the terms of the GNU Lesser General Public |
@@ -90,6 +90,7 @@ struct _mu_pop3 | |||
90 | 90 | ||
91 | extern int mu_pop3_debug_cmd (mu_pop3_t); | 91 | extern int mu_pop3_debug_cmd (mu_pop3_t); |
92 | extern int mu_pop3_debug_ack (mu_pop3_t); | 92 | extern int mu_pop3_debug_ack (mu_pop3_t); |
93 | extern int mu_pop3_iterator_create (mu_pop3_t pop3, iterator_t *piterator); | ||
93 | extern int mu_pop3_stream_create (mu_pop3_t pop3, stream_t *pstream); | 94 | extern int mu_pop3_stream_create (mu_pop3_t pop3, stream_t *pstream); |
94 | extern int mu_pop3_carrier_is_ready (stream_t carrier, int flag, int timeout); | 95 | extern int mu_pop3_carrier_is_ready (stream_t carrier, int flag, int timeout); |
95 | 96 | ||