Add new udafs and RMR support to gsprintconsole_ves
[com/gs-lite.git] / include / gstypes.h
1 /* ------------------------------------------------
2  Copyright 2014 AT&T Intellectual Property
3  Licensed under the Apache License, Version 2.0 (the "License");
4  you may not use this file except in compliance with the License.
5  You may obtain a copy of the License at
6  
7  http://www.apache.org/licenses/LICENSE-2.0
8  
9  Unless required by applicable law or agreed to in writing, software
10  distributed under the License is distributed on an "AS IS" BASIS,
11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  See the License for the specific language governing permissions and
13  limitations under the License.
14  ------------------------------------------- */
15 #ifndef GSTYPES
16 #define GSTYPES
17
18 #include "gsconfig.h"
19
20 // Basic type definitions used within the whole GS
21
22 typedef unsigned char gs_uint8_t;
23 typedef char gs_int8_t;
24 typedef unsigned short gs_uint16_t;
25 typedef short gs_int16_t;
26 typedef unsigned int gs_uint32_t;
27 typedef int gs_int32_t;
28 typedef unsigned long long gs_uint64_t;
29 typedef long long gs_int64_t;
30 typedef gs_uint32_t gs_bool_t;
31 typedef double gs_float_t;
32
33 // Return value to check function call success
34 typedef gs_int32_t gs_retval_t ;
35
36 // Native String Pointer
37
38 typedef gs_int8_t * gs_sp_t;
39
40 // Const string pointer
41 typedef const gs_int8_t * gs_csp_t;
42
43 // Generic GS pointer
44
45 #ifdef GS64
46
47 typedef  gs_uint64_t gs_p_t;
48
49 // Handle type for external handle functions
50 typedef gs_int64_t gs_param_handle_t ;
51 #else
52
53 typedef  gs_uint32_t gs_p_t;
54
55 // Handle type for external handle functions
56 typedef gs_int32_t gs_param_handle_t ;
57 #endif
58
59 // Handle for GS schema
60
61 typedef gs_int32_t gs_schemahandle_t ;
62
63 #endif