diff options
Diffstat (limited to 'pith/pineelt.h')
-rw-r--r-- | pith/pineelt.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/pith/pineelt.h b/pith/pineelt.h new file mode 100644 index 00000000..e44ae37a --- /dev/null +++ b/pith/pineelt.h @@ -0,0 +1,60 @@ +/* + * $Id: pineelt.h 1142 2008-08-13 17:22:21Z hubert@u.washington.edu $ + * + * ======================================================================== + * 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; + /* 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 */ |