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_VALUE_TYPE_H_GUARD 36 #define STR2ENUM_OPTION_VALUE_TYPE_H_GUARD 1 37 #include <sys/types.h> 38 #ifndef MISSING_INTTYPES_H 39 # include <inttypes.h> 40 #endif 41 42 typedef enum { 43 VTP_INVALID_CMD = 0, 44 VTP_CMD_STRING = 1, 45 VTP_CMD_INTEGER = 2, 46 VTP_CMD_BOOL = 3, 47 VTP_CMD_BOOLEAN = 4, 48 VTP_CMD_KEYWORD = 5, 49 VTP_CMD_SET = 6, 50 VTP_CMD_SET_MEMBERSHIP = 7, 51 VTP_CMD_NESTED = 8, 52 VTP_CMD_HIERARCHY = 9, 53 VTP_COUNT_CMD 54 } option_value_type_enum_t; 55 56 extern option_value_type_enum_t 57 find_option_value_type_cmd(char const * str, size_t len); 58 59 #endif /* STR2ENUM_OPTION_VALUE_TYPE_H_GUARD */ 60 /* end of option-value-type.h */ 61