X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..15c23e502a2dcbc20bd179107bb384c99d30dc9d:/protos.h diff --git a/protos.h b/protos.h index 7109995..140dfc3 100644 --- a/protos.h +++ b/protos.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1996-2000 Michael R. Elkins + * Copyright (C) 1996-2000,2007 Michael R. Elkins * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -75,11 +75,6 @@ typedef const char * format_t (char *, size_t, size_t, char, const char *, const void mutt_FormatString (char *, size_t, size_t, const char *, format_t *, unsigned long, format_flag); void mutt_parse_content_type (char *, BODY *); void mutt_generate_boundary (PARAMETER **); -void mutt_group_add_adrlist (group_t *, ADDRESS *); -void mutt_group_context_add (group_context_t **ctx, group_t *group); -void mutt_group_context_destroy (group_context_t **ctx); -void mutt_group_add_adrlist (group_t *g, ADDRESS *a); -void mutt_group_context_add_adrlist (group_context_t *ctx, ADDRESS *a); void mutt_delete_parameter (const char *attribute, PARAMETER **p); void mutt_set_parameter (const char *, const char *, PARAMETER **); @@ -90,7 +85,7 @@ void set_quadoption (int, int); int query_quadoption (int, const char *); int quadoption (int); -char* mutt_extract_message_id (const char *); +char* mutt_extract_message_id (const char *, const char **); ADDRESS *mutt_default_from (void); ADDRESS *mutt_get_address (ENVELOPE *, char **); @@ -190,6 +185,7 @@ void mutt_edit_headers (const char *, const char *, HEADER *, char *, size_t); int mutt_filter_unprintable (char **); void mutt_curses_error (const char *, ...); void mutt_curses_message (const char *, ...); +void mutt_encode_path (char *, size_t, const char *); void mutt_enter_command (void); void mutt_expand_aliases_env (ENVELOPE *); void mutt_expand_file_fmt (char *, size_t, const char *, const char *); @@ -221,8 +217,8 @@ void mutt_make_misc_reply_headers (ENVELOPE *env, CONTEXT *ctx, HEADER *cur, ENV void mutt_make_post_indent (CONTEXT *ctx, HEADER *cur, FILE *out); void mutt_merge_envelopes(ENVELOPE* base, ENVELOPE** extra); void mutt_message_to_7bit (BODY *, FILE *); -#define mutt_mktemp(a) _mutt_mktemp (a, __FILE__, __LINE__) -void _mutt_mktemp (char *, const char *, int); +#define mutt_mktemp(a,b) _mutt_mktemp (a, b, __FILE__, __LINE__) +void _mutt_mktemp (char *, size_t, const char *, int); void mutt_normalize_time (struct tm *); void mutt_paddstr (int, const char *); void mutt_parse_mime_message (CONTEXT *ctx, HEADER *); @@ -230,7 +226,7 @@ void mutt_parse_part (FILE *, BODY *); void mutt_perror (const char *); void mutt_prepare_envelope (ENVELOPE *, int); void mutt_unprepare_envelope (ENVELOPE *); -void mutt_pretty_mailbox (char *); +void mutt_pretty_mailbox (char *, size_t); void mutt_pretty_size (char *, size_t, LOFF_T); void mutt_pipe_message (HEADER *); void mutt_print_message (HEADER *); @@ -265,6 +261,8 @@ int mutt_add_to_rx_list (RX_LIST **list, const char *s, int flags, BUFFER *err); int mutt_addr_is_user (ADDRESS *); int mutt_addwch (wchar_t); int mutt_alias_complete (char *, size_t); +void mutt_alias_add_reverse (ALIAS *t); +void mutt_alias_delete_reverse (ALIAS *t); int mutt_alloc_color (int fg, int bg); int mutt_any_key_to_continue (const char *); int mutt_buffy_check (int); @@ -308,8 +306,6 @@ int mutt_get_field_unbuffered (char *, char *, size_t, int); #define mutt_get_password(A,B,C) mutt_get_field_unbuffered(A,B,C,M_PASS) int mutt_get_postponed (CONTEXT *, HEADER *, HEADER **, char *, size_t); int mutt_get_tmp_attachment (BODY *); -int mutt_group_match (group_t *g, const char *s); -int mutt_group_context_add_rx (group_context_t *ctx, const char *s, int flags, BUFFER *err); int mutt_index_menu (void); int mutt_invoke_sendmail (ADDRESS *, ADDRESS *, ADDRESS *, ADDRESS *, const char *, int); int mutt_is_autoview (BODY *, const char *); @@ -369,8 +365,9 @@ int mutt_which_case (const char *); int mutt_write_fcc (const char *path, HEADER *hdr, const char *msgid, int, char *); int mutt_write_mime_body (BODY *, FILE *); int mutt_write_mime_header (BODY *, FILE *); -int mutt_write_one_header (FILE *fp, const char *tag, const char *value, const char *pfx, int wraplen); +int mutt_write_one_header (FILE *fp, const char *tag, const char *value, const char *pfx, int wraplen, int flags); int mutt_write_rfc822_header (FILE *, ENVELOPE *, BODY *, int, int); +void mutt_write_references (LIST *, FILE *, int); int mutt_yesorno (const char *, int); void mutt_set_header_color(CONTEXT *, HEADER *); void mutt_sleep (short); @@ -413,6 +410,15 @@ void mutt_pattern_free (pattern_t **pat); * Prototypes for broken systems */ +#ifdef HAVE_LONG_LONG_INT +#ifdef LONGLONG +#error LONGLONG is already defined +#endif +#define LONGLONG long long +#else +#define LONGLONG long +#endif + #ifdef HAVE_SRAND48 #define LRAND lrand48 #define SRAND srand48 @@ -523,4 +529,37 @@ int ioctl (int, int, ...); void ci_bounce_message (HEADER *, int *); int ci_send_message (int, HEADER *, char *, CONTEXT *, HEADER *); +/* prototypes for compatibility functions */ + +#ifndef HAVE_SETENV +int setenv (const char *, const char *, int); +#endif + +#ifndef HAVE_STRCASECMP +int strcasecmp (char *, char *); +int strncasecmp (char *, char *, size_t); +#endif + +#ifndef HAVE_STRDUP +char *strdup (const char *); +#endif +#ifndef HAVE_STRSEP +char *strsep (char **, const char *); +#endif + +#ifndef HAVE_STRTOK_R +char *strtok_r (char *, const char *, char **); +#endif + +#ifndef HAVE_WCSCASECMP +int wcscasecmp (const wchar_t *a, const wchar_t *b); +#endif + +#ifndef HAVE_STRCASESTR +char *strcasestr (const char *, const char *); +#endif + +#ifndef HAVE_MKDTEMP +char *mkdtemp (char *tmpl); +#endif