summaryrefslogtreecommitdiff
path: root/pith/pineelt.h
blob: 54ab38114dc6edb80d9b3389a85d473d337e1a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * $Id: pineelt.h 1142 2008-08-13 17:22:21Z hubert@u.washington.edu $
 *
 * ========================================================================
 * Copyright 2013-2018 Eduardo Chappa
 * Copyright 2006 University of Washington
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * ========================================================================
 */

#ifndef PITH_PINEELT_INCLUDED
#define PITH_PINEELT_INCLUDED


#include "../pith/thread.h"
#include "../pith/indxtype.h"


/*
 * The two structs below hold all knowledge regarding
 * messages requiring special handling
 */
typedef	struct part_exception_s {
    char		     *partno;
    int			      handling;
    struct part_exception_s  *next;
} PARTEX_S;


/*
 * Pine's private per-message data stored on the c-client's elt
 * spare pointer.
 */
typedef struct pine_elt {
	PINETHRD_S  *pthrd;
	PARTEX_S    *exceptions;
	ICE_S       *ice;
	char	    *firsttext;
	/* per-message pine state bits */
	unsigned int hidden:1;
	unsigned int excluded:1;
	unsigned int selected:1;
	unsigned int searched:1;
	unsigned int unsorted:1;
	unsigned int collapsed:1;
	unsigned int colhid:1;
	unsigned int colhid2:1;
	unsigned int tmp:1;
} PINELT_S;


/* exported protoypes */
void	    msgno_free_exceptions(PARTEX_S **);


#endif /* PITH_PINEELT_INCLUDED */