masqmail-0.2
diff src/pop3_in.h @ 10:26e34ae9a3e3
changed indention and line wrapping to a more consistent style
author | meillo@marmaro.de |
---|---|
date | Mon, 27 Oct 2008 16:23:10 +0100 |
parents | 08114f7dcc23 |
children |
line diff
1.1 --- a/src/pop3_in.h Mon Oct 27 16:21:27 2008 +0100 1.2 +++ b/src/pop3_in.h Mon Oct 27 16:23:10 2008 +0100 1.3 @@ -4,7 +4,7 @@ 1.4 * it under the terms of the GNU General Public License as published by 1.5 * the Free Software Foundation; either version 2 of the License, or 1.6 * (at your option) any later version. 1.7 - * 1.8 + * 1.9 * This program is distributed in the hope that it will be useful, 1.10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 1.11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1.12 @@ -31,56 +31,52 @@ 1.13 1.14 #define POP3_MAX_CHILDREN 2 1.15 1.16 -typedef 1.17 -enum _pop3_error{ 1.18 - pop3_ok = 0, 1.19 - pop3_fail, 1.20 - pop3_eof, 1.21 - pop3_timeout, 1.22 - pop3_login_failure, 1.23 - pop3_syntax 1.24 +typedef enum _pop3_error { 1.25 + pop3_ok = 0, 1.26 + pop3_fail, 1.27 + pop3_eof, 1.28 + pop3_timeout, 1.29 + pop3_login_failure, 1.30 + pop3_syntax 1.31 } pop3_error; 1.32 1.33 -typedef struct pop3_base{ 1.34 - FILE *in; 1.35 - FILE *out; 1.36 - gint sock; 1.37 - gint dup_sock; 1.38 +typedef struct pop3_base { 1.39 + FILE *in; 1.40 + FILE *out; 1.41 + gint sock; 1.42 + gint dup_sock; 1.43 1.44 - gchar *remote_host; 1.45 - gchar *buffer; 1.46 + gchar *remote_host; 1.47 + gchar *buffer; 1.48 1.49 - gint next_id; 1.50 - gint msg_cnt; 1.51 - gint uidl_known_cnt; 1.52 - gint mbox_size; 1.53 + gint next_id; 1.54 + gint msg_cnt; 1.55 + gint uidl_known_cnt; 1.56 + gint mbox_size; 1.57 1.58 - GList *list_uid_old; 1.59 - GList *drop_list; 1.60 + GList *list_uid_old; 1.61 + GList *drop_list; 1.62 1.63 - gchar* timestamp; 1.64 + gchar *timestamp; 1.65 1.66 - guint flags; 1.67 + guint flags; 1.68 1.69 - pop3_error error; 1.70 + pop3_error error; 1.71 } pop3_base; 1.72 1.73 -typedef struct _msg_info{ 1.74 - gint number; 1.75 - gint size; 1.76 - gchar *uid; 1.77 - gboolean is_fetched; 1.78 - gboolean is_in_uidl; 1.79 +typedef struct _msg_info { 1.80 + gint number; 1.81 + gint size; 1.82 + gchar *uid; 1.83 + gboolean is_fetched; 1.84 + gboolean is_in_uidl; 1.85 } msg_info; 1.86 1.87 -pop3_base *pop3_in_open(gchar *host, gint port, GList *resolve_list, guint flags); 1.88 -pop3_base *pop3_in_open_child(gchar *cmd, guint flags); 1.89 -void pop3_in_close(pop3_base *popb); 1.90 -gboolean pop3_get(pop3_base *popb, 1.91 - gchar *user, gchar *pass, address *rcpt, address *return_path, 1.92 - gint max_count, gint max_size, gboolean max_size_delete); 1.93 -gboolean pop3_login(gchar *host, gint port, GList *resolve_list, 1.94 - gchar *user, gchar *pass, guint flags); 1.95 +pop3_base *pop3_in_open(gchar * host, gint port, GList * resolve_list, guint flags); 1.96 +pop3_base *pop3_in_open_child(gchar * cmd, guint flags); 1.97 +void pop3_in_close(pop3_base * popb); 1.98 +gboolean pop3_get(pop3_base * popb, gchar * user, gchar * pass, address * rcpt, address * return_path, gint max_count, gint max_size, gboolean max_size_delete); 1.99 +gboolean pop3_login(gchar * host, gint port, GList * resolve_list, gchar * user, gchar * pass, guint flags); 1.100 1.101 1.102