You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(26) |
Dec
(13) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(5) |
Feb
(16) |
Mar
(5) |
Apr
(5) |
May
(13) |
Jun
(12) |
Jul
(1) |
Aug
(2) |
Sep
(13) |
Oct
(6) |
Nov
(1) |
Dec
(29) |
| 2008 |
Jan
(2) |
Feb
(2) |
Mar
(2) |
Apr
(57) |
May
(35) |
Jun
(45) |
Jul
(132) |
Aug
(87) |
Sep
(141) |
Oct
(86) |
Nov
(17) |
Dec
(2) |
| 2009 |
Jan
(3) |
Feb
(2) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
1
(7) |
2
(15) |
3
(7) |
4
(16) |
5
(4) |
|
6
|
7
(3) |
8
(6) |
9
(6) |
10
(12) |
11
(3) |
12
|
|
13
|
14
|
15
|
16
|
17
|
18
(23) |
19
(1) |
|
20
|
21
(5) |
22
(1) |
23
(2) |
24
|
25
|
26
(1) |
|
27
|
28
|
29
(10) |
30
(5) |
31
(5) |
|
|
|
From: <mik...@us...> - 2008-07-31 21:34:40
|
Revision: 807
http://omc.svn.sourceforge.net/omc/?rev=807&view=rev
Author: mike-brasher
Date: 2008-07-31 21:34:47 +0000 (Thu, 31 Jul 2008)
Log Message:
-----------
Added diags to track down lsif bug.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c
cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/lsif.mak
Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c
===================================================================
--- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c 2008-07-31 21:02:47 UTC (rev 806)
+++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c 2008-07-31 21:34:47 UTC (rev 807)
@@ -12,6 +12,8 @@
#include "Resource.h"
#include "common.h"
+#define MAX_IFREQ 64
+
struct EthtoolInfo
{
/* Non-zero if full duplex */
@@ -102,9 +104,9 @@
struct EthernetPortResource* GetEthernetPortResources()
{
int sock;
- char* buf;
int len;
int prev_len;
+ char buf[MAX_IFREQ * sizeof(struct ifreq)];
struct ifconf ifc;
char* p;
int flags;
@@ -116,41 +118,15 @@
if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
return NULL;
- /* Create buffer large enough to hold all interfaces. Increase buffer
- * size until the resulting size quits growing.
- */
+ /* Disover interfaces with ioctl() */
- len = 1 * sizeof(struct ifreq);
- prev_len = 0;
+ ifc.ifc_buf = buf;
+ ifc.ifc_len = sizeof(buf);
- for (;;)
+ if (ioctl(sock, SIOCGIFCONF, &ifc) < 0)
{
- if (!(buf = malloc(len)))
- return NULL;
-
- ifc.ifc_buf = buf;
- ifc.ifc_len = len;
-
- if (ioctl(sock, SIOCGIFCONF, &ifc) < 0)
- {
- if (errno != EINVAL || prev_len)
- {
- close(sock);
- free(buf);
- return NULL;
- }
-
- continue;
- }
- else
- {
- if (ifc.ifc_len == prev_len)
- break;
- prev_len = ifc.ifc_len;
- }
-
- len += 1 * sizeof(struct ifreq);
- free(buf);
+ close(sock);
+ return NULL;
}
/* For each interface */
@@ -164,8 +140,13 @@
int family;
struct EthtoolInfo eti;
+ /* Get pointer to current element */
+
ifr = (struct ifreq*)p;
+ p += sizeof(struct ifreq);
+ /* Clear info structure */
+
memset(&info, 0, sizeof(info));
/* Get socket address length */
@@ -185,10 +166,6 @@
addr_len = sizeof(struct sockaddr);
}
- /* Skip pointer to next interface */
-
- p += sizeof(struct ifreq);
-
/* Skip non-eth? ports */
#if defined(ETHERNET_INTERFACES_ONLY)
@@ -198,8 +175,26 @@
/* Get EthernetPortResource.name */
+printf("NAME[%s]\n", ifr->ifr_name);
+
strlcpy(info.name, ifr->ifr_name, sizeof(info.name));
+{
+ struct EthernetPortResource* p;
+ int size = 0;
+
+ for (p = head; p; p = p->next)
+ {
+ size++;
+ if (strcasecmp(p->name, ifr->ifr_name) == 0)
+ {
+printf("ALREADY IN LIST[%s]\n", ifr->ifr_name);
+ }
+ }
+
+printf("SIZE[%d]\n", size);
+}
+
/* Get EthernetPortResource.family_name */
if (family == AF_INET)
@@ -229,7 +224,6 @@
if (ioctl(sock, SIOCGIFHWADDR, &tmp) != 0)
{
close(sock);
- free(buf);
return NULL;
}
@@ -248,7 +242,6 @@
if (ioctl(sock, SIOCGIFFLAGS, &tmp) != 0)
{
close(sock);
- free(buf);
return NULL;
}
@@ -277,7 +270,6 @@
if (ioctl(sock, SIOCGIFADDR, &tmp) != 0)
{
close(sock);
- free(buf);
return NULL;
}
@@ -296,7 +288,6 @@
if (ioctl(sock, SIOCGIFADDR, &tmp) != 0)
{
close(sock);
- free(buf);
return NULL;
}
@@ -320,7 +311,6 @@
if (ioctl(sock, SIOCGIFBRDADDR, &tmp) != 0)
{
close(sock);
- free(buf);
return NULL;
}
@@ -341,7 +331,6 @@
if (ioctl(sock, SIOCGIFNETMASK, &tmp) != 0)
{
close(sock);
- free(buf);
return NULL;
}
@@ -363,12 +352,12 @@
/* Create new node and insert at end of list */
- node = (struct EthernetPortResource*)malloc(sizeof(struct EthernetPortResource));
+ node = (struct EthernetPortResource*)malloc(
+ sizeof(struct EthernetPortResource));
if (!node)
{
close(sock);
- free(buf);
return NULL;
}
@@ -386,7 +375,6 @@
}
}
- free(buf);
close(sock);
return head;
}
@@ -403,7 +391,8 @@
}
}
-#if defined(LSIF_MAIN)
+#if defined(LSIF)
+
void PrintEtherPortResources(const struct EthernetPortResource* head)
{
const struct EthernetPortResource* p;
@@ -412,6 +401,7 @@
{
printf("EthernetPortResource\n");
printf("{\n");
+printf(" ptr{%p}\n", p);
printf(" name{%s}\n", p->name);
printf(" index{%d}\n", p->index);
printf(" mac{%s}\n", p->mac);
@@ -446,4 +436,5 @@
return 0;
}
-#endif
+
+#endif /* defined(LSIF) */
Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/lsif.mak
===================================================================
--- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/lsif.mak 2008-07-31 21:02:47 UTC (rev 806)
+++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/lsif.mak 2008-07-31 21:34:47 UTC (rev 807)
@@ -1,2 +1,2 @@
all:
- gcc -o lsif -DLSIF_MAIN Resource.c common.c
+ gcc -o lsif -DLSIF Resource.c common.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-31 21:02:37
|
Revision: 806
http://omc.svn.sourceforge.net/omc/?rev=806&view=rev
Author: mike-brasher
Date: 2008-07-31 21:02:47 +0000 (Thu, 31 Jul 2008)
Log Message:
-----------
Fixed bad macro check.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c
Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c
===================================================================
--- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c 2008-07-31 20:23:10 UTC (rev 805)
+++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c 2008-07-31 21:02:47 UTC (rev 806)
@@ -403,7 +403,7 @@
}
}
-#if LSIF_MAIN
+#if defined(LSIF_MAIN)
void PrintEtherPortResources(const struct EthernetPortResource* head)
{
const struct EthernetPortResource* p;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ba...@us...> - 2008-07-31 20:23:03
|
Revision: 805
http://omc.svn.sourceforge.net/omc/?rev=805&view=rev
Author: bartw
Date: 2008-07-31 20:23:10 +0000 (Thu, 31 Jul 2008)
Log Message:
-----------
fixed types on null properties
Modified Paths:
--------------
cmpi-bindings/TODO
cmpi-bindings/src/cmpi_provider.c
cmpi-bindings/swig/python/pycmpi_provider.py
Modified: cmpi-bindings/TODO
===================================================================
--- cmpi-bindings/TODO 2008-07-31 19:23:21 UTC (rev 804)
+++ cmpi-bindings/TODO 2008-07-31 20:23:10 UTC (rev 805)
@@ -2,8 +2,6 @@
brokerEncFT, and which are created with clone(). We have to release the
later, not the former.
-Setting NULL property values currently doesn't work.
-
Fix memory leaks related to cloning of CMPIData structs.
Items marked as "TODO" in the code.
@@ -23,7 +21,7 @@
[Not possible to pass status+message in a generic way. How about a
toplevel function which raised the execption ?]
+Split src/ into target-specific and common parts
-Python error traceback overflows sfcb <ERROR DESCRIPTION="..."/> buffer
+Wrap CMPIEnumeration and CMPIArray in typemaps.
-Split src/ into target-specific and common parts
\ No newline at end of file
Modified: cmpi-bindings/src/cmpi_provider.c
===================================================================
--- cmpi-bindings/src/cmpi_provider.c 2008-07-31 19:23:21 UTC (rev 804)
+++ cmpi-bindings/src/cmpi_provider.c 2008-07-31 20:23:10 UTC (rev 805)
@@ -1069,7 +1069,7 @@
CMPIStatus status = {CMPI_RC_ERR_NOT_SUPPORTED, NULL};
#ifdef SWIGPYTHON
- _SBLIM_TRACE(1,("references(Python) called, ctx %p, rslt %p, objName %p, role %s, resultRole %s, properties %p", ctx, rslt, objName, resultClass, role, properties));
+ _SBLIM_TRACE(1,("references(Python) called, ctx %p, rslt %p, objName %p, resultClass %s, role %s, properties %p", ctx, rslt, objName, resultClass, role, properties));
PY_CMPI_INIT
@@ -1399,7 +1399,7 @@
ExecQuery,
};
-static int createInit(const CMPIBroker* broker,
+static void createInit(const CMPIBroker* broker,
const CMPIContext* context, const char* miname, CMPIStatus* st)
{
_BROKER = broker;
Modified: cmpi-bindings/swig/python/pycmpi_provider.py
===================================================================
--- cmpi-bindings/swig/python/pycmpi_provider.py 2008-07-31 19:23:21 UTC (rev 804)
+++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-07-31 20:23:10 UTC (rev 805)
@@ -117,10 +117,17 @@
self.env = ProviderEnvironment(self.broker)
self.proxy = ProviderProxy(self.env,
'/usr/lib/pycim/'+miname+'.py')
+ broker = cmpi.CMPIBroker()
+ print '*** broker.name()', broker.name()
+ print '*** broker.capabilities()', broker.capabilities()
+ print '*** broker.version()', broker.version()
+ broker.LogMessage(1, 'LogID',
+ '** This should go through broker.LogMessage()')
def enum_instance_names(self, ctx, rslt, objname):
print 'provider.py: In enum_instance_names()'
#test_conversions()
+
op = cmpi2pywbem_instname(objname)
conn = SFCBUDSConnection()
@@ -375,7 +382,8 @@
def pywbem2cmpi_value(pdata, _type=None, cval=None):
if pdata is None:
- return None, 'sint32'
+ assert(_type is not None)
+ return None, _type
is_array = isinstance(pdata, list)
if _type is None:
if isinstance(pdata, pywbem.CIMInstanceName):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-31 19:23:15
|
Revision: 804
http://omc.svn.sourceforge.net/omc/?rev=804&view=rev
Author: mike-brasher
Date: 2008-07-31 19:23:21 +0000 (Thu, 31 Jul 2008)
Log Message:
-----------
Created makefile for lsif utility.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/lsif.mak
Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c
===================================================================
--- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c 2008-07-31 19:17:13 UTC (rev 803)
+++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c 2008-07-31 19:23:21 UTC (rev 804)
@@ -403,7 +403,7 @@
}
}
-#if MAIN
+#if LSIF_MAIN
void PrintEtherPortResources(const struct EthernetPortResource* head)
{
const struct EthernetPortResource* p;
Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/lsif.mak
===================================================================
--- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/lsif.mak (rev 0)
+++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/lsif.mak 2008-07-31 19:23:21 UTC (rev 804)
@@ -0,0 +1,2 @@
+all:
+ gcc -o lsif -DLSIF_MAIN Resource.c common.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-31 19:17:05
|
Revision: 803
http://omc.svn.sourceforge.net/omc/?rev=803&view=rev
Author: mike-brasher
Date: 2008-07-31 19:17:13 +0000 (Thu, 31 Jul 2008)
Log Message:
-----------
Added rule to build main program.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c
Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c
===================================================================
--- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c 2008-07-30 20:32:49 UTC (rev 802)
+++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c 2008-07-31 19:17:13 UTC (rev 803)
@@ -403,7 +403,7 @@
}
}
-#if 0
+#if MAIN
void PrintEtherPortResources(const struct EthernetPortResource* head)
{
const struct EthernetPortResource* p;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-30 20:32:43
|
Revision: 802
http://omc.svn.sourceforge.net/omc/?rev=802&view=rev
Author: mike-brasher
Date: 2008-07-30 20:32:49 +0000 (Wed, 30 Jul 2008)
Log Message:
-----------
ElementConformsTo and ReferencedProfile providers.
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ElementConformsToProfile.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ReferencedProfile.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ElementConformsToProfile.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ElementConformsToProfileProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ReferencedProfile.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ReferencedProfileProvider.c
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ElementConformsToProfile.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ElementConformsToProfile.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ElementConformsToProfile.h 2008-07-30 20:32:49 UTC (rev 802)
@@ -0,0 +1,384 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_ElementConformsToProfile_h
+#define _konkrete_CIM_ElementConformsToProfile_h
+
+#include <konkret/konkret.h>
+#include "CIM_RegisteredProfile.h"
+#include "CIM_ManagedElement.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_ElementConformsToProfileRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ElementConformsToProfile */
+typedef struct _CIM_ElementConformsToProfileRef
+{
+ KBase __base;
+ /* CIM_ElementConformsToProfile features */
+ const KRef ConformantStandard; /* CIM_RegisteredProfile */
+ const KRef ManagedElement; /* CIM_ManagedElement */
+}
+CIM_ElementConformsToProfileRef;
+
+static const unsigned char __CIM_ElementConformsToProfileRef_sig[] =
+{
+ 0x1c,0x43,0x49,0x4d,0x5f,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x43,0x6f,0x6e,
+ 0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,
+ 0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x74,0x53,0x74,
+ 0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,
+ 0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ElementConformsToProfileRef_Init(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ElementConformsToProfileRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ConformantStandard)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->ManagedElement)->__sig = __CIM_ManagedElement_sig;
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfileRef_InitFromInstance(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ElementConformsToProfileRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfileRef_InitFromObjectPath(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ElementConformsToProfileRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Print(
+ const CIM_ElementConformsToProfileRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ElementConformsToProfileRef_ToInstance(
+ const CIM_ElementConformsToProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ElementConformsToProfileRef_ToObjectPath(
+ const CIM_ElementConformsToProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ElementConformsToProfileRef_NameSpace(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_SetObjectPath_ConformantStandard(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfileRef_Set_ConformantStandard(
+ CIM_ElementConformsToProfileRef* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Null_ConformantStandard(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Clr_ConformantStandard(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_SetObjectPath_ManagedElement(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfileRef_Set_ManagedElement(
+ CIM_ElementConformsToProfileRef* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Null_ManagedElement(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Clr_ManagedElement(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_ElementConformsToProfile
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ElementConformsToProfile */
+typedef struct _CIM_ElementConformsToProfile
+{
+ KBase __base;
+ /* CIM_ElementConformsToProfile features */
+ const KRef ConformantStandard; /* CIM_RegisteredProfile */
+ const KRef ManagedElement; /* CIM_ManagedElement */
+}
+CIM_ElementConformsToProfile;
+
+static const unsigned char __CIM_ElementConformsToProfile_sig[] =
+{
+ 0x1c,0x43,0x49,0x4d,0x5f,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x43,0x6f,0x6e,
+ 0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,
+ 0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x74,0x53,0x74,
+ 0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,
+ 0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ElementConformsToProfile_Init(
+ CIM_ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ElementConformsToProfile_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ConformantStandard)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->ManagedElement)->__sig = __CIM_ManagedElement_sig;
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_InitFromInstance(
+ CIM_ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ElementConformsToProfile_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_InitFromObjectPath(
+ CIM_ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ElementConformsToProfile_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ElementConformsToProfile_Print(
+ const CIM_ElementConformsToProfile* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_ElementConformsToProfile_ToInstance(
+ const CIM_ElementConformsToProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ElementConformsToProfile_ToObjectPath(
+ const CIM_ElementConformsToProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ElementConformsToProfile_NameSpace(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ElementConformsToProfile_SetObjectPath_ConformantStandard(
+ CIM_ElementConformsToProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_Set_ConformantStandard(
+ CIM_ElementConformsToProfile* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementConformsToProfile_Null_ConformantStandard(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfile_Clr_ConformantStandard(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfile_SetObjectPath_ManagedElement(
+ CIM_ElementConformsToProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_Set_ManagedElement(
+ CIM_ElementConformsToProfile* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementConformsToProfile_Null_ManagedElement(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfile_Clr_ManagedElement(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** CIM_ElementConformsToProfile methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_ElementConformsToProfileRef self;
+
+ KReturnIf(CIM_ElementConformsToProfileRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_ElementConformsToProfile_h */
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ReferencedProfile.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ReferencedProfile.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ReferencedProfile.h 2008-07-30 20:32:49 UTC (rev 802)
@@ -0,0 +1,383 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_ReferencedProfile_h
+#define _konkrete_CIM_ReferencedProfile_h
+
+#include <konkret/konkret.h>
+#include "CIM_RegisteredProfile.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_ReferencedProfileRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ReferencedProfile */
+typedef struct _CIM_ReferencedProfileRef
+{
+ KBase __base;
+ /* CIM_Dependency features */
+ const KRef Antecedent; /* CIM_RegisteredProfile */
+ const KRef Dependent; /* CIM_RegisteredProfile */
+ /* CIM_ReferencedProfile features */
+}
+CIM_ReferencedProfileRef;
+
+static const unsigned char __CIM_ReferencedProfileRef_sig[] =
+{
+ 0x15,0x43,0x49,0x4d,0x5f,0x52,0x65,0x66,0x65,0x72,0x65,0x6e,0x63,0x65,0x64,
+ 0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x0a,0x41,0x6e,0x74,0x65,
+ 0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,0x44,0x65,0x70,0x65,0x6e,0x64,
+ 0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ReferencedProfileRef_Init(
+ CIM_ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ReferencedProfileRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->Dependent)->__sig = __CIM_RegisteredProfile_sig;
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfileRef_InitFromInstance(
+ CIM_ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ReferencedProfileRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfileRef_InitFromObjectPath(
+ CIM_ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ReferencedProfileRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ReferencedProfileRef_Print(
+ const CIM_ReferencedProfileRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ReferencedProfileRef_ToInstance(
+ const CIM_ReferencedProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ReferencedProfileRef_ToObjectPath(
+ const CIM_ReferencedProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ReferencedProfileRef_NameSpace(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ReferencedProfileRef_SetObjectPath_Antecedent(
+ CIM_ReferencedProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfileRef_Set_Antecedent(
+ CIM_ReferencedProfileRef* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ReferencedProfileRef_Null_Antecedent(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfileRef_Clr_Antecedent(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfileRef_SetObjectPath_Dependent(
+ CIM_ReferencedProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfileRef_Set_Dependent(
+ CIM_ReferencedProfileRef* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ReferencedProfileRef_Null_Dependent(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfileRef_Clr_Dependent(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_ReferencedProfile
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ReferencedProfile */
+typedef struct _CIM_ReferencedProfile
+{
+ KBase __base;
+ /* CIM_Dependency features */
+ const KRef Antecedent; /* CIM_RegisteredProfile */
+ const KRef Dependent; /* CIM_RegisteredProfile */
+ /* CIM_ReferencedProfile features */
+}
+CIM_ReferencedProfile;
+
+static const unsigned char __CIM_ReferencedProfile_sig[] =
+{
+ 0x15,0x43,0x49,0x4d,0x5f,0x52,0x65,0x66,0x65,0x72,0x65,0x6e,0x63,0x65,0x64,
+ 0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x0a,0x41,0x6e,0x74,0x65,
+ 0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,0x44,0x65,0x70,0x65,0x6e,0x64,
+ 0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ReferencedProfile_Init(
+ CIM_ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ReferencedProfile_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->Dependent)->__sig = __CIM_RegisteredProfile_sig;
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfile_InitFromInstance(
+ CIM_ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ReferencedProfile_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfile_InitFromObjectPath(
+ CIM_ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ReferencedProfile_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ReferencedProfile_Print(
+ const CIM_ReferencedProfile* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_ReferencedProfile_ToInstance(
+ const CIM_ReferencedProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ReferencedProfile_ToObjectPath(
+ const CIM_ReferencedProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ReferencedProfile_NameSpace(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ReferencedProfile_SetObjectPath_Antecedent(
+ CIM_ReferencedProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfile_Set_Antecedent(
+ CIM_ReferencedProfile* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ReferencedProfile_Null_Antecedent(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfile_Clr_Antecedent(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfile_SetObjectPath_Dependent(
+ CIM_ReferencedProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfile_Set_Dependent(
+ CIM_ReferencedProfile* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ReferencedProfile_Null_Dependent(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfile_Clr_Dependent(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** CIM_ReferencedProfile methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_ReferencedProfile_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_ReferencedProfileRef self;
+
+ KReturnIf(CIM_ReferencedProfileRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_ReferencedProfile_h */
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ElementConformsToProfile.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ElementConformsToProfile.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ElementConformsToProfile.h 2008-07-30 20:32:49 UTC (rev 802)
@@ -0,0 +1,388 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_ElementConformsToProfile_h
+#define _konkrete_ElementConformsToProfile_h
+
+#include <konkret/konkret.h>
+#include "RegisteredProfile.h"
+#include "PowerSupply.h"
+
+/*
+**==============================================================================
+**
+** struct ElementConformsToProfileRef
+**
+**==============================================================================
+*/
+
+/* classname=Linux_PowerElementConformsToProfile */
+typedef struct _ElementConformsToProfileRef
+{
+ KBase __base;
+ /* CIM_ElementConformsToProfile features */
+ const KRef ConformantStandard; /* RegisteredProfile */
+ const KRef ManagedElement; /* PowerSupply */
+ /* Linux_PowerElementConformsToProfile features */
+}
+ElementConformsToProfileRef;
+
+static const unsigned char __ElementConformsToProfileRef_sig[] =
+{
+ 0x23,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x50,0x6f,0x77,0x65,0x72,0x45,0x6c,0x65,
+ 0x6d,0x65,0x6e,0x74,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,
+ 0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,
+ 0x72,0x6d,0x61,0x6e,0x74,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,
+ 0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,
+ 0x00,
+};
+
+KINLINE void ElementConformsToProfileRef_Init(
+ ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ElementConformsToProfileRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ConformantStandard)->__sig = __RegisteredProfile_sig;
+ ((KRef*)&self->ManagedElement)->__sig = __PowerSupply_sig;
+}
+
+KINLINE CMPIStatus ElementConformsToProfileRef_InitFromInstance(
+ ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ElementConformsToProfileRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ElementConformsToProfileRef_InitFromObjectPath(
+ ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ElementConformsToProfileRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ElementConformsToProfileRef_Print(
+ const ElementConformsToProfileRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* ElementConformsToProfileRef_ToInstance(
+ const ElementConformsToProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ElementConformsToProfileRef_ToObjectPath(
+ const ElementConformsToProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ElementConformsToProfileRef_NameSpace(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ElementConformsToProfileRef_SetObjectPath_ConformantStandard(
+ ElementConformsToProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementConformsToProfileRef_Set_ConformantStandard(
+ ElementConformsToProfileRef* self,
+ const RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementConformsToProfileRef_Null_ConformantStandard(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementConformsToProfileRef_Clr_ConformantStandard(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ElementConformsToProfileRef_SetObjectPath_ManagedElement(
+ ElementConformsToProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementConformsToProfileRef_Set_ManagedElement(
+ ElementConformsToProfileRef* self,
+ const PowerSupplyRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementConformsToProfileRef_Null_ManagedElement(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementConformsToProfileRef_Clr_ManagedElement(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct ElementConformsToProfile
+**
+**==============================================================================
+*/
+
+/* classname=Linux_PowerElementConformsToProfile */
+typedef struct _ElementConformsToProfile
+{
+ KBase __base;
+ /* CIM_ElementConformsToProfile features */
+ const KRef ConformantStandard; /* RegisteredProfile */
+ const KRef ManagedElement; /* PowerSupply */
+ /* Linux_PowerElementConformsToProfile features */
+}
+ElementConformsToProfile;
+
+static const unsigned char __ElementConformsToProfile_sig[] =
+{
+ 0x23,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x50,0x6f,0x77,0x65,0x72,0x45,0x6c,0x65,
+ 0x6d,0x65,0x6e,0x74,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,
+ 0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,
+ 0x72,0x6d,0x61,0x6e,0x74,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,
+ 0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,
+ 0x00,
+};
+
+KINLINE void ElementConformsToProfile_Init(
+ ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ElementConformsToProfile_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ConformantStandard)->__sig = __RegisteredProfile_sig;
+ ((KRef*)&self->ManagedElement)->__sig = __PowerSupply_sig;
+}
+
+KINLINE CMPIStatus ElementConformsToProfile_InitFromInstance(
+ ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ElementConformsToProfile_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ElementConformsToProfile_InitFromObjectPath(
+ ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ElementConformsToProfile_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ElementConformsToProfile_Print(
+ const ElementConformsToProfile* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* ElementConformsToProfile_ToInstance(
+ const ElementConformsToProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ElementConformsToProfile_ToObjectPath(
+ const ElementConformsToProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ElementConformsToProfile_NameSpace(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ElementConformsToProfile_SetObjectPath_ConformantStandard(
+ ElementConformsToProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementConformsToProfile_Set_ConformantStandard(
+ ElementConformsToProfile* self,
+ const RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementConformsToProfile_Null_ConformantStandard(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementConformsToProfile_Clr_ConformantStandard(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ElementConformsToProfile_SetObjectPath_ManagedElement(
+ ElementConformsToProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementConformsToProfile_Set_ManagedElement(
+ ElementConformsToProfile* self,
+ const PowerSupplyRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementConformsToProfile_Null_ManagedElement(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementConformsToProfile_Clr_ManagedElement(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** ElementConformsToProfile methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus ElementConformsToProfile_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ ElementConformsToProfileRef self;
+
+ KReturnIf(ElementConformsToProfileRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_ElementConformsToProfile_h */
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ElementConformsToProfileProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ElementConformsToProfileProvider.c (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-30 20:32:49 UTC (rev 802)
@@ -0,0 +1,197 @@
+#include <konkret/konkret.h>
+#include "ElementConformsToProfile.h"
+#include "Resource.h"
+
+static const CMPIBroker* _cb;
+
+static void ElementConformsToProfileInitialize()
+{
+}
+
+static CMPIStatus ElementConformsToProfileCleanup(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ElementConformsToProfileEnumInstanceNames(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ return KDefaultEnumerateInstanceNames(
+ _cb, mi, cc, cr, cop);
+}
+
+static CMPIStatus ElementConformsToProfileEnumInstances(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ const char* ns = KNameSpace(cop);
+ RegisteredProfileRef cs;
+
+ /* Linux_FanRegisteredProfile.ConformantStandard */
+ RegisteredProfileRef_Init(&cs, _cb, ns);
+ RegisteredProfileRef_Set_InstanceID(&cs, "SBLIM:PowerSupply");
+
+ /* Associate with every instance of Linux_Fan */
+ return KDefaultEnumerateInstancesOneToAll(
+ _cb,
+ cc,
+ cr,
+ cop,
+ RegisteredProfileRef_ToObjectPath(&cs, NULL),
+ "ConformantStandard",
+ CMNewObjectPath(_cb, NAMESPACE, "Linux_PowerSupply", NULL),
+ "ManagedElement");
+}
+
+static CMPIStatus ElementConformsToProfileGetInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ return KDefaultGetInstance(
+ _cb, mi, cc, cr, cop, properties);
+}
+
+static CMPIStatus ElementConformsToProfileCreateInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementConformsToProfileModifyInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci,
+ const char**properties)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementConformsToProfileDeleteInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementConformsToProfileExecQuery(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* lang,
+ const char* query)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementConformsToProfileAssociationCleanup(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ElementConformsToProfileAssociators(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_PowerElementConformsToProfile";
+
+ return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass,
+ resultClass, role, resultRole, properties);
+}
+
+static CMPIStatus ElementConformsToProfileAssociatorNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole)
+{
+ if (!assocClass)
+ assocClass = "Linux_PowerElementConformsToProfile";
+
+ return KDefaultAssociatorNames(_cb, mi, cc, cr, cop,
+ assocClass, resultClass, role, resultRole);
+}
+
+static CMPIStatus ElementConformsToProfileReferences(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_PowerElementConformsToProfile";
+
+ return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass,
+ role, properties);
+}
+
+static CMPIStatus ElementConformsToProfileReferenceNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role)
+{
+ if (!assocClass)
+ assocClass = "Linux_PowerElementConformsToProfile";
+
+ return KDefaultReferenceNames(
+ _cb, mi, cc, cr, cop, assocClass, role);
+}
+
+CMInstanceMIStub(
+ ElementConformsToProfile,
+ ElementConformsToProfile,
+ _cb,
+ ElementConformsToProfileInitialize())
+
+CMAssociationMIStub(
+ ElementConformsToProfile,
+ ElementConformsToProfile,
+ _cb,
+ ElementConformsToProfileInitialize())
+
+KONKRET_REGISTRATION(
+ "root/interop",
+ "Linux_PowerElementConformsToProfile",
+ "ElementConformsToProfile",
+ "instance association");
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ReferencedProfile.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ReferencedProfile.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ReferencedProfile.h 2008-07-30 20:32:49 UTC (rev 802)
@@ -0,0 +1,386 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_ReferencedProfile_h
+#define _konkrete_ReferencedProfile_h
+
+#include <konkret/konkret.h>
+#include "CIM_RegisteredProfile.h"
+#include "RegisteredProfile.h"
+
+/*
+**==============================================================================
+**
+** struct ReferencedProfileRef
+**
+**==============================================================================
+*/
+
+/* classname=Linux_PowerReferencedProfile */
+typedef struct _ReferencedProfileRef
+{
+ KBase __base;
+ /* CIM_Dependency features */
+ const KRef Antecedent; /* CIM_RegisteredProfile */
+ const KRef Dependent; /* RegisteredProfile */
+ /* CIM_ReferencedProfile features */
+ /* Linux_PowerReferencedProfile features */
+}
+ReferencedProfileRef;
+
+static const unsigned char __ReferencedProfileRef_sig[] =
+{
+ 0x1c,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x50,0x6f,0x77,0x65,0x72,0x52,0x65,0x66,
+ 0x65,0x72,0x65,0x6e,0x63,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,
+ 0x02,0x4e,0x0a,0x41,0x6e,0x74,0x65,0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,
+ 0x09,0x44,0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void ReferencedProfileRef_Init(
+ ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ReferencedProfileRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->Dependent)->__sig = __RegisteredProfile_sig;
+}
+
+KINLINE CMPIStatus ReferencedProfileRef_InitFromInstance(
+ ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ReferencedProfileRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ReferencedProfileRef_InitFromObjectPath(
+ ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ReferencedProfileRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ReferencedProfileRef_Print(
+ const ReferencedProfileRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* ReferencedProfileRef_ToInstance(
+ const ReferencedProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ReferencedProfileRef_ToObjectPath(
+ const ReferencedProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ReferencedProfileRef_NameSpace(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ReferencedProfileRef_SetObjectPath_Antecedent(
+ ReferencedProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ReferencedProfileRef_Set_Antecedent(
+ ReferencedProfileRef* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ReferencedProfileRef_Null_Antecedent(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ReferencedProfileRef_Clr_Antecedent(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ReferencedProfileRef_SetObjectPath_Dependent(
+ ReferencedProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ReferencedProfileRef_Set_Dependent(
+ ReferencedProfileRef* self,
+ const RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ReferencedProfileRef_Null_Dependent(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ReferencedProfileRef_Clr_Dependent(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct ReferencedProfile
+**
+**==============================================================================
+*/
+
+/* classname=Linux_PowerReferencedProfile */
+typedef struct _ReferencedProfile
+{
+ KBase __base;
+ /* CIM_Dependency features */
+ const KRef Antecedent; /* CIM_RegisteredProfile */
+ const KRef Dependent; /* RegisteredProfile */
+ /* CIM_ReferencedProfile features */
+ /* Linux_PowerReferencedProfile features */
+}
+ReferencedProfile;
+
+static const unsigned char __ReferencedProfile_sig[] =
+{
+ 0x1c,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x50,0x6f,0x77,0x65,0x72,0x52,0x65,0x66,
+ 0x65,0x72,0x65,0x6e,0x63,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,
+ 0x02,0x4e,0x0a,0x41,0x6e,0x74,0x65,0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,
+ 0x09,0x44,0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void ReferencedProfile_Init(
+ ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ReferencedProfile_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->Dependent)->__sig = __RegisteredProfile_sig;
+}
+
+KINLINE CMPIStatus ReferencedProfile_InitFromInstance(
+ ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ReferencedProfile_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ReferencedProfile_InitFromObjectPath(
+ ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ReferencedProfile_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ReferencedProfile_Print(
+ const ReferencedProfile* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* ReferencedProfile_ToInstance(
+ const ReferencedProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ReferencedProfile_ToObjectPath(
+ const ReferencedProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ReferencedProfile_NameSpace(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ReferencedProfile_SetObjectPath_Antecedent(
+ ReferencedProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ReferencedProfile_Set_Antecedent(
+ ReferencedProfile* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ReferencedProfile_Null_Antecedent(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ReferencedProfile_Clr_Antecedent(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ReferencedProfile_SetObjectPath_Dependent(
+ ReferencedProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ReferencedProfile_Set_Dependent(
+ ReferencedProfile* self,
+ const RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ReferencedProfile_Null_Dependent(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ReferencedProfile_Clr_Dependent(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** ReferencedProfile methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus ReferencedProfile_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ ReferencedProfileRef self;
+
+ KReturnIf(ReferencedProfileRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_ReferencedProfile_h */
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ReferencedProfileProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ReferencedProfileProvider.c (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ReferencedProfileProvider.c 2008-07-30 20:32:49 UTC (rev 802)
@@ -0,0 +1,201 @@
+#include <konkret/konkret.h>
+#include "ReferencedProfile.h"
+
+static const CMPIBroker* _cb;
+
+static void ReferencedProfileInitialize()
+{
+}
+
+static CMPIStatus ReferencedProfileCleanup(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ReferencedProfileEnumInstanceNames(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ return KDefaultEnumerateInstanceNames(
+ _cb, mi, cc, cr, cop);
+}
+
+static CMPIStatus ReferencedProfileEnumInstances(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ const char* ns = KNameSpace(cop);
+ ReferencedProfile x;
+ CIM_RegisteredProfileRef a;
+ RegisteredProfileRef d;
+
+ /* Linux_RegisteredProfileComputerSystem.Antecedent */
+ CIM_RegisteredProfileRef_Init(&a, _cb, ns);
+ CIM_RegisteredProfileRef_Set_InstanceID(&a,"SBLIM:Base_Computer");
+
+ /* Linux_FanRegisteredProfile.Dependent */
+ RegisteredProfileRef_Init(&d, _cb, ns);
+ RegisteredProfileRef_Set_InstanceID(&d, "SBLIM:PowerSupply");
+
+ /* Linux_FanReferencedProfile */
+ ReferencedProfile_Init(&x, _cb, ns);
+ ReferencedProfile_Set_Antecedent(&x, &a);
+ ReferencedProfile_Set_Dependent(&x, &d);
+
+ /* Return instance */
+ KReturnInstance(cr, x);
+
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ReferencedProfileGetInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ return KDefaultGetInstance(
+ _cb, mi, cc, cr, cop, properties);
+}
+
+static CMPIStatus ReferencedProfileCreateInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ReferencedProfileModifyInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci,
+ const char**properties)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ReferencedProfileDeleteInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ReferencedProfileExecQuery(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* lang,
+ const char* query)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ReferencedProfileAssociationCleanup(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ReferencedProfileAssociators(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_PowerReferencedProfile";
+
+ return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass,
+ resultClass, role, resultRole, properties);
+}
+
+static CMPIStatus ReferencedProfileAssociatorNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole)
+{
+ if (!assocClass)
+ assocClass = "Linux_PowerReferencedProfile";
+
+ return KDefaultAssociatorNames(_cb, mi, cc, cr, cop,
+ assocClass, resultClass, role, resultRole);
+}
+
+static CMPIStatus ReferencedProfileReferences(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_PowerReferencedProfile";
+
+ return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass,
+ role, properties);
+}
+
+static CMPIStatus ReferencedProfileReferenceNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role)
+{
+ if (!assocClass)
+ assocClass = "Linux_PowerReferencedProfile";
+
+ return KDefaultReferenceNames(
+ _cb, mi, cc, cr, cop, assocClass, role);
+}
+
+CMInstanceMIStub(
+ ReferencedProfile,
+ ReferencedProfile,
+ _cb,
+ ReferencedProfileInitialize())
+
+CMAssociationMIStub(
+ ReferencedProfile,
+ ReferencedProfile,
+ _cb,
+ ReferencedProfileInitialize())
+
+KONKRET_REGISTRATION(
+ "root/cimv2",
+ "Linux_PowerReferencedProfile",
+ "ReferencedProfile",
+ "instance association");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-30 20:31:53
|
Revision: 801
http://omc.svn.sourceforge.net/omc/?rev=801&view=rev
Author: mike-brasher
Date: 2008-07-30 20:32:00 +0000 (Wed, 30 Jul 2008)
Log Message:
-----------
Implemented RegisteredProfile and ElementConforms to providers.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile-interop.mof
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.registration
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfileProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/linux-power-supply-profile.kon
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile-interop.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile-interop.mof 2008-07-30 20:20:11 UTC (rev 800)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile-interop.mof 2008-07-30 20:32:00 UTC (rev 801)
@@ -1,3 +1,18 @@
class Linux_PowerRegisteredProfile : CIM_RegisteredProfile
{
+
};
+
+[Association]
+class Linux_PowerElementConformsToProfile : CIM_ElementConformsToProfile
+{
+ [Key] Linux_PowerRegisteredProfile REF ConformantStandard;
+ [Key] Linux_PowerSupply REF ManagedElement;
+};
+
+[Association]
+class Linux_PowerReferencedProfile : CIM_ReferencedProfile
+{
+ [Key] CIM_RegisteredProfile REF Antecedent;
+ [Key] Linux_PowerRegisteredProfile REF Dependent;
+};
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.registration
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.registration 2008-07-30 20:20:11 UTC (rev 800)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.registration 2008-07-30 20:32:00 UTC (rev 801)
@@ -1 +1,10 @@
+Linux_PowerElementConformsToProfile root/interop ElementConformsToProfile linux_powersupplyprovider instance association
+Linux_PowerHostedCollection root/cimv2 HostedCollection linux_powersupplyprovider instance association
+Linux_PowerIsSpare root/cimv2 IsSpare linux_powersupplyprovider instance association
+Linux_PowerMemberOfCollection root/cimv2 MemberOfCollection linux_powersupplyprovider instance association
+Linux_PowerOwningCollectionElement root/cimv2 OwningCollectionElement linux_powersupplyprovider instance association
Linux_PowerSupply root/cimv2 PowerSupply linux_powersupplyprovider instance method
+Linux_PowerRedundancySet root/cimv2 RedundancySet linux_powersupplyprovider instance method
+Linux_PowerReferencedProfile root/cimv2 ReferencedProfile linux_powersupplyprovider instance association
+Linux_PowerRegisteredProfile root/interop RegisteredProfile linux_powersupplyprovider instance method
+Linux_PowerSystemDevice root/cimv2 SystemDevice linux_powersupplyprovider instance association
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am 2008-07-30 20:20:11 UTC (rev 800)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am 2008-07-30 20:32:00 UTC (rev 801)
@@ -8,6 +8,7 @@
CIM_ComputerSystem.h \
CIM_ConcreteJob.h \
CIM_Dependency.h \
+ CIM_ElementConformsToProfile.h \
CIM_EnabledLogicalElement.h \
CIM_HostedCollection.h \
CIM_HostedDependency.h \
@@ -22,12 +23,15 @@
CIM_PowerSource.h \
CIM_PowerSupply.h \
CIM_RedundancySet.h \
+ CIM_ReferencedProfile.h \
CIM_RegisteredProfile.h \
CIM_SystemComponent.h \
CIM_SystemDevice.h \
CIM_System.h \
CIM_SystemSpecificCollection.h \
ComputerSystem.h \
+ ElementConformsToProfile.h \
+ ElementConformsToProfileProvider.c \
HostedCollection.h \
HostedCollectionProvider.c \
IsSpare.h \
@@ -40,6 +44,8 @@
PowerSupplyProvider.c \
RedundancySet.h \
RedundancySetProvider.c \
+ ReferencedProfile.h \
+ ReferencedProfileProvider.c \
RegisteredProfile.h \
RegisteredProfileProvider.c \
Resource.c \
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfileProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfileProvider.c 2008-07-30 20:20:11 UTC (rev 800)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfileProvider.c 2008-07-30 20:32:00 UTC (rev 801)
@@ -132,7 +132,7 @@
RegisteredProfileInitialize())
KONKRET_REGISTRATION(
- "root/cimv2",
+ "root/interop",
"Linux_PowerRegisteredProfile",
"RegisteredProfile",
"instance method");
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/linux-power-supply-profile.kon
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/linux-power-supply-profile.kon 2008-07-30 20:20:11 UTC (rev 800)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/linux-power-supply-profile.kon 2008-07-30 20:32:00 UTC (rev 801)
@@ -13,3 +13,5 @@
Linux_PowerIsSpare=IsSpare!
Linux_PowerMemberOfCollection=MemberOfCollection!
Linux_PowerOwningCollectionElement=OwningCollectionElement!
+Linux_PowerElementConformsToProfile=ElementConformsToProfile!
+Linux_PowerReferencedProfile=ReferencedProfile!
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-30 20:20:04
|
Revision: 800
http://omc.svn.sourceforge.net/omc/?rev=800&view=rev
Author: mike-brasher
Date: 2008-07-30 20:20:11 +0000 (Wed, 30 Jul 2008)
Log Message:
-----------
Cleanup
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof
Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof 2008-07-30 20:19:01 UTC (rev 799)
+++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof 2008-07-30 20:20:11 UTC (rev 800)
@@ -1,4 +1,3 @@
-
class Linux_RegisteredProfileEthernetPort : CIM_RegisteredProfile
{
};
@@ -16,4 +15,3 @@
[Key] CIM_RegisteredProfile REF Antecedent;
[Key] Linux_RegisteredProfileEthernetPort REF Dependent;
};
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-30 20:18:57
|
Revision: 799
http://omc.svn.sourceforge.net/omc/?rev=799&view=rev
Author: mike-brasher
Date: 2008-07-30 20:19:01 +0000 (Wed, 30 Jul 2008)
Log Message:
-----------
Implemented complete set of profile providers.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile-interop.mof
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/RegisteredProfileProvider.c
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ElementConformsToProfile.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ReferencedProfile.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementConformsToProfile.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementConformsToProfileProvider.c
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ReferencedProfile.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ReferencedProfileProvider.c
Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile-interop.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile-interop.mof 2008-07-30 20:18:20 UTC (rev 798)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile-interop.mof 2008-07-30 20:19:01 UTC (rev 799)
@@ -1,3 +1,17 @@
class Linux_BootRegisteredProfile : CIM_RegisteredProfile
{
};
+
+[Association]
+class Linux_BootElementConformsToProfile : CIM_ElementConformsToProfile
+{
+ [Key] Linux_BootRegisteredProfile REF ConformantStandard;
+ [Key] Linux_BootService REF ManagedElement;
+};
+
+[Association]
+class Linux_BootReferencedProfile : CIM_ReferencedProfile
+{
+ [Key] CIM_RegisteredProfile REF Antecedent;
+ [Key] Linux_BootRegisteredProfile REF Dependent;
+};
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ElementConformsToProfile.h
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ElementConformsToProfile.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ElementConformsToProfile.h 2008-07-30 20:19:01 UTC (rev 799)
@@ -0,0 +1,384 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_ElementConformsToProfile_h
+#define _konkrete_CIM_ElementConformsToProfile_h
+
+#include <konkret/konkret.h>
+#include "CIM_RegisteredProfile.h"
+#include "CIM_ManagedElement.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_ElementConformsToProfileRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ElementConformsToProfile */
+typedef struct _CIM_ElementConformsToProfileRef
+{
+ KBase __base;
+ /* CIM_ElementConformsToProfile features */
+ const KRef ConformantStandard; /* CIM_RegisteredProfile */
+ const KRef ManagedElement; /* CIM_ManagedElement */
+}
+CIM_ElementConformsToProfileRef;
+
+static const unsigned char __CIM_ElementConformsToProfileRef_sig[] =
+{
+ 0x1c,0x43,0x49,0x4d,0x5f,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x43,0x6f,0x6e,
+ 0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,
+ 0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x74,0x53,0x74,
+ 0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,
+ 0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ElementConformsToProfileRef_Init(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ElementConformsToProfileRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ConformantStandard)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->ManagedElement)->__sig = __CIM_ManagedElement_sig;
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfileRef_InitFromInstance(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ElementConformsToProfileRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfileRef_InitFromObjectPath(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ElementConformsToProfileRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Print(
+ const CIM_ElementConformsToProfileRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ElementConformsToProfileRef_ToInstance(
+ const CIM_ElementConformsToProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ElementConformsToProfileRef_ToObjectPath(
+ const CIM_ElementConformsToProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ElementConformsToProfileRef_NameSpace(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_SetObjectPath_ConformantStandard(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfileRef_Set_ConformantStandard(
+ CIM_ElementConformsToProfileRef* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Null_ConformantStandard(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Clr_ConformantStandard(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_SetObjectPath_ManagedElement(
+ CIM_ElementConformsToProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfileRef_Set_ManagedElement(
+ CIM_ElementConformsToProfileRef* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Null_ManagedElement(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfileRef_Clr_ManagedElement(
+ CIM_ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_ElementConformsToProfile
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ElementConformsToProfile */
+typedef struct _CIM_ElementConformsToProfile
+{
+ KBase __base;
+ /* CIM_ElementConformsToProfile features */
+ const KRef ConformantStandard; /* CIM_RegisteredProfile */
+ const KRef ManagedElement; /* CIM_ManagedElement */
+}
+CIM_ElementConformsToProfile;
+
+static const unsigned char __CIM_ElementConformsToProfile_sig[] =
+{
+ 0x1c,0x43,0x49,0x4d,0x5f,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x43,0x6f,0x6e,
+ 0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,
+ 0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x74,0x53,0x74,
+ 0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,
+ 0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ElementConformsToProfile_Init(
+ CIM_ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ElementConformsToProfile_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ConformantStandard)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->ManagedElement)->__sig = __CIM_ManagedElement_sig;
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_InitFromInstance(
+ CIM_ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ElementConformsToProfile_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_InitFromObjectPath(
+ CIM_ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ElementConformsToProfile_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ElementConformsToProfile_Print(
+ const CIM_ElementConformsToProfile* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_ElementConformsToProfile_ToInstance(
+ const CIM_ElementConformsToProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ElementConformsToProfile_ToObjectPath(
+ const CIM_ElementConformsToProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ElementConformsToProfile_NameSpace(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ElementConformsToProfile_SetObjectPath_ConformantStandard(
+ CIM_ElementConformsToProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_Set_ConformantStandard(
+ CIM_ElementConformsToProfile* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementConformsToProfile_Null_ConformantStandard(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfile_Clr_ConformantStandard(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfile_SetObjectPath_ManagedElement(
+ CIM_ElementConformsToProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_Set_ManagedElement(
+ CIM_ElementConformsToProfile* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementConformsToProfile_Null_ManagedElement(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementConformsToProfile_Clr_ManagedElement(
+ CIM_ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** CIM_ElementConformsToProfile methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_ElementConformsToProfile_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_ElementConformsToProfileRef self;
+
+ KReturnIf(CIM_ElementConformsToProfileRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_ElementConformsToProfile_h */
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ReferencedProfile.h
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ReferencedProfile.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ReferencedProfile.h 2008-07-30 20:19:01 UTC (rev 799)
@@ -0,0 +1,383 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_ReferencedProfile_h
+#define _konkrete_CIM_ReferencedProfile_h
+
+#include <konkret/konkret.h>
+#include "CIM_RegisteredProfile.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_ReferencedProfileRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ReferencedProfile */
+typedef struct _CIM_ReferencedProfileRef
+{
+ KBase __base;
+ /* CIM_Dependency features */
+ const KRef Antecedent; /* CIM_RegisteredProfile */
+ const KRef Dependent; /* CIM_RegisteredProfile */
+ /* CIM_ReferencedProfile features */
+}
+CIM_ReferencedProfileRef;
+
+static const unsigned char __CIM_ReferencedProfileRef_sig[] =
+{
+ 0x15,0x43,0x49,0x4d,0x5f,0x52,0x65,0x66,0x65,0x72,0x65,0x6e,0x63,0x65,0x64,
+ 0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x0a,0x41,0x6e,0x74,0x65,
+ 0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,0x44,0x65,0x70,0x65,0x6e,0x64,
+ 0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ReferencedProfileRef_Init(
+ CIM_ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ReferencedProfileRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->Dependent)->__sig = __CIM_RegisteredProfile_sig;
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfileRef_InitFromInstance(
+ CIM_ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ReferencedProfileRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfileRef_InitFromObjectPath(
+ CIM_ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ReferencedProfileRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ReferencedProfileRef_Print(
+ const CIM_ReferencedProfileRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ReferencedProfileRef_ToInstance(
+ const CIM_ReferencedProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ReferencedProfileRef_ToObjectPath(
+ const CIM_ReferencedProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ReferencedProfileRef_NameSpace(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ReferencedProfileRef_SetObjectPath_Antecedent(
+ CIM_ReferencedProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfileRef_Set_Antecedent(
+ CIM_ReferencedProfileRef* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ReferencedProfileRef_Null_Antecedent(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfileRef_Clr_Antecedent(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfileRef_SetObjectPath_Dependent(
+ CIM_ReferencedProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfileRef_Set_Dependent(
+ CIM_ReferencedProfileRef* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ReferencedProfileRef_Null_Dependent(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfileRef_Clr_Dependent(
+ CIM_ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_ReferencedProfile
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ReferencedProfile */
+typedef struct _CIM_ReferencedProfile
+{
+ KBase __base;
+ /* CIM_Dependency features */
+ const KRef Antecedent; /* CIM_RegisteredProfile */
+ const KRef Dependent; /* CIM_RegisteredProfile */
+ /* CIM_ReferencedProfile features */
+}
+CIM_ReferencedProfile;
+
+static const unsigned char __CIM_ReferencedProfile_sig[] =
+{
+ 0x15,0x43,0x49,0x4d,0x5f,0x52,0x65,0x66,0x65,0x72,0x65,0x6e,0x63,0x65,0x64,
+ 0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x0a,0x41,0x6e,0x74,0x65,
+ 0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,0x44,0x65,0x70,0x65,0x6e,0x64,
+ 0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ReferencedProfile_Init(
+ CIM_ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ReferencedProfile_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->Dependent)->__sig = __CIM_RegisteredProfile_sig;
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfile_InitFromInstance(
+ CIM_ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ReferencedProfile_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfile_InitFromObjectPath(
+ CIM_ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ReferencedProfile_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ReferencedProfile_Print(
+ const CIM_ReferencedProfile* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_ReferencedProfile_ToInstance(
+ const CIM_ReferencedProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ReferencedProfile_ToObjectPath(
+ const CIM_ReferencedProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ReferencedProfile_NameSpace(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ReferencedProfile_SetObjectPath_Antecedent(
+ CIM_ReferencedProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfile_Set_Antecedent(
+ CIM_ReferencedProfile* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ReferencedProfile_Null_Antecedent(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfile_Clr_Antecedent(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfile_SetObjectPath_Dependent(
+ CIM_ReferencedProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ReferencedProfile_Set_Dependent(
+ CIM_ReferencedProfile* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ReferencedProfile_Null_Dependent(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ReferencedProfile_Clr_Dependent(
+ CIM_ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** CIM_ReferencedProfile methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_ReferencedProfile_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_ReferencedProfileRef self;
+
+ KReturnIf(CIM_ReferencedProfileRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_ReferencedProfile_h */
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementConformsToProfile.h
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementConformsToProfile.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementConformsToProfile.h 2008-07-30 20:19:01 UTC (rev 799)
@@ -0,0 +1,386 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_ElementConformsToProfile_h
+#define _konkrete_ElementConformsToProfile_h
+
+#include <konkret/konkret.h>
+#include "RegisteredProfile.h"
+#include "BootService.h"
+
+/*
+**==============================================================================
+**
+** struct ElementConformsToProfileRef
+**
+**==============================================================================
+*/
+
+/* classname=Linux_BootElementConformsToProfile */
+typedef struct _ElementConformsToProfileRef
+{
+ KBase __base;
+ /* CIM_ElementConformsToProfile features */
+ const KRef ConformantStandard; /* RegisteredProfile */
+ const KRef ManagedElement; /* BootService */
+ /* Linux_BootElementConformsToProfile features */
+}
+ElementConformsToProfileRef;
+
+static const unsigned char __ElementConformsToProfileRef_sig[] =
+{
+ 0x22,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x45,0x6c,0x65,0x6d,
+ 0x65,0x6e,0x74,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,0x72,
+ 0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,0x72,
+ 0x6d,0x61,0x6e,0x74,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,0x0e,
+ 0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void ElementConformsToProfileRef_Init(
+ ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ElementConformsToProfileRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ConformantStandard)->__sig = __RegisteredProfile_sig;
+ ((KRef*)&self->ManagedElement)->__sig = __BootService_sig;
+}
+
+KINLINE CMPIStatus ElementConformsToProfileRef_InitFromInstance(
+ ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ElementConformsToProfileRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ElementConformsToProfileRef_InitFromObjectPath(
+ ElementConformsToProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ElementConformsToProfileRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ElementConformsToProfileRef_Print(
+ const ElementConformsToProfileRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* ElementConformsToProfileRef_ToInstance(
+ const ElementConformsToProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ElementConformsToProfileRef_ToObjectPath(
+ const ElementConformsToProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ElementConformsToProfileRef_NameSpace(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ElementConformsToProfileRef_SetObjectPath_ConformantStandard(
+ ElementConformsToProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementConformsToProfileRef_Set_ConformantStandard(
+ ElementConformsToProfileRef* self,
+ const RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementConformsToProfileRef_Null_ConformantStandard(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementConformsToProfileRef_Clr_ConformantStandard(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ElementConformsToProfileRef_SetObjectPath_ManagedElement(
+ ElementConformsToProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementConformsToProfileRef_Set_ManagedElement(
+ ElementConformsToProfileRef* self,
+ const BootServiceRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementConformsToProfileRef_Null_ManagedElement(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementConformsToProfileRef_Clr_ManagedElement(
+ ElementConformsToProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct ElementConformsToProfile
+**
+**==============================================================================
+*/
+
+/* classname=Linux_BootElementConformsToProfile */
+typedef struct _ElementConformsToProfile
+{
+ KBase __base;
+ /* CIM_ElementConformsToProfile features */
+ const KRef ConformantStandard; /* RegisteredProfile */
+ const KRef ManagedElement; /* BootService */
+ /* Linux_BootElementConformsToProfile features */
+}
+ElementConformsToProfile;
+
+static const unsigned char __ElementConformsToProfile_sig[] =
+{
+ 0x22,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x45,0x6c,0x65,0x6d,
+ 0x65,0x6e,0x74,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,0x72,
+ 0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,0x72,
+ 0x6d,0x61,0x6e,0x74,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,0x0e,
+ 0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void ElementConformsToProfile_Init(
+ ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ElementConformsToProfile_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ConformantStandard)->__sig = __RegisteredProfile_sig;
+ ((KRef*)&self->ManagedElement)->__sig = __BootService_sig;
+}
+
+KINLINE CMPIStatus ElementConformsToProfile_InitFromInstance(
+ ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ElementConformsToProfile_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ElementConformsToProfile_InitFromObjectPath(
+ ElementConformsToProfile* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ElementConformsToProfile_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ElementConformsToProfile_Print(
+ const ElementConformsToProfile* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* ElementConformsToProfile_ToInstance(
+ const ElementConformsToProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ElementConformsToProfile_ToObjectPath(
+ const ElementConformsToProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ElementConformsToProfile_NameSpace(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ElementConformsToProfile_SetObjectPath_ConformantStandard(
+ ElementConformsToProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementConformsToProfile_Set_ConformantStandard(
+ ElementConformsToProfile* self,
+ const RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementConformsToProfile_Null_ConformantStandard(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementConformsToProfile_Clr_ConformantStandard(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ConformantStandard;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ElementConformsToProfile_SetObjectPath_ManagedElement(
+ ElementConformsToProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementConformsToProfile_Set_ManagedElement(
+ ElementConformsToProfile* self,
+ const BootServiceRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementConformsToProfile_Null_ManagedElement(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementConformsToProfile_Clr_ManagedElement(
+ ElementConformsToProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** ElementConformsToProfile methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus ElementConformsToProfile_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ ElementConformsToProfileRef self;
+
+ KReturnIf(ElementConformsToProfileRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_ElementConformsToProfile_h */
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementConformsToProfileProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementConformsToProfileProvider.c (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-30 20:19:01 UTC (rev 799)
@@ -0,0 +1,197 @@
+#include <konkret/konkret.h>
+#include "ElementConformsToProfile.h"
+#include "Resource.h"
+
+static const CMPIBroker* _cb;
+
+static void ElementConformsToProfileInitialize()
+{
+}
+
+static CMPIStatus ElementConformsToProfileCleanup(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ElementConformsToProfileEnumInstanceNames(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ return KDefaultEnumerateInstanceNames(
+ _cb, mi, cc, cr, cop);
+}
+
+static CMPIStatus ElementConformsToProfileEnumInstances(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ const char* ns = KNameSpace(cop);
+ RegisteredProfileRef cs;
+
+ /* Linux_SSHRegisteredProfile.ConformantStandard */
+ RegisteredProfileRef_Init(&cs, _cb, ns);
+ RegisteredProfileRef_Set_InstanceID(&cs, "SBLIM:Boot_Control");
+
+ /* Associate with every instance of Linux_SSHProtocolService */
+ return KDefaultEnumerateInstancesOneToAll(
+ _cb,
+ cc,
+ cr,
+ cop,
+ RegisteredProfileRef_ToObjectPath(&cs, NULL),
+ "ConformantStandard",
+ CMNewObjectPath(_cb, NAMESPACE, "Linux_BootService", NULL),
+ "ManagedElement");
+}
+
+static CMPIStatus ElementConformsToProfileGetInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ return KDefaultGetInstance(
+ _cb, mi, cc, cr, cop, properties);
+}
+
+static CMPIStatus ElementConformsToProfileCreateInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementConformsToProfileModifyInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci,
+ const char**properties)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementConformsToProfileDeleteInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementConformsToProfileExecQuery(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* lang,
+ const char* query)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementConformsToProfileAssociationCleanup(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ElementConformsToProfileAssociators(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootElementConformsToProfile";
+
+ return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass,
+ resultClass, role, resultRole, properties);
+}
+
+static CMPIStatus ElementConformsToProfileAssociatorNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootElementConformsToProfile";
+
+ return KDefaultAssociatorNames(_cb, mi, cc, cr, cop,
+ assocClass, resultClass, role, resultRole);
+}
+
+static CMPIStatus ElementConformsToProfileReferences(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootElementConformsToProfile";
+
+ return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass,
+ role, properties);
+}
+
+static CMPIStatus ElementConformsToProfileReferenceNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootElementConformsToProfile";
+
+ return KDefaultReferenceNames(
+ _cb, mi, cc, cr, cop, assocClass, role);
+}
+
+CMInstanceMIStub(
+ ElementConformsToProfile,
+ ElementConformsToProfile,
+ _cb,
+ ElementConformsToProfileInitialize())
+
+CMAssociationMIStub(
+ ElementConformsToProfile,
+ ElementConformsToProfile,
+ _cb,
+ ElementConformsToProfileInitialize())
+
+KONKRET_REGISTRATION(
+ "root/interop",
+ "Linux_BootElementConformsToProfile",
+ "ElementConformsToProfile",
+ "instance association");
Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am 2008-07-30 20:18:20 UTC (rev 798)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am 2008-07-30 20:19:01 UTC (rev 799)
@@ -12,6 +12,7 @@
CIM_ComputerSystem.h \
CIM_ConcreteJob.h \
CIM_Dependency.h \
+ CIM_ElementConformsToProfile.h \
CIM_ElementSettingData.h \
CIM_EnabledLogicalElement.h \
CIM_HostedDependency.h \
@@ -21,6 +22,7 @@
CIM_ManagedElement.h \
CIM_ManagedSystemElement.h \
CIM_OrderedComponent.h \
+ CIM_ReferencedProfile.h \
CIM_RegisteredProfile.h \
CIM_ServiceAffectsElement.h \
CIM_Service.h \
@@ -29,6 +31,8 @@
ComputerSystem.h \
ConfigSetting.h \
ConfigSettingProvider.c \
+ ElementConformsToProfile.h \
+ ElementConformsToProfileProvider.c \
ElementSettingData.h \
ElementSettingDataProvider.c \
HostedService.h \
@@ -36,6 +40,8 @@
Linux_BootSourceSetting.h \
OrderedComponent.h \
OrderedComponentProvider.c \
+ ReferencedProfile.h \
+ ReferencedProfileProvider.c \
RegisteredProfile.h \
RegisteredProfileProvider.c \
Resource.c \
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ReferencedProfile.h
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ReferencedProfile.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ReferencedProfile.h 2008-07-30 20:19:01 UTC (rev 799)
@@ -0,0 +1,386 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_ReferencedProfile_h
+#define _konkrete_ReferencedProfile_h
+
+#include <konkret/konkret.h>
+#include "CIM_RegisteredProfile.h"
+#include "RegisteredProfile.h"
+
+/*
+**==============================================================================
+**
+** struct ReferencedProfileRef
+**
+**==============================================================================
+*/
+
+/* classname=Linux_BootReferencedProfile */
+typedef struct _ReferencedProfileRef
+{
+ KBase __base;
+ /* CIM_Dependency features */
+ const KRef Antecedent; /* CIM_RegisteredProfile */
+ const KRef Dependent; /* RegisteredProfile */
+ /* CIM_ReferencedProfile features */
+ /* Linux_BootReferencedProfile features */
+}
+ReferencedProfileRef;
+
+static const unsigned char __ReferencedProfileRef_sig[] =
+{
+ 0x1b,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x52,0x65,0x66,0x65,
+ 0x72,0x65,0x6e,0x63,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,
+ 0x4e,0x0a,0x41,0x6e,0x74,0x65,0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,
+ 0x44,0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void ReferencedProfileRef_Init(
+ ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ReferencedProfileRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->Dependent)->__sig = __RegisteredProfile_sig;
+}
+
+KINLINE CMPIStatus ReferencedProfileRef_InitFromInstance(
+ ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ReferencedProfileRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ReferencedProfileRef_InitFromObjectPath(
+ ReferencedProfileRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ReferencedProfileRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ReferencedProfileRef_Print(
+ const ReferencedProfileRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* ReferencedProfileRef_ToInstance(
+ const ReferencedProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ReferencedProfileRef_ToObjectPath(
+ const ReferencedProfileRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ReferencedProfileRef_NameSpace(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ReferencedProfileRef_SetObjectPath_Antecedent(
+ ReferencedProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ReferencedProfileRef_Set_Antecedent(
+ ReferencedProfileRef* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ReferencedProfileRef_Null_Antecedent(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ReferencedProfileRef_Clr_Antecedent(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ReferencedProfileRef_SetObjectPath_Dependent(
+ ReferencedProfileRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ReferencedProfileRef_Set_Dependent(
+ ReferencedProfileRef* self,
+ const RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ReferencedProfileRef_Null_Dependent(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ReferencedProfileRef_Clr_Dependent(
+ ReferencedProfileRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct ReferencedProfile
+**
+**==============================================================================
+*/
+
+/* classname=Linux_BootReferencedProfile */
+typedef struct _ReferencedProfile
+{
+ KBase __base;
+ /* CIM_Dependency features */
+ const KRef Antecedent; /* CIM_RegisteredProfile */
+ const KRef Dependent; /* RegisteredProfile */
+ /* CIM_ReferencedProfile features */
+ /* Linux_BootReferencedProfile features */
+}
+ReferencedProfile;
+
+static const unsigned char __ReferencedProfile_sig[] =
+{
+ 0x1b,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x52,0x65,0x66,0x65,
+ 0x72,0x65,0x6e,0x63,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,
+ 0x4e,0x0a,0x41,0x6e,0x74,0x65,0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,
+ 0x44,0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void ReferencedProfile_Init(
+ ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ReferencedProfile_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig;
+ ((KRef*)&self->Dependent)->__sig = __RegisteredProfile_sig;
+}
+
+KINLINE CMPIStatus ReferencedProfile_InitFromInstance(
+ ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ReferencedProfile_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ReferencedProfile_InitFromObjectPath(
+ ReferencedProfile* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ReferencedProfile_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ReferencedProfile_Print(
+ const ReferencedProfile* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* ReferencedProfile_ToInstance(
+ const ReferencedProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ReferencedProfile_ToObjectPath(
+ const ReferencedProfile* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ReferencedProfile_NameSpace(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ReferencedProfile_SetObjectPath_Antecedent(
+ ReferencedProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ReferencedProfile_Set_Antecedent(
+ ReferencedProfile* self,
+ const CIM_RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ReferencedProfile_Null_Antecedent(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ReferencedProfile_Clr_Antecedent(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Antecedent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ReferencedProfile_SetObjectPath_Dependent(
+ ReferencedProfile* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ReferencedProfile_Set_Dependent(
+ ReferencedProfile* self,
+ const RegisteredProfileRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ReferencedProfile_Null_Dependent(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ReferencedProfile_Clr_Dependent(
+ ReferencedProfile* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->Dependent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** ReferencedProfile methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus ReferencedProfile_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ ReferencedProfileRef self;
+
+ KReturnIf(ReferencedProfileRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_ReferencedProfile_h */
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ReferencedProfileProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ReferencedProfileProvider.c (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ReferencedProfileProvider.c 2008-07-30 20:19:01 UTC (rev 799)
@@ -0,0 +1,201 @@
+#include <konkret/konkret.h>
+#include "ReferencedProfile.h"
+
+static const CMPIBroker* _cb;
+
+static void ReferencedProfileInitialize()
+{
+}
+
+static CMPIStatus ReferencedProfileCleanup(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ReferencedProfileEnumInstanceNames(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ return KDefaultEnumerateInstanceNames(
+ _cb, mi, cc, cr, cop);
+}
+
+static CMPIStatus ReferencedProfileEnumInstances(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ const char* ns = KNameSpace(cop);
+ ReferencedProfile x;
+ CIM_RegisteredProfileRef a;
+ RegisteredProfileRef d;
+
+ /* Linux_RegisteredProfileComputerSystem.Antecedent */
+ CIM_RegisteredProfileRef_Init(&a, _cb, ns);
+ CIM_RegisteredProfileRef_Set_InstanceID(&a,"SBLIM:Base_Computer");
+
+ /* Linux_SSHRegisteredProfile.Dependent */
+ RegisteredProfileRef_Init(&d, _cb, ns);
+ RegisteredProfileRef_Set_InstanceID(&d, "SBLIM:Boot_Control");
+
+ /* Linux_FanReferencedProfile */
+ ReferencedProfile_Init(&x, _cb, ns);
+ ReferencedProfile_Set_Antecedent(&x, &a);
+ ReferencedProfile_Set_Dependent(&x, &d);
+
+ /* Return instance */
+ KReturnInstance(cr, x);
+
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ReferencedProfileGetInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ return KDefaultGetInstance(
+ _cb, mi, cc, cr, cop, properties);
+}
+
+static CMPIStatus ReferencedProfileCreateInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ReferencedProfileModifyInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci,
+ const char**properties)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ReferencedProfileDeleteInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ReferencedProfileExecQuery(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* lang,
+ const char* query)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ReferencedProfileAssociationCleanup(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ReferencedProfileAssociators(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootReferencedProfile";
+
+ return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass,
+ resultClass, role, resultRole, properties);
+}
+
+static CMPIStatus ReferencedProfileAssociatorNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootReferencedProfile";
+
+ return KDefaultAssociatorNames(_cb, mi, cc, cr, cop,
+ assocClass, resultClass, role, resultRole);
+}
+
+static CMPIStatus ReferencedProfileReferences(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootReferencedProfile";
+
+ return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass,
+ role, properties);
+}
+
+static CMPIStatus ReferencedProfileReferenceNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootReferencedProfile";
+
+ return KDefaultReferenceNames(
+ _cb, mi, cc, cr, cop, assocClass, role);
+}
+
+CMInstanceMIStub(
+ ReferencedProfile,
+ ReferencedProfile,
+ _cb,
+ ReferencedProfileInitialize())
+
+CMAssociationMIStub(
+ ReferencedProfile,
+ ReferencedProfile,
+ _cb,
+ ReferencedProfileInitialize())
+
+KONKRET_REGISTRATION(
+ "root/interop",
+ "Linux_BootReferencedProfile",
+ "ReferencedProfile",
+ "instance association");
Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/RegisteredProfileProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/RegisteredProfileProvider.c 2008-07-30 20:18:20 UTC (rev 798)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/RegisteredProfileProvider.c 2008-07-30 20:19:01 UTC (rev 799)
@@ -35,9 +35,9 @@
RegisteredProfile x;
RegisteredProfile_Init(&x, _cb, KNameSpace(cop));
- RegisteredProfile_Set_InstanceID(&x, "SBLIM:Boot_Service");
+ RegisteredProfile_Set_InstanceID(&x, "SBLIM:Boot_Control");
...
[truncated message content] |
|
From: <mik...@us...> - 2008-07-30 20:18:22
|
Revision: 798
http://omc.svn.sourceforge.net/omc/?rev=798&view=rev
Author: mike-brasher
Date: 2008-07-30 20:18:20 +0000 (Wed, 30 Jul 2008)
Log Message:
-----------
Moved profile related providers to propert namespace (root/interop).
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration
cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfileProvider.c
cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ReferencedProfileProvider.c
Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration
===================================================================
--- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-29 23:21:04 UTC (rev 797)
+++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-30 20:18:20 UTC (rev 798)
@@ -1,10 +1,10 @@
Linux_SSHCapabilities root/cimv2 Capabilities linux_sshserviceprovider instance method
Linux_SSHElementCapabilities root/cimv2 ElementCapabilities linux_sshserviceprovider instance association
-Linux_SSHElementConformsToProfile root/cimv2 ElementConformsToProfile linux_sshserviceprovider instance association
+Linux_SSHElementConformsToProfile root/interop ElementConformsToProfile linux_sshserviceprovider instance association
Linux_SSHHostedAccessPoint root/cimv2 HostedAccessPoint linux_sshserviceprovider instance association
Linux_SSHHostedService root/cimv2 HostedService linux_sshserviceprovider instance association
Linux_SSHProtocolEndpoint root/cimv2 ProtocolEndpoint linux_sshserviceprovider instance method
Linux_SSHProtocolService root/cimv2 ProtocolService linux_sshserviceprovider instance method
Linux_SSHProvidesEndpoint root/cimv2 ProvidesEndpoint linux_sshserviceprovider instance association
-Linux_SSHReferencedProfile root/cimv2 ReferencedProfile linux_sshserviceprovider instance association
+Linux_SSHReferencedProfile root/interop ReferencedProfile linux_sshserviceprovider instance association
Linux_SSHRegisteredProfile root/interop RegisteredProfile linux_sshserviceprovider instance method
Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfileProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-29 23:21:04 UTC (rev 797)
+++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-30 20:18:20 UTC (rev 798)
@@ -191,7 +191,7 @@
ElementConformsToProfileInitialize())
KONKRET_REGISTRATION(
- "root/cimv2",
+ "root/interop",
"Linux_SSHElementConformsToProfile",
"ElementConformsToProfile",
"instance association");
Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ReferencedProfileProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ReferencedProfileProvider.c 2008-07-29 23:21:04 UTC (rev 797)
+++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ReferencedProfileProvider.c 2008-07-30 20:18:20 UTC (rev 798)
@@ -195,7 +195,7 @@
ReferencedProfileInitialize())
KONKRET_REGISTRATION(
- "root/cimv2",
+ "root/interop",
"Linux_SSHReferencedProfile",
"ReferencedProfile",
"instance association");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-29 23:20:56
|
Revision: 797
http://omc.svn.sourceforge.net/omc/?rev=797&view=rev
Author: mike-brasher
Date: 2008-07-29 23:21:04 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Updatee licensing.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-fan_profile/trunk/COPYING
Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/COPYING
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/COPYING 2008-07-29 23:19:15 UTC (rev 796)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/COPYING 2008-07-29 23:21:04 UTC (rev 797)
@@ -0,0 +1,18 @@
+SBLIM work within the OMC project is primarily constrained by EPL License.
+
+Please pay attention to the license for each file.
+
+
+Notice for Projects/Files Released Under the EPL License
+
+/******************************************************************************
+* Copyright (c) 2008, Novell, Inc. All rights reserved.
+*
+* This file is provided under the terms of the Eclipse Public License v1.0
+* ("Agreement"). Any use, reproduction or distribution of this file
+* constitutes recipient's acceptance of the agreement.
+*
+* You can obtain a current copy of the Eclipse Public License from
+* http://www.opensource.org/licenses/eclipse-1.0.php
+*
+******************************************************************************/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-29 23:19:06
|
Revision: 796
http://omc.svn.sourceforge.net/omc/?rev=796&view=rev
Author: mike-brasher
Date: 2008-07-29 23:19:15 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Implemented registered profile provider
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfileProvider.c
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfileProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfileProvider.c 2008-07-29 23:15:02 UTC (rev 795)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfileProvider.c 2008-07-29 23:19:15 UTC (rev 796)
@@ -32,6 +32,17 @@
const CMPIObjectPath* cop,
const char** properties)
{
+ RegisteredProfile x;
+
+ RegisteredProfile_Init(&x, _cb, KNameSpace(cop));
+ RegisteredProfile_Set_InstanceID(&x, "SBLIM:PowerSupply");
+ RegisteredProfile_Set_RegisteredOrganization_DMTF(&x);
+ RegisteredProfile_Set_RegisteredName(&x, "PowerSupply");
+ RegisteredProfile_Set_RegisteredVersion(&x, "1.0");
+ RegisteredProfile_Init_AdvertiseTypes(&x, 1);
+ RegisteredProfile_Set_AdvertiseTypes_SLP(&x, 0);
+ KReturnInstance(cr, x);
+
CMReturn(CMPI_RC_OK);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-29 23:14:54
|
Revision: 795
http://omc.svn.sourceforge.net/omc/?rev=795&view=rev
Author: mike-brasher
Date: 2008-07-29 23:15:02 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Implemented redundancy set oriented providers.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/HostedCollectionProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/IsSpareProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/MemberOfCollectionProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/OwningCollectionElementProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RedundancySetProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/SystemDeviceProvider.c
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/HostedCollectionProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/HostedCollectionProvider.c 2008-07-29 23:14:15 UTC (rev 794)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/HostedCollectionProvider.c 2008-07-29 23:15:02 UTC (rev 795)
@@ -1,5 +1,7 @@
#include <konkret/konkret.h>
+#include "ComputerSystem.h"
#include "HostedCollection.h"
+#include "Resource.h"
static const CMPIBroker* _cb;
@@ -32,6 +34,47 @@
const CMPIObjectPath* cop,
const char** properties)
{
+ const char* ns = KNameSpace(cop);
+ struct RedundancyInfo* data;
+ size_t size;
+ size_t i;
+
+ /* Get redundancy resource data */
+ if (GetRedundancyInfo(&data, &size) != 0)
+ KReturn2(_cb, ERR_FAILED, "failed to access power supply resources");
+
+ /* For each redundancy */
+ for (i = 0; i < size; i++)
+ {
+ HostedCollection x;
+ ComputerSystemRef a;
+ RedundancySetRef d;
+
+ /* Skip if this redundancy element has same id as last */
+ if (i && strcmp(data[i].instanceID, data[i-1].instanceID) == 0)
+ continue;
+
+ /* HostedCollection.Antecedent */
+ ComputerSystemRef_Init(&a, _cb, ns);
+ ComputerSystemRef_Set_CreationClassName(&a, "Linux_ComputerSystem");
+ ComputerSystemRef_Set_Name(&a, SysName().str);
+
+ /* HostedCollection.Dependent */
+ RedundancySetRef_Init(&d, _cb, ns);
+ RedundancySetRef_Set_InstanceID(&d, data[i].instanceID);
+
+ /* HostedCollection */
+ HostedCollection_Init(&x, _cb, ns);
+ HostedCollection_Set_Antecedent(&x, &a);
+ HostedCollection_Set_Dependent(&x, &d);
+
+ /* Return this instance */
+ KReturnInstance(cr, x);
+ }
+
+ /* Release redundancy info array */
+ free(data);
+
CMReturn(CMPI_RC_OK);
}
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/IsSpareProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/IsSpareProvider.c 2008-07-29 23:14:15 UTC (rev 794)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/IsSpareProvider.c 2008-07-29 23:15:02 UTC (rev 795)
@@ -1,5 +1,6 @@
#include <konkret/konkret.h>
#include "IsSpare.h"
+#include "Resource.h"
static const CMPIBroker* _cb;
@@ -32,6 +33,48 @@
const CMPIObjectPath* cop,
const char** properties)
{
+ const char* ns = KNameSpace(cop);
+ struct RedundancyInfo* data;
+ size_t size;
+ size_t i;
+
+ /* Get redundancy resource data */
+ if (GetRedundancyInfo(&data, &size) != 0)
+ KReturn2(_cb, ERR_FAILED, "failed to access power supply resource");
+
+ /* For each redundancy */
+ for (i = 0; i < size; i++)
+ {
+ IsSpare x;
+ PowerSupplyRef a; /* Antecedent */
+ RedundancySetRef d; /* Dependent */
+
+ if (!data[i].isSpare)
+ continue;
+
+ /* Linux_PowerSupplyIsSpare.Antecedent */
+ PowerSupplyRef_Init(&a, _cb, ns);
+ PowerSupplyRef_Set_SystemCreationClassName(&a, SysClassName().str);
+ PowerSupplyRef_Set_SystemName(&a, SysName().str);
+ PowerSupplyRef_Set_CreationClassName(&a, "Linux_PowerSupply");
+ PowerSupplyRef_Set_DeviceID(&a, data[i].deviceID);
+
+ /* Linux_PowerSupplyIsSpare.Dependent */
+ RedundancySetRef_Init(&d, _cb, ns);
+ RedundancySetRef_Set_InstanceID(&d, data[i].instanceID);
+
+ /* Linux_PowerSupplyIsSpare */
+ IsSpare_Init(&x, _cb, ns);
+ IsSpare_Set_Antecedent(&x, &a);
+ IsSpare_Set_Dependent(&x, &d);
+
+ /* Return this instance */
+ KReturnInstance(cr, x);
+ }
+
+ /* Release redundancy info array */
+ free(data);
+
CMReturn(CMPI_RC_OK);
}
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am 2008-07-29 23:14:15 UTC (rev 794)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am 2008-07-29 23:15:02 UTC (rev 795)
@@ -42,10 +42,10 @@
RedundancySetProvider.c \
RegisteredProfile.h \
RegisteredProfileProvider.c \
+ Resource.c \
Resource.h \
SystemDevice.h \
- SystemDeviceProvider.c \
- Resource.c
+ SystemDeviceProvider.c
liblinux_powersupplyprovider_la_LDFLAGS = \
-lkonkret \
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/MemberOfCollectionProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/MemberOfCollectionProvider.c 2008-07-29 23:14:15 UTC (rev 794)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/MemberOfCollectionProvider.c 2008-07-29 23:15:02 UTC (rev 795)
@@ -1,5 +1,6 @@
#include <konkret/konkret.h>
#include "MemberOfCollection.h"
+#include "Resource.h"
static const CMPIBroker* _cb;
@@ -32,6 +33,45 @@
const CMPIObjectPath* cop,
const char** properties)
{
+ const char* ns = KNameSpace(cop);
+ struct RedundancyInfo* data;
+ size_t size;
+ size_t i;
+
+ /* Get redundancy resource data */
+ if (GetRedundancyInfo(&data, &size) != 0)
+ KReturn2(_cb, ERR_FAILED, "failed to access power supply resource");
+
+ /* For each redundancy */
+ for (i = 0; i < size; i++)
+ {
+ MemberOfCollection x;
+ PowerSupplyRef m; /* Member */
+ RedundancySetRef c; /* Collection */
+
+ /* Linux_PowerSupplyIsSpare.Antecedent */
+ PowerSupplyRef_Init(&m, _cb, ns);
+ PowerSupplyRef_Set_SystemCreationClassName(&m, SysClassName().str);
+ PowerSupplyRef_Set_SystemName(&m, SysName().str);
+ PowerSupplyRef_Set_CreationClassName(&m, "Linux_PowerSupply");
+ PowerSupplyRef_Set_DeviceID(&m, data[i].deviceID);
+
+ /* Linux_PowerSupplyIsSpare.Dependent */
+ RedundancySetRef_Init(&c, _cb, ns);
+ RedundancySetRef_Set_InstanceID(&c, data[i].instanceID);
+
+ /* Linux_PowerSupplyIsSpare */
+ MemberOfCollection_Init(&x, _cb, ns);
+ MemberOfCollection_Set_Member(&x, &m);
+ MemberOfCollection_Set_Collection(&x, &c);
+
+ /* Return this instance */
+ KReturnInstance(cr, x);
+ }
+
+ /* Release redundancy info array */
+ free(data);
+
CMReturn(CMPI_RC_OK);
}
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/OwningCollectionElementProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/OwningCollectionElementProvider.c 2008-07-29 23:14:15 UTC (rev 794)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/OwningCollectionElementProvider.c 2008-07-29 23:15:02 UTC (rev 795)
@@ -1,5 +1,6 @@
#include <konkret/konkret.h>
#include "OwningCollectionElement.h"
+#include "Resource.h"
static const CMPIBroker* _cb;
@@ -32,6 +33,47 @@
const CMPIObjectPath* cop,
const char** properties)
{
+ const char* ns = KNameSpace(cop);
+ struct RedundancyInfo* data;
+ size_t size;
+ size_t i;
+
+ /* Get redundancy resource data */
+ if (GetRedundancyInfo(&data, &size) != 0)
+ KReturn2(_cb, ERR_FAILED, "failed to access power supply resources");
+
+ /* For each redundancy */
+ for (i = 0; i < size; i++)
+ {
+ OwningCollectionElement x;
+ ComputerSystemRef cs;
+ RedundancySetRef rs;
+
+ /* Skip if this redundancy element has same id as last */
+ if (i && strcmp(data[i].instanceID, data[i-1].instanceID) == 0)
+ continue;
+
+ /* OwningCollectionElement.Antecedent */
+ ComputerSystemRef_Init(&cs, _cb, ns);
+ ComputerSystemRef_Set_CreationClassName(&cs, "Linux_ComputerSystem");
+ ComputerSystemRef_Set_Name(&cs, SysName().str);
+
+ /* OwningCollectionElement.Dependent */
+ RedundancySetRef_Init(&rs, _cb, ns);
+ RedundancySetRef_Set_InstanceID(&rs, data[i].instanceID);
+
+ /* OwningCollectionElement */
+ OwningCollectionElement_Init(&x, _cb, ns);
+ OwningCollectionElement_Set_OwningElement(&x, &cs);
+ OwningCollectionElement_Set_OwnedElement(&x, &rs);
+
+ /* Return this instance */
+ KReturnInstance(cr, x);
+ }
+
+ /* Release redundancy info array */
+ free(data);
+
CMReturn(CMPI_RC_OK);
}
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RedundancySetProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RedundancySetProvider.c 2008-07-29 23:14:15 UTC (rev 794)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RedundancySetProvider.c 2008-07-29 23:15:02 UTC (rev 795)
@@ -1,5 +1,6 @@
#include <konkret/konkret.h>
#include "RedundancySet.h"
+#include "Resource.h"
static const CMPIBroker* _cb = NULL;
@@ -32,6 +33,53 @@
const CMPIObjectPath* cop,
const char** properties)
{
+ const char* ns = KNameSpace(cop);
+ struct RedundancyInfo* data;
+ size_t size;
+ size_t i;
+ size_t j;
+
+ /* Get redundancy resource data */
+ if (GetRedundancyInfo(&data, &size) != 0)
+ KReturn2(_cb, ERR_FAILED, "failed to access power supply resources");
+
+ /* For each redundancy */
+ for (i = 0; i < size; i++)
+ {
+ RedundancySet x;
+
+ /* Skip if this redundancy element has same id as last */
+
+ if (i && strcmp(data[i].instanceID, data[i-1].instanceID) == 0)
+ continue;
+
+ RedundancySet_Init(&x, _cb, ns);
+
+ /* Linux_PowerSupplyRedundancySet.InstanceID */
+ RedundancySet_Set_InstanceID(&x, data[i].instanceID);
+
+ /* Linux_PowerSupplyRedundancySet.InstanceID */
+ RedundancySet_Set_InstanceID(&x, data[i].instanceID);
+
+ /* Linux_PowerSupplyRedundancySet.RedundancyStatus */
+ RedundancySet_Set_RedundancyStatus(&x, data[i].redundancyStatus);
+
+ /* Linux_PowerSupplyRedundancySet.TypeOfSet */
+ RedundancySet_Init_TypeOfSet(&x, data[i].typeOfSetSize);
+
+ for (j = 0; j < data[i].typeOfSetSize; j++)
+ RedundancySet_Set_TypeOfSet(&x, j, data[i].typeOfSet[j]);
+
+ /* Linux_PowerSupplyRedundancySet.MinNumberNeeded */
+ RedundancySet_Set_MinNumberNeeded(&x, data[i].minNumberNeeded);
+
+ /* Return this instance */
+ KReturnInstance(cr, x);
+ }
+
+ /* Release redundancy info array */
+ free(data);
+
CMReturn(CMPI_RC_OK);
}
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.c 2008-07-29 23:14:15 UTC (rev 794)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.c 2008-07-29 23:15:02 UTC (rev 795)
@@ -19,7 +19,7 @@
memset(&info, 0, sizeof(info));
/* PowerSupplyInfo.deviceID */
- sprintf(info.deviceID, "POWER-SUPPLY-%d", i);
+ sprintf(info.deviceID, "Linux_PowerSupply:%d", i);
/* PowerSupplyInfo.totalOutputPower */
info.totalOutputPower = 950000;
@@ -31,7 +31,10 @@
info.healthState = PowerSupply_HealthState_OK;
/* PowerSupplyInfo.enabledState */
- info.enabledState = PowerSupply_EnabledState_Enabled;
+ if (i == 0)
+ info.enabledState = PowerSupply_EnabledState_Enabled;
+ else
+ info.enabledState = PowerSupply_EnabledState_Enabled_but_Offline;
/* Append new element to array */
size++;
@@ -45,3 +48,82 @@
return 0;
}
+
+int GetRedundancyInfo(struct RedundancyInfo** data_out, size_t* size_out)
+{
+ struct RedundancyInfo* data = NULL;
+ size_t size = 0;
+
+ if (!data_out || !size_out)
+ return -1;
+
+ *data_out = NULL;
+ *size_out = 0;
+
+ /* REDUNDANCY0:Linux_PowerSupply:0 */
+ {
+ struct RedundancyInfo info =
+ {
+ /* instanceID */
+ "Linux_PowerRedundancySet:0",
+ /* deviceID */
+ "Linux_PowerSupply:0",
+ /* redundancyStatus */
+ RedundancySet_RedundancyStatus_Fully_Redundant,
+ /* typeOfSet */
+ { RedundancySet_TypeOfSet_Sparing },
+ /* typeOfSetSize */
+ 1,
+ /* minNumberNeeded */
+ 0,
+ /* isSpare */
+ 0,
+ /* spareStatus */
+ IsSpare_SpareStatus_Unknown,
+ /* failoverSupported */
+ IsSpare_FailoverSupported_Unknown,
+ };
+
+ /* Append new element to array */
+ size++;
+ data = (struct RedundancyInfo*)realloc(
+ data, size * sizeof(struct RedundancyInfo));
+ memcpy(&data[size - 1], &info, sizeof(info));
+ }
+
+ /* REDUNDANCY0:Linux_PowerSupply:1 */
+ {
+ struct RedundancyInfo info =
+ {
+ /* instanceID */
+ "Linux_PowerRedundancySet:0",
+ /* deviceID */
+ "Linux_PowerSupply:1",
+ /* redundancyStatus */
+ RedundancySet_RedundancyStatus_Fully_Redundant,
+ /* typeOfSet */
+ { RedundancySet_TypeOfSet_Sparing },
+ /* typeOfSetSize */
+ 1,
+ /* minNumberNeeded */
+ 0,
+ /* isSpare */
+ 1,
+ /* spareStatus */
+ IsSpare_SpareStatus_Hot_Standby,
+ /* failoverSupported */
+ IsSpare_FailoverSupported_Automatic,
+ };
+
+ /* Append new element to array */
+ size++;
+ data = (struct RedundancyInfo*)realloc(
+ data, size * sizeof(struct RedundancyInfo));
+ memcpy(&data[size - 1], &info, sizeof(info));
+ }
+
+ *data_out = data;
+ *size_out = size;
+
+ return 0;
+}
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.h 2008-07-29 23:14:15 UTC (rev 794)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.h 2008-07-29 23:15:02 UTC (rev 795)
@@ -6,6 +6,8 @@
#include <cmpiutil/exec.h>
#include <stdarg.h>
#include "PowerSupply.h"
+#include "RedundancySet.h"
+#include "IsSpare.h"
#ifndef KONKRET_REGISTRATION
# define KONKRET_REGISTRATION(W,X,Y,Z) /* empty */
@@ -80,6 +82,38 @@
#define MAX_POWER_SUPPLY_INFO 16
-int GetPowerSupplyInfo(struct PowerSupplyInfo** data, size_t* size);
+KHIDE int GetPowerSupplyInfo(struct PowerSupplyInfo** data, size_t* size);
+struct RedundancyInfo
+{
+ /* Linux_PowerRedundancySet.InstanceID */
+ char instanceID[64];
+
+ /* Linux_Power.DeviceID */
+ char deviceID[64];
+
+ /* Linux_PowerRedundancySet.RedundancyStatus */
+ RedundancySet_RedundancyStatus_Enum redundancyStatus;
+
+ /* Linux_PowerRedundancySet.TypeOfSet */
+ RedundancySet_TypeOfSet_Enum typeOfSet[8];
+
+ /* Linux_PowerRedundancySet.TypeOfSet size */
+ size_t typeOfSetSize;
+
+ /* Linux_PowerRedundancySet.MinNumberNeeded */
+ unsigned int minNumberNeeded;
+
+ /* Non-zero if fan given by deviceID is a spare */
+ CMPIBoolean isSpare;
+
+ /* Linux_PowerIsSpare.SpareStatus */
+ IsSpare_SpareStatus_Enum spareStatus;
+
+ /* Linux_PowerIsSpare.FailoverSupported */
+ IsSpare_FailoverSupported_Enum failoverSupported;
+};
+
+KHIDE int GetRedundancyInfo(struct RedundancyInfo** data, size_t* size);
+
#endif /* _Resource_h */
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/SystemDeviceProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/SystemDeviceProvider.c 2008-07-29 23:14:15 UTC (rev 794)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/SystemDeviceProvider.c 2008-07-29 23:15:02 UTC (rev 795)
@@ -1,5 +1,6 @@
#include <konkret/konkret.h>
#include "SystemDevice.h"
+#include "Resource.h"
static const CMPIBroker* _cb;
@@ -31,8 +32,25 @@
const CMPIResult* cr,
const CMPIObjectPath* cop,
const char** properties)
-{
- CMReturn(CMPI_RC_OK);
+{
+ ComputerSystemRef gc; /* GroupComponent */
+
+ ComputerSystemRef_Init(&gc, _cb, KNameSpace(cop));
+ ComputerSystemRef_Set_CreationClassName(&gc, "Linux_ComputerSystem");
+ ComputerSystemRef_Set_Name(&gc, SysName().str);
+
+ /* Associate Linux_ComputerSystem with every Linux_Fan via
+ * Linux_FanSystemDevice association.
+ */
+ return KDefaultEnumerateInstancesOneToAll(
+ _cb,
+ cc,
+ cr,
+ cop,
+ ComputerSystemRef_ToObjectPath(&gc, NULL),
+ "GroupComponent",
+ CMNewObjectPath(_cb, KNameSpace(cop), "Linux_PowerSupply", NULL),
+ "PartComponent");
}
static CMPIStatus SystemDeviceGetInstance(
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-29 23:14:07
|
Revision: 794
http://omc.svn.sourceforge.net/omc/?rev=794&view=rev
Author: mike-brasher
Date: 2008-07-29 23:14:15 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Implemented OwningCollectionElement provider.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_OwningCollectionElement.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/OwningCollectionElement.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/OwningCollectionElementProvider.c
Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-29 23:01:32 UTC (rev 793)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-29 23:14:15 UTC (rev 794)
@@ -155,6 +155,15 @@
[Key] Linux_FanRedundancySet REF Dependent;
};
+// ===========================================================================
+// Linux_FanOwningCollectionElement
+// ===========================================================================
+class Linux_FanOwningCollectionElement : CIM_OwningCollectionElement
+{
+ [Key] Linux_ComputerSystem REF OwningElement;
+ [Key] Linux_FanRedundancySet REF OwnedElement;
+};
+
// ==================================================================
// end of file
// ==================================================================
Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_OwningCollectionElement.h
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_OwningCollectionElement.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_OwningCollectionElement.h 2008-07-29 23:14:15 UTC (rev 794)
@@ -0,0 +1,384 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_OwningCollectionElement_h
+#define _konkrete_CIM_OwningCollectionElement_h
+
+#include <konkret/konkret.h>
+#include "CIM_ManagedElement.h"
+#include "CIM_Collection.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_OwningCollectionElementRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_OwningCollectionElement */
+typedef struct _CIM_OwningCollectionElementRef
+{
+ KBase __base;
+ /* CIM_OwningCollectionElement features */
+ const KRef OwningElement; /* CIM_ManagedElement */
+ const KRef OwnedElement; /* CIM_Collection */
+}
+CIM_OwningCollectionElementRef;
+
+static const unsigned char __CIM_OwningCollectionElementRef_sig[] =
+{
+ 0x1b,0x43,0x49,0x4d,0x5f,0x4f,0x77,0x6e,0x69,0x6e,0x67,0x43,0x6f,0x6c,0x6c,
+ 0x65,0x63,0x74,0x69,0x6f,0x6e,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,0x02,
+ 0x4e,0x0d,0x4f,0x77,0x6e,0x69,0x6e,0x67,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,
+ 0x00,0x4e,0x0c,0x4f,0x77,0x6e,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,
+ 0x00,
+};
+
+KINLINE void CIM_OwningCollectionElementRef_Init(
+ CIM_OwningCollectionElementRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_OwningCollectionElementRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->OwningElement)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->OwnedElement)->__sig = __CIM_Collection_sig;
+}
+
+KINLINE CMPIStatus CIM_OwningCollectionElementRef_InitFromInstance(
+ CIM_OwningCollectionElementRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_OwningCollectionElementRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_OwningCollectionElementRef_InitFromObjectPath(
+ CIM_OwningCollectionElementRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_OwningCollectionElementRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_OwningCollectionElementRef_Print(
+ const CIM_OwningCollectionElementRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_OwningCollectionElementRef_ToInstance(
+ const CIM_OwningCollectionElementRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_OwningCollectionElementRef_ToObjectPath(
+ const CIM_OwningCollectionElementRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_OwningCollectionElementRef_NameSpace(
+ CIM_OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_OwningCollectionElementRef_SetObjectPath_OwningElement(
+ CIM_OwningCollectionElementRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_OwningCollectionElementRef_Set_OwningElement(
+ CIM_OwningCollectionElementRef* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_OwningCollectionElementRef_Null_OwningElement(
+ CIM_OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_OwningCollectionElementRef_Clr_OwningElement(
+ CIM_OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_OwningCollectionElementRef_SetObjectPath_OwnedElement(
+ CIM_OwningCollectionElementRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_OwningCollectionElementRef_Set_OwnedElement(
+ CIM_OwningCollectionElementRef* self,
+ const CIM_CollectionRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_OwningCollectionElementRef_Null_OwnedElement(
+ CIM_OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_OwningCollectionElementRef_Clr_OwnedElement(
+ CIM_OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_OwningCollectionElement
+**
+**==============================================================================
+*/
+
+/* classname=CIM_OwningCollectionElement */
+typedef struct _CIM_OwningCollectionElement
+{
+ KBase __base;
+ /* CIM_OwningCollectionElement features */
+ const KRef OwningElement; /* CIM_ManagedElement */
+ const KRef OwnedElement; /* CIM_Collection */
+}
+CIM_OwningCollectionElement;
+
+static const unsigned char __CIM_OwningCollectionElement_sig[] =
+{
+ 0x1b,0x43,0x49,0x4d,0x5f,0x4f,0x77,0x6e,0x69,0x6e,0x67,0x43,0x6f,0x6c,0x6c,
+ 0x65,0x63,0x74,0x69,0x6f,0x6e,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,0x02,
+ 0x4e,0x0d,0x4f,0x77,0x6e,0x69,0x6e,0x67,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,
+ 0x00,0x4e,0x0c,0x4f,0x77,0x6e,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,
+ 0x00,
+};
+
+KINLINE void CIM_OwningCollectionElement_Init(
+ CIM_OwningCollectionElement* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_OwningCollectionElement_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->OwningElement)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->OwnedElement)->__sig = __CIM_Collection_sig;
+}
+
+KINLINE CMPIStatus CIM_OwningCollectionElement_InitFromInstance(
+ CIM_OwningCollectionElement* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_OwningCollectionElement_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_OwningCollectionElement_InitFromObjectPath(
+ CIM_OwningCollectionElement* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_OwningCollectionElement_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_OwningCollectionElement_Print(
+ const CIM_OwningCollectionElement* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_OwningCollectionElement_ToInstance(
+ const CIM_OwningCollectionElement* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_OwningCollectionElement_ToObjectPath(
+ const CIM_OwningCollectionElement* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_OwningCollectionElement_NameSpace(
+ CIM_OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_OwningCollectionElement_SetObjectPath_OwningElement(
+ CIM_OwningCollectionElement* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_OwningCollectionElement_Set_OwningElement(
+ CIM_OwningCollectionElement* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_OwningCollectionElement_Null_OwningElement(
+ CIM_OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_OwningCollectionElement_Clr_OwningElement(
+ CIM_OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_OwningCollectionElement_SetObjectPath_OwnedElement(
+ CIM_OwningCollectionElement* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_OwningCollectionElement_Set_OwnedElement(
+ CIM_OwningCollectionElement* self,
+ const CIM_CollectionRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_OwningCollectionElement_Null_OwnedElement(
+ CIM_OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_OwningCollectionElement_Clr_OwnedElement(
+ CIM_OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** CIM_OwningCollectionElement methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_OwningCollectionElement_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_OwningCollectionElementRef self;
+
+ KReturnIf(CIM_OwningCollectionElementRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_OwningCollectionElement_h */
Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-29 23:01:32 UTC (rev 793)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-29 23:14:15 UTC (rev 794)
@@ -24,6 +24,7 @@
CIM_ManagedElement.h \
CIM_ManagedSystemElement.h \
CIM_MemberOfCollection.h \
+ CIM_OwningCollectionElement.h \
CIM_RedundancySet.h \
CIM_ReferencedProfile.h \
CIM_RegisteredProfile.h \
@@ -42,6 +43,8 @@
IsSpareProvider.c \
MemberOfCollection.h \
MemberOfCollectionProvider.c \
+ OwningCollectionElement.h \
+ OwningCollectionElementProvider.c \
RedundancySet.h \
RedundancySetProvider.c \
ReferencedProfile.h \
Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/OwningCollectionElement.h
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/OwningCollectionElement.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/OwningCollectionElement.h 2008-07-29 23:14:15 UTC (rev 794)
@@ -0,0 +1,386 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_OwningCollectionElement_h
+#define _konkrete_OwningCollectionElement_h
+
+#include <konkret/konkret.h>
+#include "ComputerSystem.h"
+#include "RedundancySet.h"
+
+/*
+**==============================================================================
+**
+** struct OwningCollectionElementRef
+**
+**==============================================================================
+*/
+
+/* classname=Linux_FanOwningCollectionElement */
+typedef struct _OwningCollectionElementRef
+{
+ KBase __base;
+ /* CIM_OwningCollectionElement features */
+ const KRef OwningElement; /* ComputerSystem */
+ const KRef OwnedElement; /* RedundancySet */
+ /* Linux_FanOwningCollectionElement features */
+}
+OwningCollectionElementRef;
+
+static const unsigned char __OwningCollectionElementRef_sig[] =
+{
+ 0x20,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x4f,0x77,0x6e,0x69,0x6e,
+ 0x67,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,0x45,0x6c,0x65,0x6d,
+ 0x65,0x6e,0x74,0x00,0x02,0x4e,0x0d,0x4f,0x77,0x6e,0x69,0x6e,0x67,0x45,0x6c,
+ 0x65,0x6d,0x65,0x6e,0x74,0x00,0x4e,0x0c,0x4f,0x77,0x6e,0x65,0x64,0x45,0x6c,
+ 0x65,0x6d,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void OwningCollectionElementRef_Init(
+ OwningCollectionElementRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __OwningCollectionElementRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->OwningElement)->__sig = __ComputerSystem_sig;
+ ((KRef*)&self->OwnedElement)->__sig = __RedundancySet_sig;
+}
+
+KINLINE CMPIStatus OwningCollectionElementRef_InitFromInstance(
+ OwningCollectionElementRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ OwningCollectionElementRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus OwningCollectionElementRef_InitFromObjectPath(
+ OwningCollectionElementRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ OwningCollectionElementRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void OwningCollectionElementRef_Print(
+ const OwningCollectionElementRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* OwningCollectionElementRef_ToInstance(
+ const OwningCollectionElementRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* OwningCollectionElementRef_ToObjectPath(
+ const OwningCollectionElementRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* OwningCollectionElementRef_NameSpace(
+ OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void OwningCollectionElementRef_SetObjectPath_OwningElement(
+ OwningCollectionElementRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus OwningCollectionElementRef_Set_OwningElement(
+ OwningCollectionElementRef* self,
+ const ComputerSystemRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void OwningCollectionElementRef_Null_OwningElement(
+ OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void OwningCollectionElementRef_Clr_OwningElement(
+ OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void OwningCollectionElementRef_SetObjectPath_OwnedElement(
+ OwningCollectionElementRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus OwningCollectionElementRef_Set_OwnedElement(
+ OwningCollectionElementRef* self,
+ const RedundancySetRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void OwningCollectionElementRef_Null_OwnedElement(
+ OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void OwningCollectionElementRef_Clr_OwnedElement(
+ OwningCollectionElementRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct OwningCollectionElement
+**
+**==============================================================================
+*/
+
+/* classname=Linux_FanOwningCollectionElement */
+typedef struct _OwningCollectionElement
+{
+ KBase __base;
+ /* CIM_OwningCollectionElement features */
+ const KRef OwningElement; /* ComputerSystem */
+ const KRef OwnedElement; /* RedundancySet */
+ /* Linux_FanOwningCollectionElement features */
+}
+OwningCollectionElement;
+
+static const unsigned char __OwningCollectionElement_sig[] =
+{
+ 0x20,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x4f,0x77,0x6e,0x69,0x6e,
+ 0x67,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,0x45,0x6c,0x65,0x6d,
+ 0x65,0x6e,0x74,0x00,0x02,0x4e,0x0d,0x4f,0x77,0x6e,0x69,0x6e,0x67,0x45,0x6c,
+ 0x65,0x6d,0x65,0x6e,0x74,0x00,0x4e,0x0c,0x4f,0x77,0x6e,0x65,0x64,0x45,0x6c,
+ 0x65,0x6d,0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void OwningCollectionElement_Init(
+ OwningCollectionElement* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __OwningCollectionElement_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->OwningElement)->__sig = __ComputerSystem_sig;
+ ((KRef*)&self->OwnedElement)->__sig = __RedundancySet_sig;
+}
+
+KINLINE CMPIStatus OwningCollectionElement_InitFromInstance(
+ OwningCollectionElement* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ OwningCollectionElement_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus OwningCollectionElement_InitFromObjectPath(
+ OwningCollectionElement* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ OwningCollectionElement_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void OwningCollectionElement_Print(
+ const OwningCollectionElement* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* OwningCollectionElement_ToInstance(
+ const OwningCollectionElement* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* OwningCollectionElement_ToObjectPath(
+ const OwningCollectionElement* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* OwningCollectionElement_NameSpace(
+ OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void OwningCollectionElement_SetObjectPath_OwningElement(
+ OwningCollectionElement* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus OwningCollectionElement_Set_OwningElement(
+ OwningCollectionElement* self,
+ const ComputerSystemRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void OwningCollectionElement_Null_OwningElement(
+ OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void OwningCollectionElement_Clr_OwningElement(
+ OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwningElement;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void OwningCollectionElement_SetObjectPath_OwnedElement(
+ OwningCollectionElement* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus OwningCollectionElement_Set_OwnedElement(
+ OwningCollectionElement* self,
+ const RedundancySetRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void OwningCollectionElement_Null_OwnedElement(
+ OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void OwningCollectionElement_Clr_OwnedElement(
+ OwningCollectionElement* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->OwnedElement;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** OwningCollectionElement methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus OwningCollectionElement_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ OwningCollectionElementRef self;
+
+ KReturnIf(OwningCollectionElementRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_OwningCollectionElement_h */
Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/OwningCollectionElementProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/OwningCollectionElementProvider.c (rev 0)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/OwningCollectionElementProvider.c 2008-07-29 23:14:15 UTC (rev 794)
@@ -0,0 +1,222 @@
+#include <konkret/konkret.h>
+#include "OwningCollectionElement.h"
+#include "Resource.h"
+
+static const CMPIBroker* _cb;
+
+static void OwningCollectionElementInitialize()
+{
+}
+
+static CMPIStatus OwningCollectionElementCleanup(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus OwningCollectionElementEnumInstanceNames(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ return KDefaultEnumerateInstanceNames(
+ _cb, mi, cc, cr, cop);
+}
+
+static CMPIStatus OwningCollectionElementEnumInstances(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ const char* ns = KNameSpace(cop);
+ struct RedundancyInfo* data;
+ size_t size;
+ size_t i;
+
+ /* Get redundancy resource data */
+ if (GetRedundancyInfo(&data, &size) != 0)
+ KReturn2(_cb, ERR_FAILED, "failed to access power supply resources");
+
+ /* For each redundancy */
+ for (i = 0; i < size; i++)
+ {
+ OwningCollectionElement x;
+ ComputerSystemRef cs;
+ RedundancySetRef rs;
+
+ /* Skip if this redundancy element has same id as last */
+ if (i && strcmp(data[i].instanceID, data[i-1].instanceID) == 0)
+ continue;
+
+ /* OwningCollectionElement.Antecedent */
+ ComputerSystemRef_Init(&cs, _cb, ns);
+ ComputerSystemRef_Set_CreationClassName(&cs, "Linux_ComputerSystem");
+ ComputerSystemRef_Set_Name(&cs, SysName().str);
+
+ /* OwningCollectionElement.Dependent */
+ RedundancySetRef_Init(&rs, _cb, ns);
+ RedundancySetRef_Set_InstanceID(&rs, data[i].instanceID);
+
+ /* OwningCollectionElement */
+ OwningCollectionElement_Init(&x, _cb, ns);
+ OwningCollectionElement_Set_OwningElement(&x, &cs);
+ OwningCollectionElement_Set_OwnedElement(&x, &rs);
+
+ /* Return this instance */
+ KReturnInstance(cr, x);
+ }
+
+ /* Release redundancy info array */
+ free(data);
+
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus OwningCollectionElementGetInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ return KDefaultGetInstance(
+ _cb, mi, cc, cr, cop, properties);
+}
+
+static CMPIStatus OwningCollectionElementCreateInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus OwningCollectionElementModifyInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci,
+ const char**properties)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus OwningCollectionElementDeleteInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus OwningCollectionElementExecQuery(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* lang,
+ const char* query)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus OwningCollectionElementAssociationCleanup(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus OwningCollectionElementAssociators(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_FanOwningCollectionElement";
+
+ return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass,
+ resultClass, role, resultRole, properties);
+}
+
+static CMPIStatus OwningCollectionElementAssociatorNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole)
+{
+ if (!assocClass)
+ assocClass = "Linux_FanOwningCollectionElement";
+
+ return KDefaultAssociatorNames(_cb, mi, cc, cr, cop,
+ assocClass, resultClass, role, resultRole);
+}
+
+static CMPIStatus OwningCollectionElementReferences(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_FanOwningCollectionElement";
+
+ return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass,
+ role, properties);
+}
+
+static CMPIStatus OwningCollectionElementReferenceNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role)
+{
+ if (!assocClass)
+ assocClass = "Linux_FanOwningCollectionElement";
+
+ return KDefaultReferenceNames(
+ _cb, mi, cc, cr, cop, assocClass, role);
+}
+
+CMInstanceMIStub(
+ OwningCollectionElement,
+ OwningCollectionElement,
+ _cb,
+ OwningCollectionElementInitialize())
+
+CMAssociationMIStub(
+ OwningCollectionElement,
+ OwningCollectionElement,
+ _cb,
+ OwningCollectionElementInitialize())
+
+KONKRET_REGISTRATION(
+ "root/cimv2",
+ "Linux_FanOwningCollectionElement",
+ "OwningCollectionElement",
+ "instance association");
Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon 2008-07-29 23:01:32 UTC (rev 793)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon 2008-07-29 23:14:15 UTC (rev 794)
@@ -8,3 +8,4 @@
Linux_FanIsSpare=IsSpare!
Linux_FanMemberOfCollection=MemberOfCollection!
Linux_FanHostedCollection=HostedCollection!
+Linux_FanOwningCollectionElement=OwningCollectionElement!
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-29 23:01:23
|
Revision: 793
http://omc.svn.sourceforge.net/omc/?rev=793&view=rev
Author: mike-brasher
Date: 2008-07-29 23:01:32 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Implemented new HostedCollection Provider.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Collection.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Component.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ComputerSystem.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_CoolingDevice.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Dependency.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ElementConformsToProfile.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_EnabledLogicalElement.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Fan.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_HostedCollection.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_HostedDependency.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_IsSpare.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Job.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_LogicalElement.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ManagedSystemElement.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_MemberOfCollection.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_RedundancySet.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ReferencedProfile.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_SystemComponent.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_SystemDevice.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_SystemSpecificCollection.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/HostedCollection.h
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/HostedCollectionProvider.c
Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-29 22:26:54 UTC (rev 792)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-29 23:01:32 UTC (rev 793)
@@ -145,8 +145,16 @@
{
};
+
+// ===========================================================================
+// Linux_FanHostedCollection
+// ===========================================================================
+class Linux_FanHostedCollection : CIM_HostedCollection
+{
+ [Key] Linux_ComputerSystem REF Antecedent;
+ [Key] Linux_FanRedundancySet REF Dependent;
+};
+
// ==================================================================
// end of file
// ==================================================================
-
-
Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Collection.h
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Collection.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Collection.h 2008-07-29 23:01:32 UTC (rev 793)
@@ -0,0 +1,329 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_Collection_h
+#define _konkrete_CIM_Collection_h
+
+#include <konkret/konkret.h>
+
+/*
+**==============================================================================
+**
+** struct CIM_CollectionRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_Collection */
+typedef struct _CIM_CollectionRef
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ /* CIM_Collection features */
+}
+CIM_CollectionRef;
+
+static const unsigned char __CIM_CollectionRef_sig[] =
+{
+ 0x0e,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,
+ 0x00,0x00,
+};
+
+KINLINE void CIM_CollectionRef_Init(
+ CIM_CollectionRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_CollectionRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_CollectionRef_InitFromInstance(
+ CIM_CollectionRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_CollectionRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_CollectionRef_InitFromObjectPath(
+ CIM_CollectionRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_CollectionRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_CollectionRef_Print(
+ const CIM_CollectionRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_CollectionRef_ToInstance(
+ const CIM_CollectionRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_CollectionRef_ToObjectPath(
+ const CIM_CollectionRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_CollectionRef_NameSpace(
+ CIM_CollectionRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_Collection
+**
+**==============================================================================
+*/
+
+/* classname=CIM_Collection */
+typedef struct _CIM_Collection
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ const KString Caption;
+ const KString Description;
+ const KString ElementName;
+ /* CIM_Collection features */
+}
+CIM_Collection;
+
+static const unsigned char __CIM_Collection_sig[] =
+{
+ 0x0e,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,
+ 0x00,0x03,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x44,
+ 0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x45,0x6c,
+ 0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,
+};
+
+KINLINE void CIM_Collection_Init(
+ CIM_Collection* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_Collection_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_Collection_InitFromInstance(
+ CIM_Collection* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_Collection_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_Collection_InitFromObjectPath(
+ CIM_Collection* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_Collection_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_Collection_Print(
+ const CIM_Collection* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_Collection_ToInstance(
+ const CIM_Collection* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_Collection_ToObjectPath(
+ const CIM_Collection* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_Collection_NameSpace(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_Collection_SetString_Caption(
+ CIM_Collection* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_Collection_Set_Caption(
+ CIM_Collection* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_Collection_Null_Caption(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_Collection_Clr_Caption(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_Collection_SetString_Description(
+ CIM_Collection* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_Collection_Set_Description(
+ CIM_Collection* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_Collection_Null_Description(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_Collection_Clr_Description(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_Collection_SetString_ElementName(
+ CIM_Collection* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_Collection_Set_ElementName(
+ CIM_Collection* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_Collection_Null_ElementName(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_Collection_Clr_ElementName(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** CIM_Collection methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_Collection_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_CollectionRef self;
+
+ KReturnIf(CIM_CollectionRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_Collection_h */
Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Component.h
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Component.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_Component.h 2008-07-29 23:01:32 UTC (rev 793)
@@ -0,0 +1,381 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_Component_h
+#define _konkrete_CIM_Component_h
+
+#include <konkret/konkret.h>
+#include "CIM_ManagedElement.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_ComponentRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_Component */
+typedef struct _CIM_ComponentRef
+{
+ KBase __base;
+ /* CIM_Component features */
+ const KRef GroupComponent; /* CIM_ManagedElement */
+ const KRef PartComponent; /* CIM_ManagedElement */
+}
+CIM_ComponentRef;
+
+static const unsigned char __CIM_ComponentRef_sig[] =
+{
+ 0x0d,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x00,
+ 0x02,0x4e,0x0e,0x47,0x72,0x6f,0x75,0x70,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,
+ 0x6e,0x74,0x00,0x4e,0x0d,0x50,0x61,0x72,0x74,0x43,0x6f,0x6d,0x70,0x6f,0x6e,
+ 0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ComponentRef_Init(
+ CIM_ComponentRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ComponentRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->GroupComponent)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->PartComponent)->__sig = __CIM_ManagedElement_sig;
+}
+
+KINLINE CMPIStatus CIM_ComponentRef_InitFromInstance(
+ CIM_ComponentRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ComponentRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ComponentRef_InitFromObjectPath(
+ CIM_ComponentRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ComponentRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ComponentRef_Print(
+ const CIM_ComponentRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ComponentRef_ToInstance(
+ const CIM_ComponentRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ComponentRef_ToObjectPath(
+ const CIM_ComponentRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ComponentRef_NameSpace(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ComponentRef_SetObjectPath_GroupComponent(
+ CIM_ComponentRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ComponentRef_Set_GroupComponent(
+ CIM_ComponentRef* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ComponentRef_Null_GroupComponent(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ComponentRef_Clr_GroupComponent(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComponentRef_SetObjectPath_PartComponent(
+ CIM_ComponentRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ComponentRef_Set_PartComponent(
+ CIM_ComponentRef* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ComponentRef_Null_PartComponent(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ComponentRef_Clr_PartComponent(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_Component
+**
+**==============================================================================
+*/
+
+/* classname=CIM_Component */
+typedef struct _CIM_Component
+{
+ KBase __base;
+ /* CIM_Component features */
+ const KRef GroupComponent; /* CIM_ManagedElement */
+ const KRef PartComponent; /* CIM_ManagedElement */
+}
+CIM_Component;
+
+static const unsigned char __CIM_Component_sig[] =
+{
+ 0x0d,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x00,
+ 0x02,0x4e,0x0e,0x47,0x72,0x6f,0x75,0x70,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,
+ 0x6e,0x74,0x00,0x4e,0x0d,0x50,0x61,0x72,0x74,0x43,0x6f,0x6d,0x70,0x6f,0x6e,
+ 0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_Component_Init(
+ CIM_Component* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_Component_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->GroupComponent)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->PartComponent)->__sig = __CIM_ManagedElement_sig;
+}
+
+KINLINE CMPIStatus CIM_Component_InitFromInstance(
+ CIM_Component* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_Component_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_Component_InitFromObjectPath(
+ CIM_Component* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_Component_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_Component_Print(
+ const CIM_Component* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_Component_ToInstance(
+ const CIM_Component* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_Component_ToObjectPath(
+ const CIM_Component* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_Component_NameSpace(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_Component_SetObjectPath_GroupComponent(
+ CIM_Component* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_Component_Set_GroupComponent(
+ CIM_Component* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_Component_Null_GroupComponent(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_Component_Clr_GroupComponent(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_Component_SetObjectPath_PartComponent(
+ CIM_Component* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_Component_Set_PartComponent(
+ CIM_Component* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_Component_Null_PartComponent(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_Component_Clr_PartComponent(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** CIM_Component methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_Component_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_ComponentRef self;
+
+ KReturnIf(CIM_ComponentRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_Component_h */
Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ComputerSystem.h
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ComputerSystem.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ComputerSystem.h 2008-07-29 23:01:32 UTC (rev 793)
@@ -0,0 +1,3061 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_ComputerSystem_h
+#define _konkrete_CIM_ComputerSystem_h
+
+#include <konkret/konkret.h>
+#include "CIM_ConcreteJob.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_ComputerSystemRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ComputerSystem */
+typedef struct _CIM_ComputerSystemRef
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ /* CIM_ManagedSystemElement features */
+ const KString Name;
+ /* CIM_LogicalElement features */
+ /* CIM_EnabledLogicalElement features */
+ /* CIM_System features */
+ const KString CreationClassName;
+ /* CIM_ComputerSystem features */
+}
+CIM_ComputerSystemRef;
+
+static const unsigned char __CIM_ComputerSystemRef_sig[] =
+{
+ 0x12,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6d,0x70,0x75,0x74,0x65,0x72,0x53,0x79,
+ 0x73,0x74,0x65,0x6d,0x00,0x02,0x4c,0x04,0x4e,0x61,0x6d,0x65,0x00,0x4c,0x11,
+ 0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c,0x61,0x73,0x73,0x4e,0x61,
+ 0x6d,0x65,0x00,
+};
+
+KINLINE void CIM_ComputerSystemRef_Init(
+ CIM_ComputerSystemRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ComputerSystemRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_ComputerSystemRef_InitFromInstance(
+ CIM_ComputerSystemRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ComputerSystemRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ComputerSystemRef_InitFromObjectPath(
+ CIM_ComputerSystemRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ComputerSystemRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ComputerSystemRef_Print(
+ const CIM_ComputerSystemRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ComputerSystemRef_ToInstance(
+ const CIM_ComputerSystemRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ComputerSystemRef_ToObjectPath(
+ const CIM_ComputerSystemRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ComputerSystemRef_NameSpace(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ComputerSystemRef_SetString_Name(
+ CIM_ComputerSystemRef* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Set_Name(
+ CIM_ComputerSystemRef* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Null_Name(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Clr_Name(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_SetString_CreationClassName(
+ CIM_ComputerSystemRef* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->CreationClassName;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Set_CreationClassName(
+ CIM_ComputerSystemRef* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->CreationClassName;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Null_CreationClassName(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->CreationClassName;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Clr_CreationClassName(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->CreationClassName;
+ KString_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_ComputerSystem
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ComputerSystem */
+typedef struct _CIM_ComputerSystem
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ const KString Caption;
+ const KString Description;
+ const KString ElementName;
+ /* CIM_ManagedSystemElement features */
+ const KDateTime InstallDate;
+ const KString Name;
+ const KUint16A OperationalStatus;
+ const KStringA StatusDescriptions;
+ const KString Status;
+ const KUint16 HealthState;
+ const KUint16 PrimaryStatus;
+ const KUint16 DetailedStatus;
+ const KUint16 OperatingStatus;
+ const KUint16 CommunicationStatus;
+ /* CIM_LogicalElement features */
+ /* CIM_EnabledLogicalElement features */
+ const KUint16 EnabledState;
+ const KString OtherEnabledState;
+ const KUint16 RequestedState;
+ const KUint16 EnabledDefault;
+ const KDateTime TimeOfLastStateChange;
+ const KUint16A AvailableRequestedStates;
+ const KUint16 TransitioningToState;
+ /* CIM_System features */
+ const KString CreationClassName;
+ const KString NameFormat;
+ const KString PrimaryOwnerName;
+ const KString PrimaryOwnerContact;
+ const KStringA Roles;
+ const KStringA OtherIdentifyingInfo;
+ const KStringA IdentifyingDescriptions;
+ /* CIM_ComputerSystem features */
+ const KUint16A Dedicated;
+ const KStringA OtherDedicatedDescriptions;
+ const KUint16 ResetCapability;
+ const KUint16A PowerManagementCapabilities;
+}
+CIM_ComputerSystem;
+
+static const unsigned char __CIM_ComputerSystem_sig[] =
+{
+ 0x12,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6d,0x70,0x75,0x74,0x65,0x72,0x53,0x79,
+ 0x73,0x74,0x65,0x6d,0x00,0x1f,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,
+ 0x00,0x0c,0x0b,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,
+ 0x0c,0x0b,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x0d,
+ 0x0b,0x49,0x6e,0x73,0x74,0x61,0x6c,0x6c,0x44,0x61,0x74,0x65,0x00,0x4c,0x04,
+ 0x4e,0x61,0x6d,0x65,0x00,0x83,0x11,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,
+ 0x6e,0x61,0x6c,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x8c,0x12,0x53,0x74,0x61,
+ 0x74,0x75,0x73,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,
+ 0x00,0x0c,0x06,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0b,0x48,0x65,0x61,
+ 0x6c,0x74,0x68,0x53,0x74,0x61,0x74,0x65,0x00,0x03,0x0d,0x50,0x72,0x69,0x6d,
+ 0x61,0x72,0x79,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0e,0x44,0x65,0x74,
+ 0x61,0x69,0x6c,0x65,0x64,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0f,0x4f,
+ 0x70,0x65,0x72,0x61,0x74,0x69,0x6e,0x67,0x53,0x74,0x61,0x74,0x75,0x73,0x00,
+ 0x03,0x13,0x43,0x6f,0x6d,0x6d,0x75,0x6e,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e,
+ 0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0c,0x45,0x6e,0x61,0x62,0x6c,0x65,
+ 0x64,0x53,0x74,0x61,0x74,0x65,0x00,0x0c,0x11,0x4f,0x74,0x68,0x65,0x72,0x45,
+ 0x6e,0x61,0x62,0x6c,0x65,0x64,0x53,0x74,0x61,0x74,0x65,0x00,0x03,0x0e,0x52,
+ 0x65,0x71,0x75,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x74,0x65,0x00,0x03,
+ 0x0e,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64,0x44,0x65,0x66,0x61,0x75,0x6c,0x74,
+ 0x00,0x0d,0x15,0x54,0x69,0x6d,0x65,0x4f,0x66,0x4c,0x61,0x73,0x74,0x53,0x74,
+ 0x61,0x74,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x00,0x83,0x18,0x41,0x76,0x61,
+ 0x69,0x6c,0x61,0x62,0x6c,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74,0x65,0x64,
+ 0x53,0x74,0x61,0x74,0x65,0x73,0x00,0x03,0x14,0x54,0x72,0x61,0x6e,0x73,0x69,
+ 0x74,0x69,0x6f,0x6e,0x69,0x6e,0x67,0x54,0x6f,0x53,0x74,0x61,0x74,0x65,0x00,
+ 0x4c,0x11,0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c,0x61,0x73,0x73,
+ 0x4e,0x61,0x6d,0x65,0x00,0x0c,0x0a,0x4e,0x61,0x6d,0x65,0x46,0x6f,0x72,0x6d,
+ 0x61,0x74,0x00,0x0c,0x10,0x50,0x72,0x69,0x6d,0x61,0x72,0x79,0x4f,0x77,0x6e,
+ 0x65,0x72,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x13,0x50,0x72,0x69,0x6d,0x61,0x72,
+ 0x79,0x4f,0x77,0x6e,0x65,0x72,0x43,0x6f,0x6e,0x74,0x61,0x63,0x74,0x00,0x8c,
+ 0x05,0x52,0x6f,0x6c,0x65,0x73,0x00,0x8c,0x14,0x4f,0x74,0x68,0x65,0x72,0x49,
+ 0x64,0x65,0x6e,0x74,0x69,0x66,0x79,0x69,0x6e,0x67,0x49,0x6e,0x66,0x6f,0x00,
+ 0x8c,0x17,0x49,0x64,0x65,0x6e,0x74,0x69,0x66,0x79,0x69,0x6e,0x67,0x44,0x65,
+ 0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x83,0x09,0x44,0x65,
+ 0x64,0x69,0x63,0x61,0x74,0x65,0x64,0x00,0x8c,0x1a,0x4f,0x74,0x68,0x65,0x72,
+ 0x44,0x65,0x64,0x69,0x63,0x61,0x74,0x65,0x64,0x44,0x65,0x73,0x63,0x72,0x69,
+ 0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x03,0x0f,0x52,0x65,0x73,0x65,0x74,0x43,
+ 0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x79,0x00,0x83,0x1b,0x50,0x6f,0x77,
+ 0x65,0x72,0x4d,0x61,0x6e,0x61,0x67,0x65,0x6d,0x65,0x6e,0x74,0x43,0x61,0x70,
+ 0x61,0x62,0x69,0x6c,0x69,0x74,0x69,0x65,0x73,0x00,
+};
+
+KINLINE void CIM_ComputerSystem_Init(
+ CIM_ComputerSystem* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ComputerSystem_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_ComputerSystem_InitFromInstance(
+ CIM_ComputerSystem* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ComputerSystem_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ComputerSystem_InitFromObjectPath(
+ CIM_ComputerSystem* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ComputerSystem_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ComputerSystem_Print(
+ const CIM_ComputerSystem* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_ComputerSystem_ToInstance(
+ const CIM_ComputerSystem* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ComputerSystem_ToObjectPath(
+ const CIM_ComputerSystem* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ComputerSystem_NameSpace(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ComputerSystem_SetString_Caption(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_Caption(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_Caption(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_Caption(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_SetString_Description(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_Description(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_Description(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_Description(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_SetString_ElementName(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_ElementName(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_ElementName(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_ElementName(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_InstallDate(
+ CIM_ComputerSystem* self,
+ CMPIDateTime* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->InstallDate;
+ KDateTime_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_InstallDate(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->InstallDate;
+ KDateTime_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_InstallDate(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->InstallDate;
+ KDateTime_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_SetString_Name(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_Name(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_Name(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_Name(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Clr(field);
+ }
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Init_OperationalStatus(
+ CIM_ComputerSystem* self,
+ CMPICount count)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Init(field, self->__base.cb, count);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ComputerSystem_InitNull_OperationalStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ KUint16A_InitNull(field);
+ }
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Set_OperationalStatus(
+ CIM_ComputerSystem* self,
+ CMPICount i,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Set(field, i, x);
+ }
+ return 0;
+}
+
+KINLINE KUint16 CIM_ComputerSystem_Get_OperationalStatus(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Get(field, i);
+ }
+ return KUint16A_Get(NULL, 0);
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Null_OperationalStatus(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Null(field, i);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ComputerSystem_Clr_OperationalStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ KUint16A_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_OperationalStatus_Enum
+{
+ CIM_ComputerSystem_OperationalStatus_Unknown = 0,
+ CIM_ComputerSystem_OperationalStatus_Other = 1,
+ CIM_ComputerSystem_OperationalStatus_OK = 2,
+ CIM_ComputerSystem_OperationalStatus_Degraded = 3,
+ CIM_ComputerSystem_OperationalStatus_Stressed = 4,
+ CIM_ComputerSystem_OperationalStatus_Predictive_Failure = 5,
+ CIM_ComputerSystem_OperationalStatus_Error = 6,
+ CIM_ComputerSystem_OperationalStatus_Non_Recoverable_Error = 7,
+ CIM_ComputerSystem_OperationalStatus_Starting = 8,
+ CIM_ComputerSystem_OperationalStatus_Stopping = 9,
+ CIM_ComputerSystem_OperationalStatus_Stopped = 10,
+ CIM_ComputerSystem_OperationalStatus_In_Service = 11,
+ CIM_ComputerSystem_OperationalStatus_No_Contact = 12,
+ CIM_ComputerSystem_OperationalStatus_Lost_Communication = 13,
+ CIM_ComputerSystem_OperationalStatus_Aborted = 14,
+ CIM_ComputerSystem_OperationalStatus_Dormant = 15,
+ CIM_ComputerSystem_OperationalStatus_Supporting_Entity_in_Error = 16,
+ CIM_ComputerSystem_OperationalStatus_Completed = 17,
+ CIM_ComputerSystem_OperationalStatus_Power_Mode = 18,
+ CIM_ComputerSystem_OperationalStatus_DMTF_Reserved = 0,
+ CIM_ComputerSystem_OperationalStatus_Vendor_Reserved = 0,
+}
+CIM_ComputerSystem_OperationalStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Unknown(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0)
+
+/* "Other" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Other(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 1)
+
+/* "OK" */
+#define CIM_ComputerSystem_Set_OperationalStatus_OK(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 2)
+
+/* "Degraded" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Degraded(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 3)
+
+/* "Stressed" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Stressed(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 4)
+
+/* "Predictive Failure" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 5)
+
+/* "Error" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Error(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 6)
+
+/* "Non-Recoverable Error" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 7)
+
+/* "Starting" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Starting(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 8)
+
+/* "Stopping" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Stopping(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 9)
+
+/* "Stopped" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Stopped(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 10)
+
+/* "In Service" */
+#define CIM_ComputerSystem_Set_OperationalStatus_In_Service(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 11)
+
+/* "No Contact" */
+#define CIM_ComputerSystem_Set_OperationalStatus_No_Contact(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 12)
+
+/* "Lost Communication" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 13)
+
+/* "Aborted" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Aborted(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 14)
+
+/* "Dormant" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Dormant(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 15)
+
+/* "Supporting Entity in Error" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 16)
+
+/* "Completed" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Completed(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 17)
+
+/* "Power Mode" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Power_Mode(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 18)
+
+/* "DMTF Reserved" */
+#define CIM_ComputerSystem_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0)
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Init_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount count)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Init(field, self->__base.cb, count);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ComputerSystem_InitNull_StatusDescriptions(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ KStringA_InitNull(field);
+ }
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_SetString_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_SetString(field, i, x);
+ }
+ return 0;
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Set_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Set(field, self->__base.cb, i, s);
+ }
+ return 0;
+}
+
+KINLINE KString CIM_ComputerSystem_GetString_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_GetString(field, i);
+ }
+ return KStringA_GetString(NULL, 0);
+}
+
+KINLINE const char* CIM_ComputerSystem_Get_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Get(field, i);
+ }
+ return NULL;
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Null_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Null(field, i);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ComputerSystem_Clr_StatusDescriptions(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ KStringA_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_SetString_Status(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_Status(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_Status(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_Status(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_HealthState(
+ CIM_ComputerSystem* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->HealthState;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_HealthState(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->HealthState;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_HealthState(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->HealthState;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_HealthState_Enum
+{
+ CIM_ComputerSystem_HealthState_Unknown = 0,
+ CIM_ComputerSystem_HealthState_OK = 5,
+ CIM_ComputerSystem_HealthState_Degraded_Warning = 10,
+ CIM_ComputerSystem_HealthState_Minor_failure = 15,
+ CIM_ComputerSystem_HealthState_Major_failure = 20,
+ CIM_ComputerSystem_HealthState_Critical_failure = 25,
+ CIM_ComputerSystem_HealthState_Non_recoverable_error = 30,
+ CIM_ComputerSystem_HealthState_DMTF_Reserved = 0,
+}
+CIM_ComputerSystem_HealthState_Enum;
+
+/* "Unknown" */
+#define CIM_ComputerSystem_Set_HealthState_Unknown(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 0)
+
+/* "OK" */
+#define CIM_ComputerSystem_Set_HealthState_OK(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 5)
+
+/* "Degraded/Warning" */
+#define CIM_ComputerSystem_Set_HealthState_Degraded_Warning(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 10)
+
+/* "Minor failure" */
+#define CIM_ComputerSystem_Set_HealthState_Minor_failure(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 15)
+
+/* "Major failure" */
+#define CIM_ComputerSystem_Set_HealthState_Major_failure(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 20)
+
+/* "Critical failure" */
+#define CIM_ComputerSystem_Set_HealthState_Critical_failure(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 25)
+
+/* "Non-recoverable error" */
+#define CIM_ComputerSystem_Set_HealthState_Non_recoverable_error(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 30)
+
+/* "DMTF Reserved" */
+#define CIM_ComputerSystem_Set_HealthState_DMTF_Reserved(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 0)
+
+KINLINE void CIM_ComputerSystem_Set_PrimaryStatus(
+ CIM_ComputerSystem* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->PrimaryStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_PrimaryStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->PrimaryStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_PrimaryStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->PrimaryStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_PrimaryStatus_Enum
+{
+ CIM_ComputerSystem_PrimaryStatus_Unknown = 0,
+ CIM_ComputerSystem_PrimaryStatus_OK = 1,
+ CIM_ComputerSystem_PrimaryStatus_Degraded = 2,
+ CIM_ComputerSystem_PrimaryStatus_Error = 3,
+ CIM_ComputerSystem_PrimaryStatus_DMTF_Reserved = 0,
+ CIM_ComputerSystem_PrimaryStatus_Vendor_Reserved = 0,
+}
+CIM_ComputerSystem_PrimaryStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_Unknown(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 0)
+
+/* "OK" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_OK(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 1)
+
+/* "Degraded" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_Degraded(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 2)
+
+/* "Error" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_Error(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 3)
+
+/* "DMTF Reserved" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_DMTF_Reserved(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_Vendor_Reserved(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 0)
+
+KINLINE void CIM_ComputerSystem_Set_DetailedStatus(
+ CIM_ComputerSystem* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->DetailedStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_DetailedStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->DetailedStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_DetailedStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->DetailedStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_DetailedStatus_Enum
+{
+ CIM_ComputerSystem_DetailedStatus_Not_Available = 0,
+ CIM_ComputerSystem_DetailedStatus_No_Additional_Information = 1,
+ CIM_ComputerSystem_DetailedStatus_Stressed = 2,
+ CIM_ComputerSystem_DetailedStatus_Predictive_Failure = 3,
+ CIM_ComputerSystem_DetailedStatus_Non_Recoverable_Error = 4,
+ CIM_ComputerSystem_DetailedStatus_Supporting_Entity_in_Error = 5,
+ CIM_ComputerSystem_DetailedStatus_DMTF_Reserved = 0,
+ CIM_ComputerSystem_DetailedStatus_Vendor_Reserved = 0,
+}
+CIM_ComputerSystem_DetailedStatus_Enum;
+
+/* "Not Available" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Not_Available(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 0)
+
+/* "No Additional Information" */
+#define CIM_ComputerSystem_Set_DetailedStatus_No_Additional_Information(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 1)
+
+/* "Stressed" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Stressed(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 2)
+
+/* "Predictive Failure" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Predictive_Failure(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 3)
+
+/* "Non-Recoverable Error" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Non_Recoverable_Error(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 4)
+
+/* "Supporting Entity in Error" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 5)
+
+/* "DMTF Reserved" */
+#define CIM_ComputerSystem_Set_DetailedStatus_DMTF_Reserved(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Vendor_Reserved(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 0)
+
+KINLINE void CIM_ComputerSystem_Set_OperatingStatus(
+ CIM_ComputerSystem* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->OperatingStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_OperatingStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->OperatingStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_OperatingStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->OperatingStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_OperatingStatus_Enum
+{
+ CIM_ComputerSystem_OperatingStatus_Unknown = 0,
+ CIM_ComputerSystem_OperatingStatus_Not_Available = 1,
+ CIM_ComputerSystem_OperatingStatus_Servicing = 2,
+ CIM_ComputerSystem_OperatingStatus_Starting = 3,
+ CIM_ComputerSystem_OperatingStatus_Stopping = 4,
+ CIM_ComputerSystem_OperatingStatus_Stopped = 5,
+ CIM_ComputerSystem_OperatingStatus_Aborted = 6,
+ CIM_ComputerSystem_OperatingStatus_Dormant = 7,
+ CIM_ComputerSystem_OperatingStatus_Completed = 8,
+ CIM_ComputerSystem_OperatingStatus_Migrating = 9,
+ CIM_ComputerSystem_OperatingStatus_Emigrating = 10,
+ CIM_ComputerSystem_OperatingStatus_Immigrating = 11,
+ CIM_ComputerSystem_OperatingStatus_Snapshotting = 12,
+ CIM_ComputerSystem_OperatingStatus_Shutting_Down = 13,
+ CIM_ComputerSystem_OperatingStatus_In_Test = 14,
+ CIM_ComputerSystem_OperatingStatus_Transitioning = 15,
+ CIM_ComputerSystem_OperatingStatus_In_Service = 16,
+ CIM_ComputerSystem_OperatingStatus_DMTF_Reserved = 0,
+ CIM_ComputerSystem_OperatingStatus_Vendor_Reserved = 0,
+}
+CIM_ComputerSystem_OperatingStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Unknown(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 0)
+
+/* "Not Available" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Not_Available(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 1)
+
+/* "Servicing" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Servicing(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 2)
+
+/* "Starting" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Starting(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 3)
+
+/* "Stopping" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Stopping(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 4)
+
+/* "Stopped" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Stopped(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 5)
+
+/* "Aborted" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Aborted(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 6)
+
+/* "Dormant" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Dormant(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 7)
+
+/* "Completed" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Completed(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 8)
+
+/* "Migrating" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Migrating(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 9)
+
+/* "Emigrating" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Emigrating(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 10)
+
+/* "Immigrating" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Immigrating(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 11)
+
+/* "Snapshotting" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Snapshotting(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 12)
+
+/* "Shutting Down" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Shutting_Down(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 13)
+
+/* "In Test" */
+#define CIM_ComputerSystem_Set_OperatingStatus_In_Test(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 14)
+
+/* "Transitioning" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Transitioning(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 15)
+
+/* "In Service" */
+#define CIM_ComputerSystem_Set_OperatingStatus_In_Service(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 16)
+
+/* "DMTF Reserved" */
+#define CIM_ComputerSystem_Set_OperatingStatus_DMTF_Reserved(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Vendor_Reserved(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 0)
+
+KINLINE void CIM_ComputerSystem_Set_CommunicationStatus(
+ CIM_ComputerSystem* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->CommunicationStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_CommunicationStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->CommunicationStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_CommunicationStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->CommunicationStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_CommunicationStatus_Enum
+{
+ CIM_ComputerSystem_CommunicationStatus_Unknown = 0,
+ CIM_ComputerSystem_CommunicationStatus_Not_Available = 1,
+ CIM_ComputerSystem_CommunicationSta...
[truncated message content] |
|
From: <mik...@us...> - 2008-07-29 22:26:44
|
Revision: 792
http://omc.svn.sourceforge.net/omc/?rev=792&view=rev
Author: mike-brasher
Date: 2008-07-29 22:26:54 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Made RedundancySet.InstanceID more unique.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.c
Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.c
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.c 2008-07-29 22:06:19 UTC (rev 791)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.c 2008-07-29 22:26:54 UTC (rev 792)
@@ -74,7 +74,7 @@
struct RedundancyInfo info =
{
/* instanceID */
- "REDUNDANCY0",
+ "Linux_Fan:REDUNDANCY0",
/* deviceID */
"FAN0",
/* redundancyStatus */
@@ -105,7 +105,7 @@
struct RedundancyInfo info =
{
/* instanceID */
- "REDUNDANCY0",
+ "Linux_Fan:REDUNDANCY0",
/* deviceID */
"FAN1",
/* redundancyStatus */
@@ -136,7 +136,7 @@
struct RedundancyInfo info =
{
/* instanceID */
- "REDUNDANCY1",
+ "Linux_Fan:REDUNDANCY1",
/* deviceID */
"FAN2",
/* redundancyStatus */
@@ -167,7 +167,7 @@
struct RedundancyInfo info =
{
/* instanceID */
- "REDUNDANCY1",
+ "Linux_Fan:REDUNDANCY1",
/* deviceID */
"FAN3",
/* redundancyStatus */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-29 22:06:10
|
Revision: 791
http://omc.svn.sourceforge.net/omc/?rev=791&view=rev
Author: mike-brasher
Date: 2008-07-29 22:06:19 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Created fake power supply resource and implemente power supply provider.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/PowerSupplyProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.h
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.c
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am 2008-07-29 22:05:04 UTC (rev 790)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am 2008-07-29 22:06:19 UTC (rev 791)
@@ -44,7 +44,8 @@
RegisteredProfileProvider.c \
Resource.h \
SystemDevice.h \
- SystemDeviceProvider.c
+ SystemDeviceProvider.c \
+ Resource.c
liblinux_powersupplyprovider_la_LDFLAGS = \
-lkonkret \
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/PowerSupplyProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/PowerSupplyProvider.c 2008-07-29 22:05:04 UTC (rev 790)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/PowerSupplyProvider.c 2008-07-29 22:06:19 UTC (rev 791)
@@ -1,5 +1,6 @@
#include <konkret/konkret.h>
#include "PowerSupply.h"
+#include "Resource.h"
static const CMPIBroker* _cb = NULL;
@@ -32,6 +33,72 @@
const CMPIObjectPath* cop,
const char** properties)
{
+ const char* ns = KNameSpace(cop);
+ struct PowerSupplyInfo* data;
+ size_t size;
+ size_t i;
+
+ /* Get power supply resource data */
+
+ if (GetPowerSupplyInfo(&data, &size) != 0)
+ KReturn2(_cb, ERR_FAILED, "failed to access power supply resources");
+
+ /* For each power supply */
+
+ for (i = 0; i < size; i++)
+ {
+ PowerSupply x;
+
+ PowerSupply_Init(&x, _cb, ns);
+
+ /* PowerSupply.SystemCreationClassName (mandatory) */
+ PowerSupply_Set_SystemCreationClassName(&x, SysClassName().str);
+
+ /* PowerSupply.SystemName (mandatory) */
+ PowerSupply_Set_SystemName(&x, SysName().str);
+
+ /* PowerSupply.CreationClassName (mandatory) */
+ PowerSupply_Set_CreationClassName(&x, "Linux_PowerSupply");
+
+ /* PowerSupply.DeviceID (mandatory) */
+ PowerSupply_Set_DeviceID(&x, data[i].deviceID);
+
+ /* PowerSupply.TotalOutputPower */
+ PowerSupply_Set_TotalOutputPower(&x, data[i].totalOutputPower);
+
+ /* PowerSupply.OperationalStatus (mandatory) */
+ PowerSupply_Init_OperationalStatus(&x, 1);
+ PowerSupply_Set_OperationalStatus(&x, 0, data[i].operationalStatus);
+
+ /* PowerSupply.HealthState (mandatory) */
+ PowerSupply_Set_HealthState(&x, data[i].healthState);
+
+ /* PowerSupply.EnabledState (mandatory) */
+ PowerSupply_Set_EnabledState(&x, data[i].enabledState);
+
+ /* PowerSupply.RequestedState (mandatory) */
+ PowerSupply_Set_RequestedState_Not_Applicable(&x);
+
+ /* PowerSupply.ElementName (mandatory) */
+ PowerSupply_Set_ElementName(&x, data[i].deviceID);
+
+ /* PowerSupply.Name (optional) */
+ PowerSupply_Set_Name(&x, data[i].deviceID);
+
+ /* PowerSupply.Caption (optional) */
+ PowerSupply_Set_Caption(&x, "Power Supply Instance");
+
+ /* PowerSupply.Description (optional) */
+ PowerSupply_Set_Description(&x,
+ "This instance represents the characteristics of a power supply");
+
+ /* Return this instance */
+ KReturnInstance(cr, x);
+ }
+
+ /* Free resource data */
+ free(data);
+
CMReturn(CMPI_RC_OK);
}
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.c
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.c (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.c 2008-07-29 22:06:19 UTC (rev 791)
@@ -0,0 +1,47 @@
+#include "Resource.h"
+
+int GetPowerSupplyInfo(struct PowerSupplyInfo** data_out, size_t* size_out)
+{
+ int i;
+ struct PowerSupplyInfo* data = NULL;
+ size_t size = 0;
+
+ if (!data_out || !size_out)
+ return -1;
+
+ *data_out = NULL;
+ *size_out = 0;
+
+ for (i = 0; i < 2; i++)
+ {
+ struct PowerSupplyInfo info;
+
+ memset(&info, 0, sizeof(info));
+
+ /* PowerSupplyInfo.deviceID */
+ sprintf(info.deviceID, "POWER-SUPPLY-%d", i);
+
+ /* PowerSupplyInfo.totalOutputPower */
+ info.totalOutputPower = 950000;
+
+ /* PowerSupplyInfo.operationalStatus */
+ info.operationalStatus = PowerSupply_OperationalStatus_OK;
+
+ /* PowerSupplyInfo.healthState */
+ info.healthState = PowerSupply_HealthState_OK;
+
+ /* PowerSupplyInfo.enabledState */
+ info.enabledState = PowerSupply_EnabledState_Enabled;
+
+ /* Append new element to array */
+ size++;
+ data = (struct PowerSupplyInfo*)realloc(
+ data, size * sizeof(struct PowerSupplyInfo));
+ memcpy(&data[size - 1], &info, sizeof(info));
+ }
+
+ *data_out = data;
+ *size_out = size;
+
+ return 0;
+}
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.h 2008-07-29 22:05:04 UTC (rev 790)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.h 2008-07-29 22:06:19 UTC (rev 791)
@@ -5,6 +5,7 @@
#include <cmpiutil/base.h>
#include <cmpiutil/exec.h>
#include <stdarg.h>
+#include "PowerSupply.h"
#ifndef KONKRET_REGISTRATION
# define KONKRET_REGISTRATION(W,X,Y,Z) /* empty */
@@ -59,4 +60,26 @@
return s;
}
+struct PowerSupplyInfo
+{
+ /* Unique device ID */
+ char deviceID[32];
+
+ /* Total output power in milliwatts */
+ CMPIUint32 totalOutputPower;
+
+ /* Operational status of this power supply */
+ PowerSupply_OperationalStatus_Enum operationalStatus;
+
+ /* Health state of this power supply */
+ PowerSupply_HealthState_Enum healthState;
+
+ /* Enabled state */
+ PowerSupply_EnabledState_Enum enabledState;
+};
+
+#define MAX_POWER_SUPPLY_INFO 16
+
+int GetPowerSupplyInfo(struct PowerSupplyInfo** data, size_t* size);
+
#endif /* _Resource_h */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-29 22:04:55
|
Revision: 790
http://omc.svn.sourceforge.net/omc/?rev=790&view=rev
Author: mike-brasher
Date: 2008-07-29 22:05:04 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
fixed typo in error message.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/FanProvider.c
Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/FanProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/FanProvider.c 2008-07-29 21:10:54 UTC (rev 789)
+++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/FanProvider.c 2008-07-29 22:05:04 UTC (rev 790)
@@ -41,7 +41,7 @@
/* Get fan resource data */
if (GetFanInfo(&data, &size) != 0)
- KReturn2(_cb, ERR_FAILED, "failed to access fan resource");
+ KReturn2(_cb, ERR_FAILED, "failed to access fan resources");
/* For each fan */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-29 21:10:46
|
Revision: 789
http://omc.svn.sourceforge.net/omc/?rev=789&view=rev
Author: mike-brasher
Date: 2008-07-29 21:10:54 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
New provider skeletons.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.mof
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/linux-power-supply-profile.kon
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Collection.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Component.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ComputerSystem.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Dependency.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_HostedCollection.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_HostedDependency.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_IsSpare.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_MemberOfCollection.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_OwningCollectionElement.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_RedundancySet.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_RegisteredProfile.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_System.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_SystemComponent.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_SystemDevice.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_SystemSpecificCollection.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ComputerSystem.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/HostedCollection.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/HostedCollectionProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/IsSpare.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/IsSpareProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/MemberOfCollection.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/MemberOfCollectionProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/OwningCollectionElement.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/OwningCollectionElementProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RedundancySet.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RedundancySetProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfile.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/RegisteredProfileProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/SystemDevice.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/SystemDeviceProvider.c
Modified: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.mof 2008-07-29 19:15:57 UTC (rev 788)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.mof 2008-07-29 21:10:54 UTC (rev 789)
@@ -7,3 +7,37 @@
class Linux_PowerSupply : CIM_PowerSupply
{
};
+
+class Linux_PowerRedundancySet : CIM_RedundancySet
+{
+};
+
+class Linux_PowerHostedCollection : CIM_HostedCollection
+{
+ [Key] Linux_ComputerSystem REF Antecedent;
+ [Key] Linux_PowerRedundancySet REF Dependent;
+};
+
+class Linux_PowerIsSpare : CIM_IsSpare
+{
+ [Key] Linux_PowerRedundancySet REF Dependent;
+ [Key] Linux_PowerSupply REF Antecedent;
+};
+
+class Linux_PowerMemberOfCollection : CIM_MemberOfCollection
+{
+ [Key] Linux_PowerRedundancySet REF Collection;
+ [Key] Linux_PowerSupply REF Member;
+};
+
+class Linux_PowerSystemDevice : CIM_SystemDevice
+{
+ [Key] Linux_ComputerSystem REF GroupComponent;
+ [Key] Linux_PowerSupply REF PartComponent;
+};
+
+class Linux_PowerOwningCollectionElement : CIM_OwningCollectionElement
+{
+ [Key] Linux_ComputerSystem REF OwningElement;
+ [Key] Linux_PowerRedundancySet REF OwnedElement;
+};
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Collection.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Collection.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Collection.h 2008-07-29 21:10:54 UTC (rev 789)
@@ -0,0 +1,329 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_Collection_h
+#define _konkrete_CIM_Collection_h
+
+#include <konkret/konkret.h>
+
+/*
+**==============================================================================
+**
+** struct CIM_CollectionRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_Collection */
+typedef struct _CIM_CollectionRef
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ /* CIM_Collection features */
+}
+CIM_CollectionRef;
+
+static const unsigned char __CIM_CollectionRef_sig[] =
+{
+ 0x0e,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,
+ 0x00,0x00,
+};
+
+KINLINE void CIM_CollectionRef_Init(
+ CIM_CollectionRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_CollectionRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_CollectionRef_InitFromInstance(
+ CIM_CollectionRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_CollectionRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_CollectionRef_InitFromObjectPath(
+ CIM_CollectionRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_CollectionRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_CollectionRef_Print(
+ const CIM_CollectionRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_CollectionRef_ToInstance(
+ const CIM_CollectionRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_CollectionRef_ToObjectPath(
+ const CIM_CollectionRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_CollectionRef_NameSpace(
+ CIM_CollectionRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_Collection
+**
+**==============================================================================
+*/
+
+/* classname=CIM_Collection */
+typedef struct _CIM_Collection
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ const KString Caption;
+ const KString Description;
+ const KString ElementName;
+ /* CIM_Collection features */
+}
+CIM_Collection;
+
+static const unsigned char __CIM_Collection_sig[] =
+{
+ 0x0e,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,
+ 0x00,0x03,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x44,
+ 0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x45,0x6c,
+ 0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,
+};
+
+KINLINE void CIM_Collection_Init(
+ CIM_Collection* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_Collection_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_Collection_InitFromInstance(
+ CIM_Collection* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_Collection_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_Collection_InitFromObjectPath(
+ CIM_Collection* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_Collection_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_Collection_Print(
+ const CIM_Collection* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_Collection_ToInstance(
+ const CIM_Collection* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_Collection_ToObjectPath(
+ const CIM_Collection* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_Collection_NameSpace(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_Collection_SetString_Caption(
+ CIM_Collection* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_Collection_Set_Caption(
+ CIM_Collection* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_Collection_Null_Caption(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_Collection_Clr_Caption(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_Collection_SetString_Description(
+ CIM_Collection* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_Collection_Set_Description(
+ CIM_Collection* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_Collection_Null_Description(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_Collection_Clr_Description(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_Collection_SetString_ElementName(
+ CIM_Collection* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_Collection_Set_ElementName(
+ CIM_Collection* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_Collection_Null_ElementName(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_Collection_Clr_ElementName(
+ CIM_Collection* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** CIM_Collection methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_Collection_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_CollectionRef self;
+
+ KReturnIf(CIM_CollectionRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_Collection_h */
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Component.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Component.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Component.h 2008-07-29 21:10:54 UTC (rev 789)
@@ -0,0 +1,381 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_Component_h
+#define _konkrete_CIM_Component_h
+
+#include <konkret/konkret.h>
+#include "CIM_ManagedElement.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_ComponentRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_Component */
+typedef struct _CIM_ComponentRef
+{
+ KBase __base;
+ /* CIM_Component features */
+ const KRef GroupComponent; /* CIM_ManagedElement */
+ const KRef PartComponent; /* CIM_ManagedElement */
+}
+CIM_ComponentRef;
+
+static const unsigned char __CIM_ComponentRef_sig[] =
+{
+ 0x0d,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x00,
+ 0x02,0x4e,0x0e,0x47,0x72,0x6f,0x75,0x70,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,
+ 0x6e,0x74,0x00,0x4e,0x0d,0x50,0x61,0x72,0x74,0x43,0x6f,0x6d,0x70,0x6f,0x6e,
+ 0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_ComponentRef_Init(
+ CIM_ComponentRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ComponentRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->GroupComponent)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->PartComponent)->__sig = __CIM_ManagedElement_sig;
+}
+
+KINLINE CMPIStatus CIM_ComponentRef_InitFromInstance(
+ CIM_ComponentRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ComponentRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ComponentRef_InitFromObjectPath(
+ CIM_ComponentRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ComponentRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ComponentRef_Print(
+ const CIM_ComponentRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ComponentRef_ToInstance(
+ const CIM_ComponentRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ComponentRef_ToObjectPath(
+ const CIM_ComponentRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ComponentRef_NameSpace(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ComponentRef_SetObjectPath_GroupComponent(
+ CIM_ComponentRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ComponentRef_Set_GroupComponent(
+ CIM_ComponentRef* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ComponentRef_Null_GroupComponent(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ComponentRef_Clr_GroupComponent(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComponentRef_SetObjectPath_PartComponent(
+ CIM_ComponentRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ComponentRef_Set_PartComponent(
+ CIM_ComponentRef* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ComponentRef_Null_PartComponent(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ComponentRef_Clr_PartComponent(
+ CIM_ComponentRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_Component
+**
+**==============================================================================
+*/
+
+/* classname=CIM_Component */
+typedef struct _CIM_Component
+{
+ KBase __base;
+ /* CIM_Component features */
+ const KRef GroupComponent; /* CIM_ManagedElement */
+ const KRef PartComponent; /* CIM_ManagedElement */
+}
+CIM_Component;
+
+static const unsigned char __CIM_Component_sig[] =
+{
+ 0x0d,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x00,
+ 0x02,0x4e,0x0e,0x47,0x72,0x6f,0x75,0x70,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,
+ 0x6e,0x74,0x00,0x4e,0x0d,0x50,0x61,0x72,0x74,0x43,0x6f,0x6d,0x70,0x6f,0x6e,
+ 0x65,0x6e,0x74,0x00,
+};
+
+KINLINE void CIM_Component_Init(
+ CIM_Component* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_Component_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->GroupComponent)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->PartComponent)->__sig = __CIM_ManagedElement_sig;
+}
+
+KINLINE CMPIStatus CIM_Component_InitFromInstance(
+ CIM_Component* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_Component_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_Component_InitFromObjectPath(
+ CIM_Component* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_Component_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_Component_Print(
+ const CIM_Component* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_Component_ToInstance(
+ const CIM_Component* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_Component_ToObjectPath(
+ const CIM_Component* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_Component_NameSpace(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_Component_SetObjectPath_GroupComponent(
+ CIM_Component* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_Component_Set_GroupComponent(
+ CIM_Component* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_Component_Null_GroupComponent(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_Component_Clr_GroupComponent(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->GroupComponent;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_Component_SetObjectPath_PartComponent(
+ CIM_Component* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_Component_Set_PartComponent(
+ CIM_Component* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_Component_Null_PartComponent(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_Component_Clr_PartComponent(
+ CIM_Component* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->PartComponent;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** CIM_Component methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_Component_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_ComponentRef self;
+
+ KReturnIf(CIM_ComponentRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_Component_h */
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ComputerSystem.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ComputerSystem.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ComputerSystem.h 2008-07-29 21:10:54 UTC (rev 789)
@@ -0,0 +1,3061 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_ComputerSystem_h
+#define _konkrete_CIM_ComputerSystem_h
+
+#include <konkret/konkret.h>
+#include "CIM_ConcreteJob.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_ComputerSystemRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ComputerSystem */
+typedef struct _CIM_ComputerSystemRef
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ /* CIM_ManagedSystemElement features */
+ const KString Name;
+ /* CIM_LogicalElement features */
+ /* CIM_EnabledLogicalElement features */
+ /* CIM_System features */
+ const KString CreationClassName;
+ /* CIM_ComputerSystem features */
+}
+CIM_ComputerSystemRef;
+
+static const unsigned char __CIM_ComputerSystemRef_sig[] =
+{
+ 0x12,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6d,0x70,0x75,0x74,0x65,0x72,0x53,0x79,
+ 0x73,0x74,0x65,0x6d,0x00,0x02,0x4c,0x04,0x4e,0x61,0x6d,0x65,0x00,0x4c,0x11,
+ 0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c,0x61,0x73,0x73,0x4e,0x61,
+ 0x6d,0x65,0x00,
+};
+
+KINLINE void CIM_ComputerSystemRef_Init(
+ CIM_ComputerSystemRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ComputerSystemRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_ComputerSystemRef_InitFromInstance(
+ CIM_ComputerSystemRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ComputerSystemRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ComputerSystemRef_InitFromObjectPath(
+ CIM_ComputerSystemRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ComputerSystemRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ComputerSystemRef_Print(
+ const CIM_ComputerSystemRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ComputerSystemRef_ToInstance(
+ const CIM_ComputerSystemRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ComputerSystemRef_ToObjectPath(
+ const CIM_ComputerSystemRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ComputerSystemRef_NameSpace(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ComputerSystemRef_SetString_Name(
+ CIM_ComputerSystemRef* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Set_Name(
+ CIM_ComputerSystemRef* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Null_Name(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Clr_Name(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_SetString_CreationClassName(
+ CIM_ComputerSystemRef* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->CreationClassName;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Set_CreationClassName(
+ CIM_ComputerSystemRef* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->CreationClassName;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Null_CreationClassName(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->CreationClassName;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystemRef_Clr_CreationClassName(
+ CIM_ComputerSystemRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->CreationClassName;
+ KString_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_ComputerSystem
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ComputerSystem */
+typedef struct _CIM_ComputerSystem
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ const KString Caption;
+ const KString Description;
+ const KString ElementName;
+ /* CIM_ManagedSystemElement features */
+ const KDateTime InstallDate;
+ const KString Name;
+ const KUint16A OperationalStatus;
+ const KStringA StatusDescriptions;
+ const KString Status;
+ const KUint16 HealthState;
+ const KUint16 PrimaryStatus;
+ const KUint16 DetailedStatus;
+ const KUint16 OperatingStatus;
+ const KUint16 CommunicationStatus;
+ /* CIM_LogicalElement features */
+ /* CIM_EnabledLogicalElement features */
+ const KUint16 EnabledState;
+ const KString OtherEnabledState;
+ const KUint16 RequestedState;
+ const KUint16 EnabledDefault;
+ const KDateTime TimeOfLastStateChange;
+ const KUint16A AvailableRequestedStates;
+ const KUint16 TransitioningToState;
+ /* CIM_System features */
+ const KString CreationClassName;
+ const KString NameFormat;
+ const KString PrimaryOwnerName;
+ const KString PrimaryOwnerContact;
+ const KStringA Roles;
+ const KStringA OtherIdentifyingInfo;
+ const KStringA IdentifyingDescriptions;
+ /* CIM_ComputerSystem features */
+ const KUint16A Dedicated;
+ const KStringA OtherDedicatedDescriptions;
+ const KUint16 ResetCapability;
+ const KUint16A PowerManagementCapabilities;
+}
+CIM_ComputerSystem;
+
+static const unsigned char __CIM_ComputerSystem_sig[] =
+{
+ 0x12,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6d,0x70,0x75,0x74,0x65,0x72,0x53,0x79,
+ 0x73,0x74,0x65,0x6d,0x00,0x1f,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,
+ 0x00,0x0c,0x0b,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,
+ 0x0c,0x0b,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x0d,
+ 0x0b,0x49,0x6e,0x73,0x74,0x61,0x6c,0x6c,0x44,0x61,0x74,0x65,0x00,0x4c,0x04,
+ 0x4e,0x61,0x6d,0x65,0x00,0x83,0x11,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,
+ 0x6e,0x61,0x6c,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x8c,0x12,0x53,0x74,0x61,
+ 0x74,0x75,0x73,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,
+ 0x00,0x0c,0x06,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0b,0x48,0x65,0x61,
+ 0x6c,0x74,0x68,0x53,0x74,0x61,0x74,0x65,0x00,0x03,0x0d,0x50,0x72,0x69,0x6d,
+ 0x61,0x72,0x79,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0e,0x44,0x65,0x74,
+ 0x61,0x69,0x6c,0x65,0x64,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0f,0x4f,
+ 0x70,0x65,0x72,0x61,0x74,0x69,0x6e,0x67,0x53,0x74,0x61,0x74,0x75,0x73,0x00,
+ 0x03,0x13,0x43,0x6f,0x6d,0x6d,0x75,0x6e,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e,
+ 0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0c,0x45,0x6e,0x61,0x62,0x6c,0x65,
+ 0x64,0x53,0x74,0x61,0x74,0x65,0x00,0x0c,0x11,0x4f,0x74,0x68,0x65,0x72,0x45,
+ 0x6e,0x61,0x62,0x6c,0x65,0x64,0x53,0x74,0x61,0x74,0x65,0x00,0x03,0x0e,0x52,
+ 0x65,0x71,0x75,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x74,0x65,0x00,0x03,
+ 0x0e,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64,0x44,0x65,0x66,0x61,0x75,0x6c,0x74,
+ 0x00,0x0d,0x15,0x54,0x69,0x6d,0x65,0x4f,0x66,0x4c,0x61,0x73,0x74,0x53,0x74,
+ 0x61,0x74,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x00,0x83,0x18,0x41,0x76,0x61,
+ 0x69,0x6c,0x61,0x62,0x6c,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74,0x65,0x64,
+ 0x53,0x74,0x61,0x74,0x65,0x73,0x00,0x03,0x14,0x54,0x72,0x61,0x6e,0x73,0x69,
+ 0x74,0x69,0x6f,0x6e,0x69,0x6e,0x67,0x54,0x6f,0x53,0x74,0x61,0x74,0x65,0x00,
+ 0x4c,0x11,0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c,0x61,0x73,0x73,
+ 0x4e,0x61,0x6d,0x65,0x00,0x0c,0x0a,0x4e,0x61,0x6d,0x65,0x46,0x6f,0x72,0x6d,
+ 0x61,0x74,0x00,0x0c,0x10,0x50,0x72,0x69,0x6d,0x61,0x72,0x79,0x4f,0x77,0x6e,
+ 0x65,0x72,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x13,0x50,0x72,0x69,0x6d,0x61,0x72,
+ 0x79,0x4f,0x77,0x6e,0x65,0x72,0x43,0x6f,0x6e,0x74,0x61,0x63,0x74,0x00,0x8c,
+ 0x05,0x52,0x6f,0x6c,0x65,0x73,0x00,0x8c,0x14,0x4f,0x74,0x68,0x65,0x72,0x49,
+ 0x64,0x65,0x6e,0x74,0x69,0x66,0x79,0x69,0x6e,0x67,0x49,0x6e,0x66,0x6f,0x00,
+ 0x8c,0x17,0x49,0x64,0x65,0x6e,0x74,0x69,0x66,0x79,0x69,0x6e,0x67,0x44,0x65,
+ 0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x83,0x09,0x44,0x65,
+ 0x64,0x69,0x63,0x61,0x74,0x65,0x64,0x00,0x8c,0x1a,0x4f,0x74,0x68,0x65,0x72,
+ 0x44,0x65,0x64,0x69,0x63,0x61,0x74,0x65,0x64,0x44,0x65,0x73,0x63,0x72,0x69,
+ 0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x03,0x0f,0x52,0x65,0x73,0x65,0x74,0x43,
+ 0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x79,0x00,0x83,0x1b,0x50,0x6f,0x77,
+ 0x65,0x72,0x4d,0x61,0x6e,0x61,0x67,0x65,0x6d,0x65,0x6e,0x74,0x43,0x61,0x70,
+ 0x61,0x62,0x69,0x6c,0x69,0x74,0x69,0x65,0x73,0x00,
+};
+
+KINLINE void CIM_ComputerSystem_Init(
+ CIM_ComputerSystem* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ComputerSystem_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_ComputerSystem_InitFromInstance(
+ CIM_ComputerSystem* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ComputerSystem_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ComputerSystem_InitFromObjectPath(
+ CIM_ComputerSystem* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ComputerSystem_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ComputerSystem_Print(
+ const CIM_ComputerSystem* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_ComputerSystem_ToInstance(
+ const CIM_ComputerSystem* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ComputerSystem_ToObjectPath(
+ const CIM_ComputerSystem* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ComputerSystem_NameSpace(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ComputerSystem_SetString_Caption(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_Caption(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_Caption(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_Caption(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_SetString_Description(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_Description(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_Description(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_Description(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_SetString_ElementName(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_ElementName(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_ElementName(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_ElementName(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_InstallDate(
+ CIM_ComputerSystem* self,
+ CMPIDateTime* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->InstallDate;
+ KDateTime_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_InstallDate(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->InstallDate;
+ KDateTime_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_InstallDate(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->InstallDate;
+ KDateTime_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_SetString_Name(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_Name(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_Name(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_Name(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Clr(field);
+ }
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Init_OperationalStatus(
+ CIM_ComputerSystem* self,
+ CMPICount count)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Init(field, self->__base.cb, count);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ComputerSystem_InitNull_OperationalStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ KUint16A_InitNull(field);
+ }
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Set_OperationalStatus(
+ CIM_ComputerSystem* self,
+ CMPICount i,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Set(field, i, x);
+ }
+ return 0;
+}
+
+KINLINE KUint16 CIM_ComputerSystem_Get_OperationalStatus(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Get(field, i);
+ }
+ return KUint16A_Get(NULL, 0);
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Null_OperationalStatus(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Null(field, i);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ComputerSystem_Clr_OperationalStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ KUint16A_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_OperationalStatus_Enum
+{
+ CIM_ComputerSystem_OperationalStatus_Unknown = 0,
+ CIM_ComputerSystem_OperationalStatus_Other = 1,
+ CIM_ComputerSystem_OperationalStatus_OK = 2,
+ CIM_ComputerSystem_OperationalStatus_Degraded = 3,
+ CIM_ComputerSystem_OperationalStatus_Stressed = 4,
+ CIM_ComputerSystem_OperationalStatus_Predictive_Failure = 5,
+ CIM_ComputerSystem_OperationalStatus_Error = 6,
+ CIM_ComputerSystem_OperationalStatus_Non_Recoverable_Error = 7,
+ CIM_ComputerSystem_OperationalStatus_Starting = 8,
+ CIM_ComputerSystem_OperationalStatus_Stopping = 9,
+ CIM_ComputerSystem_OperationalStatus_Stopped = 10,
+ CIM_ComputerSystem_OperationalStatus_In_Service = 11,
+ CIM_ComputerSystem_OperationalStatus_No_Contact = 12,
+ CIM_ComputerSystem_OperationalStatus_Lost_Communication = 13,
+ CIM_ComputerSystem_OperationalStatus_Aborted = 14,
+ CIM_ComputerSystem_OperationalStatus_Dormant = 15,
+ CIM_ComputerSystem_OperationalStatus_Supporting_Entity_in_Error = 16,
+ CIM_ComputerSystem_OperationalStatus_Completed = 17,
+ CIM_ComputerSystem_OperationalStatus_Power_Mode = 18,
+ CIM_ComputerSystem_OperationalStatus_DMTF_Reserved = 0,
+ CIM_ComputerSystem_OperationalStatus_Vendor_Reserved = 0,
+}
+CIM_ComputerSystem_OperationalStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Unknown(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0)
+
+/* "Other" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Other(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 1)
+
+/* "OK" */
+#define CIM_ComputerSystem_Set_OperationalStatus_OK(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 2)
+
+/* "Degraded" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Degraded(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 3)
+
+/* "Stressed" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Stressed(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 4)
+
+/* "Predictive Failure" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 5)
+
+/* "Error" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Error(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 6)
+
+/* "Non-Recoverable Error" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 7)
+
+/* "Starting" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Starting(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 8)
+
+/* "Stopping" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Stopping(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 9)
+
+/* "Stopped" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Stopped(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 10)
+
+/* "In Service" */
+#define CIM_ComputerSystem_Set_OperationalStatus_In_Service(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 11)
+
+/* "No Contact" */
+#define CIM_ComputerSystem_Set_OperationalStatus_No_Contact(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 12)
+
+/* "Lost Communication" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 13)
+
+/* "Aborted" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Aborted(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 14)
+
+/* "Dormant" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Dormant(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 15)
+
+/* "Supporting Entity in Error" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 16)
+
+/* "Completed" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Completed(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 17)
+
+/* "Power Mode" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Power_Mode(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 18)
+
+/* "DMTF Reserved" */
+#define CIM_ComputerSystem_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ComputerSystem_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\
+ CIM_ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0)
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Init_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount count)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Init(field, self->__base.cb, count);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ComputerSystem_InitNull_StatusDescriptions(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ KStringA_InitNull(field);
+ }
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_SetString_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_SetString(field, i, x);
+ }
+ return 0;
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Set_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Set(field, self->__base.cb, i, s);
+ }
+ return 0;
+}
+
+KINLINE KString CIM_ComputerSystem_GetString_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_GetString(field, i);
+ }
+ return KStringA_GetString(NULL, 0);
+}
+
+KINLINE const char* CIM_ComputerSystem_Get_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Get(field, i);
+ }
+ return NULL;
+}
+
+KINLINE CMPIBoolean CIM_ComputerSystem_Null_StatusDescriptions(
+ CIM_ComputerSystem* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Null(field, i);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ComputerSystem_Clr_StatusDescriptions(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ KStringA_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_SetString_Status(
+ CIM_ComputerSystem* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_Status(
+ CIM_ComputerSystem* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_Status(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_Status(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Set_HealthState(
+ CIM_ComputerSystem* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->HealthState;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_HealthState(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->HealthState;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_HealthState(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->HealthState;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_HealthState_Enum
+{
+ CIM_ComputerSystem_HealthState_Unknown = 0,
+ CIM_ComputerSystem_HealthState_OK = 5,
+ CIM_ComputerSystem_HealthState_Degraded_Warning = 10,
+ CIM_ComputerSystem_HealthState_Minor_failure = 15,
+ CIM_ComputerSystem_HealthState_Major_failure = 20,
+ CIM_ComputerSystem_HealthState_Critical_failure = 25,
+ CIM_ComputerSystem_HealthState_Non_recoverable_error = 30,
+ CIM_ComputerSystem_HealthState_DMTF_Reserved = 0,
+}
+CIM_ComputerSystem_HealthState_Enum;
+
+/* "Unknown" */
+#define CIM_ComputerSystem_Set_HealthState_Unknown(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 0)
+
+/* "OK" */
+#define CIM_ComputerSystem_Set_HealthState_OK(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 5)
+
+/* "Degraded/Warning" */
+#define CIM_ComputerSystem_Set_HealthState_Degraded_Warning(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 10)
+
+/* "Minor failure" */
+#define CIM_ComputerSystem_Set_HealthState_Minor_failure(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 15)
+
+/* "Major failure" */
+#define CIM_ComputerSystem_Set_HealthState_Major_failure(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 20)
+
+/* "Critical failure" */
+#define CIM_ComputerSystem_Set_HealthState_Critical_failure(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 25)
+
+/* "Non-recoverable error" */
+#define CIM_ComputerSystem_Set_HealthState_Non_recoverable_error(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 30)
+
+/* "DMTF Reserved" */
+#define CIM_ComputerSystem_Set_HealthState_DMTF_Reserved(SELF) \
+ CIM_ComputerSystem_Set_HealthState(SELF, 0)
+
+KINLINE void CIM_ComputerSystem_Set_PrimaryStatus(
+ CIM_ComputerSystem* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->PrimaryStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_PrimaryStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->PrimaryStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_PrimaryStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->PrimaryStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_PrimaryStatus_Enum
+{
+ CIM_ComputerSystem_PrimaryStatus_Unknown = 0,
+ CIM_ComputerSystem_PrimaryStatus_OK = 1,
+ CIM_ComputerSystem_PrimaryStatus_Degraded = 2,
+ CIM_ComputerSystem_PrimaryStatus_Error = 3,
+ CIM_ComputerSystem_PrimaryStatus_DMTF_Reserved = 0,
+ CIM_ComputerSystem_PrimaryStatus_Vendor_Reserved = 0,
+}
+CIM_ComputerSystem_PrimaryStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_Unknown(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 0)
+
+/* "OK" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_OK(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 1)
+
+/* "Degraded" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_Degraded(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 2)
+
+/* "Error" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_Error(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 3)
+
+/* "DMTF Reserved" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_DMTF_Reserved(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ComputerSystem_Set_PrimaryStatus_Vendor_Reserved(SELF) \
+ CIM_ComputerSystem_Set_PrimaryStatus(SELF, 0)
+
+KINLINE void CIM_ComputerSystem_Set_DetailedStatus(
+ CIM_ComputerSystem* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->DetailedStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_DetailedStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->DetailedStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_DetailedStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->DetailedStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_DetailedStatus_Enum
+{
+ CIM_ComputerSystem_DetailedStatus_Not_Available = 0,
+ CIM_ComputerSystem_DetailedStatus_No_Additional_Information = 1,
+ CIM_ComputerSystem_DetailedStatus_Stressed = 2,
+ CIM_ComputerSystem_DetailedStatus_Predictive_Failure = 3,
+ CIM_ComputerSystem_DetailedStatus_Non_Recoverable_Error = 4,
+ CIM_ComputerSystem_DetailedStatus_Supporting_Entity_in_Error = 5,
+ CIM_ComputerSystem_DetailedStatus_DMTF_Reserved = 0,
+ CIM_ComputerSystem_DetailedStatus_Vendor_Reserved = 0,
+}
+CIM_ComputerSystem_DetailedStatus_Enum;
+
+/* "Not Available" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Not_Available(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 0)
+
+/* "No Additional Information" */
+#define CIM_ComputerSystem_Set_DetailedStatus_No_Additional_Information(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 1)
+
+/* "Stressed" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Stressed(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 2)
+
+/* "Predictive Failure" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Predictive_Failure(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 3)
+
+/* "Non-Recoverable Error" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Non_Recoverable_Error(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 4)
+
+/* "Supporting Entity in Error" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 5)
+
+/* "DMTF Reserved" */
+#define CIM_ComputerSystem_Set_DetailedStatus_DMTF_Reserved(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ComputerSystem_Set_DetailedStatus_Vendor_Reserved(SELF) \
+ CIM_ComputerSystem_Set_DetailedStatus(SELF, 0)
+
+KINLINE void CIM_ComputerSystem_Set_OperatingStatus(
+ CIM_ComputerSystem* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->OperatingStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Null_OperatingStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->OperatingStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ComputerSystem_Clr_OperatingStatus(
+ CIM_ComputerSystem* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->OperatingStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ComputerSystem_OperatingStatus_Enum
+{
+ CIM_ComputerSystem_OperatingStatus_Unknown = 0,
+ CIM_ComputerSystem_OperatingStatus_Not_Available = 1,
+ CIM_ComputerSystem_OperatingStatus_Servicing = 2,
+ CIM_ComputerSystem_OperatingStatus_Starting = 3,
+ CIM_ComputerSystem_OperatingStatus_Stopping = 4,
+ CIM_ComputerSystem_OperatingStatus_Stopped = 5,
+ CIM_ComputerSystem_OperatingStatus_Aborted = 6,
+ CIM_ComputerSystem_OperatingStatus_Dormant = 7,
+ CIM_ComputerSystem_OperatingStatus_Completed = 8,
+ CIM_ComputerSystem_OperatingStatus_Migrating = 9,
+ CIM_ComputerSystem_OperatingStatus_Emigrating = 10,
+ CIM_ComputerSystem_OperatingStatus_Immigrating = 11,
+ CIM_ComputerSystem_OperatingStatus_Snapshotting = 12,
+ CIM_ComputerSystem_OperatingStatus_Shutting_Down = 13,
+ CIM_ComputerSystem_OperatingStatus_In_Test = 14,
+ CIM_ComputerSystem_OperatingStatus_Transitioning = 15,
+ CIM_ComputerSystem_OperatingStatus_In_Service = 16,
+ CIM_ComputerSystem_OperatingStatus_DMTF_Reserved = 0,
+ CIM_ComputerSystem_OperatingStatus_Vendor_Reserved = 0,
+}
+CIM_ComputerSystem_OperatingStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Unknown(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 0)
+
+/* "Not Available" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Not_Available(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 1)
+
+/* "Servicing" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Servicing(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 2)
+
+/* "Starting" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Starting(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 3)
+
+/* "Stopping" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Stopping(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 4)
+
+/* "Stopped" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Stopped(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 5)
+
+/* "Aborted" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Aborted(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 6)
+
+/* "Dormant" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Dormant(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 7)
+
+/* "Completed" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Completed(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 8)
+
+/* "Migrating" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Migrating(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 9)
+
+/* "Emigrating" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Emigrating(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 10)
+
+/* "Immigrating" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Immigrating(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 11)
+
+/* "Snapshotting" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Snapshotting(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 12)
+
+/* "Shutting Down" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Shutting_Down(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 13)
+
+/* "In Test" */
+#define CIM_ComputerSystem_Set_OperatingStatus_In_Test(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 14)
+
+/* "Transitioning" */
+#define CIM_ComputerSystem_Set_OperatingStatus_Transitioning(SELF) \
+ CIM_ComputerSystem_Set_OperatingStatus(SELF, 15)
+
+/* "In Service" */
+#define CIM_Co...
[truncated message content] |
|
From: <jc...@us...> - 2008-07-29 19:15:48
|
Revision: 788
http://omc.svn.sourceforge.net/omc/?rev=788&view=rev
Author: jcarey
Date: 2008-07-29 19:15:57 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Fixed bug in enumerate instances
Modified Paths:
--------------
contrib/xen-vm-builder/trunk/src/providers/vm-builder/vmcreation-data.c
Modified: contrib/xen-vm-builder/trunk/src/providers/vm-builder/vmcreation-data.c
===================================================================
--- contrib/xen-vm-builder/trunk/src/providers/vm-builder/vmcreation-data.c 2008-07-26 01:10:43 UTC (rev 787)
+++ contrib/xen-vm-builder/trunk/src/providers/vm-builder/vmcreation-data.c 2008-07-29 19:15:57 UTC (rev 788)
@@ -535,9 +535,9 @@
CMPIUTIL_SETSTATUS(_broker, &status, CMPI_RC_ERROR_SYSTEM, err_msg);
return status;
}
- instance = cmpiutilNewInstance(_broker, ns, "XEN_VMBuilderVirtualSystemCreationData",
- creation_data_keys, properties, &status);
while (db_results_have_more_rows(dbctx)) {
+ instance = cmpiutilNewInstance(_broker, ns, "XEN_VMBuilderVirtualSystemCreationData",
+ creation_data_keys, properties, &status);
_fillInstance(dbctx, instance);
CMReturnInstance(results, instance);
db_results_next_row(dbctx);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-26 01:10:35
|
Revision: 787
http://omc.svn.sourceforge.net/omc/?rev=787&view=rev
Author: mike-brasher
Date: 2008-07-26 01:10:43 +0000 (Sat, 26 Jul 2008)
Log Message:
-----------
The modest beginnings of a power-supply profile.
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-power_supply_profile/
cmpiprofiles/sblim-cmpi-power_supply_profile/branches/
cmpiprofiles/sblim-cmpi-power_supply_profile/svn-commit.tmp
cmpiprofiles/sblim-cmpi-power_supply_profile/tags/
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/AUTHORS
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/COPYING
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/ChangeLog
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/INSTALL
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/Makefile.am
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/NEWS
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/README
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/bootstrap.sh
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/cleanup.sh
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/configure.ac
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/Makefile.am
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile-interop.mof
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.mof
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.registration
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/register.sh
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ConcreteJob.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_EnabledLogicalElement.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_Job.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_LogicalDevice.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_LogicalElement.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ManagedElement.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ManagedSystemElement.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_PowerSource.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_PowerSupply.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/PowerSupply.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/PowerSupplyProvider.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/Resource.h
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/konkret.sh
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/linux-power-supply-profile.kon
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/menu.lst
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ref/
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ref/Resource.c
cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/ref/Resource.h
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/svn-commit.tmp
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/svn-commit.tmp (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/svn-commit.tmp 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,4 @@
+New
+--This line, and those below, will be ignored--
+
+M trunk/mof/linux-boot-control-profile.mof
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/COPYING
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/COPYING (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/COPYING 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,19 @@
+SBLIM work within the OMC project is primarily constrained by EPL License.
+
+Please pay attention to the license for each file.
+
+
+Notice for Projects/Files Released Under the EPL License
+
+/******************************************************************************
+* Copyright (c) 2008, Novell, Inc. All rights reserved.
+*
+* This file is provided under the terms of the Eclipse Public License v1.0
+* ("Agreement"). Any use, reproduction or distribution of this file
+* constitutes recipient's acceptance of the agreement.
+*
+* You can obtain a current copy of the Eclipse Public License from
+* http://www.opensource.org/licenses/eclipse-1.0.php
+*
+******************************************************************************/
+
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/INSTALL
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/INSTALL (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/INSTALL 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,229 @@
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
+Foundation, Inc.
+
+ This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+ These are generic installation instructions.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. (Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.)
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You only need
+`configure.ac' if you want to change it or regenerate `configure' using
+a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system. If you're
+ using `csh' on an old version of System V, you might need to type
+ `sh ./configure' instead to prevent `csh' from trying to execute
+ `configure' itself.
+
+ Running `configure' takes awhile. While running, it prints some
+ messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+Compilers and Options
+=====================
+
+ Some systems require unusual options for compilation or linking that
+the `configure' script does not know about. Run `./configure --help'
+for details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+ You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ If you have to use a `make' that does not support the `VPATH'
+variable, you have to compile the package for one architecture at a
+time in the source code directory. After you have installed the
+package for one architecture, use `make distclean' before reconfiguring
+for another architecture.
+
+Installation Names
+==================
+
+ By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc. You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PATH'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+give `configure' the option `--exec-prefix=PATH', the package will use
+PATH as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=PATH' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+ Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+ There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on. Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the `--target=TYPE' option to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+ If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+ Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+will cause the specified gcc to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+`configure' Invocation
+======================
+
+ `configure' recognizes the following options to control how it
+operates.
+
+`--help'
+`-h'
+ Print a summary of the options to `configure', and exit.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/Makefile.am
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/Makefile.am (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/Makefile.am 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,5 @@
+## Process this file with automake to produce Makefile.in
+
+AUTOMAKE_OPTIONS = gnu
+
+SUBDIRS = . src mof
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/bootstrap.sh
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/bootstrap.sh (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/bootstrap.sh 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,7 @@
+#!/bin/sh
+touch NEWS README AUTHORS ChangeLog
+aclocal \
+&& autoconf \
+&& autoheader \
+&& libtoolize --force --copy \
+&& automake --add-missing
Property changes on: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/bootstrap.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/cleanup.sh
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/cleanup.sh (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/cleanup.sh 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Clean up files created by autotools.
+
+rm -rf \
+ configure \
+ Makefile.in \
+ depcomp \
+ config.guess \
+ config.sub \
+ ltmain.sh \
+ config.h.in \
+ autom4te.cache \
+ missing \
+ aclocal.m4 \
+ install-sh \
+ mof/Makefile.in \
+ src/Makefile.in \
+ config.h.in~ \
+ config.log \
+ config.status \
+ stamp-h1 \
+ config.h \
+ libtool \
+ Makefile \
+ mof/Makefile \
+ src/.deps \
+ src/Makefile
Property changes on: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/cleanup.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/configure.ac
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/configure.ac (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/configure.ac 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,17 @@
+# Process this file with autoconf to produce a configure script
+AC_PREREQ(2.57)
+AC_INIT(sblim-cmpi-ethport_profile, 1.0.0)
+AM_INIT_AUTOMAKE
+AC_CONFIG_SRCDIR([src])
+AC_CONFIG_HEADER([config.h])
+AC_PROG_LIBTOOL
+AC_PREFIX_DEFAULT(/usr)
+AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_CHECK_LIB(konkret,KPrintInstance,,[AC_MSG_ERROR(missing required library: konkret: please install KonkretCMPI)])
+AC_CHECK_HEADERS(konkret/konkret.h,,[AC_MSG_ERROR(missing required header: konkret.h: please install KonkretCMPI)])
+AC_CONFIG_FILES([Makefile src/Makefile mof/Makefile])
+AC_OUTPUT
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/Makefile.am
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/Makefile.am (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/Makefile.am 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,8 @@
+mof_DATA = \
+ linux-power-supply-profile-interop.mof \
+ linux-power-supply-profile.mof \
+ linux-power-supply-profile.registration
+
+mofdir = $(datadir)/mof/$(PACKAGE_NAME)
+
+EXTRA_DIST = $(mof_DATA)
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile-interop.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile-interop.mof (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile-interop.mof 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,3 @@
+class Linux_PowerRegisteredProfile : CIM_RegisteredProfile
+{
+};
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.mof (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.mof 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,9 @@
+//==============================================================================
+//
+// Power Supply Profile
+//
+//==============================================================================
+
+class Linux_PowerSupply : CIM_PowerSupply
+{
+};
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.registration
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.registration (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/linux-power-supply-profile.registration 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1 @@
+Linux_PowerSupply root/cimv2 PowerSupply linux_powersupplyprovider instance method
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/register.sh
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/register.sh (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/register.sh 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,7 @@
+#!/bin/sh
+BASE=linux-power-supply-profile
+TARGET=../src/.libs/liblinux_powersupplyprovider.so
+konkretreg $TARGET > $BASE.registration
+provider-register.sh -r $BASE.registration -m $BASE.mof
+cp $BASE-interop.mof /usr/var/lib/sfcb/stage/mofs/root/interop
+cp $TARGET /usr/lib64/
Property changes on: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/mof/register.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ConcreteJob.h
===================================================================
--- cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ConcreteJob.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-power_supply_profile/trunk/src/CIM_ConcreteJob.h 2008-07-26 01:10:43 UTC (rev 787)
@@ -0,0 +1,2661 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_ConcreteJob_h
+#define _konkrete_CIM_ConcreteJob_h
+
+#include <konkret/konkret.h>
+
+/*
+**==============================================================================
+**
+** struct CIM_ConcreteJobRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ConcreteJob */
+typedef struct _CIM_ConcreteJobRef
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ /* CIM_ManagedSystemElement features */
+ /* CIM_LogicalElement features */
+ /* CIM_Job features */
+ /* CIM_ConcreteJob features */
+ const KString InstanceID;
+}
+CIM_ConcreteJobRef;
+
+static const unsigned char __CIM_ConcreteJobRef_sig[] =
+{
+ 0x0f,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6e,0x63,0x72,0x65,0x74,0x65,0x4a,0x6f,
+ 0x62,0x00,0x01,0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,
+ 0x00,
+};
+
+KINLINE void CIM_ConcreteJobRef_Init(
+ CIM_ConcreteJobRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ConcreteJobRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_ConcreteJobRef_InitFromInstance(
+ CIM_ConcreteJobRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ConcreteJobRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ConcreteJobRef_InitFromObjectPath(
+ CIM_ConcreteJobRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ConcreteJobRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ConcreteJobRef_Print(
+ const CIM_ConcreteJobRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ConcreteJobRef_ToInstance(
+ const CIM_ConcreteJobRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ConcreteJobRef_ToObjectPath(
+ const CIM_ConcreteJobRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ConcreteJobRef_NameSpace(
+ CIM_ConcreteJobRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ConcreteJobRef_SetString_InstanceID(
+ CIM_ConcreteJobRef* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->InstanceID;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJobRef_Set_InstanceID(
+ CIM_ConcreteJobRef* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->InstanceID;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ConcreteJobRef_Null_InstanceID(
+ CIM_ConcreteJobRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->InstanceID;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJobRef_Clr_InstanceID(
+ CIM_ConcreteJobRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->InstanceID;
+ KString_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_ConcreteJob
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ConcreteJob */
+typedef struct _CIM_ConcreteJob
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ const KString Caption;
+ const KString Description;
+ const KString ElementName;
+ /* CIM_ManagedSystemElement features */
+ const KDateTime InstallDate;
+ const KString Name;
+ const KUint16A OperationalStatus;
+ const KStringA StatusDescriptions;
+ const KString Status;
+ const KUint16 HealthState;
+ const KUint16 PrimaryStatus;
+ const KUint16 DetailedStatus;
+ const KUint16 OperatingStatus;
+ const KUint16 CommunicationStatus;
+ /* CIM_LogicalElement features */
+ /* CIM_Job features */
+ const KString JobStatus;
+ const KDateTime TimeSubmitted;
+ const KDateTime ScheduledStartTime;
+ const KDateTime StartTime;
+ const KDateTime ElapsedTime;
+ const KUint32 JobRunTimes;
+ const KUint8 RunMonth;
+ const KSint8 RunDay;
+ const KSint8 RunDayOfWeek;
+ const KDateTime RunStartInterval;
+ const KUint16 LocalOrUtcTime;
+ const KDateTime UntilTime;
+ const KString Notify;
+ const KString Owner;
+ const KUint32 Priority;
+ const KUint16 PercentComplete;
+ const KBoolean DeleteOnCompletion;
+ const KUint16 ErrorCode;
+ const KString ErrorDescription;
+ const KUint16 RecoveryAction;
+ const KString OtherRecoveryAction;
+ /* CIM_ConcreteJob features */
+ const KString InstanceID;
+ const KUint16 JobState;
+ const KDateTime TimeOfLastStateChange;
+ const KDateTime TimeBeforeRemoval;
+}
+CIM_ConcreteJob;
+
+static const unsigned char __CIM_ConcreteJob_sig[] =
+{
+ 0x0f,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6e,0x63,0x72,0x65,0x74,0x65,0x4a,0x6f,
+ 0x62,0x00,0x26,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,
+ 0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x45,
+ 0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x0d,0x0b,0x49,0x6e,
+ 0x73,0x74,0x61,0x6c,0x6c,0x44,0x61,0x74,0x65,0x00,0x0c,0x04,0x4e,0x61,0x6d,
+ 0x65,0x00,0x83,0x11,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x61,0x6c,
+ 0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x8c,0x12,0x53,0x74,0x61,0x74,0x75,0x73,
+ 0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x0c,0x06,
+ 0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0b,0x48,0x65,0x61,0x6c,0x74,0x68,
+ 0x53,0x74,0x61,0x74,0x65,0x00,0x03,0x0d,0x50,0x72,0x69,0x6d,0x61,0x72,0x79,
+ 0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0e,0x44,0x65,0x74,0x61,0x69,0x6c,
+ 0x65,0x64,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0f,0x4f,0x70,0x65,0x72,
+ 0x61,0x74,0x69,0x6e,0x67,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x13,0x43,
+ 0x6f,0x6d,0x6d,0x75,0x6e,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e,0x53,0x74,0x61,
+ 0x74,0x75,0x73,0x00,0x0c,0x09,0x4a,0x6f,0x62,0x53,0x74,0x61,0x74,0x75,0x73,
+ 0x00,0x0d,0x0d,0x54,0x69,0x6d,0x65,0x53,0x75,0x62,0x6d,0x69,0x74,0x74,0x65,
+ 0x64,0x00,0x0d,0x12,0x53,0x63,0x68,0x65,0x64,0x75,0x6c,0x65,0x64,0x53,0x74,
+ 0x61,0x72,0x74,0x54,0x69,0x6d,0x65,0x00,0x0d,0x09,0x53,0x74,0x61,0x72,0x74,
+ 0x54,0x69,0x6d,0x65,0x00,0x0d,0x0b,0x45,0x6c,0x61,0x70,0x73,0x65,0x64,0x54,
+ 0x69,0x6d,0x65,0x00,0x05,0x0b,0x4a,0x6f,0x62,0x52,0x75,0x6e,0x54,0x69,0x6d,
+ 0x65,0x73,0x00,0x01,0x08,0x52,0x75,0x6e,0x4d,0x6f,0x6e,0x74,0x68,0x00,0x02,
+ 0x06,0x52,0x75,0x6e,0x44,0x61,0x79,0x00,0x02,0x0c,0x52,0x75,0x6e,0x44,0x61,
+ 0x79,0x4f,0x66,0x57,0x65,0x65,0x6b,0x00,0x0d,0x10,0x52,0x75,0x6e,0x53,0x74,
+ 0x61,0x72,0x74,0x49,0x6e,0x74,0x65,0x72,0x76,0x61,0x6c,0x00,0x03,0x0e,0x4c,
+ 0x6f,0x63,0x61,0x6c,0x4f,0x72,0x55,0x74,0x63,0x54,0x69,0x6d,0x65,0x00,0x0d,
+ 0x09,0x55,0x6e,0x74,0x69,0x6c,0x54,0x69,0x6d,0x65,0x00,0x0c,0x06,0x4e,0x6f,
+ 0x74,0x69,0x66,0x79,0x00,0x0c,0x05,0x4f,0x77,0x6e,0x65,0x72,0x00,0x05,0x08,
+ 0x50,0x72,0x69,0x6f,0x72,0x69,0x74,0x79,0x00,0x03,0x0f,0x50,0x65,0x72,0x63,
+ 0x65,0x6e,0x74,0x43,0x6f,0x6d,0x70,0x6c,0x65,0x74,0x65,0x00,0x00,0x12,0x44,
+ 0x65,0x6c,0x65,0x74,0x65,0x4f,0x6e,0x43,0x6f,0x6d,0x70,0x6c,0x65,0x74,0x69,
+ 0x6f,0x6e,0x00,0x03,0x09,0x45,0x72,0x72,0x6f,0x72,0x43,0x6f,0x64,0x65,0x00,
+ 0x0c,0x10,0x45,0x72,0x72,0x6f,0x72,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,
+ 0x69,0x6f,0x6e,0x00,0x03,0x0e,0x52,0x65,0x63,0x6f,0x76,0x65,0x72,0x79,0x41,
+ 0x63,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x13,0x4f,0x74,0x68,0x65,0x72,0x52,0x65,
+ 0x63,0x6f,0x76,0x65,0x72,0x79,0x41,0x63,0x74,0x69,0x6f,0x6e,0x00,0x4c,0x0a,
+ 0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00,0x03,0x08,0x4a,0x6f,
+ 0x62,0x53,0x74,0x61,0x74,0x65,0x00,0x0d,0x15,0x54,0x69,0x6d,0x65,0x4f,0x66,
+ 0x4c,0x61,0x73,0x74,0x53,0x74,0x61,0x74,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,
+ 0x00,0x0d,0x11,0x54,0x69,0x6d,0x65,0x42,0x65,0x66,0x6f,0x72,0x65,0x52,0x65,
+ 0x6d,0x6f,0x76,0x61,0x6c,0x00,
+};
+
+KINLINE void CIM_ConcreteJob_Init(
+ CIM_ConcreteJob* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ConcreteJob_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus CIM_ConcreteJob_InitFromInstance(
+ CIM_ConcreteJob* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ConcreteJob_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ConcreteJob_InitFromObjectPath(
+ CIM_ConcreteJob* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ConcreteJob_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ConcreteJob_Print(
+ const CIM_ConcreteJob* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_ConcreteJob_ToInstance(
+ const CIM_ConcreteJob* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ConcreteJob_ToObjectPath(
+ const CIM_ConcreteJob* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ConcreteJob_NameSpace(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ConcreteJob_SetString_Caption(
+ CIM_ConcreteJob* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Set_Caption(
+ CIM_ConcreteJob* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_Caption(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_Caption(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Caption;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_SetString_Description(
+ CIM_ConcreteJob* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Set_Description(
+ CIM_ConcreteJob* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_Description(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_Description(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Description;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_SetString_ElementName(
+ CIM_ConcreteJob* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Set_ElementName(
+ CIM_ConcreteJob* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_ElementName(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_ElementName(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->ElementName;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Set_InstallDate(
+ CIM_ConcreteJob* self,
+ CMPIDateTime* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->InstallDate;
+ KDateTime_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_InstallDate(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->InstallDate;
+ KDateTime_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_InstallDate(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->InstallDate;
+ KDateTime_Clr(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_SetString_Name(
+ CIM_ConcreteJob* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Set_Name(
+ CIM_ConcreteJob* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_Name(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_Name(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Name;
+ KString_Clr(field);
+ }
+}
+
+KINLINE CMPIBoolean CIM_ConcreteJob_Init_OperationalStatus(
+ CIM_ConcreteJob* self,
+ CMPICount count)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Init(field, self->__base.cb, count);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ConcreteJob_InitNull_OperationalStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ KUint16A_InitNull(field);
+ }
+}
+
+KINLINE CMPIBoolean CIM_ConcreteJob_Set_OperationalStatus(
+ CIM_ConcreteJob* self,
+ CMPICount i,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Set(field, i, x);
+ }
+ return 0;
+}
+
+KINLINE KUint16 CIM_ConcreteJob_Get_OperationalStatus(
+ CIM_ConcreteJob* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Get(field, i);
+ }
+ return KUint16A_Get(NULL, 0);
+}
+
+KINLINE CMPIBoolean CIM_ConcreteJob_Null_OperationalStatus(
+ CIM_ConcreteJob* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ return KUint16A_Null(field, i);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ConcreteJob_Clr_OperationalStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16A* field = (KUint16A*)&self->OperationalStatus;
+ KUint16A_Clr(field);
+ }
+}
+
+typedef enum _CIM_ConcreteJob_OperationalStatus_Enum
+{
+ CIM_ConcreteJob_OperationalStatus_Unknown = 0,
+ CIM_ConcreteJob_OperationalStatus_Other = 1,
+ CIM_ConcreteJob_OperationalStatus_OK = 2,
+ CIM_ConcreteJob_OperationalStatus_Degraded = 3,
+ CIM_ConcreteJob_OperationalStatus_Stressed = 4,
+ CIM_ConcreteJob_OperationalStatus_Predictive_Failure = 5,
+ CIM_ConcreteJob_OperationalStatus_Error = 6,
+ CIM_ConcreteJob_OperationalStatus_Non_Recoverable_Error = 7,
+ CIM_ConcreteJob_OperationalStatus_Starting = 8,
+ CIM_ConcreteJob_OperationalStatus_Stopping = 9,
+ CIM_ConcreteJob_OperationalStatus_Stopped = 10,
+ CIM_ConcreteJob_OperationalStatus_In_Service = 11,
+ CIM_ConcreteJob_OperationalStatus_No_Contact = 12,
+ CIM_ConcreteJob_OperationalStatus_Lost_Communication = 13,
+ CIM_ConcreteJob_OperationalStatus_Aborted = 14,
+ CIM_ConcreteJob_OperationalStatus_Dormant = 15,
+ CIM_ConcreteJob_OperationalStatus_Supporting_Entity_in_Error = 16,
+ CIM_ConcreteJob_OperationalStatus_Completed = 17,
+ CIM_ConcreteJob_OperationalStatus_Power_Mode = 18,
+ CIM_ConcreteJob_OperationalStatus_DMTF_Reserved = 0,
+ CIM_ConcreteJob_OperationalStatus_Vendor_Reserved = 0,
+}
+CIM_ConcreteJob_OperationalStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Unknown(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0)
+
+/* "Other" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Other(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 1)
+
+/* "OK" */
+#define CIM_ConcreteJob_Set_OperationalStatus_OK(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 2)
+
+/* "Degraded" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Degraded(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 3)
+
+/* "Stressed" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Stressed(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 4)
+
+/* "Predictive Failure" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 5)
+
+/* "Error" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Error(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 6)
+
+/* "Non-Recoverable Error" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 7)
+
+/* "Starting" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Starting(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 8)
+
+/* "Stopping" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Stopping(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 9)
+
+/* "Stopped" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Stopped(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 10)
+
+/* "In Service" */
+#define CIM_ConcreteJob_Set_OperationalStatus_In_Service(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 11)
+
+/* "No Contact" */
+#define CIM_ConcreteJob_Set_OperationalStatus_No_Contact(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 12)
+
+/* "Lost Communication" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 13)
+
+/* "Aborted" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Aborted(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 14)
+
+/* "Dormant" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Dormant(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 15)
+
+/* "Supporting Entity in Error" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 16)
+
+/* "Completed" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Completed(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 17)
+
+/* "Power Mode" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Power_Mode(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 18)
+
+/* "DMTF Reserved" */
+#define CIM_ConcreteJob_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ConcreteJob_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\
+ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0)
+
+KINLINE CMPIBoolean CIM_ConcreteJob_Init_StatusDescriptions(
+ CIM_ConcreteJob* self,
+ CMPICount count)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Init(field, self->__base.cb, count);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ConcreteJob_InitNull_StatusDescriptions(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ KStringA_InitNull(field);
+ }
+}
+
+KINLINE CMPIBoolean CIM_ConcreteJob_SetString_StatusDescriptions(
+ CIM_ConcreteJob* self,
+ CMPICount i,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_SetString(field, i, x);
+ }
+ return 0;
+}
+
+KINLINE CMPIBoolean CIM_ConcreteJob_Set_StatusDescriptions(
+ CIM_ConcreteJob* self,
+ CMPICount i,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Set(field, self->__base.cb, i, s);
+ }
+ return 0;
+}
+
+KINLINE KString CIM_ConcreteJob_GetString_StatusDescriptions(
+ CIM_ConcreteJob* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_GetString(field, i);
+ }
+ return KStringA_GetString(NULL, 0);
+}
+
+KINLINE const char* CIM_ConcreteJob_Get_StatusDescriptions(
+ CIM_ConcreteJob* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Get(field, i);
+ }
+ return NULL;
+}
+
+KINLINE CMPIBoolean CIM_ConcreteJob_Null_StatusDescriptions(
+ CIM_ConcreteJob* self,
+ CMPICount i)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ return KStringA_Null(field, i);
+ }
+ return 0;
+}
+
+KINLINE void CIM_ConcreteJob_Clr_StatusDescriptions(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KStringA* field = (KStringA*)&self->StatusDescriptions;
+ KStringA_Clr(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_SetString_Status(
+ CIM_ConcreteJob* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Set_Status(
+ CIM_ConcreteJob* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_Status(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_Status(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->Status;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Set_HealthState(
+ CIM_ConcreteJob* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->HealthState;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_HealthState(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->HealthState;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_HealthState(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->HealthState;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ConcreteJob_HealthState_Enum
+{
+ CIM_ConcreteJob_HealthState_Unknown = 0,
+ CIM_ConcreteJob_HealthState_OK = 5,
+ CIM_ConcreteJob_HealthState_Degraded_Warning = 10,
+ CIM_ConcreteJob_HealthState_Minor_failure = 15,
+ CIM_ConcreteJob_HealthState_Major_failure = 20,
+ CIM_ConcreteJob_HealthState_Critical_failure = 25,
+ CIM_ConcreteJob_HealthState_Non_recoverable_error = 30,
+ CIM_ConcreteJob_HealthState_DMTF_Reserved = 0,
+}
+CIM_ConcreteJob_HealthState_Enum;
+
+/* "Unknown" */
+#define CIM_ConcreteJob_Set_HealthState_Unknown(SELF) \
+ CIM_ConcreteJob_Set_HealthState(SELF, 0)
+
+/* "OK" */
+#define CIM_ConcreteJob_Set_HealthState_OK(SELF) \
+ CIM_ConcreteJob_Set_HealthState(SELF, 5)
+
+/* "Degraded/Warning" */
+#define CIM_ConcreteJob_Set_HealthState_Degraded_Warning(SELF) \
+ CIM_ConcreteJob_Set_HealthState(SELF, 10)
+
+/* "Minor failure" */
+#define CIM_ConcreteJob_Set_HealthState_Minor_failure(SELF) \
+ CIM_ConcreteJob_Set_HealthState(SELF, 15)
+
+/* "Major failure" */
+#define CIM_ConcreteJob_Set_HealthState_Major_failure(SELF) \
+ CIM_ConcreteJob_Set_HealthState(SELF, 20)
+
+/* "Critical failure" */
+#define CIM_ConcreteJob_Set_HealthState_Critical_failure(SELF) \
+ CIM_ConcreteJob_Set_HealthState(SELF, 25)
+
+/* "Non-recoverable error" */
+#define CIM_ConcreteJob_Set_HealthState_Non_recoverable_error(SELF) \
+ CIM_ConcreteJob_Set_HealthState(SELF, 30)
+
+/* "DMTF Reserved" */
+#define CIM_ConcreteJob_Set_HealthState_DMTF_Reserved(SELF) \
+ CIM_ConcreteJob_Set_HealthState(SELF, 0)
+
+KINLINE void CIM_ConcreteJob_Set_PrimaryStatus(
+ CIM_ConcreteJob* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->PrimaryStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_PrimaryStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->PrimaryStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_PrimaryStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->PrimaryStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ConcreteJob_PrimaryStatus_Enum
+{
+ CIM_ConcreteJob_PrimaryStatus_Unknown = 0,
+ CIM_ConcreteJob_PrimaryStatus_OK = 1,
+ CIM_ConcreteJob_PrimaryStatus_Degraded = 2,
+ CIM_ConcreteJob_PrimaryStatus_Error = 3,
+ CIM_ConcreteJob_PrimaryStatus_DMTF_Reserved = 0,
+ CIM_ConcreteJob_PrimaryStatus_Vendor_Reserved = 0,
+}
+CIM_ConcreteJob_PrimaryStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ConcreteJob_Set_PrimaryStatus_Unknown(SELF) \
+ CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0)
+
+/* "OK" */
+#define CIM_ConcreteJob_Set_PrimaryStatus_OK(SELF) \
+ CIM_ConcreteJob_Set_PrimaryStatus(SELF, 1)
+
+/* "Degraded" */
+#define CIM_ConcreteJob_Set_PrimaryStatus_Degraded(SELF) \
+ CIM_ConcreteJob_Set_PrimaryStatus(SELF, 2)
+
+/* "Error" */
+#define CIM_ConcreteJob_Set_PrimaryStatus_Error(SELF) \
+ CIM_ConcreteJob_Set_PrimaryStatus(SELF, 3)
+
+/* "DMTF Reserved" */
+#define CIM_ConcreteJob_Set_PrimaryStatus_DMTF_Reserved(SELF) \
+ CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ConcreteJob_Set_PrimaryStatus_Vendor_Reserved(SELF) \
+ CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0)
+
+KINLINE void CIM_ConcreteJob_Set_DetailedStatus(
+ CIM_ConcreteJob* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->DetailedStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_DetailedStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->DetailedStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_DetailedStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->DetailedStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ConcreteJob_DetailedStatus_Enum
+{
+ CIM_ConcreteJob_DetailedStatus_Not_Available = 0,
+ CIM_ConcreteJob_DetailedStatus_No_Additional_Information = 1,
+ CIM_ConcreteJob_DetailedStatus_Stressed = 2,
+ CIM_ConcreteJob_DetailedStatus_Predictive_Failure = 3,
+ CIM_ConcreteJob_DetailedStatus_Non_Recoverable_Error = 4,
+ CIM_ConcreteJob_DetailedStatus_Supporting_Entity_in_Error = 5,
+ CIM_ConcreteJob_DetailedStatus_DMTF_Reserved = 0,
+ CIM_ConcreteJob_DetailedStatus_Vendor_Reserved = 0,
+}
+CIM_ConcreteJob_DetailedStatus_Enum;
+
+/* "Not Available" */
+#define CIM_ConcreteJob_Set_DetailedStatus_Not_Available(SELF) \
+ CIM_ConcreteJob_Set_DetailedStatus(SELF, 0)
+
+/* "No Additional Information" */
+#define CIM_ConcreteJob_Set_DetailedStatus_No_Additional_Information(SELF) \
+ CIM_ConcreteJob_Set_DetailedStatus(SELF, 1)
+
+/* "Stressed" */
+#define CIM_ConcreteJob_Set_DetailedStatus_Stressed(SELF) \
+ CIM_ConcreteJob_Set_DetailedStatus(SELF, 2)
+
+/* "Predictive Failure" */
+#define CIM_ConcreteJob_Set_DetailedStatus_Predictive_Failure(SELF) \
+ CIM_ConcreteJob_Set_DetailedStatus(SELF, 3)
+
+/* "Non-Recoverable Error" */
+#define CIM_ConcreteJob_Set_DetailedStatus_Non_Recoverable_Error(SELF) \
+ CIM_ConcreteJob_Set_DetailedStatus(SELF, 4)
+
+/* "Supporting Entity in Error" */
+#define CIM_ConcreteJob_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \
+ CIM_ConcreteJob_Set_DetailedStatus(SELF, 5)
+
+/* "DMTF Reserved" */
+#define CIM_ConcreteJob_Set_DetailedStatus_DMTF_Reserved(SELF) \
+ CIM_ConcreteJob_Set_DetailedStatus(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ConcreteJob_Set_DetailedStatus_Vendor_Reserved(SELF) \
+ CIM_ConcreteJob_Set_DetailedStatus(SELF, 0)
+
+KINLINE void CIM_ConcreteJob_Set_OperatingStatus(
+ CIM_ConcreteJob* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->OperatingStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_OperatingStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->OperatingStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_OperatingStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->OperatingStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ConcreteJob_OperatingStatus_Enum
+{
+ CIM_ConcreteJob_OperatingStatus_Unknown = 0,
+ CIM_ConcreteJob_OperatingStatus_Not_Available = 1,
+ CIM_ConcreteJob_OperatingStatus_Servicing = 2,
+ CIM_ConcreteJob_OperatingStatus_Starting = 3,
+ CIM_ConcreteJob_OperatingStatus_Stopping = 4,
+ CIM_ConcreteJob_OperatingStatus_Stopped = 5,
+ CIM_ConcreteJob_OperatingStatus_Aborted = 6,
+ CIM_ConcreteJob_OperatingStatus_Dormant = 7,
+ CIM_ConcreteJob_OperatingStatus_Completed = 8,
+ CIM_ConcreteJob_OperatingStatus_Migrating = 9,
+ CIM_ConcreteJob_OperatingStatus_Emigrating = 10,
+ CIM_ConcreteJob_OperatingStatus_Immigrating = 11,
+ CIM_ConcreteJob_OperatingStatus_Snapshotting = 12,
+ CIM_ConcreteJob_OperatingStatus_Shutting_Down = 13,
+ CIM_ConcreteJob_OperatingStatus_In_Test = 14,
+ CIM_ConcreteJob_OperatingStatus_Transitioning = 15,
+ CIM_ConcreteJob_OperatingStatus_In_Service = 16,
+ CIM_ConcreteJob_OperatingStatus_DMTF_Reserved = 0,
+ CIM_ConcreteJob_OperatingStatus_Vendor_Reserved = 0,
+}
+CIM_ConcreteJob_OperatingStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Unknown(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 0)
+
+/* "Not Available" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Not_Available(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 1)
+
+/* "Servicing" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Servicing(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 2)
+
+/* "Starting" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Starting(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 3)
+
+/* "Stopping" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Stopping(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 4)
+
+/* "Stopped" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Stopped(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 5)
+
+/* "Aborted" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Aborted(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 6)
+
+/* "Dormant" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Dormant(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 7)
+
+/* "Completed" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Completed(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 8)
+
+/* "Migrating" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Migrating(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 9)
+
+/* "Emigrating" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Emigrating(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 10)
+
+/* "Immigrating" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Immigrating(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 11)
+
+/* "Snapshotting" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Snapshotting(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 12)
+
+/* "Shutting Down" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Shutting_Down(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 13)
+
+/* "In Test" */
+#define CIM_ConcreteJob_Set_OperatingStatus_In_Test(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 14)
+
+/* "Transitioning" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Transitioning(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 15)
+
+/* "In Service" */
+#define CIM_ConcreteJob_Set_OperatingStatus_In_Service(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 16)
+
+/* "DMTF Reserved" */
+#define CIM_ConcreteJob_Set_OperatingStatus_DMTF_Reserved(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ConcreteJob_Set_OperatingStatus_Vendor_Reserved(SELF) \
+ CIM_ConcreteJob_Set_OperatingStatus(SELF, 0)
+
+KINLINE void CIM_ConcreteJob_Set_CommunicationStatus(
+ CIM_ConcreteJob* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->CommunicationStatus;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_CommunicationStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->CommunicationStatus;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_CommunicationStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->CommunicationStatus;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ConcreteJob_CommunicationStatus_Enum
+{
+ CIM_ConcreteJob_CommunicationStatus_Unknown = 0,
+ CIM_ConcreteJob_CommunicationStatus_Not_Available = 1,
+ CIM_ConcreteJob_CommunicationStatus_Communication_OK = 2,
+ CIM_ConcreteJob_CommunicationStatus_Lost_Communication = 3,
+ CIM_ConcreteJob_CommunicationStatus_No_Contact = 4,
+ CIM_ConcreteJob_CommunicationStatus_DMTF_Reserved = 0,
+ CIM_ConcreteJob_CommunicationStatus_Vendor_Reserved = 0,
+}
+CIM_ConcreteJob_CommunicationStatus_Enum;
+
+/* "Unknown" */
+#define CIM_ConcreteJob_Set_CommunicationStatus_Unknown(SELF) \
+ CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0)
+
+/* "Not Available" */
+#define CIM_ConcreteJob_Set_CommunicationStatus_Not_Available(SELF) \
+ CIM_ConcreteJob_Set_CommunicationStatus(SELF, 1)
+
+/* "Communication OK" */
+#define CIM_ConcreteJob_Set_CommunicationStatus_Communication_OK(SELF) \
+ CIM_ConcreteJob_Set_CommunicationStatus(SELF, 2)
+
+/* "Lost Communication" */
+#define CIM_ConcreteJob_Set_CommunicationStatus_Lost_Communication(SELF) \
+ CIM_ConcreteJob_Set_CommunicationStatus(SELF, 3)
+
+/* "No Contact" */
+#define CIM_ConcreteJob_Set_CommunicationStatus_No_Contact(SELF) \
+ CIM_ConcreteJob_Set_CommunicationStatus(SELF, 4)
+
+/* "DMTF Reserved" */
+#define CIM_ConcreteJob_Set_CommunicationStatus_DMTF_Reserved(SELF) \
+ CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ConcreteJob_Set_CommunicationStatus_Vendor_Reserved(SELF) \
+ CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0)
+
+KINLINE void CIM_ConcreteJob_SetString_JobStatus(
+ CIM_ConcreteJob* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->JobStatus;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Set_JobStatus(
+ CIM_ConcreteJob* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->JobStatus;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_JobStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->JobStatus;
+ KString_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_JobStatus(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->JobStatus;
+ KString_Clr(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Set_TimeSubmitted(
+ CIM_ConcreteJob* self,
+ CMPIDateTime* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->TimeSubmitted;
+ KDateTime_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Null_TimeSubmitted(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->TimeSubmitted;
+ KDateTime_Null(field);
+ }
+}
+
+KINLINE void CIM_ConcreteJob_Clr_TimeSubmitted(
+ CIM_ConcreteJob* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KDateTime* field = (KDateTime*)&self->TimeSubmitted;
+ KDateTime_Clr(field);
+ }
+}
+
+KINLINE vo...
[truncated message content] |
|
From: <mik...@us...> - 2008-07-23 22:41:41
|
Revision: 786
http://omc.svn.sourceforge.net/omc/?rev=786&view=rev
Author: mike-brasher
Date: 2008-07-23 22:41:49 +0000 (Wed, 23 Jul 2008)
Log Message:
-----------
Added ElementConfigSettings class.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof
Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof 2008-07-23 22:41:19 UTC (rev 785)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof 2008-07-23 22:41:49 UTC (rev 786)
@@ -48,4 +48,6 @@
class Linux_BootElementSettingData : CIM_ElementSettingData
{
+ [Key] Linux_ComputerSystem REF ManagedElement;
+ [Key] Linux_BootConfigSetting REF SettingData;
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mik...@us...> - 2008-07-23 22:41:11
|
Revision: 785
http://omc.svn.sourceforge.net/omc/?rev=785&view=rev
Author: mike-brasher
Date: 2008-07-23 22:41:19 +0000 (Wed, 23 Jul 2008)
Log Message:
-----------
New Linux_BootElementSettingData provider.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingData.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingDataProvider.c
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponent.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ConfigSetting.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ConfigSettingProvider.c
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/SourceSetting.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/SourceSettingProvider.c
Removed Paths:
-------------
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSetting.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSetting.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c
Deleted: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSetting.h
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSetting.h 2008-07-22 23:14:07 UTC (rev 784)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSetting.h 2008-07-23 22:41:19 UTC (rev 785)
@@ -1,723 +0,0 @@
-/*
-**==============================================================================
-**
-** CAUTION: This file generated by KonkretCMPI. Please do not edit.
-**
-**==============================================================================
-*/
-
-#ifndef _konkrete_BootConfigSetting_h
-#define _konkrete_BootConfigSetting_h
-
-#include <konkret/konkret.h>
-#include "CIM_BootSourceSetting.h"
-#include "CIM_ConcreteJob.h"
-
-/*
-**==============================================================================
-**
-** struct BootConfigSettingRef
-**
-**==============================================================================
-*/
-
-/* classname=Linux_BootConfigSetting */
-typedef struct _BootConfigSettingRef
-{
- KBase __base;
- /* CIM_ManagedElement features */
- /* CIM_SettingData features */
- const KString InstanceID;
- /* CIM_BootConfigSetting features */
- /* Linux_BootConfigSetting features */
-}
-BootConfigSettingRef;
-
-static const unsigned char __BootConfigSettingRef_sig[] =
-{
- 0x17,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x43,0x6f,0x6e,0x66,
- 0x69,0x67,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x00,0x01,0x4c,0x0a,0x49,0x6e,
- 0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00,
-};
-
-KINLINE void BootConfigSettingRef_Init(
- BootConfigSettingRef* self,
- const CMPIBroker* cb,
- const char* ns)
-{
- const unsigned char* sig = __BootConfigSettingRef_sig;
- KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
-}
-
-KINLINE CMPIStatus BootConfigSettingRef_InitFromInstance(
- BootConfigSettingRef* self,
- const CMPIBroker* cb,
- const CMPIInstance* x)
-{
- BootConfigSettingRef_Init(self, cb, NULL);
- return KBase_FromInstance(&self->__base, x);
-}
-
-KINLINE CMPIStatus BootConfigSettingRef_InitFromObjectPath(
- BootConfigSettingRef* self,
- const CMPIBroker* cb,
- const CMPIObjectPath* x)
-{
- BootConfigSettingRef_Init(self, cb, NULL);
- return KBase_FromObjectPath(&self->__base, x);
-}
-
-KINLINE void BootConfigSettingRef_Print(
- const BootConfigSettingRef* self,
- FILE* os)
-{
- KBase_Print(os, &self->__base, 'r');
-}
-
-KINLINE CMPIInstance* BootConfigSettingRef_ToInstance(
- const BootConfigSettingRef* self,
- CMPIStatus* status)
-{
- return KBase_ToInstance(&self->__base, status);
-}
-
-KINLINE CMPIObjectPath* BootConfigSettingRef_ToObjectPath(
- const BootConfigSettingRef* self,
- CMPIStatus* status)
-{
- return KBase_ToObjectPath(&self->__base, status);
-}
-
-KINLINE const char* BootConfigSettingRef_NameSpace(
- BootConfigSettingRef* self)
-{
- if (self && self->__base.magic == KMAGIC)
- return self->__base.ns ? KChars(self->__base.ns) : NULL;
- return NULL;
-}
-
-KINLINE void BootConfigSettingRef_SetString_InstanceID(
- BootConfigSettingRef* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootConfigSettingRef_Set_InstanceID(
- BootConfigSettingRef* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootConfigSettingRef_Null_InstanceID(
- BootConfigSettingRef* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Null(field);
- }
-}
-
-KINLINE void BootConfigSettingRef_Clr_InstanceID(
- BootConfigSettingRef* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Clr(field);
- }
-}
-
-/*
-**==============================================================================
-**
-** struct BootConfigSetting
-**
-**==============================================================================
-*/
-
-/* classname=Linux_BootConfigSetting */
-typedef struct _BootConfigSetting
-{
- KBase __base;
- /* CIM_ManagedElement features */
- const KString Caption;
- const KString Description;
- const KString ElementName;
- /* CIM_SettingData features */
- const KString InstanceID;
- const KString ConfigurationName;
- const KUint16 ChangeableType;
- /* CIM_BootConfigSetting features */
- /* Linux_BootConfigSetting features */
-}
-BootConfigSetting;
-
-static const unsigned char __BootConfigSetting_sig[] =
-{
- 0x17,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x43,0x6f,0x6e,0x66,
- 0x69,0x67,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x00,0x06,0x0c,0x07,0x43,0x61,
- 0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x44,0x65,0x73,0x63,0x72,0x69,0x70,
- 0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,
- 0x61,0x6d,0x65,0x00,0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,
- 0x44,0x00,0x0c,0x11,0x43,0x6f,0x6e,0x66,0x69,0x67,0x75,0x72,0x61,0x74,0x69,
- 0x6f,0x6e,0x4e,0x61,0x6d,0x65,0x00,0x03,0x0e,0x43,0x68,0x61,0x6e,0x67,0x65,
- 0x61,0x62,0x6c,0x65,0x54,0x79,0x70,0x65,0x00,
-};
-
-KINLINE void BootConfigSetting_Init(
- BootConfigSetting* self,
- const CMPIBroker* cb,
- const char* ns)
-{
- const unsigned char* sig = __BootConfigSetting_sig;
- KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
-}
-
-KINLINE CMPIStatus BootConfigSetting_InitFromInstance(
- BootConfigSetting* self,
- const CMPIBroker* cb,
- const CMPIInstance* x)
-{
- BootConfigSetting_Init(self, cb, NULL);
- return KBase_FromInstance(&self->__base, x);
-}
-
-KINLINE CMPIStatus BootConfigSetting_InitFromObjectPath(
- BootConfigSetting* self,
- const CMPIBroker* cb,
- const CMPIObjectPath* x)
-{
- BootConfigSetting_Init(self, cb, NULL);
- return KBase_FromObjectPath(&self->__base, x);
-}
-
-KINLINE void BootConfigSetting_Print(
- const BootConfigSetting* self,
- FILE* os)
-{
- KBase_Print(os, &self->__base, 'i');
-}
-
-KINLINE CMPIInstance* BootConfigSetting_ToInstance(
- const BootConfigSetting* self,
- CMPIStatus* status)
-{
- return KBase_ToInstance(&self->__base, status);
-}
-
-KINLINE CMPIObjectPath* BootConfigSetting_ToObjectPath(
- const BootConfigSetting* self,
- CMPIStatus* status)
-{
- return KBase_ToObjectPath(&self->__base, status);
-}
-
-KINLINE const char* BootConfigSetting_NameSpace(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- return self->__base.ns ? KChars(self->__base.ns) : NULL;
- return NULL;
-}
-
-KINLINE void BootConfigSetting_SetString_Caption(
- BootConfigSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Caption;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootConfigSetting_Set_Caption(
- BootConfigSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Caption;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootConfigSetting_Null_Caption(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Caption;
- KString_Null(field);
- }
-}
-
-KINLINE void BootConfigSetting_Clr_Caption(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Caption;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootConfigSetting_SetString_Description(
- BootConfigSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Description;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootConfigSetting_Set_Description(
- BootConfigSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Description;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootConfigSetting_Null_Description(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Description;
- KString_Null(field);
- }
-}
-
-KINLINE void BootConfigSetting_Clr_Description(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Description;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootConfigSetting_SetString_ElementName(
- BootConfigSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ElementName;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootConfigSetting_Set_ElementName(
- BootConfigSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ElementName;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootConfigSetting_Null_ElementName(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ElementName;
- KString_Null(field);
- }
-}
-
-KINLINE void BootConfigSetting_Clr_ElementName(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ElementName;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootConfigSetting_SetString_InstanceID(
- BootConfigSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootConfigSetting_Set_InstanceID(
- BootConfigSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootConfigSetting_Null_InstanceID(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Null(field);
- }
-}
-
-KINLINE void BootConfigSetting_Clr_InstanceID(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootConfigSetting_SetString_ConfigurationName(
- BootConfigSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ConfigurationName;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootConfigSetting_Set_ConfigurationName(
- BootConfigSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ConfigurationName;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootConfigSetting_Null_ConfigurationName(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ConfigurationName;
- KString_Null(field);
- }
-}
-
-KINLINE void BootConfigSetting_Clr_ConfigurationName(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ConfigurationName;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootConfigSetting_Set_ChangeableType(
- BootConfigSetting* self,
- CMPIUint16 x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KUint16* field = (KUint16*)&self->ChangeableType;
- KUint16_Set(field, x);
- }
-}
-
-KINLINE void BootConfigSetting_Null_ChangeableType(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KUint16* field = (KUint16*)&self->ChangeableType;
- KUint16_Null(field);
- }
-}
-
-KINLINE void BootConfigSetting_Clr_ChangeableType(
- BootConfigSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KUint16* field = (KUint16*)&self->ChangeableType;
- KUint16_Clr(field);
- }
-}
-
-typedef enum _BootConfigSetting_ChangeableType_Enum
-{
- BootConfigSetting_ChangeableType_Not_Changeable___Persistent = 0,
- BootConfigSetting_ChangeableType_Changeable___Transient = 1,
- BootConfigSetting_ChangeableType_Changeable___Persistent = 2,
- BootConfigSetting_ChangeableType_Not_Changeable___Transient = 3,
-}
-BootConfigSetting_ChangeableType_Enum;
-
-/* "Not Changeable - Persistent" */
-#define BootConfigSetting_Set_ChangeableType_Not_Changeable___Persistent(SELF) \
- BootConfigSetting_Set_ChangeableType(SELF, 0)
-
-/* "Changeable - Transient" */
-#define BootConfigSetting_Set_ChangeableType_Changeable___Transient(SELF) \
- BootConfigSetting_Set_ChangeableType(SELF, 1)
-
-/* "Changeable - Persistent" */
-#define BootConfigSetting_Set_ChangeableType_Changeable___Persistent(SELF) \
- BootConfigSetting_Set_ChangeableType(SELF, 2)
-
-/* "Not Changeable - Transient" */
-#define BootConfigSetting_Set_ChangeableType_Not_Changeable___Transient(SELF) \
- BootConfigSetting_Set_ChangeableType(SELF, 3)
-
-/* classname=Linux_BootConfigSetting */
-typedef struct _BootConfigSetting_ChangeBootOrder_Args
-{
- KBase __base;
- /* IN */
- KRefA Source; /* CIM_BootSourceSetting */
- /* OUT */
- KRef Job; /* CIM_ConcreteJob */
-}
-BootConfigSetting_ChangeBootOrder_Args;
-
-static const unsigned char __BootConfigSetting_ChangeBootOrder_Args_sig[] =
-{
- 0x0f,0x43,0x68,0x61,0x6e,0x67,0x65,0x42,0x6f,0x6f,0x74,0x4f,0x72,0x64,0x65,
- 0x72,0x00,0x02,0xae,0x06,0x53,0x6f,0x75,0x72,0x63,0x65,0x00,0x1e,0x03,0x4a,
- 0x6f,0x62,0x00,
-};
-
-KINLINE void BootConfigSetting_ChangeBootOrder_Args_Init(
- BootConfigSetting_ChangeBootOrder_Args* self,
- const CMPIBroker* cb)
-{
- const unsigned char* sig = __BootConfigSetting_ChangeBootOrder_Args_sig;
- KBase_Init(&self->__base, cb, sizeof(*self), sig, NULL);
- self->Source.__sig = __CIM_BootSourceSetting_sig;
- self->Job.__sig = __CIM_ConcreteJob_sig;
-}
-
-KINLINE CMPIStatus BootConfigSetting_ChangeBootOrder_Args_InitFromArgs(
- BootConfigSetting_ChangeBootOrder_Args* self,
- const CMPIBroker* cb,
- const CMPIArgs* x,
- CMPIBoolean in,
- CMPIBoolean out)
-{
- BootConfigSetting_ChangeBootOrder_Args_Init(self, cb);
- return KBase_FromArgs(&self->__base, x, in, out);
-}
-
-KINLINE CMPIArgs* BootConfigSetting_ChangeBootOrder_Args_ToArgs(
- const BootConfigSetting_ChangeBootOrder_Args* self,
- CMPIBoolean in,
- CMPIBoolean out,
- CMPIStatus* status)
-{
- return KBase_ToArgs(&self->__base, in, out, status);
-}
-
-KINLINE CMPIStatus BootConfigSetting_ChangeBootOrder_Args_SetArgs(
- const BootConfigSetting_ChangeBootOrder_Args* self,
- CMPIBoolean in,
- CMPIBoolean out,
- CMPIArgs* ca)
-{
- return KBase_SetToArgs(&self->__base, in, out, ca);
-}
-
-KINLINE void BootConfigSetting_ChangeBootOrder_Args_Print(
- const BootConfigSetting_ChangeBootOrder_Args* self,
- FILE* os)
-{
- KBase_Print(os, &self->__base, 'a');
-}
-
-/* classname=Linux_BootConfigSetting */
-typedef struct _BootConfigSetting_ValidateSettings_Args
-{
- KBase __base;
-}
-BootConfigSetting_ValidateSettings_Args;
-
-static const unsigned char __BootConfigSetting_ValidateSettings_Args_sig[] =
-{
- 0x10,0x56,0x61,0x6c,0x69,0x64,0x61,0x74,0x65,0x53,0x65,0x74,0x74,0x69,0x6e,
- 0x67,0x73,0x00,0x00,
-};
-
-KINLINE void BootConfigSetting_ValidateSettings_Args_Init(
- BootConfigSetting_ValidateSettings_Args* self,
- const CMPIBroker* cb)
-{
- const unsigned char* sig = __BootConfigSetting_ValidateSettings_Args_sig;
- KBase_Init(&self->__base, cb, sizeof(*self), sig, NULL);
-}
-
-KINLINE CMPIStatus BootConfigSetting_ValidateSettings_Args_InitFromArgs(
- BootConfigSetting_ValidateSettings_Args* self,
- const CMPIBroker* cb,
- const CMPIArgs* x,
- CMPIBoolean in,
- CMPIBoolean out)
-{
- BootConfigSetting_ValidateSettings_Args_Init(self, cb);
- return KBase_FromArgs(&self->__base, x, in, out);
-}
-
-KINLINE CMPIArgs* BootConfigSetting_ValidateSettings_Args_ToArgs(
- const BootConfigSetting_ValidateSettings_Args* self,
- CMPIBoolean in,
- CMPIBoolean out,
- CMPIStatus* status)
-{
- return KBase_ToArgs(&self->__base, in, out, status);
-}
-
-KINLINE CMPIStatus BootConfigSetting_ValidateSettings_Args_SetArgs(
- const BootConfigSetting_ValidateSettings_Args* self,
- CMPIBoolean in,
- CMPIBoolean out,
- CMPIArgs* ca)
-{
- return KBase_SetToArgs(&self->__base, in, out, ca);
-}
-
-KINLINE void BootConfigSetting_ValidateSettings_Args_Print(
- const BootConfigSetting_ValidateSettings_Args* self,
- FILE* os)
-{
- KBase_Print(os, &self->__base, 'a');
-}
-
-/*
-**==============================================================================
-**
-** BootConfigSetting methods
-**
-**==============================================================================
-*/
-
-KEXTERN KUint32 BootConfigSetting_ChangeBootOrder(
- const CMPIBroker* cb,
- CMPIMethodMI* mi,
- const CMPIContext* context,
- const BootConfigSettingRef* self,
- const KRefA* Source,
- KRef* Job,
- CMPIStatus* status);
-
-KEXTERN KUint32 BootConfigSetting_ValidateSettings(
- const CMPIBroker* cb,
- CMPIMethodMI* mi,
- const CMPIContext* context,
- const BootConfigSettingRef* self,
- CMPIStatus* status);
-
-KINLINE CMPIStatus BootConfigSetting_DispatchMethod(
- const CMPIBroker* cb,
- CMPIMethodMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char* meth,
- const CMPIArgs* in,
- CMPIArgs* out)
-{
- BootConfigSettingRef self;
-
- KReturnIf(BootConfigSettingRef_InitFromObjectPath(&self, cb, cop));
-
- if (strcasecmp(meth, "ChangeBootOrder") == 0)
- {
- CMPIStatus st = KSTATUS_INIT;
- BootConfigSetting_ChangeBootOrder_Args args;
- KUint32 r;
-
- KReturnIf(BootConfigSetting_ChangeBootOrder_Args_InitFromArgs(
- &args, cb, in, 1, 0));
-
- r = BootConfigSetting_ChangeBootOrder(
- cb,
- mi,
- cc,
- &self,
- &args.Source,
- &args.Job,
- &st);
-
- if (!KOkay(st))
- return st;
-
- if (!r.exists)
- KReturn(ERR_FAILED);
-
- KReturnIf(BootConfigSetting_ChangeBootOrder_Args_SetArgs(
- &args, 0, 1, out));
- KReturnUint32Data(cr, &r);
- CMReturnDone(cr);
-
- KReturn(OK);
- }
- if (strcasecmp(meth, "ValidateSettings") == 0)
- {
- CMPIStatus st = KSTATUS_INIT;
- BootConfigSetting_ValidateSettings_Args args;
- KUint32 r;
-
- KReturnIf(BootConfigSetting_ValidateSettings_Args_InitFromArgs(
- &args, cb, in, 1, 0));
-
- r = BootConfigSetting_ValidateSettings(
- cb,
- mi,
- cc,
- &self,
- &st);
-
- if (!KOkay(st))
- return st;
-
- if (!r.exists)
- KReturn(ERR_FAILED);
-
- KReturnIf(BootConfigSetting_ValidateSettings_Args_SetArgs(
- &args, 0, 1, out));
- KReturnUint32Data(cr, &r);
- CMReturnDone(cr);
-
- KReturn(OK);
- }
-
- KReturn(ERR_METHOD_NOT_FOUND);
-}
-
-#endif /* _konkrete_BootConfigSetting_h */
Deleted: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c 2008-07-22 23:14:07 UTC (rev 784)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c 2008-07-23 22:41:19 UTC (rev 785)
@@ -1,174 +0,0 @@
-#include <konkret/konkret.h>
-#include "BootConfigSetting.h"
-#include "Resource.h"
-
-static const CMPIBroker* _cb = NULL;
-
-/*
-**==============================================================================
-**
-** This provider implement Linux_BootConfigSetting, a container of
-** Linux_BootSourceSetting objects (associated through an instance of
-** CIM_OrderedComponent).
-**
-**==============================================================================
-*/
-
-static void BootConfigSettingInitialize()
-{
-}
-
-static CMPIStatus BootConfigSettingCleanup(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- CMPIBoolean term)
-{
- CMReturn(CMPI_RC_OK);
-}
-
-static CMPIStatus BootConfigSettingEnumInstanceNames(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop)
-{
- return KDefaultEnumerateInstanceNames(
- _cb, mi, cc, cr, cop);
-}
-
-static CMPIStatus BootConfigSettingEnumInstances(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char** properties)
-{
- BootConfigSetting x;
- BootConfigSetting_Init(&x, _cb, KNameSpace(cop));
- BootConfigSetting_Set_InstanceID(&x, "SBLIM:BootConfigSetting:Grub");
- BootConfigSetting_Set_ElementName(&x, "Grub Boot Configuration");
- KReturnInstance(cr, x);
- CMReturn(CMPI_RC_OK);
-}
-
-static CMPIStatus BootConfigSettingGetInstance(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char** properties)
-{
- return KDefaultGetInstance(
- _cb, mi, cc, cr, cop, properties);
-}
-
-static CMPIStatus BootConfigSettingCreateInstance(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const CMPIInstance* ci)
-{
- CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
-}
-
-static CMPIStatus BootConfigSettingModifyInstance(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const CMPIInstance* ci,
- const char** properties)
-{
- CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
-}
-
-static CMPIStatus BootConfigSettingDeleteInstance(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop)
-{
- CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
-}
-
-static CMPIStatus BootConfigSettingExecQuery(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char* lang,
- const char* query)
-{
- CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
-}
-
-CMInstanceMIStub(
- BootConfigSetting,
- BootConfigSetting,
- _cb,
- BootConfigSettingInitialize())
-
-static CMPIStatus BootConfigSettingMethodCleanup(
- CMPIMethodMI* mi,
- const CMPIContext* cc,
- CMPIBoolean term)
-{
- CMReturn(CMPI_RC_OK);
-}
-
-static CMPIStatus BootConfigSettingInvokeMethod(
- CMPIMethodMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char* meth,
- const CMPIArgs* in,
- CMPIArgs* out)
-{
- return BootConfigSetting_DispatchMethod(
- _cb, mi, cc, cr, cop, meth, in, out);
-}
-
-CMMethodMIStub(
- BootConfigSetting,
- BootConfigSetting,
- _cb,
- BootConfigSettingInitialize())
-
-KUint32 BootConfigSetting_ChangeBootOrder(
- const CMPIBroker* cb,
- CMPIMethodMI* mi,
- const CMPIContext* context,
- const BootConfigSettingRef* self,
- const KRefA* Source,
- KRef* Job,
- CMPIStatus* status)
-{
- KUint32 result = KUINT32_INIT;
-
- KSetStatus(status, ERR_NOT_SUPPORTED);
- return result;
-}
-
-KUint32 BootConfigSetting_ValidateSettings(
- const CMPIBroker* cb,
- CMPIMethodMI* mi,
- const CMPIContext* context,
- const BootConfigSettingRef* self,
- CMPIStatus* status)
-{
- KUint32 result = KUINT32_INIT;
-
- /* Not supported */
- KUint32_Set(&result, 1);
-
- KSetStatus(status, OK);
- return result;
-}
-
-KONKRET_REGISTRATION(
- "root/cimv2",
- "Linux_BootConfigSetting",
- "BootConfigSetting",
- "instance method");
Deleted: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSetting.h
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSetting.h 2008-07-22 23:14:07 UTC (rev 784)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSetting.h 2008-07-23 22:41:19 UTC (rev 785)
@@ -1,844 +0,0 @@
-/*
-**==============================================================================
-**
-** CAUTION: This file generated by KonkretCMPI. Please do not edit.
-**
-**==============================================================================
-*/
-
-#ifndef _konkrete_BootSourceSetting_h
-#define _konkrete_BootSourceSetting_h
-
-#include <konkret/konkret.h>
-
-/*
-**==============================================================================
-**
-** struct BootSourceSettingRef
-**
-**==============================================================================
-*/
-
-/* classname=Linux_GrubBootSourceSetting */
-typedef struct _BootSourceSettingRef
-{
- KBase __base;
- /* CIM_ManagedElement features */
- /* CIM_SettingData features */
- const KString InstanceID;
- /* CIM_BootSourceSetting features */
- /* Linux_BootSourceSetting features */
- /* Linux_GrubBootSourceSetting features */
-}
-BootSourceSettingRef;
-
-static const unsigned char __BootSourceSettingRef_sig[] =
-{
- 0x1b,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x47,0x72,0x75,0x62,0x42,0x6f,0x6f,0x74,
- 0x53,0x6f,0x75,0x72,0x63,0x65,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x00,0x01,
- 0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00,
-};
-
-KINLINE void BootSourceSettingRef_Init(
- BootSourceSettingRef* self,
- const CMPIBroker* cb,
- const char* ns)
-{
- const unsigned char* sig = __BootSourceSettingRef_sig;
- KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
-}
-
-KINLINE CMPIStatus BootSourceSettingRef_InitFromInstance(
- BootSourceSettingRef* self,
- const CMPIBroker* cb,
- const CMPIInstance* x)
-{
- BootSourceSettingRef_Init(self, cb, NULL);
- return KBase_FromInstance(&self->__base, x);
-}
-
-KINLINE CMPIStatus BootSourceSettingRef_InitFromObjectPath(
- BootSourceSettingRef* self,
- const CMPIBroker* cb,
- const CMPIObjectPath* x)
-{
- BootSourceSettingRef_Init(self, cb, NULL);
- return KBase_FromObjectPath(&self->__base, x);
-}
-
-KINLINE void BootSourceSettingRef_Print(
- const BootSourceSettingRef* self,
- FILE* os)
-{
- KBase_Print(os, &self->__base, 'r');
-}
-
-KINLINE CMPIInstance* BootSourceSettingRef_ToInstance(
- const BootSourceSettingRef* self,
- CMPIStatus* status)
-{
- return KBase_ToInstance(&self->__base, status);
-}
-
-KINLINE CMPIObjectPath* BootSourceSettingRef_ToObjectPath(
- const BootSourceSettingRef* self,
- CMPIStatus* status)
-{
- return KBase_ToObjectPath(&self->__base, status);
-}
-
-KINLINE const char* BootSourceSettingRef_NameSpace(
- BootSourceSettingRef* self)
-{
- if (self && self->__base.magic == KMAGIC)
- return self->__base.ns ? KChars(self->__base.ns) : NULL;
- return NULL;
-}
-
-KINLINE void BootSourceSettingRef_SetString_InstanceID(
- BootSourceSettingRef* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSettingRef_Set_InstanceID(
- BootSourceSettingRef* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSettingRef_Null_InstanceID(
- BootSourceSettingRef* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSettingRef_Clr_InstanceID(
- BootSourceSettingRef* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Clr(field);
- }
-}
-
-/*
-**==============================================================================
-**
-** struct BootSourceSetting
-**
-**==============================================================================
-*/
-
-/* classname=Linux_GrubBootSourceSetting */
-typedef struct _BootSourceSetting
-{
- KBase __base;
- /* CIM_ManagedElement features */
- const KString Caption;
- const KString Description;
- const KString ElementName;
- /* CIM_SettingData features */
- const KString InstanceID;
- const KString ConfigurationName;
- const KUint16 ChangeableType;
- /* CIM_BootSourceSetting features */
- const KString BootString;
- const KString BIOSBootString;
- const KString StructuredBootString;
- const KUint16 FailThroughSupported;
- /* Linux_BootSourceSetting features */
- /* Linux_GrubBootSourceSetting features */
- const KString GrubRoot;
- const KString GrubKernel;
- const KString GrubInitrd;
-}
-BootSourceSetting;
-
-static const unsigned char __BootSourceSetting_sig[] =
-{
- 0x1b,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x47,0x72,0x75,0x62,0x42,0x6f,0x6f,0x74,
- 0x53,0x6f,0x75,0x72,0x63,0x65,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x00,0x0d,
- 0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x44,0x65,0x73,
- 0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x45,0x6c,0x65,0x6d,
- 0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,
- 0x6e,0x63,0x65,0x49,0x44,0x00,0x0c,0x11,0x43,0x6f,0x6e,0x66,0x69,0x67,0x75,
- 0x72,0x61,0x74,0x69,0x6f,0x6e,0x4e,0x61,0x6d,0x65,0x00,0x03,0x0e,0x43,0x68,
- 0x61,0x6e,0x67,0x65,0x61,0x62,0x6c,0x65,0x54,0x79,0x70,0x65,0x00,0x0c,0x0a,
- 0x42,0x6f,0x6f,0x74,0x53,0x74,0x72,0x69,0x6e,0x67,0x00,0x0c,0x0e,0x42,0x49,
- 0x4f,0x53,0x42,0x6f,0x6f,0x74,0x53,0x74,0x72,0x69,0x6e,0x67,0x00,0x0c,0x14,
- 0x53,0x74,0x72,0x75,0x63,0x74,0x75,0x72,0x65,0x64,0x42,0x6f,0x6f,0x74,0x53,
- 0x74,0x72,0x69,0x6e,0x67,0x00,0x03,0x14,0x46,0x61,0x69,0x6c,0x54,0x68,0x72,
- 0x6f,0x75,0x67,0x68,0x53,0x75,0x70,0x70,0x6f,0x72,0x74,0x65,0x64,0x00,0x0c,
- 0x08,0x47,0x72,0x75,0x62,0x52,0x6f,0x6f,0x74,0x00,0x0c,0x0a,0x47,0x72,0x75,
- 0x62,0x4b,0x65,0x72,0x6e,0x65,0x6c,0x00,0x0c,0x0a,0x47,0x72,0x75,0x62,0x49,
- 0x6e,0x69,0x74,0x72,0x64,0x00,
-};
-
-KINLINE void BootSourceSetting_Init(
- BootSourceSetting* self,
- const CMPIBroker* cb,
- const char* ns)
-{
- const unsigned char* sig = __BootSourceSetting_sig;
- KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
-}
-
-KINLINE CMPIStatus BootSourceSetting_InitFromInstance(
- BootSourceSetting* self,
- const CMPIBroker* cb,
- const CMPIInstance* x)
-{
- BootSourceSetting_Init(self, cb, NULL);
- return KBase_FromInstance(&self->__base, x);
-}
-
-KINLINE CMPIStatus BootSourceSetting_InitFromObjectPath(
- BootSourceSetting* self,
- const CMPIBroker* cb,
- const CMPIObjectPath* x)
-{
- BootSourceSetting_Init(self, cb, NULL);
- return KBase_FromObjectPath(&self->__base, x);
-}
-
-KINLINE void BootSourceSetting_Print(
- const BootSourceSetting* self,
- FILE* os)
-{
- KBase_Print(os, &self->__base, 'i');
-}
-
-KINLINE CMPIInstance* BootSourceSetting_ToInstance(
- const BootSourceSetting* self,
- CMPIStatus* status)
-{
- return KBase_ToInstance(&self->__base, status);
-}
-
-KINLINE CMPIObjectPath* BootSourceSetting_ToObjectPath(
- const BootSourceSetting* self,
- CMPIStatus* status)
-{
- return KBase_ToObjectPath(&self->__base, status);
-}
-
-KINLINE const char* BootSourceSetting_NameSpace(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- return self->__base.ns ? KChars(self->__base.ns) : NULL;
- return NULL;
-}
-
-KINLINE void BootSourceSetting_SetString_Caption(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Caption;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_Caption(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Caption;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_Caption(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Caption;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_Caption(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Caption;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_SetString_Description(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Description;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_Description(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Description;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_Description(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Description;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_Description(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->Description;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_SetString_ElementName(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ElementName;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_ElementName(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ElementName;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_ElementName(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ElementName;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_ElementName(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ElementName;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_SetString_InstanceID(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_InstanceID(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_InstanceID(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_InstanceID(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->InstanceID;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_SetString_ConfigurationName(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ConfigurationName;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_ConfigurationName(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ConfigurationName;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_ConfigurationName(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ConfigurationName;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_ConfigurationName(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->ConfigurationName;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_Set_ChangeableType(
- BootSourceSetting* self,
- CMPIUint16 x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KUint16* field = (KUint16*)&self->ChangeableType;
- KUint16_Set(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Null_ChangeableType(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KUint16* field = (KUint16*)&self->ChangeableType;
- KUint16_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_ChangeableType(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KUint16* field = (KUint16*)&self->ChangeableType;
- KUint16_Clr(field);
- }
-}
-
-typedef enum _BootSourceSetting_ChangeableType_Enum
-{
- BootSourceSetting_ChangeableType_Not_Changeable___Persistent = 0,
- BootSourceSetting_ChangeableType_Changeable___Transient = 1,
- BootSourceSetting_ChangeableType_Changeable___Persistent = 2,
- BootSourceSetting_ChangeableType_Not_Changeable___Transient = 3,
-}
-BootSourceSetting_ChangeableType_Enum;
-
-/* "Not Changeable - Persistent" */
-#define BootSourceSetting_Set_ChangeableType_Not_Changeable___Persistent(SELF) \
- BootSourceSetting_Set_ChangeableType(SELF, 0)
-
-/* "Changeable - Transient" */
-#define BootSourceSetting_Set_ChangeableType_Changeable___Transient(SELF) \
- BootSourceSetting_Set_ChangeableType(SELF, 1)
-
-/* "Changeable - Persistent" */
-#define BootSourceSetting_Set_ChangeableType_Changeable___Persistent(SELF) \
- BootSourceSetting_Set_ChangeableType(SELF, 2)
-
-/* "Not Changeable - Transient" */
-#define BootSourceSetting_Set_ChangeableType_Not_Changeable___Transient(SELF) \
- BootSourceSetting_Set_ChangeableType(SELF, 3)
-
-KINLINE void BootSourceSetting_SetString_BootString(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->BootString;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_BootString(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->BootString;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_BootString(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->BootString;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_BootString(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->BootString;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_SetString_BIOSBootString(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->BIOSBootString;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_BIOSBootString(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->BIOSBootString;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_BIOSBootString(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->BIOSBootString;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_BIOSBootString(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->BIOSBootString;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_SetString_StructuredBootString(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->StructuredBootString;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_StructuredBootString(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->StructuredBootString;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_StructuredBootString(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->StructuredBootString;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_StructuredBootString(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->StructuredBootString;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_Set_FailThroughSupported(
- BootSourceSetting* self,
- CMPIUint16 x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KUint16* field = (KUint16*)&self->FailThroughSupported;
- KUint16_Set(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Null_FailThroughSupported(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KUint16* field = (KUint16*)&self->FailThroughSupported;
- KUint16_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_FailThroughSupported(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KUint16* field = (KUint16*)&self->FailThroughSupported;
- KUint16_Clr(field);
- }
-}
-
-typedef enum _BootSourceSetting_FailThroughSupported_Enum
-{
- BootSourceSetting_FailThroughSupported_Unknown = 0,
- BootSourceSetting_FailThroughSupported_Is_Supported = 1,
- BootSourceSetting_FailThroughSupported_Not_Supported = 2,
-}
-BootSourceSetting_FailThroughSupported_Enum;
-
-/* "Unknown" */
-#define BootSourceSetting_Set_FailThroughSupported_Unknown(SELF) \
- BootSourceSetting_Set_FailThroughSupported(SELF, 0)
-
-/* "Is Supported" */
-#define BootSourceSetting_Set_FailThroughSupported_Is_Supported(SELF) \
- BootSourceSetting_Set_FailThroughSupported(SELF, 1)
-
-/* "Not Supported" */
-#define BootSourceSetting_Set_FailThroughSupported_Not_Supported(SELF) \
- BootSourceSetting_Set_FailThroughSupported(SELF, 2)
-
-KINLINE void BootSourceSetting_SetString_GrubRoot(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubRoot;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_GrubRoot(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubRoot;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_GrubRoot(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubRoot;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_GrubRoot(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubRoot;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_SetString_GrubKernel(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubKernel;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_GrubKernel(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubKernel;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_GrubKernel(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubKernel;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_GrubKernel(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubKernel;
- KString_Clr(field);
- }
-}
-
-KINLINE void BootSourceSetting_SetString_GrubInitrd(
- BootSourceSetting* self,
- CMPIString* x)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubInitrd;
- KString_SetString(field, x);
- }
-}
-
-KINLINE void BootSourceSetting_Set_GrubInitrd(
- BootSourceSetting* self,
- const char* s)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubInitrd;
- KString_Set(field, self->__base.cb, s);
- }
-}
-
-KINLINE void BootSourceSetting_Null_GrubInitrd(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubInitrd;
- KString_Null(field);
- }
-}
-
-KINLINE void BootSourceSetting_Clr_GrubInitrd(
- BootSourceSetting* self)
-{
- if (self && self->__base.magic == KMAGIC)
- {
- KString* field = (KString*)&self->GrubInitrd;
- KString_Clr(field);
- }
-}
-
-/*
-**==============================================================================
-**
-** BootSourceSetting methods
-**
-**==============================================================================
-*/
-
-KINLINE CMPIStatus BootSourceSetting_DispatchMethod(
- const CMPIBroker* cb,
- CMPIMethodMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char* meth,
- const CMPIArgs* in,
- CMPIArgs* out)
-{
- BootSourceSettingRef self;
-
- KReturnIf(BootSourceSettingRef_InitFromObjectPath(&self, cb, cop));
-
-
- KReturn(ERR_METHOD_NOT_FOUND);
-}
-
-#endif /* _konkrete_BootSourceSetting_h */
Deleted: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c 2008-07-22 23:14:07 UTC (rev 784)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c 2008-07-23 22:41:19 UTC (rev 785)
@@ -1,172 +0,0 @@
-#include <konkret/konkret.h>
-#include "BootSourceSetting.h"
-#include "Resource.h"
-
-static const CMPIBroker* _cb = NULL;
-
-static void BootSourceSettingInitialize()
-{
-}
-
-static CMPIStatus BootSourceSettingCleanup(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- CMPIBoolean term)
-{
- CMReturn(CMPI_RC_OK);
-}
-
-static CMPIStatus BootSourceSettingEnumInstanceNames(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop)
-{
- return KDefaultEnumerateInstanceNames(
- _cb, mi, cc, cr, cop);
-}
-
-static CMPIStatus BootSourceSettingEnumInstances(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char** properties)
-{
- struct GrubMenu menu;
- size_t i;
-
- /* Load Grub configuration */
- if (LoadGrubMenu(GRUB_MENU_LST, &menu) != 0)
- KReturn2(_cb, ERR_FAILED, "failed to access Grub configuration");
-
- /* Generate instances */
-
- for (i = 0; i < menu.numItems; i++)
- {
- const struct GrubMenuItem* mi = &menu.items[i];
- BootSourceSetting x;
-
- BootSourceSetting_Init(&x, _cb, KNameSpace(cop));
-
- /* Linux_GrubBootSourceSetting.InstanceID */
- BootSourceSetting_Set_InstanceID(&x,
- Sprintf("SBLIM:GrubBootSourceSetting:%d", i).str);
-
- /* Linux_GrubBootSourceSetting.FailThroughSupported */
- BootSourceSetting_Set_FailThroughSupported_Unknown(&x);
-
- /* Linux_GrubBootSourceSetting.ElementName */
- BootSourceSetting_Set_ElementName(&x, mi->title);
-
- /* Linux_GrubBootSourceSetting.BootString */
- BootSourceSetting_Set_BootString(&x, mi->title);
-
- /* Linux_GrubBootSourceSetting.GrubRoot */
- if (mi->root[0])
- BootSourceSetting_Set_GrubRoot(&x, mi->root);
-
- /* Linux_GrubBootSourceSetting.GrubKernel */
- if (mi->kernel[0])
- BootSourceSetting_Set_GrubKernel(&x, menu.items[i].kernel);
-
- /* Linux_GrubBootSourceSetting.GrubInitrd */
- if (mi->initrd[0])
- BootSourceSetting_Set_GrubInitrd(&x, menu.items[i].initrd);
-
- KReturnInstance(cr, x);
- }
-
- CMReturn(CMPI_RC_OK);
-}
-
-static CMPIStatus BootSourceSettingGetInstance(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char** properties)
-{
- return KDefaultGetInstance(
- _cb, mi, cc, cr, cop, properties);
-}
-
-static CMPIStatus BootSourceSettingCreateInstance(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const CMPIInstance* ci)
-{
- CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
-}
-
-static CMPIStatus BootSourceSettingModifyInstance(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const CMPIInstance* ci,
- const char** properties)
-{
- CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
-}
-
-static CMPIStatus BootSourceSettingDeleteInstance(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop)
-{
- CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
-}
-
-static CMPIStatus BootSourceSettingExecQuery(
- CMPIInstanceMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char* lang,
- const char* query)
-{
- CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
-}
-
-CMInstanceMIStub(
- BootSourceSetting,
- BootSourceSetting,
- _cb,
- BootSourceSettingInitialize())
-
-static CMPIStatus BootSourceSettingMethodCleanup(
- CMPIMethodMI* mi,
- const CMPIContext* cc,
- CMPIBoolean term)
-{
- CMReturn(CMPI_RC_OK);
-}
-
-static CMPIStatus BootSourceSettingInvokeMethod(
- CMPIMethodMI* mi,
- const CMPIContext* cc,
- const CMPIResult* cr,
- const CMPIObjectPath* cop,
- const char* meth,
- const CMPIArgs* in,
- CMPIArgs* out)
-{
- return BootSourceSetting_DispatchMethod(
- _cb, mi, cc, cr, cop, meth, in, out);
-}
-
-CMMethodMIStub(
- BootSourceSetting,
- BootSourceSetting,
- _cb,
- BootSourceSettingInitialize())
-
-KONKRET_REGISTRATION(
- "root/cimv2",
- "Linux_GrubBootSourceSetting",
- "BootSourceSetting",
- "instance method");
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ConfigSetting.h
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ConfigSetting.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ConfigSetting.h 2008-07-23 22:41:19 UTC (rev 785)
@@ -0,0 +1,723 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_ConfigSetting_h
+#define _konkrete_ConfigSetting_h
+
+#include <konkret/konkret.h>
+#include "CIM_BootSourceSetting.h"
+#include "CIM_ConcreteJob.h"
+
+/*
+**==============================================================================
+**
+** struct ConfigSettingRef
+**
+**==============================================================================
+*/
+
+/* classname=Linux_BootConfigSetting */
+typedef struct _ConfigSettingRef
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ /* CIM_SettingData features */
+ const KString InstanceID;
+ /* CIM_BootConfigSetting features */
+ /* Linux_BootConfigSetting features */
+}
+ConfigSettingRef;
+
+static const unsigned char __ConfigSettingRef_sig[] =
+{
+ 0x17,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x43,0x6f,0x6e,0x66,
+ 0x69,0x67,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x00,0x01,0x4c,0x0a,0x49,0x6e,
+ 0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00,
+};
+
+KINLINE void ConfigSettingRef_Init(
+ ConfigSettingRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ConfigSettingRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus ConfigSettingRef_InitFromInstance(
+ ConfigSettingRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ConfigSettingRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ConfigSettingRef_InitFromObjectPath(
+ ConfigSettingRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ConfigSettingRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ConfigSettingRef_Print(
+ const ConfigSettingRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* ConfigSettingRef_ToInstance(
+ const ConfigSettingRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ConfigSettingRef_ToObjectPath(
+ const ConfigSettingRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ConfigSettingRef_NameSpace(
+ ConfigSettingRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ConfigSettingRef_SetString_InstanceID(
+ ConfigSettingRef* self,
+ CMPIString* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->InstanceID;
+ KString_SetString(field, x);
+ }
+}
+
+KINLINE void ConfigSettingRef_Set_InstanceID(
+ ConfigSettingRef* self,
+ const char* s)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->InstanceID;
+ KString_Set(field, self->__base.cb, s);
+ }
+}
+
+KINLINE void ConfigSettingRef_Null_InstanceID(
+ ConfigSettingRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->InstanceID;
+ KString_Null(field);
+ }
+}
+
+KINLINE void ConfigSettingRef_Clr_InstanceID(
+ ConfigSettingRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KString* field = (KString*)&self->InstanceID;
+ KString_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct ConfigSetting
+**
+**==============================================================================
+*/
+
+/* classname=Linux_BootConfigSetting */
+typedef struct _ConfigSetting
+{
+ KBase __base;
+ /* CIM_ManagedElement features */
+ const KString Caption;
+ const KString Description;
+ const KString ElementName;
+ /* CIM_SettingData features */
+ const KString InstanceID;
+ const KString ConfigurationName;
+ const KUint16 ChangeableType;
+ /* CIM_BootConfigSetting features */
+ /* Linux_BootConfigSetting features */
+}
+ConfigSetting;
+
+static const unsigned char __ConfigSetting_sig[] =
+{
+ 0x17,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x43,0x6f,0x6e,0x66,
+ 0x69,0x67,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x00,0x06,0x0c,0x07,0x43,0x61,
+ 0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x44,0x65,0x73,0x63,0x72,0x69,0x70,
+ 0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,
+ 0x61,0x6d,0x65,0x00,0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,
+ 0x44,0x00,0x0c,0x11,0x43,0x6f,0x6e,0x66,0x69,0x67,0x75,0x72,0x61,0x74,0x69,
+ 0x6f,0x6e,0x4e,0x61,0x6d,0x65,0x00,0x03,0x0e,0x43,0x68,0x61,0x6e,0x67,0x65,
+ 0x61,0x62,0x6c,0x65,0x54,0x79,0x70,0x65,0x00,
+};
+
+KINLINE void ConfigSetting_Init(
+ ConfigSetting* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ConfigSetting_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+}
+
+KINLINE CMPIStatus ConfigSetting_InitFromInstance(
+ ConfigSetting* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ConfigSetting_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ConfigSetting_InitFromObjectPath(
+ ConfigSetting* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ConfigSetting_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ConfigSetting_Print(
+ const ConfigSetting* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* ConfigSetting_ToInstance(
+ const ConfigSetting* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ConfigSetting_ToObjectPath(
+ const ConfigSetting* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ConfigSetting_NameSpace(
+ ConfigSetting* self)
+{
+ if (self && self->__bas...
[truncated message content] |
|
From: <mik...@us...> - 2008-07-22 23:13:59
|
Revision: 784
http://omc.svn.sourceforge.net/omc/?rev=784&view=rev
Author: mike-brasher
Date: 2008-07-22 23:14:07 +0000 (Tue, 22 Jul 2008)
Log Message:
-----------
Begginings of Linux_BootElementSettingData provider.
Modified Paths:
--------------
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon
Added Paths:
-----------
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ElementSettingData.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingData.h
cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingDataProvider.c
Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof 2008-07-21 21:13:36 UTC (rev 783)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof 2008-07-22 23:14:07 UTC (rev 784)
@@ -45,3 +45,7 @@
[Key] Linux_BootService REF AffectingElement;
[Key] Linux_ComputerSystem REF AffectedElement;
};
+
+class Linux_BootElementSettingData : CIM_ElementSettingData
+{
+};
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ElementSettingData.h
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ElementSettingData.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ElementSettingData.h 2008-07-22 23:14:07 UTC (rev 784)
@@ -0,0 +1,724 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_CIM_ElementSettingData_h
+#define _konkrete_CIM_ElementSettingData_h
+
+#include <konkret/konkret.h>
+#include "CIM_ManagedElement.h"
+#include "CIM_SettingData.h"
+
+/*
+**==============================================================================
+**
+** struct CIM_ElementSettingDataRef
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ElementSettingData */
+typedef struct _CIM_ElementSettingDataRef
+{
+ KBase __base;
+ /* CIM_ElementSettingData features */
+ const KRef ManagedElement; /* CIM_ManagedElement */
+ const KRef SettingData; /* CIM_SettingData */
+}
+CIM_ElementSettingDataRef;
+
+static const unsigned char __CIM_ElementSettingDataRef_sig[] =
+{
+ 0x16,0x43,0x49,0x4d,0x5f,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x53,0x65,0x74,
+ 0x74,0x69,0x6e,0x67,0x44,0x61,0x74,0x61,0x00,0x02,0x4e,0x0e,0x4d,0x61,0x6e,
+ 0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,0x4e,0x0b,0x53,
+ 0x65,0x74,0x74,0x69,0x6e,0x67,0x44,0x61,0x74,0x61,0x00,
+};
+
+KINLINE void CIM_ElementSettingDataRef_Init(
+ CIM_ElementSettingDataRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ElementSettingDataRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ManagedElement)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->SettingData)->__sig = __CIM_SettingData_sig;
+}
+
+KINLINE CMPIStatus CIM_ElementSettingDataRef_InitFromInstance(
+ CIM_ElementSettingDataRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ElementSettingDataRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ElementSettingDataRef_InitFromObjectPath(
+ CIM_ElementSettingDataRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ElementSettingDataRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ElementSettingDataRef_Print(
+ const CIM_ElementSettingDataRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* CIM_ElementSettingDataRef_ToInstance(
+ const CIM_ElementSettingDataRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ElementSettingDataRef_ToObjectPath(
+ const CIM_ElementSettingDataRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ElementSettingDataRef_NameSpace(
+ CIM_ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ElementSettingDataRef_SetObjectPath_ManagedElement(
+ CIM_ElementSettingDataRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementSettingDataRef_Set_ManagedElement(
+ CIM_ElementSettingDataRef* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementSettingDataRef_Null_ManagedElement(
+ CIM_ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingDataRef_Clr_ManagedElement(
+ CIM_ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingDataRef_SetObjectPath_SettingData(
+ CIM_ElementSettingDataRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementSettingDataRef_Set_SettingData(
+ CIM_ElementSettingDataRef* self,
+ const CIM_SettingDataRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementSettingDataRef_Null_SettingData(
+ CIM_ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingDataRef_Clr_SettingData(
+ CIM_ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct CIM_ElementSettingData
+**
+**==============================================================================
+*/
+
+/* classname=CIM_ElementSettingData */
+typedef struct _CIM_ElementSettingData
+{
+ KBase __base;
+ /* CIM_ElementSettingData features */
+ const KRef ManagedElement; /* CIM_ManagedElement */
+ const KRef SettingData; /* CIM_SettingData */
+ const KUint16 IsDefault;
+ const KUint16 IsCurrent;
+ const KUint16 IsNext;
+ const KUint16 IsMinimum;
+ const KUint16 IsMaximum;
+ const KUint16 IsPending;
+}
+CIM_ElementSettingData;
+
+static const unsigned char __CIM_ElementSettingData_sig[] =
+{
+ 0x16,0x43,0x49,0x4d,0x5f,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x53,0x65,0x74,
+ 0x74,0x69,0x6e,0x67,0x44,0x61,0x74,0x61,0x00,0x08,0x4e,0x0e,0x4d,0x61,0x6e,
+ 0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,0x4e,0x0b,0x53,
+ 0x65,0x74,0x74,0x69,0x6e,0x67,0x44,0x61,0x74,0x61,0x00,0x03,0x09,0x49,0x73,
+ 0x44,0x65,0x66,0x61,0x75,0x6c,0x74,0x00,0x03,0x09,0x49,0x73,0x43,0x75,0x72,
+ 0x72,0x65,0x6e,0x74,0x00,0x03,0x06,0x49,0x73,0x4e,0x65,0x78,0x74,0x00,0x03,
+ 0x09,0x49,0x73,0x4d,0x69,0x6e,0x69,0x6d,0x75,0x6d,0x00,0x03,0x09,0x49,0x73,
+ 0x4d,0x61,0x78,0x69,0x6d,0x75,0x6d,0x00,0x03,0x09,0x49,0x73,0x50,0x65,0x6e,
+ 0x64,0x69,0x6e,0x67,0x00,
+};
+
+KINLINE void CIM_ElementSettingData_Init(
+ CIM_ElementSettingData* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __CIM_ElementSettingData_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ManagedElement)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->SettingData)->__sig = __CIM_SettingData_sig;
+}
+
+KINLINE CMPIStatus CIM_ElementSettingData_InitFromInstance(
+ CIM_ElementSettingData* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ CIM_ElementSettingData_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus CIM_ElementSettingData_InitFromObjectPath(
+ CIM_ElementSettingData* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ CIM_ElementSettingData_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void CIM_ElementSettingData_Print(
+ const CIM_ElementSettingData* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* CIM_ElementSettingData_ToInstance(
+ const CIM_ElementSettingData* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* CIM_ElementSettingData_ToObjectPath(
+ const CIM_ElementSettingData* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* CIM_ElementSettingData_NameSpace(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void CIM_ElementSettingData_SetObjectPath_ManagedElement(
+ CIM_ElementSettingData* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementSettingData_Set_ManagedElement(
+ CIM_ElementSettingData* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementSettingData_Null_ManagedElement(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Clr_ManagedElement(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_SetObjectPath_SettingData(
+ CIM_ElementSettingData* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus CIM_ElementSettingData_Set_SettingData(
+ CIM_ElementSettingData* self,
+ const CIM_SettingDataRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void CIM_ElementSettingData_Null_SettingData(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Clr_SettingData(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Set_IsDefault(
+ CIM_ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsDefault;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Null_IsDefault(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsDefault;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Clr_IsDefault(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsDefault;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ElementSettingData_IsDefault_Enum
+{
+ CIM_ElementSettingData_IsDefault_Unknown = 0,
+ CIM_ElementSettingData_IsDefault_Is_Default = 1,
+ CIM_ElementSettingData_IsDefault_Is_Not_Default = 2,
+}
+CIM_ElementSettingData_IsDefault_Enum;
+
+/* "Unknown" */
+#define CIM_ElementSettingData_Set_IsDefault_Unknown(SELF) \
+ CIM_ElementSettingData_Set_IsDefault(SELF, 0)
+
+/* "Is Default" */
+#define CIM_ElementSettingData_Set_IsDefault_Is_Default(SELF) \
+ CIM_ElementSettingData_Set_IsDefault(SELF, 1)
+
+/* "Is Not Default" */
+#define CIM_ElementSettingData_Set_IsDefault_Is_Not_Default(SELF) \
+ CIM_ElementSettingData_Set_IsDefault(SELF, 2)
+
+KINLINE void CIM_ElementSettingData_Set_IsCurrent(
+ CIM_ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsCurrent;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Null_IsCurrent(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsCurrent;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Clr_IsCurrent(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsCurrent;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ElementSettingData_IsCurrent_Enum
+{
+ CIM_ElementSettingData_IsCurrent_Unknown = 0,
+ CIM_ElementSettingData_IsCurrent_Is_Current = 1,
+ CIM_ElementSettingData_IsCurrent_Is_Not_Current = 2,
+}
+CIM_ElementSettingData_IsCurrent_Enum;
+
+/* "Unknown" */
+#define CIM_ElementSettingData_Set_IsCurrent_Unknown(SELF) \
+ CIM_ElementSettingData_Set_IsCurrent(SELF, 0)
+
+/* "Is Current" */
+#define CIM_ElementSettingData_Set_IsCurrent_Is_Current(SELF) \
+ CIM_ElementSettingData_Set_IsCurrent(SELF, 1)
+
+/* "Is Not Current" */
+#define CIM_ElementSettingData_Set_IsCurrent_Is_Not_Current(SELF) \
+ CIM_ElementSettingData_Set_IsCurrent(SELF, 2)
+
+KINLINE void CIM_ElementSettingData_Set_IsNext(
+ CIM_ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsNext;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Null_IsNext(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsNext;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Clr_IsNext(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsNext;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ElementSettingData_IsNext_Enum
+{
+ CIM_ElementSettingData_IsNext_Unknown = 0,
+ CIM_ElementSettingData_IsNext_Is_Next = 1,
+ CIM_ElementSettingData_IsNext_Is_Not_Next = 2,
+ CIM_ElementSettingData_IsNext_Is_Next_For_Single_Use = 3,
+}
+CIM_ElementSettingData_IsNext_Enum;
+
+/* "Unknown" */
+#define CIM_ElementSettingData_Set_IsNext_Unknown(SELF) \
+ CIM_ElementSettingData_Set_IsNext(SELF, 0)
+
+/* "Is Next" */
+#define CIM_ElementSettingData_Set_IsNext_Is_Next(SELF) \
+ CIM_ElementSettingData_Set_IsNext(SELF, 1)
+
+/* "Is Not Next" */
+#define CIM_ElementSettingData_Set_IsNext_Is_Not_Next(SELF) \
+ CIM_ElementSettingData_Set_IsNext(SELF, 2)
+
+/* "Is Next For Single Use" */
+#define CIM_ElementSettingData_Set_IsNext_Is_Next_For_Single_Use(SELF) \
+ CIM_ElementSettingData_Set_IsNext(SELF, 3)
+
+KINLINE void CIM_ElementSettingData_Set_IsMinimum(
+ CIM_ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMinimum;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Null_IsMinimum(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMinimum;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Clr_IsMinimum(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMinimum;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ElementSettingData_IsMinimum_Enum
+{
+ CIM_ElementSettingData_IsMinimum_Unknown = 0,
+ CIM_ElementSettingData_IsMinimum_Not_Applicable = 1,
+ CIM_ElementSettingData_IsMinimum_Is_Minimum = 2,
+ CIM_ElementSettingData_IsMinimum_Is_Not_Minimum = 3,
+}
+CIM_ElementSettingData_IsMinimum_Enum;
+
+/* "Unknown" */
+#define CIM_ElementSettingData_Set_IsMinimum_Unknown(SELF) \
+ CIM_ElementSettingData_Set_IsMinimum(SELF, 0)
+
+/* "Not Applicable" */
+#define CIM_ElementSettingData_Set_IsMinimum_Not_Applicable(SELF) \
+ CIM_ElementSettingData_Set_IsMinimum(SELF, 1)
+
+/* "Is Minimum" */
+#define CIM_ElementSettingData_Set_IsMinimum_Is_Minimum(SELF) \
+ CIM_ElementSettingData_Set_IsMinimum(SELF, 2)
+
+/* "Is Not Minimum" */
+#define CIM_ElementSettingData_Set_IsMinimum_Is_Not_Minimum(SELF) \
+ CIM_ElementSettingData_Set_IsMinimum(SELF, 3)
+
+KINLINE void CIM_ElementSettingData_Set_IsMaximum(
+ CIM_ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMaximum;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Null_IsMaximum(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMaximum;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Clr_IsMaximum(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMaximum;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ElementSettingData_IsMaximum_Enum
+{
+ CIM_ElementSettingData_IsMaximum_Unknown = 0,
+ CIM_ElementSettingData_IsMaximum_Not_Applicable = 1,
+ CIM_ElementSettingData_IsMaximum_Is_Maximum = 2,
+ CIM_ElementSettingData_IsMaximum_Is_Not_Maximum = 3,
+}
+CIM_ElementSettingData_IsMaximum_Enum;
+
+/* "Unknown" */
+#define CIM_ElementSettingData_Set_IsMaximum_Unknown(SELF) \
+ CIM_ElementSettingData_Set_IsMaximum(SELF, 0)
+
+/* "Not Applicable" */
+#define CIM_ElementSettingData_Set_IsMaximum_Not_Applicable(SELF) \
+ CIM_ElementSettingData_Set_IsMaximum(SELF, 1)
+
+/* "Is Maximum" */
+#define CIM_ElementSettingData_Set_IsMaximum_Is_Maximum(SELF) \
+ CIM_ElementSettingData_Set_IsMaximum(SELF, 2)
+
+/* "Is Not Maximum" */
+#define CIM_ElementSettingData_Set_IsMaximum_Is_Not_Maximum(SELF) \
+ CIM_ElementSettingData_Set_IsMaximum(SELF, 3)
+
+KINLINE void CIM_ElementSettingData_Set_IsPending(
+ CIM_ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsPending;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Null_IsPending(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsPending;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void CIM_ElementSettingData_Clr_IsPending(
+ CIM_ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsPending;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _CIM_ElementSettingData_IsPending_Enum
+{
+ CIM_ElementSettingData_IsPending_Unknown = 0,
+ CIM_ElementSettingData_IsPending_Is_Pending = 2,
+ CIM_ElementSettingData_IsPending_Is_Not_Pending = 3,
+ CIM_ElementSettingData_IsPending_DMTF_Reserved = 0,
+ CIM_ElementSettingData_IsPending_Vendor_Reserved = 32768,
+}
+CIM_ElementSettingData_IsPending_Enum;
+
+/* "Unknown" */
+#define CIM_ElementSettingData_Set_IsPending_Unknown(SELF) \
+ CIM_ElementSettingData_Set_IsPending(SELF, 0)
+
+/* "Is Pending" */
+#define CIM_ElementSettingData_Set_IsPending_Is_Pending(SELF) \
+ CIM_ElementSettingData_Set_IsPending(SELF, 2)
+
+/* "Is Not Pending" */
+#define CIM_ElementSettingData_Set_IsPending_Is_Not_Pending(SELF) \
+ CIM_ElementSettingData_Set_IsPending(SELF, 3)
+
+/* "DMTF Reserved" */
+#define CIM_ElementSettingData_Set_IsPending_DMTF_Reserved(SELF) \
+ CIM_ElementSettingData_Set_IsPending(SELF, 0)
+
+/* "Vendor Reserved" */
+#define CIM_ElementSettingData_Set_IsPending_Vendor_Reserved(SELF) \
+ CIM_ElementSettingData_Set_IsPending(SELF, 32768)
+
+/*
+**==============================================================================
+**
+** CIM_ElementSettingData methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus CIM_ElementSettingData_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ CIM_ElementSettingDataRef self;
+
+ KReturnIf(CIM_ElementSettingDataRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_CIM_ElementSettingData_h */
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingData.h
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingData.h (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingData.h 2008-07-22 23:14:07 UTC (rev 784)
@@ -0,0 +1,727 @@
+/*
+**==============================================================================
+**
+** CAUTION: This file generated by KonkretCMPI. Please do not edit.
+**
+**==============================================================================
+*/
+
+#ifndef _konkrete_ElementSettingData_h
+#define _konkrete_ElementSettingData_h
+
+#include <konkret/konkret.h>
+#include "CIM_ManagedElement.h"
+#include "CIM_SettingData.h"
+
+/*
+**==============================================================================
+**
+** struct ElementSettingDataRef
+**
+**==============================================================================
+*/
+
+/* classname=Linux_BootElementSettingData */
+typedef struct _ElementSettingDataRef
+{
+ KBase __base;
+ /* CIM_ElementSettingData features */
+ const KRef ManagedElement; /* CIM_ManagedElement */
+ const KRef SettingData; /* CIM_SettingData */
+ /* Linux_BootElementSettingData features */
+}
+ElementSettingDataRef;
+
+static const unsigned char __ElementSettingDataRef_sig[] =
+{
+ 0x1c,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x45,0x6c,0x65,0x6d,
+ 0x65,0x6e,0x74,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x44,0x61,0x74,0x61,0x00,
+ 0x02,0x4e,0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,
+ 0x6e,0x74,0x00,0x4e,0x0b,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x44,0x61,0x74,
+ 0x61,0x00,
+};
+
+KINLINE void ElementSettingDataRef_Init(
+ ElementSettingDataRef* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ElementSettingDataRef_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ManagedElement)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->SettingData)->__sig = __CIM_SettingData_sig;
+}
+
+KINLINE CMPIStatus ElementSettingDataRef_InitFromInstance(
+ ElementSettingDataRef* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ElementSettingDataRef_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ElementSettingDataRef_InitFromObjectPath(
+ ElementSettingDataRef* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ElementSettingDataRef_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ElementSettingDataRef_Print(
+ const ElementSettingDataRef* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'r');
+}
+
+KINLINE CMPIInstance* ElementSettingDataRef_ToInstance(
+ const ElementSettingDataRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ElementSettingDataRef_ToObjectPath(
+ const ElementSettingDataRef* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ElementSettingDataRef_NameSpace(
+ ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ElementSettingDataRef_SetObjectPath_ManagedElement(
+ ElementSettingDataRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementSettingDataRef_Set_ManagedElement(
+ ElementSettingDataRef* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementSettingDataRef_Null_ManagedElement(
+ ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementSettingDataRef_Clr_ManagedElement(
+ ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ElementSettingDataRef_SetObjectPath_SettingData(
+ ElementSettingDataRef* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementSettingDataRef_Set_SettingData(
+ ElementSettingDataRef* self,
+ const CIM_SettingDataRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementSettingDataRef_Null_SettingData(
+ ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementSettingDataRef_Clr_SettingData(
+ ElementSettingDataRef* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_Clr(field);
+ }
+}
+
+/*
+**==============================================================================
+**
+** struct ElementSettingData
+**
+**==============================================================================
+*/
+
+/* classname=Linux_BootElementSettingData */
+typedef struct _ElementSettingData
+{
+ KBase __base;
+ /* CIM_ElementSettingData features */
+ const KRef ManagedElement; /* CIM_ManagedElement */
+ const KRef SettingData; /* CIM_SettingData */
+ const KUint16 IsDefault;
+ const KUint16 IsCurrent;
+ const KUint16 IsNext;
+ const KUint16 IsMinimum;
+ const KUint16 IsMaximum;
+ const KUint16 IsPending;
+ /* Linux_BootElementSettingData features */
+}
+ElementSettingData;
+
+static const unsigned char __ElementSettingData_sig[] =
+{
+ 0x1c,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x45,0x6c,0x65,0x6d,
+ 0x65,0x6e,0x74,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x44,0x61,0x74,0x61,0x00,
+ 0x08,0x4e,0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,
+ 0x6e,0x74,0x00,0x4e,0x0b,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x44,0x61,0x74,
+ 0x61,0x00,0x03,0x09,0x49,0x73,0x44,0x65,0x66,0x61,0x75,0x6c,0x74,0x00,0x03,
+ 0x09,0x49,0x73,0x43,0x75,0x72,0x72,0x65,0x6e,0x74,0x00,0x03,0x06,0x49,0x73,
+ 0x4e,0x65,0x78,0x74,0x00,0x03,0x09,0x49,0x73,0x4d,0x69,0x6e,0x69,0x6d,0x75,
+ 0x6d,0x00,0x03,0x09,0x49,0x73,0x4d,0x61,0x78,0x69,0x6d,0x75,0x6d,0x00,0x03,
+ 0x09,0x49,0x73,0x50,0x65,0x6e,0x64,0x69,0x6e,0x67,0x00,
+};
+
+KINLINE void ElementSettingData_Init(
+ ElementSettingData* self,
+ const CMPIBroker* cb,
+ const char* ns)
+{
+ const unsigned char* sig = __ElementSettingData_sig;
+ KBase_Init(&self->__base, cb, sizeof(*self), sig, ns);
+ ((KRef*)&self->ManagedElement)->__sig = __CIM_ManagedElement_sig;
+ ((KRef*)&self->SettingData)->__sig = __CIM_SettingData_sig;
+}
+
+KINLINE CMPIStatus ElementSettingData_InitFromInstance(
+ ElementSettingData* self,
+ const CMPIBroker* cb,
+ const CMPIInstance* x)
+{
+ ElementSettingData_Init(self, cb, NULL);
+ return KBase_FromInstance(&self->__base, x);
+}
+
+KINLINE CMPIStatus ElementSettingData_InitFromObjectPath(
+ ElementSettingData* self,
+ const CMPIBroker* cb,
+ const CMPIObjectPath* x)
+{
+ ElementSettingData_Init(self, cb, NULL);
+ return KBase_FromObjectPath(&self->__base, x);
+}
+
+KINLINE void ElementSettingData_Print(
+ const ElementSettingData* self,
+ FILE* os)
+{
+ KBase_Print(os, &self->__base, 'i');
+}
+
+KINLINE CMPIInstance* ElementSettingData_ToInstance(
+ const ElementSettingData* self,
+ CMPIStatus* status)
+{
+ return KBase_ToInstance(&self->__base, status);
+}
+
+KINLINE CMPIObjectPath* ElementSettingData_ToObjectPath(
+ const ElementSettingData* self,
+ CMPIStatus* status)
+{
+ return KBase_ToObjectPath(&self->__base, status);
+}
+
+KINLINE const char* ElementSettingData_NameSpace(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ return self->__base.ns ? KChars(self->__base.ns) : NULL;
+ return NULL;
+}
+
+KINLINE void ElementSettingData_SetObjectPath_ManagedElement(
+ ElementSettingData* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementSettingData_Set_ManagedElement(
+ ElementSettingData* self,
+ const CIM_ManagedElementRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementSettingData_Null_ManagedElement(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementSettingData_Clr_ManagedElement(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->ManagedElement;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ElementSettingData_SetObjectPath_SettingData(
+ ElementSettingData* self,
+ const CMPIObjectPath* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_SetObjectPath(field, x);
+ }
+}
+
+KINLINE CMPIStatus ElementSettingData_Set_SettingData(
+ ElementSettingData* self,
+ const CIM_SettingDataRef* x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ return KRef_Set(field, &x->__base);
+ }
+ CMReturn(CMPI_RC_ERR_FAILED);
+}
+
+KINLINE void ElementSettingData_Null_SettingData(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_Null(field);
+ }
+}
+
+KINLINE void ElementSettingData_Clr_SettingData(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KRef* field = (KRef*)&self->SettingData;
+ KRef_Clr(field);
+ }
+}
+
+KINLINE void ElementSettingData_Set_IsDefault(
+ ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsDefault;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void ElementSettingData_Null_IsDefault(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsDefault;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void ElementSettingData_Clr_IsDefault(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsDefault;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _ElementSettingData_IsDefault_Enum
+{
+ ElementSettingData_IsDefault_Unknown = 0,
+ ElementSettingData_IsDefault_Is_Default = 1,
+ ElementSettingData_IsDefault_Is_Not_Default = 2,
+}
+ElementSettingData_IsDefault_Enum;
+
+/* "Unknown" */
+#define ElementSettingData_Set_IsDefault_Unknown(SELF) \
+ ElementSettingData_Set_IsDefault(SELF, 0)
+
+/* "Is Default" */
+#define ElementSettingData_Set_IsDefault_Is_Default(SELF) \
+ ElementSettingData_Set_IsDefault(SELF, 1)
+
+/* "Is Not Default" */
+#define ElementSettingData_Set_IsDefault_Is_Not_Default(SELF) \
+ ElementSettingData_Set_IsDefault(SELF, 2)
+
+KINLINE void ElementSettingData_Set_IsCurrent(
+ ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsCurrent;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void ElementSettingData_Null_IsCurrent(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsCurrent;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void ElementSettingData_Clr_IsCurrent(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsCurrent;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _ElementSettingData_IsCurrent_Enum
+{
+ ElementSettingData_IsCurrent_Unknown = 0,
+ ElementSettingData_IsCurrent_Is_Current = 1,
+ ElementSettingData_IsCurrent_Is_Not_Current = 2,
+}
+ElementSettingData_IsCurrent_Enum;
+
+/* "Unknown" */
+#define ElementSettingData_Set_IsCurrent_Unknown(SELF) \
+ ElementSettingData_Set_IsCurrent(SELF, 0)
+
+/* "Is Current" */
+#define ElementSettingData_Set_IsCurrent_Is_Current(SELF) \
+ ElementSettingData_Set_IsCurrent(SELF, 1)
+
+/* "Is Not Current" */
+#define ElementSettingData_Set_IsCurrent_Is_Not_Current(SELF) \
+ ElementSettingData_Set_IsCurrent(SELF, 2)
+
+KINLINE void ElementSettingData_Set_IsNext(
+ ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsNext;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void ElementSettingData_Null_IsNext(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsNext;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void ElementSettingData_Clr_IsNext(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsNext;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _ElementSettingData_IsNext_Enum
+{
+ ElementSettingData_IsNext_Unknown = 0,
+ ElementSettingData_IsNext_Is_Next = 1,
+ ElementSettingData_IsNext_Is_Not_Next = 2,
+ ElementSettingData_IsNext_Is_Next_For_Single_Use = 3,
+}
+ElementSettingData_IsNext_Enum;
+
+/* "Unknown" */
+#define ElementSettingData_Set_IsNext_Unknown(SELF) \
+ ElementSettingData_Set_IsNext(SELF, 0)
+
+/* "Is Next" */
+#define ElementSettingData_Set_IsNext_Is_Next(SELF) \
+ ElementSettingData_Set_IsNext(SELF, 1)
+
+/* "Is Not Next" */
+#define ElementSettingData_Set_IsNext_Is_Not_Next(SELF) \
+ ElementSettingData_Set_IsNext(SELF, 2)
+
+/* "Is Next For Single Use" */
+#define ElementSettingData_Set_IsNext_Is_Next_For_Single_Use(SELF) \
+ ElementSettingData_Set_IsNext(SELF, 3)
+
+KINLINE void ElementSettingData_Set_IsMinimum(
+ ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMinimum;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void ElementSettingData_Null_IsMinimum(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMinimum;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void ElementSettingData_Clr_IsMinimum(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMinimum;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _ElementSettingData_IsMinimum_Enum
+{
+ ElementSettingData_IsMinimum_Unknown = 0,
+ ElementSettingData_IsMinimum_Not_Applicable = 1,
+ ElementSettingData_IsMinimum_Is_Minimum = 2,
+ ElementSettingData_IsMinimum_Is_Not_Minimum = 3,
+}
+ElementSettingData_IsMinimum_Enum;
+
+/* "Unknown" */
+#define ElementSettingData_Set_IsMinimum_Unknown(SELF) \
+ ElementSettingData_Set_IsMinimum(SELF, 0)
+
+/* "Not Applicable" */
+#define ElementSettingData_Set_IsMinimum_Not_Applicable(SELF) \
+ ElementSettingData_Set_IsMinimum(SELF, 1)
+
+/* "Is Minimum" */
+#define ElementSettingData_Set_IsMinimum_Is_Minimum(SELF) \
+ ElementSettingData_Set_IsMinimum(SELF, 2)
+
+/* "Is Not Minimum" */
+#define ElementSettingData_Set_IsMinimum_Is_Not_Minimum(SELF) \
+ ElementSettingData_Set_IsMinimum(SELF, 3)
+
+KINLINE void ElementSettingData_Set_IsMaximum(
+ ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMaximum;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void ElementSettingData_Null_IsMaximum(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMaximum;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void ElementSettingData_Clr_IsMaximum(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsMaximum;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _ElementSettingData_IsMaximum_Enum
+{
+ ElementSettingData_IsMaximum_Unknown = 0,
+ ElementSettingData_IsMaximum_Not_Applicable = 1,
+ ElementSettingData_IsMaximum_Is_Maximum = 2,
+ ElementSettingData_IsMaximum_Is_Not_Maximum = 3,
+}
+ElementSettingData_IsMaximum_Enum;
+
+/* "Unknown" */
+#define ElementSettingData_Set_IsMaximum_Unknown(SELF) \
+ ElementSettingData_Set_IsMaximum(SELF, 0)
+
+/* "Not Applicable" */
+#define ElementSettingData_Set_IsMaximum_Not_Applicable(SELF) \
+ ElementSettingData_Set_IsMaximum(SELF, 1)
+
+/* "Is Maximum" */
+#define ElementSettingData_Set_IsMaximum_Is_Maximum(SELF) \
+ ElementSettingData_Set_IsMaximum(SELF, 2)
+
+/* "Is Not Maximum" */
+#define ElementSettingData_Set_IsMaximum_Is_Not_Maximum(SELF) \
+ ElementSettingData_Set_IsMaximum(SELF, 3)
+
+KINLINE void ElementSettingData_Set_IsPending(
+ ElementSettingData* self,
+ CMPIUint16 x)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsPending;
+ KUint16_Set(field, x);
+ }
+}
+
+KINLINE void ElementSettingData_Null_IsPending(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsPending;
+ KUint16_Null(field);
+ }
+}
+
+KINLINE void ElementSettingData_Clr_IsPending(
+ ElementSettingData* self)
+{
+ if (self && self->__base.magic == KMAGIC)
+ {
+ KUint16* field = (KUint16*)&self->IsPending;
+ KUint16_Clr(field);
+ }
+}
+
+typedef enum _ElementSettingData_IsPending_Enum
+{
+ ElementSettingData_IsPending_Unknown = 0,
+ ElementSettingData_IsPending_Is_Pending = 2,
+ ElementSettingData_IsPending_Is_Not_Pending = 3,
+ ElementSettingData_IsPending_DMTF_Reserved = 0,
+ ElementSettingData_IsPending_Vendor_Reserved = 32768,
+}
+ElementSettingData_IsPending_Enum;
+
+/* "Unknown" */
+#define ElementSettingData_Set_IsPending_Unknown(SELF) \
+ ElementSettingData_Set_IsPending(SELF, 0)
+
+/* "Is Pending" */
+#define ElementSettingData_Set_IsPending_Is_Pending(SELF) \
+ ElementSettingData_Set_IsPending(SELF, 2)
+
+/* "Is Not Pending" */
+#define ElementSettingData_Set_IsPending_Is_Not_Pending(SELF) \
+ ElementSettingData_Set_IsPending(SELF, 3)
+
+/* "DMTF Reserved" */
+#define ElementSettingData_Set_IsPending_DMTF_Reserved(SELF) \
+ ElementSettingData_Set_IsPending(SELF, 0)
+
+/* "Vendor Reserved" */
+#define ElementSettingData_Set_IsPending_Vendor_Reserved(SELF) \
+ ElementSettingData_Set_IsPending(SELF, 32768)
+
+/*
+**==============================================================================
+**
+** ElementSettingData methods
+**
+**==============================================================================
+*/
+
+KINLINE CMPIStatus ElementSettingData_DispatchMethod(
+ const CMPIBroker* cb,
+ CMPIMethodMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* meth,
+ const CMPIArgs* in,
+ CMPIArgs* out)
+{
+ ElementSettingDataRef self;
+
+ KReturnIf(ElementSettingDataRef_InitFromObjectPath(&self, cb, cop));
+
+
+ KReturn(ERR_METHOD_NOT_FOUND);
+}
+
+#endif /* _konkrete_ElementSettingData_h */
Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingDataProvider.c
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingDataProvider.c (rev 0)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ElementSettingDataProvider.c 2008-07-22 23:14:07 UTC (rev 784)
@@ -0,0 +1,180 @@
+#include <konkret/konkret.h>
+#include "ElementSettingData.h"
+
+static const CMPIBroker* _cb;
+
+static void ElementSettingDataInitialize()
+{
+}
+
+static CMPIStatus ElementSettingDataCleanup(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ElementSettingDataEnumInstanceNames(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ return KDefaultEnumerateInstanceNames(
+ _cb, mi, cc, cr, cop);
+}
+
+static CMPIStatus ElementSettingDataEnumInstances(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ElementSettingDataGetInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char** properties)
+{
+ return KDefaultGetInstance(
+ _cb, mi, cc, cr, cop, properties);
+}
+
+static CMPIStatus ElementSettingDataCreateInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementSettingDataModifyInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const CMPIInstance* ci,
+ const char**properties)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementSettingDataDeleteInstance(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementSettingDataExecQuery(
+ CMPIInstanceMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* lang,
+ const char* query)
+{
+ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED);
+}
+
+static CMPIStatus ElementSettingDataAssociationCleanup(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ CMPIBoolean term)
+{
+ CMReturn(CMPI_RC_OK);
+}
+
+static CMPIStatus ElementSettingDataAssociators(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootElementSettingData";
+
+ return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass,
+ resultClass, role, resultRole, properties);
+}
+
+static CMPIStatus ElementSettingDataAssociatorNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* resultClass,
+ const char* role,
+ const char* resultRole)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootElementSettingData";
+
+ return KDefaultAssociatorNames(_cb, mi, cc, cr, cop,
+ assocClass, resultClass, role, resultRole);
+}
+
+static CMPIStatus ElementSettingDataReferences(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role,
+ const char** properties)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootElementSettingData";
+
+ return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass,
+ role, properties);
+}
+
+static CMPIStatus ElementSettingDataReferenceNames(
+ CMPIAssociationMI* mi,
+ const CMPIContext* cc,
+ const CMPIResult* cr,
+ const CMPIObjectPath* cop,
+ const char* assocClass,
+ const char* role)
+{
+ if (!assocClass)
+ assocClass = "Linux_BootElementSettingData";
+
+ return KDefaultReferenceNames(
+ _cb, mi, cc, cr, cop, assocClass, role);
+}
+
+CMInstanceMIStub(
+ ElementSettingData,
+ ElementSettingData,
+ _cb,
+ ElementSettingDataInitialize())
+
+CMAssociationMIStub(
+ ElementSettingData,
+ ElementSettingData,
+ _cb,
+ ElementSettingDataInitialize())
+
+KONKRET_REGISTRATION(
+ "root/cimv2",
+ "Linux_BootElementSettingData",
+ "ElementSettingData",
+ "instance association");
Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am 2008-07-21 21:13:36 UTC (rev 783)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am 2008-07-22 23:14:07 UTC (rev 784)
@@ -16,6 +16,7 @@
CIM_ComputerSystem.h \
CIM_ConcreteJob.h \
CIM_Dependency.h \
+ CIM_ElementSettingData.h \
CIM_EnabledLogicalElement.h \
CIM_HostedDependency.h \
CIM_HostedService.h \
@@ -30,6 +31,8 @@
CIM_SettingData.h \
CIM_System.h \
ComputerSystem.h \
+ ElementSettingData.h \
+ ElementSettingDataProvider.c \
HostedService.h \
HostedServiceProvider.c \
Linux_BootSourceSetting.h \
Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon
===================================================================
--- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon 2008-07-21 21:13:36 UTC (rev 783)
+++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon 2008-07-22 23:14:07 UTC (rev 784)
@@ -12,3 +12,4 @@
Linux_BootHostedService=HostedService!
Linux_ComputerSystem=ComputerSystem
Linux_BootServiceAffectsElement=ServiceAffectsElement!
+Linux_BootElementSettingData=ElementSettingData!
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jc...@us...> - 2008-07-21 21:13:27
|
Revision: 783
http://omc.svn.sourceforge.net/omc/?rev=783&view=rev
Author: jcarey
Date: 2008-07-21 21:13:36 +0000 (Mon, 21 Jul 2008)
Log Message:
-----------
Lib sblim_cmpiutil changed to sblim-cmpiutil
Modified Paths:
--------------
contrib/xen-vm-builder/trunk/src/providers/vm-builder/Makefile.am
Modified: contrib/xen-vm-builder/trunk/src/providers/vm-builder/Makefile.am
===================================================================
--- contrib/xen-vm-builder/trunk/src/providers/vm-builder/Makefile.am 2008-07-21 14:52:53 UTC (rev 782)
+++ contrib/xen-vm-builder/trunk/src/providers/vm-builder/Makefile.am 2008-07-21 21:13:36 UTC (rev 783)
@@ -23,7 +23,7 @@
libcmpixenvmbuilder_common_la_LDFLAGS = \
-lpthread \
- -lsblim_cmpiutil \
+ -lsblim-cmpiutil \
-lsqlite3 \
-version-info 1
@@ -35,7 +35,7 @@
libcmpixenvmbuilder_la_LDFLAGS = \
-lpthread \
- -lsblim_cmpiutil \
+ -lsblim-cmpiutil \
-version-info 1
libcmpixenvmbuilder_la_LIBADD = \
@@ -49,7 +49,7 @@
libcmpixenvmbuilderjob_la_LDFLAGS = \
-lpthread \
- -lsblim_cmpiutil \
+ -lsblim-cmpiutil \
-version-info 1
libcmpixenvmbuilderjob_la_LIBADD = \
@@ -63,7 +63,7 @@
libcmpixencreationdata_la_LDFLAGS = \
-lpthread \
- -lsblim_cmpiutil \
+ -lsblim-cmpiutil \
-version-info 1
libcmpixencreationdata_la_LIBADD = \
@@ -77,7 +77,7 @@
libcmpixenowningjob_la_LDFLAGS = \
-lpthread \
- -lsblim_cmpiutil \
+ -lsblim-cmpiutil \
-version-info 1
libcmpixenowningjob_la_LIBADD = \
@@ -91,7 +91,7 @@
libcmpixensettingsdefinebuild_la_LDFLAGS = \
-lpthread \
- -lsblim_cmpiutil \
+ -lsblim-cmpiutil \
-version-info 1
libcmpixensettingsdefinebuild_la_LIBADD = \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|