fix inlines issues with gperf by stripping them out
[apps/madmutt.git] / sort.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 MUTT_SORT_H
11 #define MUTT_SORT_H
12
13 #define SORT_DATE       1       /* the date the mail was sent. */
14 #define SORT_SIZE       2
15 #define SORT_SUBJECT    3
16 #define SORT_ALPHA      3       /* makedoc.c requires this */
17 #define SORT_FROM       4
18 #define SORT_ORDER      5       /* the order the messages appear in the mailbox. */
19 #define SORT_THREADS    6
20 #define SORT_RECEIVED   7       /* when the message were delivered locally */
21 #define SORT_TO         8
22 #define SORT_SCORE      9
23 #define SORT_ALIAS      10
24 #define SORT_ADDRESS    11
25 #define SORT_KEYID      12
26 #define SORT_TRUST      13
27 #define SORT_SPAM       14
28 /* dgc: Sort & SortAux are shorts, so I'm bumping these bitflags up from
29  * bits 4 & 5 to bits 8 & 9 to make room for more sort keys in the future. */
30 #define SORT_MASK       0xff
31 #define SORT_REVERSE    (1<<8)
32 #define SORT_LAST       (1<<9)
33
34 typedef int sort_t (const void *, const void *);
35 sort_t *mutt_get_sort_func (int);
36
37 void mutt_sort_headers (CONTEXT *, int);
38 int mutt_select_sort (int);
39
40 WHERE short BrowserSort INITVAL (SORT_SUBJECT);
41 WHERE short Sort INITVAL (SORT_DATE);
42 WHERE short SortAux INITVAL (SORT_DATE);        /* auxiallary sorting method */
43 WHERE short SortAlias INITVAL (SORT_ALIAS);
44
45 /* FIXME: This one does not belong to here */
46 WHERE short PgpSortKeys INITVAL (SORT_ADDRESS);
47
48 extern const struct mapping_t SortMethods[];
49
50 #endif