|
Packit |
549fdc |
/* -*- buffer-read-only: t -*- vi: set ro:
|
|
Packit |
549fdc |
*
|
|
Packit |
549fdc |
* DO NOT EDIT THIS FILE (stdin.h)
|
|
Packit |
549fdc |
*
|
|
Packit |
549fdc |
* It has been AutoGen-ed
|
|
Packit |
549fdc |
* From the definitions stdin
|
|
Packit |
549fdc |
* and the template file str2enum
|
|
Packit |
549fdc |
*
|
|
Packit |
549fdc |
* Redistribution and use in source and binary forms, with or without
|
|
Packit |
549fdc |
* modification, are permitted provided that the following conditions
|
|
Packit |
549fdc |
* are met:
|
|
Packit |
549fdc |
* 1. Redistributions of source code must retain the above copyright
|
|
Packit |
549fdc |
* notice, this list of conditions and the following disclaimer.
|
|
Packit |
549fdc |
* 2. Redistributions in binary form must reproduce the above copyright
|
|
Packit |
549fdc |
* notice, this list of conditions and the following disclaimer in the
|
|
Packit |
549fdc |
* documentation and/or other materials provided with the distribution.
|
|
Packit |
549fdc |
* 3. Neither the name ``Bruce Korb'' nor the name of any other
|
|
Packit |
549fdc |
* contributor may be used to endorse or promote products derived
|
|
Packit |
549fdc |
* from this software without specific prior written permission.
|
|
Packit |
549fdc |
*
|
|
Packit |
549fdc |
* str2enum IS PROVIDED BY Bruce Korb ``AS IS'' AND ANY EXPRESS
|
|
Packit |
549fdc |
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
Packit |
549fdc |
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
Packit |
549fdc |
* ARE DISCLAIMED. IN NO EVENT SHALL Bruce Korb OR ANY OTHER CONTRIBUTORS
|
|
Packit |
549fdc |
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
Packit |
549fdc |
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
Packit |
549fdc |
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
Packit |
549fdc |
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
Packit |
549fdc |
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
Packit |
549fdc |
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
Packit |
549fdc |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
Packit |
549fdc |
*
|
|
Packit |
549fdc |
* Command/Keyword Dispatcher
|
|
Packit |
549fdc |
*/
|
|
Packit |
549fdc |
#ifndef STR2ENUM_OPTION_VALUE_TYPE_H_GUARD
|
|
Packit |
549fdc |
#define STR2ENUM_OPTION_VALUE_TYPE_H_GUARD 1
|
|
Packit |
549fdc |
#include <sys/types.h>
|
|
Packit |
549fdc |
#ifndef MISSING_INTTYPES_H
|
|
Packit |
549fdc |
# include <inttypes.h>
|
|
Packit |
549fdc |
#endif
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
typedef enum {
|
|
Packit |
549fdc |
VTP_INVALID_CMD = 0,
|
|
Packit |
549fdc |
VTP_CMD_STRING = 1,
|
|
Packit |
549fdc |
VTP_CMD_INTEGER = 2,
|
|
Packit |
549fdc |
VTP_CMD_BOOL = 3,
|
|
Packit |
549fdc |
VTP_CMD_BOOLEAN = 4,
|
|
Packit |
549fdc |
VTP_CMD_KEYWORD = 5,
|
|
Packit |
549fdc |
VTP_CMD_SET = 6,
|
|
Packit |
549fdc |
VTP_CMD_SET_MEMBERSHIP = 7,
|
|
Packit |
549fdc |
VTP_CMD_NESTED = 8,
|
|
Packit |
549fdc |
VTP_CMD_HIERARCHY = 9,
|
|
Packit |
549fdc |
VTP_COUNT_CMD
|
|
Packit |
549fdc |
} option_value_type_enum_t;
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
extern option_value_type_enum_t
|
|
Packit |
549fdc |
find_option_value_type_cmd(char const * str, size_t len);
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
#endif /* STR2ENUM_OPTION_VALUE_TYPE_H_GUARD */
|
|
Packit |
549fdc |
/* end of option-value-type.h */
|