459 lines
12 KiB
C
459 lines
12 KiB
C
//
|
|
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
// PARTICULAR PURPOSE.
|
|
//
|
|
// Copyright (c) Microsoft Corporation. All rights reserved
|
|
//
|
|
|
|
/*
|
|
**==============================================================================
|
|
**
|
|
** WARNING: THIS FILE WAS AUTOMATICALLY GENERATED. PLEASE DO NOT EDIT.
|
|
**
|
|
**==============================================================================
|
|
*/
|
|
#ifndef _CIM_InstIndication_h
|
|
#define _CIM_InstIndication_h
|
|
|
|
#include <MI.h>
|
|
#include "CIM_Indication.h"
|
|
|
|
/*
|
|
**==============================================================================
|
|
**
|
|
** CIM_InstIndication [CIM_InstIndication]
|
|
**
|
|
** Keys:
|
|
**
|
|
**==============================================================================
|
|
*/
|
|
|
|
typedef struct _CIM_InstIndication /* extends CIM_Indication */
|
|
{
|
|
MI_Instance __instance;
|
|
/* CIM_Indication properties */
|
|
MI_ConstStringField IndicationIdentifier;
|
|
MI_ConstStringAField CorrelatedIndications;
|
|
MI_ConstDatetimeField IndicationTime;
|
|
MI_ConstUint16Field PerceivedSeverity;
|
|
MI_ConstStringField OtherSeverity;
|
|
MI_ConstStringField IndicationFilterName;
|
|
MI_ConstStringField SequenceContext;
|
|
MI_ConstSint64Field SequenceNumber;
|
|
/* CIM_InstIndication properties */
|
|
MI_ConstReferenceField SourceInstance;
|
|
MI_ConstStringField SourceInstanceModelPath;
|
|
MI_ConstStringField SourceInstanceHost;
|
|
}
|
|
CIM_InstIndication;
|
|
|
|
typedef struct _CIM_InstIndication_Ref
|
|
{
|
|
CIM_InstIndication* value;
|
|
MI_Boolean exists;
|
|
MI_Uint8 flags;
|
|
}
|
|
CIM_InstIndication_Ref;
|
|
|
|
typedef struct _CIM_InstIndication_ConstRef
|
|
{
|
|
MI_CONST CIM_InstIndication* value;
|
|
MI_Boolean exists;
|
|
MI_Uint8 flags;
|
|
}
|
|
CIM_InstIndication_ConstRef;
|
|
|
|
typedef struct _CIM_InstIndication_Array
|
|
{
|
|
struct _CIM_InstIndication** data;
|
|
MI_Uint32 size;
|
|
}
|
|
CIM_InstIndication_Array;
|
|
|
|
typedef struct _CIM_InstIndication_ConstArray
|
|
{
|
|
struct _CIM_InstIndication MI_CONST* MI_CONST* data;
|
|
MI_Uint32 size;
|
|
}
|
|
CIM_InstIndication_ConstArray;
|
|
|
|
typedef struct _CIM_InstIndication_ArrayRef
|
|
{
|
|
CIM_InstIndication_Array value;
|
|
MI_Boolean exists;
|
|
MI_Uint8 flags;
|
|
}
|
|
CIM_InstIndication_ArrayRef;
|
|
|
|
typedef struct _CIM_InstIndication_ConstArrayRef
|
|
{
|
|
CIM_InstIndication_ConstArray value;
|
|
MI_Boolean exists;
|
|
MI_Uint8 flags;
|
|
}
|
|
CIM_InstIndication_ConstArrayRef;
|
|
|
|
MI_EXTERN_C MI_CONST MI_ClassDecl CIM_InstIndication_rtti;
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Construct(
|
|
_Out_ CIM_InstIndication* self,
|
|
_In_ MI_Context* context)
|
|
{
|
|
return MI_Context_ConstructInstance(context, &CIM_InstIndication_rtti,
|
|
(MI_Instance*)&self->__instance);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clone(
|
|
_In_ const CIM_InstIndication* self,
|
|
_Outptr_ CIM_InstIndication** newInstance)
|
|
{
|
|
return MI_Instance_Clone(
|
|
&self->__instance, (MI_Instance**)newInstance);
|
|
}
|
|
|
|
MI_INLINE MI_Boolean MI_CALL CIM_InstIndication_IsA(
|
|
_In_ const MI_Instance* self)
|
|
{
|
|
MI_Boolean res = MI_FALSE;
|
|
return MI_Instance_IsA(self, &CIM_InstIndication_rtti, &res) == MI_RESULT_OK && res;
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Destruct(_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return MI_Instance_Destruct(&self->__instance);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Delete(_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return MI_Instance_Delete(&self->__instance);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Post(
|
|
_In_ const CIM_InstIndication* self,
|
|
_In_ MI_Context* context,
|
|
MI_Uint32 subscriptionIDCount,
|
|
_In_z_ const MI_Char* bookmark)
|
|
{
|
|
return MI_Context_PostIndication(context,
|
|
&self->__instance,
|
|
subscriptionIDCount,
|
|
bookmark);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_IndicationIdentifier(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
0,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
0);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_SetPtr_IndicationIdentifier(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
0,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
MI_FLAG_BORROW);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_IndicationIdentifier(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return self->__instance.ft->ClearElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
0);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_CorrelatedIndications(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_reads_opt_(size) const MI_Char** data,
|
|
_In_ MI_Uint32 size)
|
|
{
|
|
MI_Array arr;
|
|
arr.data = (void*)data;
|
|
arr.size = size;
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
1,
|
|
(MI_Value*)&arr,
|
|
MI_STRINGA,
|
|
0);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_SetPtr_CorrelatedIndications(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_reads_opt_(size) const MI_Char** data,
|
|
_In_ MI_Uint32 size)
|
|
{
|
|
MI_Array arr;
|
|
arr.data = (void*)data;
|
|
arr.size = size;
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
1,
|
|
(MI_Value*)&arr,
|
|
MI_STRINGA,
|
|
MI_FLAG_BORROW);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_CorrelatedIndications(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return self->__instance.ft->ClearElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
1);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_IndicationTime(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_ MI_Datetime x)
|
|
{
|
|
((MI_DatetimeField*)&self->IndicationTime)->value = x;
|
|
((MI_DatetimeField*)&self->IndicationTime)->exists = 1;
|
|
return MI_RESULT_OK;
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_IndicationTime(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
memset((void*)&self->IndicationTime, 0, sizeof(self->IndicationTime));
|
|
return MI_RESULT_OK;
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_PerceivedSeverity(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_ MI_Uint16 x)
|
|
{
|
|
((MI_Uint16Field*)&self->PerceivedSeverity)->value = x;
|
|
((MI_Uint16Field*)&self->PerceivedSeverity)->exists = 1;
|
|
return MI_RESULT_OK;
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_PerceivedSeverity(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
memset((void*)&self->PerceivedSeverity, 0, sizeof(self->PerceivedSeverity));
|
|
return MI_RESULT_OK;
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_OtherSeverity(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
4,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
0);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_SetPtr_OtherSeverity(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
4,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
MI_FLAG_BORROW);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_OtherSeverity(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return self->__instance.ft->ClearElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
4);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_IndicationFilterName(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
5,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
0);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_SetPtr_IndicationFilterName(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
5,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
MI_FLAG_BORROW);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_IndicationFilterName(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return self->__instance.ft->ClearElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
5);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_SequenceContext(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
6,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
0);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_SetPtr_SequenceContext(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
6,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
MI_FLAG_BORROW);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_SequenceContext(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return self->__instance.ft->ClearElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
6);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_SequenceNumber(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_ MI_Sint64 x)
|
|
{
|
|
((MI_Sint64Field*)&self->SequenceNumber)->value = x;
|
|
((MI_Sint64Field*)&self->SequenceNumber)->exists = 1;
|
|
return MI_RESULT_OK;
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_SequenceNumber(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
memset((void*)&self->SequenceNumber, 0, sizeof(self->SequenceNumber));
|
|
return MI_RESULT_OK;
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_SourceInstance(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_ const MI_Instance* x)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
8,
|
|
(MI_Value*)&x,
|
|
MI_INSTANCE,
|
|
0);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_SetPtr_SourceInstance(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_ const MI_Instance* x)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
8,
|
|
(MI_Value*)&x,
|
|
MI_INSTANCE,
|
|
MI_FLAG_BORROW);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_SourceInstance(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return self->__instance.ft->ClearElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
8);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_SourceInstanceModelPath(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
9,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
0);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_SetPtr_SourceInstanceModelPath(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
9,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
MI_FLAG_BORROW);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_SourceInstanceModelPath(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return self->__instance.ft->ClearElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
9);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Set_SourceInstanceHost(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
10,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
0);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_SetPtr_SourceInstanceHost(
|
|
_Inout_ CIM_InstIndication* self,
|
|
_In_z_ const MI_Char* str)
|
|
{
|
|
return self->__instance.ft->SetElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
10,
|
|
(MI_Value*)&str,
|
|
MI_STRING,
|
|
MI_FLAG_BORROW);
|
|
}
|
|
|
|
MI_INLINE MI_Result MI_CALL CIM_InstIndication_Clear_SourceInstanceHost(
|
|
_Inout_ CIM_InstIndication* self)
|
|
{
|
|
return self->__instance.ft->ClearElementAt(
|
|
(MI_Instance*)&self->__instance,
|
|
10);
|
|
}
|
|
|
|
|
|
#endif /* _CIM_InstIndication_h */
|