(file) Return to CIM_Indication.h CVS log (file) (dir) Up to [OMI] / omi / provmgr

  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_Indication_h
 10              #define _CIM_Indication_h
 11              
 12              #include <MI.h>
 13              
 14              /*
 15              **==============================================================================
 16              **
 17              ** CIM_Indication [CIM_Indication]
 18              **
 19              ** Keys:
 20              **
 21              **==============================================================================
 22 krisbash 1.1 */
 23              
 24              typedef struct _CIM_Indication
 25              {
 26                  MI_Instance __instance;
 27                  /* CIM_Indication properties */
 28                  MI_ConstStringField IndicationIdentifier;
 29                  MI_ConstStringAField CorrelatedIndications;
 30                  MI_ConstDatetimeField IndicationTime;
 31                  MI_ConstUint16Field PerceivedSeverity;
 32                  MI_ConstStringField OtherSeverity;
 33                  MI_ConstStringField IndicationFilterName;
 34                  MI_ConstStringField SequenceContext;
 35                  MI_ConstSint64Field SequenceNumber;
 36              }
 37              CIM_Indication;
 38              
 39              typedef struct _CIM_Indication_Ref
 40              {
 41                  CIM_Indication* value;
 42                  MI_Boolean exists;
 43 krisbash 1.1     MI_Uint8 flags;
 44              }
 45              CIM_Indication_Ref;
 46              
 47              typedef struct _CIM_Indication_ConstRef
 48              {
 49                  MI_CONST CIM_Indication* value;
 50                  MI_Boolean exists;
 51                  MI_Uint8 flags;
 52              }
 53              CIM_Indication_ConstRef;
 54              
 55              typedef struct _CIM_Indication_Array
 56              {
 57                  struct _CIM_Indication** data;
 58                  MI_Uint32 size;
 59              }
 60              CIM_Indication_Array;
 61              
 62              typedef struct _CIM_Indication_ConstArray
 63              {
 64 krisbash 1.1     struct _CIM_Indication MI_CONST* MI_CONST* data;
 65                  MI_Uint32 size;
 66              }
 67              CIM_Indication_ConstArray;
 68              
 69              typedef struct _CIM_Indication_ArrayRef
 70              {
 71                  CIM_Indication_Array value;
 72                  MI_Boolean exists;
 73                  MI_Uint8 flags;
 74              }
 75              CIM_Indication_ArrayRef;
 76              
 77              typedef struct _CIM_Indication_ConstArrayRef
 78              {
 79                  CIM_Indication_ConstArray value;
 80                  MI_Boolean exists;
 81                  MI_Uint8 flags;
 82              }
 83              CIM_Indication_ConstArrayRef;
 84              
 85 krisbash 1.1 MI_INLINE MI_Result MI_CALL CIM_Indication_Set_IndicationIdentifier(
 86                  CIM_Indication* self,
 87                  const MI_Char* str)
 88              {
 89                  return self->__instance.ft->SetElementAt(
 90                      (MI_Instance*)&self->__instance,
 91                      0,
 92                      (MI_Value*)&str,
 93                      MI_STRING,
 94                      0);
 95              }
 96              
 97              MI_INLINE MI_Result MI_CALL CIM_Indication_SetPtr_IndicationIdentifier(
 98                  CIM_Indication* self,
 99                  const MI_Char* str)
