From f6826ddc1443e1e1306bd95cbf1f5d32353ed4fe Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Mon, 31 Jan 2000 14:59:46 +0000 Subject: [PATCH] typedefs broken out of omapi.h --- lib/omapi/include/omapi/types.h | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 lib/omapi/include/omapi/types.h diff --git a/lib/omapi/include/omapi/types.h b/lib/omapi/include/omapi/types.h new file mode 100644 index 0000000000..cd39bfc836 --- /dev/null +++ b/lib/omapi/include/omapi/types.h @@ -0,0 +1,50 @@ +/* + * Copyright (C) 1996, 1997, 1998, 1999 Internet Software Consortium. + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS + * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE + * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL + * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * SOFTWARE. + */ + +#ifndef _OMAPI_TYPES_H_ +#define _OMAPI_TYPES_H_ + +#include + +ISC_LANG_BEGINDECLS + +/***** + ***** Type definitions. + *****/ + +/* + * These structures are all opaque; they are fully defined in private.h + * for use only by the internal library. If there is a need to get + * at their internal data for some purpose, new APIs can be added for that. + */ +typedef unsigned int omapi_handle_t; +typedef struct omapi_object omapi_object_t; +typedef struct omapi_objecttype omapi_objecttype_t; +typedef struct omapi_data omapi_data_t; +typedef struct omapi_string omapi_string_t; +typedef struct omapi_value omapi_value_t; + +typedef enum { + omapi_datatype_int, + omapi_datatype_string, + omapi_datatype_data, + omapi_datatype_object +} omapi_datatype_t; + +ISC_LANG_ENDDECLS + +#endif /* _OMAPI_OMAPIP_H_ */