option-xat-attribute.h revision 285169
1275970Scy/* -*- buffer-read-only: t -*- vi: set ro: 2275970Scy * 3275970Scy * DO NOT EDIT THIS FILE (stdin.h) 4275970Scy * 5285169Scy * 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_XAT_ATTRIBUTE_H_GUARD 36275970Scy#define STR2ENUM_OPTION_XAT_ATTRIBUTE_H_GUARD 1 37275970Scy#include <sys/types.h> 38275970Scy#ifndef MISSING_INTTYPES_H 39275970Scy# include <inttypes.h> 40275970Scy#endif 41275970Scy 42275970Scytypedef enum { 43275970Scy XAT_INVALID_CMD = 0, 44275970Scy XAT_CMD_TYPE = 1, 45275970Scy XAT_CMD_WORDS = 2, 46275970Scy XAT_CMD_MEMBERS = 3, 47275970Scy XAT_CMD_COOKED = 4, 48275970Scy XAT_CMD_UNCOOKED = 5, 49275970Scy XAT_CMD_KEEP = 6, 50275970Scy XAT_COUNT_CMD 51275970Scy} option_xat_attribute_enum_t; 52275970Scy 53275970Scyextern option_xat_attribute_enum_t 54275970Scyfind_option_xat_attribute_cmd(char const * str, size_t len); 55275970Scy 56275970Scy#endif /* STR2ENUM_OPTION_XAT_ATTRIBUTE_H_GUARD */ 57275970Scy/* end of option-xat-attribute.h */ 58