use a proper "hack" for iconv functions:
[apps/madmutt.git] / rfc1524.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9
10 #ifndef _RFC1524_H
11 #define _RFC1524_H
12
13 typedef struct rfc1524_mailcap_entry {
14   /*  char *contenttype; *//* we don't need this, as we search for it */
15   char *command;
16   char *testcommand;
17   char *composecommand;
18   char *composetypecommand;
19   char *editcommand;
20   char *printcommand;
21   char *nametemplate;
22   char *convert;
23   /*  char *description; *//* we don't need this */
24   unsigned int needsterminal:1; /* endwin() and system */
25   unsigned int copiousoutput:1; /* needs pager, basically */
26 } rfc1524_entry;
27
28 rfc1524_entry *rfc1524_new_entry (void);
29 void rfc1524_free_entry (rfc1524_entry **);
30 int rfc1524_expand_command (BODY *, char *, char *, char *, int);
31 int rfc1524_expand_filename (char *, char *, char *, size_t);
32 int rfc1524_mailcap_lookup (BODY *, char *, rfc1524_entry *, int);
33 int mutt_rename_file (char *, char *);
34 int _mutt_rename_file (char *, char *, int);
35
36 #endif /* _RFC1524_H */