100              {
101                  return self->__instance.ft->SetElementAt(
102                      (MI_Instance*)&self->__instance,
103                      0,
104                      (MI_Value*)&str,
105                      MI_STRING,
106 krisbash 1.1         MI_FLAG_BORROW);
107              }
108              
109              MI_INLINE MI_Result MI_CALL CIM_Indication_Clear_IndicationIdentifier(
110                  CIM_Indication* self)
111              {
112                  return self->__instance.ft->ClearElementAt(
113                      (MI_Instance*)&self->__instance,
114                      0);
115              }
116              
117              MI_INLINE MI_Result MI_CALL CIM_Indication_Set_CorrelatedIndications(
118                  CIM_Indication* self,
119                  const MI_Char** data,
120                  MI_Uint32 size)
121              {
122                  MI_Array arr;
123                  arr.data = (void*)data;
124                  arr.size = size;
125                  return self->__instance.ft->SetElementAt(
126                      (MI_Instance*)&self->__instance,
127 krisbash 1.1         1,
128                      (MI_Value*)&arr,
129                      MI_STRINGA,
130                      0);
131              }
132              
133              MI_INLINE MI_Result MI_CALL CIM_Indication_SetPtr_CorrelatedIndications(
134                  CIM_Indication* self,
135                  const MI_Char** data,
136                  MI_Uint32 size)
137              {
138                  MI_Array arr;
139                  arr.data = (void*)data;
140                  arr.size = size;
141                  return self->__instance.ft->SetElementAt(
142                      (MI_Instance*)&self->__instance,
143                      1,
144                      (MI_Value*)&arr,
145                      MI_STRINGA,
146                      MI_FLAG_BORROW);
147              }
148 krisbash 1.1 
149              MI_INLINE MI_Result MI_CALL CIM_Indication_Clear_CorrelatedIndications(
150                  CIM_Indication* self)
151              {
152                  return self->__instance.ft->ClearElementAt(
153                      (MI_Instance*)&self->__instance,
154                      1);
155              }
156              
157              MI_INLINE MI_Result MI_CALL CIM_Indication_Set_IndicationTime(
158                  CIM_Indication* self,
159                  MI_Datetime x)
160              {
161                  ((MI_DatetimeField*)&self->IndicationTime)->value = x;
162                  ((MI_DatetimeField*)&self->IndicationTime)->exists = 1;
163                  return MI_RESULT_OK;
164              }
165              
166              MI_INLINE MI_Result MI_CALL CIM_Indication_Clear_IndicationTime(
167                  CIM_Indication* self)
168              {
169 krisbash 1.1     memset((void*)&self->IndicationTime, 0, sizeof(self->IndicationTime));
170                  return MI_RESULT_OK;
171              }
172              
173              MI_INLINE MI_Result MI_CALL CIM_Indication_Set_PerceivedSeverity(
174                  CIM_Indication* self,
175                  MI_Uint16 x)
176              {
177                  ((MI_Uint16Field*)&self->PerceivedSeverity)->value = x;
178                  ((MI_Uint16Field*)&self->PerceivedSeverity)->exists = 1;
179                  return MI_RESULT_OK;
180              }
181              
182              MI_INLINE MI_Result MI_CALL CIM_Indication_Clear_PerceivedSeverity(
183                  CIM_Indication* self)
184              {
185                  memset((void*)&self->PerceivedSeverity, 0, sizeof(self->PerceivedSeverity));
186                  return MI_RESULT_OK;
187              }
188              
189              MI_INLINE MI_Result MI_CALL CIM_Indication_Set_OtherSeverity(
190 krisbash 1.1     CIM_Indication* self,
191                  const MI_Char* str)
192              {
193                  return self->__instance.ft->SetElementAt(
194                      (MI_Instance*)&self->__instance,
195                      4,
196                      (MI_Value*)&str,
197                      MI_STRING,
198                      0);
199              }
200              
201              MI_INLINE MI_Result MI_CALL CIM_Indication_SetPtr_OtherSeverity(
202                  CIM_Indication* self,
203                  const MI_Char* str)
204              {
205                  return self->__instance.ft->SetElementAt(
206                      (MI_Instance*)&self->__instance,
207                      4,
208                      (MI_Value*)&str,
209                      MI_STRING,
210                      MI_FLAG_BORROW);
211 krisbash 1.1 }
212              
213              MI_INLINE MI_Result MI_CALL CIM_Indication_Clear_OtherSeverity(
214                  CIM_Indication* self)
215              {
216                  return self->__instance.ft->ClearElementAt(
217                      (MI_Instance*)&self->__instance,
218                      4);
219              }
220              
221              MI_INLINE MI_Result MI_CALL CIM_Indication_Set_IndicationFilterName(
222                  CIM_Indication* self,
223                  const MI_Char* str)
224              {
225                  return self->__instance.ft->SetElementAt(
226                      (MI_Instance*)&self->__instance,
227                      5,
228                      (MI_Value*)&str,
229                      MI_STRING,
230                      0);
231              }
232 krisbash 1.1 
233              MI_INLINE MI_Result MI_CALL CIM_Indication_SetPtr_IndicationFilterName(
234                  CIM_Indication* self,
235                  const MI_Char* str)
236              {
237                  return self->__instance.ft->SetElementAt(
238                      (MI_Instance*)&self->__instance,
239                      5,
240                      (MI_Value*)&str,
241                      MI_STRING,
242                      MI_FLAG_BORROW);
243              }
244              
245              MI_INLINE MI_Result MI_CALL CIM_Indication_Clear_IndicationFilterName(
246                  CIM_Indication* self)
247              {
248                  return self->__instance.ft->ClearElementAt(
249                      (MI_Instance*)&self->__instance,
250                      5);
251              }
252              
253 krisbash 1.1 MI_INLINE MI_Result MI_CALL CIM_Indication_Set_SequenceContext(
254                  CIM_Indication* self,
255                  const MI_Char* str)
256              {
257                  return self->__instance.ft->SetElementAt(
258                      (MI_Instance*)&self->__instance,
259                      6,
260                      (MI_Value*)&str,
261                      MI_STRING,
262                      0);
263              }
264              
265              MI_INLINE MI_Result MI_CALL CIM_Indication_SetPtr_SequenceContext(
266                  CIM_Indication* self,
267                  const MI_Char* str)
268              {
269                  return self->__instance.ft->SetElementAt(
270                      (MI_Instance*)&self->__instance,
271                      6,
272                      (MI_Value*)&str,
273                      MI_STRING,
274 krisbash 1.1         MI_FLAG_BORROW);
275              }
276              
277              MI_INLINE MI_Result MI_CALL CIM_Indication_Clear_SequenceContext(
278                  CIM_Indication* self)
279              {
280                  return self->__instance.ft->ClearElementAt(
281                      (MI_Instance*)&self->__instance,
282                      6);
283              }
284              
285              MI_INLINE MI_Result MI_CALL CIM_Indication_Set_SequenceNumber(
286                  CIM_Indication* self,
287                  MI_Sint64 x)
288              {
289                  ((MI_Sint64Field*)&self->SequenceNumber)->value = x;
290                  ((MI_Sint64Field*)&self->SequenceNumber)->exists = 1;
291                  return MI_RESULT_OK;
292              }
293              
294              MI_INLINE MI_Result MI_CALL CIM_Indication_Clear_SequenceNumber(
295 krisbash 1.1     CIM_Indication* self)
296              {
297                  memset((void*)&self->SequenceNumber, 0, sizeof(self->SequenceNumber));
298                  return MI_RESULT_OK;
299              }
300              
301              
302              #endif /* _CIM_Indication_h */

ViewCVS 0.9.2