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