1 krisbash 1.1 /* @migen@ */
2 /*
3 **==============================================================================
4 **
5 ** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT.
6 **
7 **==============================================================================
8 */
9 #ifndef _CIM_InstDeletion_h
10 #define _CIM_InstDeletion_h
11
12 #include <MI.h>
13 #include "CIM_InstIndication.h"
14
15 /*
16 **==============================================================================
17 **
18 ** CIM_InstDeletion [CIM_InstDeletion]
19 **
20 ** Keys:
21 **
22 krisbash 1.1 **==============================================================================
23 */
24
25 typedef struct _CIM_InstDeletion /* extends CIM_InstIndication */
26 {
27 MI_Instance __instance;
28 /* CIM_Indication properties */
29 MI_ConstStringField IndicationIdentifier;
30 MI_ConstStringAField CorrelatedIndications;
31 MI_ConstDatetimeField IndicationTime;
32 MI_ConstUint16Field PerceivedSeverity;
33 MI_ConstStringField OtherSeverity;
34 MI_ConstStringField IndicationFilterName;
35 MI_ConstStringField SequenceContext;
36 MI_ConstSint64Field SequenceNumber;
37 /* CIM_InstIndication properties */
38 MI_ConstReferenceField SourceInstance;
39 MI_ConstStringField SourceInstanceModelPath;
40 MI_ConstStringField SourceInstanceHost;
41 /* CIM_InstDeletion properties */
42 }
43 krisbash 1.1 CIM_InstDeletion;
44
45 typedef struct _CIM_InstDeletion_Ref
46 {
47 CIM_InstDeletion* value;
48 MI_Boolean exists;
49 MI_Uint8 flags;
50 }
51 CIM_InstDeletion_Ref;
52
53 typedef struct _CIM_InstDeletion_ConstRef
54 {
55 MI_CONST CIM_InstDeletion* value;
56 MI_Boolean exists;
57 MI_Uint8 flags;
58 }
59 CIM_InstDeletion_ConstRef;
60
61 typedef struct _CIM_InstDeletion_Array
62 {
63 struct _CIM_InstDeletion** data;
64 krisbash 1.1 MI_Uint32 size;
65 }
66 CIM_InstDeletion_Array;
67
68 typedef struct _CIM_InstDeletion_ConstArray
69 {
70 struct _CIM_InstDeletion MI_CONST* MI_CONST* data;
71 MI_Uint32 size;
72 }
73 CIM_InstDeletion_ConstArray;
74
75 typedef struct _CIM_InstDeletion_ArrayRef
76 {
77 CIM_InstDeletion_Array value;
78 MI_Boolean exists;
79 MI_Uint8 flags;
80 }
81 CIM_InstDeletion_ArrayRef;
82
83 typedef struct _CIM_InstDeletion_ConstArrayRef
84 {
85 krisbash 1.1 CIM_InstDeletion_ConstArray value;
86 MI_Boolean exists;
87 MI_Uint8 flags;
88 }
89 CIM_InstDeletion_ConstArrayRef;
90
91 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_IndicationIdentifier(
92 CIM_InstDeletion* self,
93 const MI_Char* str)
94 {
95 return self->__instance.ft->SetElementAt(
96 (MI_Instance*)&self->__instance,
97 0,
98 (MI_Value*)&str,
99 MI_STRING,
100 0);
101 }
102
103 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_SetPtr_IndicationIdentifier(
104 CIM_InstDeletion* self,
105 const MI_Char* str)
106 krisbash 1.1 {
107 return self->__instance.ft->SetElementAt(
108 (MI_Instance*)&self->__instance,
109 0,
110 (MI_Value*)&str,
111 MI_STRING,
112 MI_FLAG_BORROW);
113 }
114
115 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_IndicationIdentifier(
116 CIM_InstDeletion* self)
117 {
118 return self->__instance.ft->ClearElementAt(
119 (MI_Instance*)&self->__instance,
120 0);
121 }
122
123 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_CorrelatedIndications(
124 CIM_InstDeletion* self,
125 const MI_Char** data,
126 MI_Uint32 size)
127 krisbash 1.1 {
128 MI_Array arr;
129 arr.data = (void*)data;
130 arr.size = size;
131 return self->__instance.ft->SetElementAt(
132 (MI_Instance*)&self->__instance,
133 1,
134 (MI_Value*)&arr,
135 MI_STRINGA,
136 0);
137 }
138
139 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_SetPtr_CorrelatedIndications(
140 CIM_InstDeletion* self,
141 const MI_Char** data,
142 MI_Uint32 size)
143 {
144 MI_Array arr;
145 arr.data = (void*)data;
146 arr.size = size;
147 return self->__instance.ft->SetElementAt(
148 krisbash 1.1 (MI_Instance*)&self->__instance,
149 1,
150 (MI_Value*)&arr,
151 MI_STRINGA,
152 MI_FLAG_BORROW);
153 }
154
155 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_CorrelatedIndications(
156 CIM_InstDeletion* self)
157 {
158 return self->__instance.ft->ClearElementAt(
159 (MI_Instance*)&self->__instance,
160 1);
161 }
162
163 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_IndicationTime(
164 CIM_InstDeletion* self,
165 MI_Datetime x)
166 {
167 ((MI_DatetimeField*)&self->IndicationTime)->value = x;
168 ((MI_DatetimeField*)&self->IndicationTime)->exists = 1;
169 krisbash 1.1 return MI_RESULT_OK;
170 }
171
172 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_IndicationTime(
173 CIM_InstDeletion* self)
174 {
175 memset((void*)&self->IndicationTime, 0, sizeof(self->IndicationTime));
176 return MI_RESULT_OK;
177 }
178
179 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_PerceivedSeverity(
180 CIM_InstDeletion* self,
181 MI_Uint16 x)
182 {
183 ((MI_Uint16Field*)&self->PerceivedSeverity)->value = x;
184 ((MI_Uint16Field*)&self->PerceivedSeverity)->exists = 1;
185 return MI_RESULT_OK;
186 }
187
188 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_PerceivedSeverity(
189 CIM_InstDeletion* self)
190 krisbash 1.1 {
191 memset((void*)&self->PerceivedSeverity, 0, sizeof(self->PerceivedSeverity));
192 return MI_RESULT_OK;
193 }
194
195 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_OtherSeverity(
196 CIM_InstDeletion* self,
197 const MI_Char* str)
198 {
199 return self->__instance.ft->SetElementAt(
200 (MI_Instance*)&self->__instance,
201 4,
202 (MI_Value*)&str,
203 MI_STRING,
204 0);
205 }
206
207 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_SetPtr_OtherSeverity(
208 CIM_InstDeletion* self,
209 const MI_Char* str)
210 {
211 krisbash 1.1 return self->__instance.ft->SetElementAt(
212 (MI_Instance*)&self->__instance,
213 4,
214 (MI_Value*)&str,
215 MI_STRING,
216 MI_FLAG_BORROW);
217 }
218
219 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_OtherSeverity(
220 CIM_InstDeletion* self)
221 {
222 return self->__instance.ft->ClearElementAt(
223 (MI_Instance*)&self->__instance,
224 4);
225 }
226
227 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_IndicationFilterName(
228 CIM_InstDeletion* self,
229 const MI_Char* str)
230 {
231 return self->__instance.ft->SetElementAt(
232 krisbash 1.1 (MI_Instance*)&self->__instance,
233 5,
234 (MI_Value*)&str,
235 MI_STRING,
236 0);
237 }
238
239 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_SetPtr_IndicationFilterName(
240 CIM_InstDeletion* self,
241 const MI_Char* str)
242 {
243 return self->__instance.ft->SetElementAt(
244 (MI_Instance*)&self->__instance,
245 5,
246 (MI_Value*)&str,
247 MI_STRING,
248 MI_FLAG_BORROW);
249 }
250
251 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_IndicationFilterName(
252 CIM_InstDeletion* self)
253 krisbash 1.1 {
254 return self->__instance.ft->ClearElementAt(
255 (MI_Instance*)&self->__instance,
256 5);
257 }
258
259 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_SequenceContext(
260 CIM_InstDeletion* self,
261 const MI_Char* str)
262 {
263 return self->__instance.ft->SetElementAt(
264 (MI_Instance*)&self->__instance,
265 6,
266 (MI_Value*)&str,
267 MI_STRING,
268 0);
269 }
270
271 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_SetPtr_SequenceContext(
272 CIM_InstDeletion* self,
273 const MI_Char* str)
274 krisbash 1.1 {
275 return self->__instance.ft->SetElementAt(
276 (MI_Instance*)&self->__instance,
277 6,
278 (MI_Value*)&str,
279 MI_STRING,
280 MI_FLAG_BORROW);
281 }
282
283 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_SequenceContext(
284 CIM_InstDeletion* self)
285 {
286 return self->__instance.ft->ClearElementAt(
287 (MI_Instance*)&self->__instance,
288 6);
289 }
290
291 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_SequenceNumber(
292 CIM_InstDeletion* self,
293 MI_Sint64 x)
294 {
295 krisbash 1.1 ((MI_Sint64Field*)&self->SequenceNumber)->value = x;
296 ((MI_Sint64Field*)&self->SequenceNumber)->exists = 1;
297 return MI_RESULT_OK;
298 }
299
300 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_SequenceNumber(
301 CIM_InstDeletion* self)
302 {
303 memset((void*)&self->SequenceNumber, 0, sizeof(self->SequenceNumber));
304 return MI_RESULT_OK;
305 }
306
307 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_SourceInstance(
308 CIM_InstDeletion* self,
309 const MI_Instance* x)
310 {
311 return self->__instance.ft->SetElementAt(
312 (MI_Instance*)&self->__instance,
313 8,
314 (MI_Value*)&x,
315 MI_INSTANCE,
316 krisbash 1.1 0);
317 }
318
319 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_SetPtr_SourceInstance(
320 CIM_InstDeletion* self,
321 const MI_Instance* x)
322 {
323 return self->__instance.ft->SetElementAt(
324 (MI_Instance*)&self->__instance,
325 8,
326 (MI_Value*)&x,
327 MI_INSTANCE,
328 MI_FLAG_BORROW);
329 }
330
331 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_SourceInstance(
332 CIM_InstDeletion* self)
333 {
334 return self->__instance.ft->ClearElementAt(
335 (MI_Instance*)&self->__instance,
336 8);
337 krisbash 1.1 }
338
339 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_SourceInstanceModelPath(
340 CIM_InstDeletion* self,
341 const MI_Char* str)
342 {
343 return self->__instance.ft->SetElementAt(
344 (MI_Instance*)&self->__instance,
345 9,
346 (MI_Value*)&str,
347 MI_STRING,
348 0);
349 }
350
351 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_SetPtr_SourceInstanceModelPath(
352 CIM_InstDeletion* self,
353 const MI_Char* str)
354 {
355 return self->__instance.ft->SetElementAt(
356 (MI_Instance*)&self->__instance,
357 9,
358 krisbash 1.1 (MI_Value*)&str,
359 MI_STRING,
360 MI_FLAG_BORROW);
361 }
362
363 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_SourceInstanceModelPath(
364 CIM_InstDeletion* self)
365 {
366 return self->__instance.ft->ClearElementAt(
367 (MI_Instance*)&self->__instance,
368 9);
369 }
370
371 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Set_SourceInstanceHost(
372 CIM_InstDeletion* self,
373 const MI_Char* str)
374 {
375 return self->__instance.ft->SetElementAt(
376 (MI_Instance*)&self->__instance,
377 10,
378 (MI_Value*)&str,
379 krisbash 1.1 MI_STRING,
380 0);
381 }
382
383 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_SetPtr_SourceInstanceHost(
384 CIM_InstDeletion* self,
385 const MI_Char* str)
386 {
387 return self->__instance.ft->SetElementAt(
388 (MI_Instance*)&self->__instance,
389 10,
390 (MI_Value*)&str,
391 MI_STRING,
392 MI_FLAG_BORROW);
393 }
394
395 MI_INLINE MI_Result MI_CALL CIM_InstDeletion_Clear_SourceInstanceHost(
396 CIM_InstDeletion* self)
397 {
398 return self->__instance.ft->ClearElementAt(
399 (MI_Instance*)&self->__instance,
400 krisbash 1.1 10);
401 }
402
403
404 #endif /* _CIM_InstDeletion_h */
|