Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / ep / ep_prflags.h @ master

History | View | Annotate | Download (1.8 KB)

1 a901db09 Eric Allman
/* vim: set ai sw=8 sts=8 ts=8 :*/
2
3 b041e64c Eric Allman
/***********************************************************************
4 055d3009 Eric Allman
**  ----- BEGIN LICENSE BLOCK -----
5
**        LIBEP: Enhanced Portability Library (Reduced Edition)
6
**
7 c87dd166 Eric Allman
**        Copyright (c) 2008-2019, Eric P. Allman.  All rights reserved.
8
**        Copyright (c) 2015-2019, Regents of the University of California.
9 6bd5476b Eric Allman
**        All rights reserved.
10 055d3009 Eric Allman
**
11 6bd5476b Eric Allman
**        Permission is hereby granted, without written agreement and without
12
**        license or royalty fees, to use, copy, modify, and distribute this
13
**        software and its documentation for any purpose, provided that the above
14
**        copyright notice and the following two paragraphs appear in all copies
15
**        of this software.
16 055d3009 Eric Allman
**
17 6bd5476b Eric Allman
**        IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
18
**        SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST
19
**        PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
20
**        EVEN IF REGENTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21 055d3009 Eric Allman
**
22 6bd5476b Eric Allman
**        REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
23 055d3009 Eric Allman
**        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 6bd5476b Eric Allman
**        FOR A PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION,
25
**        IF ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO
26
**        OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
27
**        OR MODIFICATIONS.
28 055d3009 Eric Allman
**  ----- END LICENSE BLOCK -----
29 b041e64c Eric Allman
***********************************************************************/
30
31
#ifndef _EP_PRFLAGS_H_
32
#define _EP_PRFLAGS_H_
33 e844af35 Eric Allman
#include <ep/ep.h>
34
__BEGIN_DECLS
35 b041e64c Eric Allman
36
typedef struct ep_prflags_desc
37
{
38
        uint32_t        bits;                // bits to compare against
39
        uint32_t        mask;                // mask against flagword
40
        const char        *name;                // printable name
41
} EP_PRFLAGS_DESC;
42
43
extern void        ep_prflags(
44
                        uint32_t                flagword,
45
                        const EP_PRFLAGS_DESC        *flagdesc,
46
                        FILE                        *outfile);
47
48 e844af35 Eric Allman
__END_DECLS
49 b041e64c Eric Allman
#endif // _EP_PRFLAGS_H_