(file) Return to types.c CVS log (file) (dir) Up to [OMI] / omi / base

 1 mike  1.1 /*
 2           **==============================================================================
 3           **
 4           ** Open Management Infrastructure (OMI)
 5           **
 6           ** Copyright (c) Microsoft Corporation
 7           ** 
 8           ** Licensed under the Apache License, Version 2.0 (the "License"); you may not 
 9           ** use this file except in compliance with the License. You may obtain a copy 
10           ** of the License at 
11           **
12           **     http://www.apache.org/licenses/LICENSE-2.0 
13           **
14           ** THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15           ** KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 
16           ** WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 
17           ** MERCHANTABLITY OR NON-INFRINGEMENT. 
18           **
19           ** See the Apache 2 License for the specific language governing permissions 
20           ** and limitations under the License.
21           **
22 mike  1.1 **==============================================================================
23           */
24           
25           #include "types.h"
26           
27           const char* __typeNames[32] =
28           {
29               "BOOLEAN",
30               "UINT8",
31               "SINT8",
32               "UINT16",
33               "SINT16",
34               "UINT32",
35               "SINT32",
36               "UINT64",
37               "SINT64",
38               "REAL32",
39               "REAL64",
40               "CHAR16",
41               "DATETIME",
42               "STRING",
43 mike  1.1     "REFERENCE",
44               "INSTANCE",
45               "BOOLEANA",
46               "UINT8A",
47               "SINT8A",
48               "UINT16A",
49               "SINT16A",
50               "UINT32A",
51               "SINT32A",
52               "UINT64A",
53               "SINT64A",
54               "REAL32A",
55               "REAL64A",
56               "CHAR16A",
57               "DATETIMEA",
58               "STRINGA",
59               "REFERENCEA",
60               "INSTANCEA",
61           };
62           
63           MI_Uint8 __typeSizes[32] =
64 mike  1.1 {
65               sizeof(MI_Boolean),
66               sizeof(MI_Uint8),
67               sizeof(MI_Sint8),
68               sizeof(MI_Uint16),
69               sizeof(MI_Sint16),
70               sizeof(MI_Uint32),
71               sizeof(MI_Sint32),
72               sizeof(MI_Uint64),
73               sizeof(MI_Sint64),
74               sizeof(MI_Real32),
75               sizeof(MI_Real64),
76               sizeof(MI_Char16),
77               sizeof(MI_Datetime),
78               sizeof(MI_String),
79               sizeof(MI_Instance*), /* reference */
80               sizeof(MI_Instance*), /* instance */
81               sizeof(MI_BooleanA),
82               sizeof(MI_Uint8A),
83               sizeof(MI_Sint8A),
84               sizeof(MI_Uint16A),
85 mike  1.1     sizeof(MI_Sint16A),
86               sizeof(MI_Uint32A),
87               sizeof(MI_Sint32A),
88               sizeof(MI_Uint64A),
89               sizeof(MI_Sint64A),
90               sizeof(MI_Real32A),
91               sizeof(MI_Real64A),
92               sizeof(MI_Char16A),
93               sizeof(MI_DatetimeA),
94               sizeof(MI_StringA),
95               sizeof(MI_InstanceA),
96               sizeof(MI_InstanceA),
97           };

ViewCVS 0.9.2