xref: /freebsd/contrib/ntp/sntp/libopts/option-xat-attribute.h (revision d4eeb02986980bf33dd56c41ceb9fc5f180c0d47)
1 /*   -*- buffer-read-only: t -*- vi: set ro:
2  *
3  *  DO NOT EDIT THIS FILE   (stdin.h)
4  *
5  *  It has been AutoGen-ed
6  *  From the definitions    stdin
7  *  and the template file   str2enum
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions
11  * are met:
12  * 1. Redistributions of source code must retain the above copyright
13  *    notice, this list of conditions and the following disclaimer.
14  * 2. Redistributions in binary form must reproduce the above copyright
15  *    notice, this list of conditions and the following disclaimer in the
16  *    documentation and/or other materials provided with the distribution.
17  * 3. Neither the name ``Bruce Korb'' nor the name of any other
18  *    contributor may be used to endorse or promote products derived
19  *    from this software without specific prior written permission.
20  *
21  * str2enum IS PROVIDED BY Bruce Korb ``AS IS'' AND ANY EXPRESS
22  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED.  IN NO EVENT SHALL Bruce Korb OR ANY OTHER CONTRIBUTORS
25  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
28  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  *
33  * Command/Keyword Dispatcher
34  */
35 #ifndef STR2ENUM_OPTION_XAT_ATTRIBUTE_H_GUARD
36 #define STR2ENUM_OPTION_XAT_ATTRIBUTE_H_GUARD 1
37 #include <sys/types.h>
38 #ifndef MISSING_INTTYPES_H
39 # include <inttypes.h>
40 #endif
41 
42 typedef enum {
43     XAT_INVALID_CMD = 0,
44     XAT_CMD_TYPE     = 1,
45     XAT_CMD_WORDS    = 2,
46     XAT_CMD_MEMBERS  = 3,
47     XAT_CMD_COOKED   = 4,
48     XAT_CMD_UNCOOKED = 5,
49     XAT_CMD_KEEP     = 6,
50     XAT_COUNT_CMD
51 } option_xat_attribute_enum_t;
52 
53 extern option_xat_attribute_enum_t
54 find_option_xat_attribute_cmd(char const * str, size_t len);
55 
56 #endif /* STR2ENUM_OPTION_XAT_ATTRIBUTE_H_GUARD */
57 /* end of option-xat-attribute.h */
58