1275970Scy/* -*- buffer-read-only: t -*- vi: set ro: 2275970Scy * 3275970Scy * DO NOT EDIT THIS FILE (stdin.h) 4275970Scy * 5285612Sdelphij * It has been AutoGen-ed 6275970Scy * From the definitions stdin 7275970Scy * and the template file str2enum 8275970Scy * 9275970Scy * Redistribution and use in source and binary forms, with or without 10275970Scy * modification, are permitted provided that the following conditions 11275970Scy * are met: 12275970Scy * 1. Redistributions of source code must retain the above copyright 13275970Scy * notice, this list of conditions and the following disclaimer. 14275970Scy * 2. Redistributions in binary form must reproduce the above copyright 15275970Scy * notice, this list of conditions and the following disclaimer in the 16275970Scy * documentation and/or other materials provided with the distribution. 17275970Scy * 3. Neither the name ``Bruce Korb'' nor the name of any other 18275970Scy * contributor may be used to endorse or promote products derived 19275970Scy * from this software without specific prior written permission. 20275970Scy * 21275970Scy * str2enum IS PROVIDED BY Bruce Korb ``AS IS'' AND ANY EXPRESS 22275970Scy * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 23275970Scy * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24275970Scy * ARE DISCLAIMED. IN NO EVENT SHALL Bruce Korb OR ANY OTHER CONTRIBUTORS 25275970Scy * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26275970Scy * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27275970Scy * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 28275970Scy * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29275970Scy * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 30275970Scy * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 31275970Scy * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32275970Scy * 33275970Scy * Command/Keyword Dispatcher 34275970Scy */ 35275970Scy#ifndef STR2ENUM_OPTION_VALUE_TYPE_H_GUARD 36275970Scy#define STR2ENUM_OPTION_VALUE_TYPE_H_GUARD 1 37275970Scy#include <sys/types.h> 38275970Scy#ifndef MISSING_INTTYPES_H 39275970Scy# include <inttypes.h> 40275970Scy#endif 41275970Scy 42275970Scytypedef enum { 43275970Scy VTP_INVALID_CMD = 0, 44275970Scy VTP_CMD_STRING = 1, 45275970Scy VTP_CMD_INTEGER = 2, 46275970Scy VTP_CMD_BOOL = 3, 47275970Scy VTP_CMD_BOOLEAN = 4, 48275970Scy VTP_CMD_KEYWORD = 5, 49275970Scy VTP_CMD_SET = 6, 50275970Scy VTP_CMD_SET_MEMBERSHIP = 7, 51275970Scy VTP_CMD_NESTED = 8, 52275970Scy VTP_CMD_HIERARCHY = 9, 53275970Scy VTP_COUNT_CMD 54275970Scy} option_value_type_enum_t; 55275970Scy 56275970Scyextern option_value_type_enum_t 57275970Scyfind_option_value_type_cmd(char const * str, size_t len); 58275970Scy 59275970Scy#endif /* STR2ENUM_OPTION_VALUE_TYPE_H_GUARD */ 60275970Scy/* end of option-value-type.h */ 61