X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fgstypes.h;h=905fc09b97023dd38731ae8a0824bc8b4b361e50;hb=refs%2Fheads%2Frelease%2F0.4.0;hp=6585b5945529a31bf9c30fd76a9f72156374995f;hpb=07495effe193ca3f73c3bf0ce417068f9ac9dcdd;p=com%2Fgs-lite.git diff --git a/include/gstypes.h b/include/gstypes.h index 6585b59..905fc09 100644 --- a/include/gstypes.h +++ b/include/gstypes.h @@ -1,63 +1,63 @@ -/* ------------------------------------------------ - Copyright 2014 AT&T Intellectual Property - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - ------------------------------------------- */ -#ifndef GSTYPES -#define GSTYPES - -#include "gsconfig.h" - -// Basic type definitions used within the whole GS - -typedef unsigned char gs_uint8_t; -typedef char gs_int8_t; -typedef unsigned short gs_uint16_t; -typedef short gs_int16_t; -typedef unsigned int gs_uint32_t; -typedef int gs_int32_t; -typedef unsigned long long gs_uint64_t; -typedef long long gs_int64_t; -typedef gs_uint32_t gs_bool_t; -typedef double gs_float_t; - -// Return value to check function call success -typedef gs_int32_t gs_retval_t ; - -// Native String Pointer - -typedef gs_int8_t * gs_sp_t; - -// Const string pointer -typedef const gs_int8_t * gs_csp_t; - -// Generic GS pointer - -#ifdef GS64 - -typedef gs_uint64_t gs_p_t; - -// Handle type for external handle functions -typedef gs_int64_t gs_param_handle_t ; -#else - -typedef gs_uint32_t gs_p_t; - -// Handle type for external handle functions -typedef gs_int32_t gs_param_handle_t ; -#endif - -// Handle for GS schema - -typedef gs_int32_t gs_schemahandle_t ; - -#endif +/* ------------------------------------------------ + Copyright 2014 AT&T Intellectual Property + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ------------------------------------------- */ +#ifndef GSTYPES +#define GSTYPES + +#include "gsconfig.h" + +// Basic type definitions used within the whole GS + +typedef unsigned char gs_uint8_t; +typedef char gs_int8_t; +typedef unsigned short gs_uint16_t; +typedef short gs_int16_t; +typedef unsigned int gs_uint32_t; +typedef int gs_int32_t; +typedef unsigned long long gs_uint64_t; +typedef long long gs_int64_t; +typedef gs_uint32_t gs_bool_t; +typedef double gs_float_t; + +// Return value to check function call success +typedef gs_int32_t gs_retval_t ; + +// Native String Pointer + +typedef gs_int8_t * gs_sp_t; + +// Const string pointer +typedef const gs_int8_t * gs_csp_t; + +// Generic GS pointer + +#ifdef GS64 + +typedef gs_uint64_t gs_p_t; + +// Handle type for external handle functions +typedef gs_int64_t gs_param_handle_t ; +#else + +typedef gs_uint32_t gs_p_t; + +// Handle type for external handle functions +typedef gs_int32_t gs_param_handle_t ; +#endif + +// Handle for GS schema + +typedef gs_int32_t gs_schemahandle_t ; + +#endif