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
|
From: <kk...@us...> - 2008-07-21 14:52:44
|
Revision: 782 http://omc.svn.sourceforge.net/omc/?rev=782&view=rev Author: kkaempf Date: 2008-07-21 14:52:53 +0000 (Mon, 21 Jul 2008) Log Message: ----------- update Modified Paths: -------------- cmpi-bindings/TODO Modified: cmpi-bindings/TODO =================================================================== --- cmpi-bindings/TODO 2008-07-21 14:52:28 UTC (rev 781) +++ cmpi-bindings/TODO 2008-07-21 14:52:53 UTC (rev 782) @@ -20,3 +20,10 @@ would then be void instead. We'll check CMPIStatus* output parameters as well, and do the same. We need to create an exception class with a code and error string in swig. +[Not possible to pass status+message in a generic way. How about a +toplevel function which raised the execption ?] + + +Python error traceback overflows sfcb <ERROR DESCRIPTION="..."/> buffer + +Split src/ into target-specific and common parts \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-21 14:52:20
|
Revision: 781 http://omc.svn.sourceforge.net/omc/?rev=781&view=rev Author: kkaempf Date: 2008-07-21 14:52:28 +0000 (Mon, 21 Jul 2008) Log Message: ----------- complete callback bindings (*except* CBSetInstance which triggers a 'return type mismatch' ??!) Modified Paths: -------------- cmpi-bindings/swig/cmpi_callbacks.i Modified: cmpi-bindings/swig/cmpi_callbacks.i =================================================================== --- cmpi-bindings/swig/cmpi_callbacks.i 2008-07-21 14:50:38 UTC (rev 780) +++ cmpi-bindings/swig/cmpi_callbacks.i 2008-07-21 14:52:28 UTC (rev 781) @@ -26,7 +26,56 @@ CMPIStatus deliverIndication(const CMPIContext * ctx, const char * ns, const CMPIInstance * ind) { return CBDeliverIndication(_BROKER, ctx, ns, ind); } - CMPIEnumeration* EnumInstanceNames(const CMPIContext * ctx, const CMPIObjectPath * op) { + CMPIEnumeration* enumInstanceNames(const CMPIContext * ctx, const CMPIObjectPath * op) { return CBEnumInstanceNames(_BROKER, ctx, op, NULL); } -} + CMPIEnumeration *enumInstances(const CMPIContext * ctx, const CMPIObjectPath * op, const char **properties) { + return CBEnumInstances(_BROKER, ctx, op, properties, NULL); + } + CMPIInstance *getInstance(const CMPIContext * ctx, const CMPIObjectPath * op, const char **properties) { + return CBGetInstance(_BROKER, ctx, op, properties, NULL); + } + CMPIObjectPath *createInstance(const CMPIContext * ctx, const CMPIObjectPath * op, const CMPIInstance * inst) { + return CBCreateInstance(_BROKER, ctx, op, inst, NULL); + } + /* + CMPIStatus setInstance(const CMPIContext* ctx, const CMPIObjectPath* op, const CMPIInstance* inst, const char** properties) { + return CBSetInstance(_BROKER, ctx, op, inst, properties); + } + */ + CMPIStatus deleteInstance(const CMPIContext * ctx, const CMPIObjectPath * op) { + return CBDeleteInstance(_BROKER, ctx, op); + } + CMPIEnumeration *execQuery(const CMPIContext * ctx, const CMPIObjectPath * op, const char *query, const char *lang) { + return CBExecQuery(_BROKER, ctx, op, query, lang, NULL); + } + CMPIEnumeration *associators(const CMPIContext * ctx, const CMPIObjectPath * op, + const char *assocClass, const char *resultClass, const char *role, + const char *resultRole, const char **properties) { + return CBAssociators(_BROKER, ctx, op, assocClass, resultClass, role, resultRole, properties, NULL); + } + CMPIEnumeration *associatorNames(const CMPIContext * ctx, const CMPIObjectPath * op, + const char *assocClass, const char *resultClass, const char *role, + const char *resultRole) { + return CBAssociatorNames (_BROKER, ctx, op, assocClass, resultClass, role, resultRole, NULL); + } + CMPIEnumeration *references(const CMPIContext * ctx, const CMPIObjectPath * op, + const char *resultClass, const char *role, const char **properties) { + return CBReferences(_BROKER, ctx, op, resultClass, role, properties, NULL); + } + CMPIEnumeration *referenceNames(const CMPIContext * ctx, const CMPIObjectPath * op, + const char *resultClass, const char *role) { + return CBReferenceNames(_BROKER, ctx, op, resultClass, role, NULL); + } + CMPIData invokeMethod(const CMPIContext * ctx, const CMPIObjectPath * op, const char *method, + const CMPIArgs * in, CMPIArgs * out) { + return CBInvokeMethod(_BROKER, ctx, op, method, in, out, NULL); + } + CMPIStatus setProperty(const CMPIContext * ctx, const CMPIObjectPath * op, const char *name, + const CMPIValue * value, const CMPIType type) { + return CBSetProperty(_BROKER, ctx, op, name, (CMPIValue *)value, type); + } + CMPIData getProperty(const CMPIContext * ctx, const CMPIObjectPath *op, const char *name) { + return CBGetProperty(_BROKER, ctx, op, name, NULL); + } +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-21 14:50:29
|
Revision: 780 http://omc.svn.sourceforge.net/omc/?rev=780&view=rev Author: kkaempf Date: 2008-07-21 14:50:38 +0000 (Mon, 21 Jul 2008) Log Message: ----------- add test cases Added Paths: ----------- cmpi-bindings/swig/python/tests/get_all_instances.sh cmpi-bindings/swig/python/tests/get_single_instance.sh Removed Paths: ------------- cmpi-bindings/swig/python/tests/get_instances.sh Added: cmpi-bindings/swig/python/tests/get_all_instances.sh =================================================================== --- cmpi-bindings/swig/python/tests/get_all_instances.sh (rev 0) +++ cmpi-bindings/swig/python/tests/get_all_instances.sh 2008-07-21 14:50:38 UTC (rev 780) @@ -0,0 +1,5 @@ +#!/bin/bash +for i in `wbemein http://localhost:5988/root/cimv2:Py_UnixProcess`; do + uri="http://"$i +echo `wbemgi $uri` + done \ No newline at end of file Property changes on: cmpi-bindings/swig/python/tests/get_all_instances.sh ___________________________________________________________________ Added: svn:executable + * Deleted: cmpi-bindings/swig/python/tests/get_instances.sh =================================================================== --- cmpi-bindings/swig/python/tests/get_instances.sh 2008-07-21 14:50:05 UTC (rev 779) +++ cmpi-bindings/swig/python/tests/get_instances.sh 2008-07-21 14:50:38 UTC (rev 780) @@ -1,2 +0,0 @@ -#!/bin/bash -wbemgi `http://wbemein http://localhost:5988/root/cimv2:Py_UnixProcess| head -1` \ No newline at end of file Added: cmpi-bindings/swig/python/tests/get_single_instance.sh =================================================================== --- cmpi-bindings/swig/python/tests/get_single_instance.sh (rev 0) +++ cmpi-bindings/swig/python/tests/get_single_instance.sh 2008-07-21 14:50:38 UTC (rev 780) @@ -0,0 +1,3 @@ +#!/bin/bash +#wbemgi "http://"`wbemein http://localhost:5988/root/cimv2:Py_UnixProcess| head -1` +wbemgi http://localhost:5988/root/cimv2:Py_UnixProcess.Handle=1 Property changes on: cmpi-bindings/swig/python/tests/get_single_instance.sh ___________________________________________________________________ Added: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-21 14:49:57
|
Revision: 779 http://omc.svn.sourceforge.net/omc/?rev=779&view=rev Author: kkaempf Date: 2008-07-21 14:50:05 +0000 (Mon, 21 Jul 2008) Log Message: ----------- Fix the NULL/None issue for Python: def pywbem2cmpi_value(pdata, _type=None, cval=None): + if pdata is None: + return None, 'sint32' Modified Paths: -------------- cmpi-bindings/swig/python/pycmpi_provider.py Modified: cmpi-bindings/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider.py 2008-07-19 16:08:26 UTC (rev 778) +++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-07-21 14:50:05 UTC (rev 779) @@ -149,7 +149,6 @@ rslt.return_instance(cinst) except pywbem.CIMError, args: return args[:2] - print 'calling done()' rslt.done() return (0, '') @@ -346,9 +345,6 @@ cop = pywbem2cmpi_instname(pinst.path) cinst = cmpi.CMPIInstance(cop) for prop in pinst.properties.values(): - if prop.value is None: - # TODO remove this when cmpi.py is fixed. - continue data, _type = pywbem2cmpi_value(prop.value, _type=prop.type) ctype = _pywbem2cmpi_typemap[_type] if isinstance(prop.value, list): @@ -378,6 +374,8 @@ return cop def pywbem2cmpi_value(pdata, _type=None, cval=None): + if pdata is None: + return None, 'sint32' is_array = isinstance(pdata, list) if _type is None: if isinstance(pdata, pywbem.CIMInstanceName): @@ -400,7 +398,7 @@ attr = 'ref' pdata = pywbem2cmpi_instname(pdata) elif _type == 'string': - pdata = cmpi.CMPIString(pdata) + pdata = cmpi.CMPIString(str(pdata)) elif _type == 'datetime': attr = 'dateTime' pdata = pywbem2cmpi_datetime(pdata) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-19 16:09:33
|
Revision: 778 http://omc.svn.sourceforge.net/omc/?rev=778&view=rev Author: kkaempf Date: 2008-07-19 16:08:26 +0000 (Sat, 19 Jul 2008) Log Message: ----------- add CTest based tests for Python Modified Paths: -------------- cmpi-bindings/CMakeLists.txt cmpi-bindings/swig/CMakeLists.txt cmpi-bindings/swig/python/CMakeLists.txt Added Paths: ----------- cmpi-bindings/swig/python/tests/ cmpi-bindings/swig/python/tests/CMakeLists.txt cmpi-bindings/swig/python/tests/enum_instance_names.sh cmpi-bindings/swig/python/tests/get_instances.sh cmpi-bindings/swig/python/tests/loading.py Modified: cmpi-bindings/CMakeLists.txt =================================================================== --- cmpi-bindings/CMakeLists.txt 2008-07-18 22:59:06 UTC (rev 777) +++ cmpi-bindings/CMakeLists.txt 2008-07-19 16:08:26 UTC (rev 778) @@ -1,9 +1,11 @@ # # CMakeLists.txt for cmpi-bindings # +PROJECT(cmpi-bindings) cmake_minimum_required(VERSION 2.4) +enable_testing() # # cmake2.6: backward compatibility to cmake 2.4 # Modified: cmpi-bindings/swig/CMakeLists.txt =================================================================== --- cmpi-bindings/swig/CMakeLists.txt 2008-07-18 22:59:06 UTC (rev 777) +++ cmpi-bindings/swig/CMakeLists.txt 2008-07-19 16:08:26 UTC (rev 778) @@ -2,6 +2,8 @@ # CMakeLists.txt for cmpi-bindings/swig # +enable_testing() + FIND_PACKAGE(Ruby) IF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH) MESSAGE(STATUS "Building Ruby...") Modified: cmpi-bindings/swig/python/CMakeLists.txt =================================================================== --- cmpi-bindings/swig/python/CMakeLists.txt 2008-07-18 22:59:06 UTC (rev 777) +++ cmpi-bindings/swig/python/CMakeLists.txt 2008-07-19 16:08:26 UTC (rev 778) @@ -1,6 +1,8 @@ # # CMakeLists.txt for cmpi-bindings # +enable_testing() +add_subdirectory(tests) SET (BUILD_SHARED_LIBS ON) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing") Added: cmpi-bindings/swig/python/tests/CMakeLists.txt =================================================================== --- cmpi-bindings/swig/python/tests/CMakeLists.txt (rev 0) +++ cmpi-bindings/swig/python/tests/CMakeLists.txt 2008-07-19 16:08:26 UTC (rev 778) @@ -0,0 +1,9 @@ +# +# CMakeLists.txt for cmpi-bindings/swig/python/tests +# + +ENABLE_TESTING() + +#ADD_TEST(bindings_python_loading python ${CMAKE_CURRENT_SOURCE_DIR}/loading.py) +ADD_TEST(enum_instance_names bash ${CMAKE_CURRENT_SOURCE_DIR}/enum_instance_names.sh) +ADD_TEST(get_instances bash ${CMAKE_CURRENT_SOURCE_DIR}/get_instances.sh) Added: cmpi-bindings/swig/python/tests/enum_instance_names.sh =================================================================== --- cmpi-bindings/swig/python/tests/enum_instance_names.sh (rev 0) +++ cmpi-bindings/swig/python/tests/enum_instance_names.sh 2008-07-19 16:08:26 UTC (rev 778) @@ -0,0 +1,2 @@ +#!/bin/bash +wbemein http://localhost:5988/root/cimv2:Py_UnixProcess \ No newline at end of file Property changes on: cmpi-bindings/swig/python/tests/enum_instance_names.sh ___________________________________________________________________ Added: svn:executable + * Added: cmpi-bindings/swig/python/tests/get_instances.sh =================================================================== --- cmpi-bindings/swig/python/tests/get_instances.sh (rev 0) +++ cmpi-bindings/swig/python/tests/get_instances.sh 2008-07-19 16:08:26 UTC (rev 778) @@ -0,0 +1,2 @@ +#!/bin/bash +wbemgi `http://wbemein http://localhost:5988/root/cimv2:Py_UnixProcess| head -1` \ No newline at end of file Property changes on: cmpi-bindings/swig/python/tests/get_instances.sh ___________________________________________________________________ Added: svn:executable + * Added: cmpi-bindings/swig/python/tests/loading.py =================================================================== --- cmpi-bindings/swig/python/tests/loading.py (rev 0) +++ cmpi-bindings/swig/python/tests/loading.py 2008-07-19 16:08:26 UTC (rev 778) @@ -0,0 +1,3 @@ +import sys +sys.path.insert(0,'../../../build/swig/python') +import cmpi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-18 22:58:57
|
Revision: 777 http://omc.svn.sourceforge.net/omc/?rev=777&view=rev Author: kkaempf Date: 2008-07-18 22:59:06 +0000 (Fri, 18 Jul 2008) Log Message: ----------- drop Status from callback Modified Paths: -------------- cmpi-bindings/swig/cmpi_callbacks.i Modified: cmpi-bindings/swig/cmpi_callbacks.i =================================================================== --- cmpi-bindings/swig/cmpi_callbacks.i 2008-07-18 22:56:58 UTC (rev 776) +++ cmpi-bindings/swig/cmpi_callbacks.i 2008-07-18 22:59:06 UTC (rev 777) @@ -26,7 +26,7 @@ CMPIStatus deliverIndication(const CMPIContext * ctx, const char * ns, const CMPIInstance * ind) { return CBDeliverIndication(_BROKER, ctx, ns, ind); } - CMPIEnumeration* EnumInstanceNames(const CMPIContext * ctx, const CMPIObjectPath * op, CMPIStatus * rc) { - return CBEnumInstanceNames(_BROKER, ctx, op, rc); + CMPIEnumeration* EnumInstanceNames(const CMPIContext * ctx, const CMPIObjectPath * op) { + return CBEnumInstanceNames(_BROKER, ctx, op, NULL); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-07-18 22:56:51
|
Revision: 776 http://omc.svn.sourceforge.net/omc/?rev=776&view=rev Author: bartw Date: 2008-07-18 22:56:58 +0000 (Fri, 18 Jul 2008) Log Message: ----------- working on broker up-calls Modified Paths: -------------- cmpi-bindings/swig/cmpi_callbacks.i Modified: cmpi-bindings/swig/cmpi_callbacks.i =================================================================== --- cmpi-bindings/swig/cmpi_callbacks.i 2008-07-18 22:56:49 UTC (rev 775) +++ cmpi-bindings/swig/cmpi_callbacks.i 2008-07-18 22:56:58 UTC (rev 776) @@ -9,21 +9,24 @@ %extend CMPIBroker { + CMPIBroker() { } + ~CMPIBroker() { } void LogMessage(int severity, const char *id, const char *text) { CMLogMessage(_BROKER, severity, id, text, NULL); } unsigned long capabilities() { + return CBGetCapabilities(_BROKER); + } + int version() { return CBBrokerVersion(_BROKER); } const char *name() { return CBBrokerName(_BROKER); } - /* CMPIStatus deliverIndication(const CMPIContext * ctx, const char * ns, const CMPIInstance * ind) { return CBDeliverIndication(_BROKER, ctx, ns, ind); } - CMPIEnumeration CBEnumInstanceNames(const CMPIContext * ctx, const CMPIObjectPath * op, CMPIStatus * rc) { + CMPIEnumeration* EnumInstanceNames(const CMPIContext * ctx, const CMPIObjectPath * op, CMPIStatus * rc) { return CBEnumInstanceNames(_BROKER, ctx, op, rc); } - */ } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-18 22:56:39
|
Revision: 775 http://omc.svn.sourceforge.net/omc/?rev=775&view=rev Author: kkaempf Date: 2008-07-18 22:56:49 +0000 (Fri, 18 Jul 2008) Log Message: ----------- CMPIEnumeration methods Modified Paths: -------------- cmpi-bindings/swig/cmpi_types.i Modified: cmpi-bindings/swig/cmpi_types.i =================================================================== --- cmpi-bindings/swig/cmpi_types.i 2008-07-18 22:24:37 UTC (rev 774) +++ cmpi-bindings/swig/cmpi_types.i 2008-07-18 22:56:49 UTC (rev 775) @@ -799,6 +799,32 @@ %extend _CMPIEnumeration { CMPIEnumeration() { } ~CMPIEnumeration() { } +#if defined(SWIGRUBY) + %alias length "size"; +#endif + int length() { + int l = 0; + while (CMHasNext( $self, NULL ) ) { + ++l; + CMGetNext( $self, NULL ); + } + return l; + } + CMPIData next() { + return CMGetNext( $self, NULL ); + } +#if defined(SWIGRUBY) + %alias hasNext "empty?"; +#endif + int hasNext() { + return CMHasNext( $self, NULL ); + } +#if defined(SWIGRUBY) + %alias toArray "to_ary"; +#endif + CMPIArray *toArray() { + return CMToArray( $self, NULL ); + } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-18 22:24:28
|
Revision: 774 http://omc.svn.sourceforge.net/omc/?rev=774&view=rev Author: kkaempf Date: 2008-07-18 22:24:37 +0000 (Fri, 18 Jul 2008) Log Message: ----------- initial wrappers for CMPIBroker Modified Paths: -------------- cmpi-bindings/swig/cmpi_callbacks.i Modified: cmpi-bindings/swig/cmpi_callbacks.i =================================================================== --- cmpi-bindings/swig/cmpi_callbacks.i 2008-07-18 22:16:40 UTC (rev 773) +++ cmpi-bindings/swig/cmpi_callbacks.i 2008-07-18 22:24:37 UTC (rev 774) @@ -3,12 +3,27 @@ # swig bindings for CMPI broker callbacks # -%{ -static void LogMessage(int severity, const char *id, const char *text) -{ - CMLogMessage(_BROKER, severity, id, text, NULL); -} +%nodefault _CMPIBroker; +%rename(CMPIBroker) CMPIBroker; +typedef struct _CMPIBroker {} CMPIBroker; -%} -void LogMessage(int severity, const char *id, const char *text); +%extend CMPIBroker { + void LogMessage(int severity, const char *id, const char *text) { + CMLogMessage(_BROKER, severity, id, text, NULL); + } + unsigned long capabilities() { + return CBBrokerVersion(_BROKER); + } + const char *name() { + return CBBrokerName(_BROKER); + } + /* + CMPIStatus deliverIndication(const CMPIContext * ctx, const char * ns, const CMPIInstance * ind) { + return CBDeliverIndication(_BROKER, ctx, ns, ind); + } + CMPIEnumeration CBEnumInstanceNames(const CMPIContext * ctx, const CMPIObjectPath * op, CMPIStatus * rc) { + return CBEnumInstanceNames(_BROKER, ctx, op, rc); + } + */ +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-07-18 22:16:31
|
Revision: 773 http://omc.svn.sourceforge.net/omc/?rev=773&view=rev Author: bartw Date: 2008-07-18 22:16:40 +0000 (Fri, 18 Jul 2008) Log Message: ----------- added a TODO item Modified Paths: -------------- cmpi-bindings/TODO Modified: cmpi-bindings/TODO =================================================================== --- cmpi-bindings/TODO 2008-07-18 21:55:49 UTC (rev 772) +++ cmpi-bindings/TODO 2008-07-18 22:16:40 UTC (rev 773) @@ -14,4 +14,9 @@ Finish wrapping broker FTs, such as upcalls. - +Handling CMPIStatus: +Instead of returning CMPIStatus, check it in C code, and throw and +exception if it isn't CMPI_RC_OK. Functions that return CMPIStatus +would then be void instead. We'll check CMPIStatus* output parameters +as well, and do the same. We need to create an exception class with a +code and error string in swig. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-18 21:55:39
|
Revision: 772 http://omc.svn.sourceforge.net/omc/?rev=772&view=rev Author: mike-brasher Date: 2008-07-18 21:55:49 +0000 (Fri, 18 Jul 2008) Log Message: ----------- implemented "unsupported" version of ChangeBootOrder extrinsic method. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c 2008-07-18 21:34:55 UTC (rev 771) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c 2008-07-18 21:55:49 UTC (rev 772) @@ -160,7 +160,10 @@ { KUint32 result = KUINT32_INIT; - KSetStatus(status, ERR_NOT_SUPPORTED); + /* Not supported */ + KUint32_Set(&result, 1); + + KSetStatus(status, OK); return result; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-18 21:34:46
|
Revision: 771 http://omc.svn.sourceforge.net/omc/?rev=771&view=rev Author: mike-brasher Date: 2008-07-18 21:34:55 +0000 (Fri, 18 Jul 2008) Log Message: ----------- Added mof definition for ServiceAffectsElement 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-18 21:34:28 UTC (rev 770) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof 2008-07-18 21:34:55 UTC (rev 771) @@ -39,3 +39,9 @@ [Key] Linux_ComputerSystem REF Antecedent; [Key] Linux_BootService REF Dependent; }; + +class Linux_BootServiceAffectsElement : CIM_ServiceAffectsElement +{ + [Key] Linux_BootService REF AffectingElement; + [Key] Linux_ComputerSystem REF AffectedElement; +}; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-18 21:34:20
|
Revision: 770 http://omc.svn.sourceforge.net/omc/?rev=770&view=rev Author: mike-brasher Date: 2008-07-18 21:34:28 +0000 (Fri, 18 Jul 2008) Log Message: ----------- New providers. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/HostedServiceProvider.c cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Resource.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_ServiceAffectsElement.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ServiceAffectsElement.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ServiceAffectsElementProvider.c Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ServiceAffectsElement.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ServiceAffectsElement.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ServiceAffectsElement.h 2008-07-18 21:34:28 UTC (rev 770) @@ -0,0 +1,655 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_ServiceAffectsElement_h +#define _konkrete_CIM_ServiceAffectsElement_h + +#include <konkret/konkret.h> +#include "CIM_ManagedElement.h" +#include "CIM_Service.h" + +/* +**============================================================================== +** +** struct CIM_ServiceAffectsElementRef +** +**============================================================================== +*/ + +/* classname=CIM_ServiceAffectsElement */ +typedef struct _CIM_ServiceAffectsElementRef +{ + KBase __base; + /* CIM_ServiceAffectsElement features */ + const KRef AffectedElement; /* CIM_ManagedElement */ + const KRef AffectingElement; /* CIM_Service */ +} +CIM_ServiceAffectsElementRef; + +static const unsigned char __CIM_ServiceAffectsElementRef_sig[] = +{ + 0x19,0x43,0x49,0x4d,0x5f,0x53,0x65,0x72,0x76,0x69,0x63,0x65,0x41,0x66,0x66, + 0x65,0x63,0x74,0x73,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,0x02,0x4e,0x0f, + 0x41,0x66,0x66,0x65,0x63,0x74,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74, + 0x00,0x4e,0x10,0x41,0x66,0x66,0x65,0x63,0x74,0x69,0x6e,0x67,0x45,0x6c,0x65, + 0x6d,0x65,0x6e,0x74,0x00, +}; + +KINLINE void CIM_ServiceAffectsElementRef_Init( + CIM_ServiceAffectsElementRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_ServiceAffectsElementRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->AffectedElement)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->AffectingElement)->__sig = __CIM_Service_sig; +} + +KINLINE CMPIStatus CIM_ServiceAffectsElementRef_InitFromInstance( + CIM_ServiceAffectsElementRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_ServiceAffectsElementRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_ServiceAffectsElementRef_InitFromObjectPath( + CIM_ServiceAffectsElementRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_ServiceAffectsElementRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_ServiceAffectsElementRef_Print( + const CIM_ServiceAffectsElementRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_ServiceAffectsElementRef_ToInstance( + const CIM_ServiceAffectsElementRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_ServiceAffectsElementRef_ToObjectPath( + const CIM_ServiceAffectsElementRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_ServiceAffectsElementRef_NameSpace( + CIM_ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_ServiceAffectsElementRef_SetObjectPath_AffectedElement( + CIM_ServiceAffectsElementRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_ServiceAffectsElementRef_Set_AffectedElement( + CIM_ServiceAffectsElementRef* self, + const CIM_ManagedElementRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void CIM_ServiceAffectsElementRef_Null_AffectedElement( + CIM_ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_Null(field); + } +} + +KINLINE void CIM_ServiceAffectsElementRef_Clr_AffectedElement( + CIM_ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_Clr(field); + } +} + +KINLINE void CIM_ServiceAffectsElementRef_SetObjectPath_AffectingElement( + CIM_ServiceAffectsElementRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_ServiceAffectsElementRef_Set_AffectingElement( + CIM_ServiceAffectsElementRef* self, + const CIM_ServiceRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void CIM_ServiceAffectsElementRef_Null_AffectingElement( + CIM_ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_Null(field); + } +} + +KINLINE void CIM_ServiceAffectsElementRef_Clr_AffectingElement( + CIM_ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_ServiceAffectsElement +** +**============================================================================== +*/ + +/* classname=CIM_ServiceAffectsElement */ +typedef struct _CIM_ServiceAffectsElement +{ + KBase __base; + /* CIM_ServiceAffectsElement features */ + const KRef AffectedElement; /* CIM_ManagedElement */ + const KRef AffectingElement; /* CIM_Service */ + const KUint16A ElementEffects; + const KStringA OtherElementEffectsDescriptions; + const KUint16 AssignedSequence; +} +CIM_ServiceAffectsElement; + +static const unsigned char __CIM_ServiceAffectsElement_sig[] = +{ + 0x19,0x43,0x49,0x4d,0x5f,0x53,0x65,0x72,0x76,0x69,0x63,0x65,0x41,0x66,0x66, + 0x65,0x63,0x74,0x73,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,0x05,0x4e,0x0f, + 0x41,0x66,0x66,0x65,0x63,0x74,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74, + 0x00,0x4e,0x10,0x41,0x66,0x66,0x65,0x63,0x74,0x69,0x6e,0x67,0x45,0x6c,0x65, + 0x6d,0x65,0x6e,0x74,0x00,0x83,0x0e,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x45, + 0x66,0x66,0x65,0x63,0x74,0x73,0x00,0x8c,0x1f,0x4f,0x74,0x68,0x65,0x72,0x45, + 0x6c,0x65,0x6d,0x65,0x6e,0x74,0x45,0x66,0x66,0x65,0x63,0x74,0x73,0x44,0x65, + 0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x03,0x10,0x41,0x73, + 0x73,0x69,0x67,0x6e,0x65,0x64,0x53,0x65,0x71,0x75,0x65,0x6e,0x63,0x65,0x00, +}; + +KINLINE void CIM_ServiceAffectsElement_Init( + CIM_ServiceAffectsElement* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_ServiceAffectsElement_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->AffectedElement)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->AffectingElement)->__sig = __CIM_Service_sig; +} + +KINLINE CMPIStatus CIM_ServiceAffectsElement_InitFromInstance( + CIM_ServiceAffectsElement* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_ServiceAffectsElement_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_ServiceAffectsElement_InitFromObjectPath( + CIM_ServiceAffectsElement* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_ServiceAffectsElement_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_ServiceAffectsElement_Print( + const CIM_ServiceAffectsElement* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_ServiceAffectsElement_ToInstance( + const CIM_ServiceAffectsElement* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_ServiceAffectsElement_ToObjectPath( + const CIM_ServiceAffectsElement* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_ServiceAffectsElement_NameSpace( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_ServiceAffectsElement_SetObjectPath_AffectedElement( + CIM_ServiceAffectsElement* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_ServiceAffectsElement_Set_AffectedElement( + CIM_ServiceAffectsElement* self, + const CIM_ManagedElementRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void CIM_ServiceAffectsElement_Null_AffectedElement( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_Null(field); + } +} + +KINLINE void CIM_ServiceAffectsElement_Clr_AffectedElement( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_Clr(field); + } +} + +KINLINE void CIM_ServiceAffectsElement_SetObjectPath_AffectingElement( + CIM_ServiceAffectsElement* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_ServiceAffectsElement_Set_AffectingElement( + CIM_ServiceAffectsElement* self, + const CIM_ServiceRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void CIM_ServiceAffectsElement_Null_AffectingElement( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_Null(field); + } +} + +KINLINE void CIM_ServiceAffectsElement_Clr_AffectingElement( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_Clr(field); + } +} + +KINLINE CMPIBoolean CIM_ServiceAffectsElement_Init_ElementEffects( + CIM_ServiceAffectsElement* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_ServiceAffectsElement_InitNull_ElementEffects( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_ServiceAffectsElement_Set_ElementEffects( + CIM_ServiceAffectsElement* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 CIM_ServiceAffectsElement_Get_ElementEffects( + CIM_ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean CIM_ServiceAffectsElement_Null_ElementEffects( + CIM_ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void CIM_ServiceAffectsElement_Clr_ElementEffects( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + KUint16A_Clr(field); + } +} + +typedef enum _CIM_ServiceAffectsElement_ElementEffects_Enum +{ + CIM_ServiceAffectsElement_ElementEffects_Unknown = 0, + CIM_ServiceAffectsElement_ElementEffects_Other = 1, + CIM_ServiceAffectsElement_ElementEffects_Exclusive_Use = 2, + CIM_ServiceAffectsElement_ElementEffects_Performance_Impact = 3, + CIM_ServiceAffectsElement_ElementEffects_Element_Integrity = 4, + CIM_ServiceAffectsElement_ElementEffects_Manages = 5, + CIM_ServiceAffectsElement_ElementEffects_Consumes = 6, + CIM_ServiceAffectsElement_ElementEffects_Enhances_Integrity = 7, + CIM_ServiceAffectsElement_ElementEffects_Degrades_Integrity = 8, + CIM_ServiceAffectsElement_ElementEffects_Enhances_Performance = 9, + CIM_ServiceAffectsElement_ElementEffects_Degrades_Performance = 10, + CIM_ServiceAffectsElement_ElementEffects_DMTF_Reserved = 0, + CIM_ServiceAffectsElement_ElementEffects_Vendor_Reserved = 0, +} +CIM_ServiceAffectsElement_ElementEffects_Enum; + +/* "Unknown" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Unknown(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 0) + +/* "Other" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Other(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 1) + +/* "Exclusive Use" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Exclusive_Use(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 2) + +/* "Performance Impact" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Performance_Impact(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 3) + +/* "Element Integrity" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Element_Integrity(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 4) + +/* "Manages" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Manages(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 5) + +/* "Consumes" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Consumes(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 6) + +/* "Enhances Integrity" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Enhances_Integrity(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 7) + +/* "Degrades Integrity" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Degrades_Integrity(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 8) + +/* "Enhances Performance" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Enhances_Performance(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 9) + +/* "Degrades Performance" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Degrades_Performance(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 10) + +/* "DMTF Reserved" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_DMTF_Reserved(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 0) + +/* "Vendor Reserved" */ +#define CIM_ServiceAffectsElement_Set_ElementEffects_Vendor_Reserved(SELF, INDEX)\ + CIM_ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 0) + +KINLINE CMPIBoolean CIM_ServiceAffectsElement_Init_OtherElementEffectsDescriptions( + CIM_ServiceAffectsElement* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_ServiceAffectsElement_InitNull_OtherElementEffectsDescriptions( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_ServiceAffectsElement_SetString_OtherElementEffectsDescriptions( + CIM_ServiceAffectsElement* self, + CMPICount i, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_SetString(field, i, x); + } + return 0; +} + +KINLINE CMPIBoolean CIM_ServiceAffectsElement_Set_OtherElementEffectsDescriptions( + CIM_ServiceAffectsElement* self, + CMPICount i, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_Set(field, self->__base.cb, i, s); + } + return 0; +} + +KINLINE KString CIM_ServiceAffectsElement_GetString_OtherElementEffectsDescriptions( + CIM_ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_GetString(field, i); + } + return KStringA_GetString(NULL, 0); +} + +KINLINE const char* CIM_ServiceAffectsElement_Get_OtherElementEffectsDescriptions( + CIM_ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean CIM_ServiceAffectsElement_Null_OtherElementEffectsDescriptions( + CIM_ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void CIM_ServiceAffectsElement_Clr_OtherElementEffectsDescriptions( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + KStringA_Clr(field); + } +} + +KINLINE void CIM_ServiceAffectsElement_Set_AssignedSequence( + CIM_ServiceAffectsElement* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->AssignedSequence; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ServiceAffectsElement_Null_AssignedSequence( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->AssignedSequence; + KUint16_Null(field); + } +} + +KINLINE void CIM_ServiceAffectsElement_Clr_AssignedSequence( + CIM_ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->AssignedSequence; + KUint16_Clr(field); + } +} + +/* +**============================================================================== +** +** CIM_ServiceAffectsElement methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus CIM_ServiceAffectsElement_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CIM_ServiceAffectsElementRef self; + + KReturnIf(CIM_ServiceAffectsElementRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_CIM_ServiceAffectsElement_h */ Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/HostedServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/HostedServiceProvider.c 2008-07-18 21:21:06 UTC (rev 769) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/HostedServiceProvider.c 2008-07-18 21:34:28 UTC (rev 770) @@ -33,22 +33,29 @@ const CMPIObjectPath* cop, const char** properties) { + const char* ns = KNameSpace(cop); ComputerSystemRef a; /* Antecedent */ + BootServiceRef d; /* Dependent */ + HostedService x; + /* Linux_BootHostedService.Antecedent */ ComputerSystemRef_Init(&a, _cb, KNameSpace(cop)); ComputerSystemRef_Set_CreationClassName(&a, "Linux_ComputerSystem"); ComputerSystemRef_Set_Name(&a, SysName().str); - return KDefaultEnumerateInstancesOneToAll( - _cb, - cc, - cr, - cop, - ComputerSystemRef_ToObjectPath(&a, NULL), - "Antecedent", - CMNewObjectPath(_cb, KNameSpace(cop), "Linux_BootService",NULL), - "Dependent"); + /* Linux_BootHostedService.Dependent */ + BootServiceRef_Init(&d, _cb, ns); + BootServiceRef_Set_Name(&d, "SBLIM:Boot_Service"); + BootServiceRef_Set_SystemCreationClassName(&d, SysCreationClassName().str); + BootServiceRef_Set_SystemName(&d, SysName().str); + BootServiceRef_Set_CreationClassName(&d, "Linux_BootService"); + /* Linux_BootHostedService */ + HostedService_Init(&x, _cb, ns); + HostedService_Set_Antecedent(&x, &a); + HostedService_Set_Dependent(&x, &d); + KReturnInstance(cr, x); + CMReturn(CMPI_RC_OK); } Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am 2008-07-18 21:21:06 UTC (rev 769) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am 2008-07-18 21:34:28 UTC (rev 770) @@ -25,19 +25,22 @@ CIM_ManagedSystemElement.h \ CIM_OrderedComponent.h \ CIM_RegisteredProfile.h \ + CIM_ServiceAffectsElement.h \ CIM_Service.h \ CIM_SettingData.h \ CIM_System.h \ + ComputerSystem.h \ HostedService.h \ HostedServiceProvider.c \ Linux_BootSourceSetting.h \ - Linux_ComputerSystem.h \ OrderedComponent.h \ OrderedComponentProvider.c \ RegisteredProfile.h \ RegisteredProfileProvider.c \ Resource.c \ - Resource.h + Resource.h \ + ServiceAffectsElement.h \ + ServiceAffectsElementProvider.c liblinux_bootctrlprovider_la_LDFLAGS = \ -lkonkret \ Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c 2008-07-18 21:21:06 UTC (rev 769) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c 2008-07-18 21:34:28 UTC (rev 770) @@ -52,8 +52,6 @@ for (i = 0; i < menu.numItems; i++) { - const struct GrubMenuItem* mi = &menu.items[i]; - /* Linux_BootOrderedComponent.PartComponent */ BootSourceSettingRef_Init(&p, _cb, ns); BootSourceSettingRef_Set_InstanceID(&p, Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Resource.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Resource.c 2008-07-18 21:21:06 UTC (rev 769) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Resource.c 2008-07-18 21:34:28 UTC (rev 770) @@ -1,3 +1,4 @@ +#include <ctype.h> #include "Resource.h" int TestGrubEnabled() Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ServiceAffectsElement.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ServiceAffectsElement.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ServiceAffectsElement.h 2008-07-18 21:34:28 UTC (rev 770) @@ -0,0 +1,658 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_ServiceAffectsElement_h +#define _konkrete_ServiceAffectsElement_h + +#include <konkret/konkret.h> +#include "ComputerSystem.h" +#include "BootService.h" + +/* +**============================================================================== +** +** struct ServiceAffectsElementRef +** +**============================================================================== +*/ + +/* classname=Linux_BootServiceAffectsElement */ +typedef struct _ServiceAffectsElementRef +{ + KBase __base; + /* CIM_ServiceAffectsElement features */ + const KRef AffectedElement; /* ComputerSystem */ + const KRef AffectingElement; /* BootService */ + /* Linux_BootServiceAffectsElement features */ +} +ServiceAffectsElementRef; + +static const unsigned char __ServiceAffectsElementRef_sig[] = +{ + 0x1f,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x53,0x65,0x72,0x76, + 0x69,0x63,0x65,0x41,0x66,0x66,0x65,0x63,0x74,0x73,0x45,0x6c,0x65,0x6d,0x65, + 0x6e,0x74,0x00,0x02,0x4e,0x0f,0x41,0x66,0x66,0x65,0x63,0x74,0x65,0x64,0x45, + 0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,0x4e,0x10,0x41,0x66,0x66,0x65,0x63,0x74, + 0x69,0x6e,0x67,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00, +}; + +KINLINE void ServiceAffectsElementRef_Init( + ServiceAffectsElementRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ServiceAffectsElementRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->AffectedElement)->__sig = __ComputerSystem_sig; + ((KRef*)&self->AffectingElement)->__sig = __BootService_sig; +} + +KINLINE CMPIStatus ServiceAffectsElementRef_InitFromInstance( + ServiceAffectsElementRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ServiceAffectsElementRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ServiceAffectsElementRef_InitFromObjectPath( + ServiceAffectsElementRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ServiceAffectsElementRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ServiceAffectsElementRef_Print( + const ServiceAffectsElementRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* ServiceAffectsElementRef_ToInstance( + const ServiceAffectsElementRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ServiceAffectsElementRef_ToObjectPath( + const ServiceAffectsElementRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ServiceAffectsElementRef_NameSpace( + ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ServiceAffectsElementRef_SetObjectPath_AffectedElement( + ServiceAffectsElementRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ServiceAffectsElementRef_Set_AffectedElement( + ServiceAffectsElementRef* self, + const ComputerSystemRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ServiceAffectsElementRef_Null_AffectedElement( + ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_Null(field); + } +} + +KINLINE void ServiceAffectsElementRef_Clr_AffectedElement( + ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_Clr(field); + } +} + +KINLINE void ServiceAffectsElementRef_SetObjectPath_AffectingElement( + ServiceAffectsElementRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ServiceAffectsElementRef_Set_AffectingElement( + ServiceAffectsElementRef* self, + const BootServiceRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ServiceAffectsElementRef_Null_AffectingElement( + ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_Null(field); + } +} + +KINLINE void ServiceAffectsElementRef_Clr_AffectingElement( + ServiceAffectsElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct ServiceAffectsElement +** +**============================================================================== +*/ + +/* classname=Linux_BootServiceAffectsElement */ +typedef struct _ServiceAffectsElement +{ + KBase __base; + /* CIM_ServiceAffectsElement features */ + const KRef AffectedElement; /* ComputerSystem */ + const KRef AffectingElement; /* BootService */ + const KUint16A ElementEffects; + const KStringA OtherElementEffectsDescriptions; + const KUint16 AssignedSequence; + /* Linux_BootServiceAffectsElement features */ +} +ServiceAffectsElement; + +static const unsigned char __ServiceAffectsElement_sig[] = +{ + 0x1f,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x53,0x65,0x72,0x76, + 0x69,0x63,0x65,0x41,0x66,0x66,0x65,0x63,0x74,0x73,0x45,0x6c,0x65,0x6d,0x65, + 0x6e,0x74,0x00,0x05,0x4e,0x0f,0x41,0x66,0x66,0x65,0x63,0x74,0x65,0x64,0x45, + 0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,0x4e,0x10,0x41,0x66,0x66,0x65,0x63,0x74, + 0x69,0x6e,0x67,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00,0x83,0x0e,0x45,0x6c, + 0x65,0x6d,0x65,0x6e,0x74,0x45,0x66,0x66,0x65,0x63,0x74,0x73,0x00,0x8c,0x1f, + 0x4f,0x74,0x68,0x65,0x72,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x45,0x66,0x66, + 0x65,0x63,0x74,0x73,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e, + 0x73,0x00,0x03,0x10,0x41,0x73,0x73,0x69,0x67,0x6e,0x65,0x64,0x53,0x65,0x71, + 0x75,0x65,0x6e,0x63,0x65,0x00, +}; + +KINLINE void ServiceAffectsElement_Init( + ServiceAffectsElement* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ServiceAffectsElement_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->AffectedElement)->__sig = __ComputerSystem_sig; + ((KRef*)&self->AffectingElement)->__sig = __BootService_sig; +} + +KINLINE CMPIStatus ServiceAffectsElement_InitFromInstance( + ServiceAffectsElement* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ServiceAffectsElement_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ServiceAffectsElement_InitFromObjectPath( + ServiceAffectsElement* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ServiceAffectsElement_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ServiceAffectsElement_Print( + const ServiceAffectsElement* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* ServiceAffectsElement_ToInstance( + const ServiceAffectsElement* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ServiceAffectsElement_ToObjectPath( + const ServiceAffectsElement* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ServiceAffectsElement_NameSpace( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ServiceAffectsElement_SetObjectPath_AffectedElement( + ServiceAffectsElement* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ServiceAffectsElement_Set_AffectedElement( + ServiceAffectsElement* self, + const ComputerSystemRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ServiceAffectsElement_Null_AffectedElement( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_Null(field); + } +} + +KINLINE void ServiceAffectsElement_Clr_AffectedElement( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectedElement; + KRef_Clr(field); + } +} + +KINLINE void ServiceAffectsElement_SetObjectPath_AffectingElement( + ServiceAffectsElement* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ServiceAffectsElement_Set_AffectingElement( + ServiceAffectsElement* self, + const BootServiceRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ServiceAffectsElement_Null_AffectingElement( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_Null(field); + } +} + +KINLINE void ServiceAffectsElement_Clr_AffectingElement( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->AffectingElement; + KRef_Clr(field); + } +} + +KINLINE CMPIBoolean ServiceAffectsElement_Init_ElementEffects( + ServiceAffectsElement* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void ServiceAffectsElement_InitNull_ElementEffects( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean ServiceAffectsElement_Set_ElementEffects( + ServiceAffectsElement* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 ServiceAffectsElement_Get_ElementEffects( + ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean ServiceAffectsElement_Null_ElementEffects( + ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void ServiceAffectsElement_Clr_ElementEffects( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->ElementEffects; + KUint16A_Clr(field); + } +} + +typedef enum _ServiceAffectsElement_ElementEffects_Enum +{ + ServiceAffectsElement_ElementEffects_Unknown = 0, + ServiceAffectsElement_ElementEffects_Other = 1, + ServiceAffectsElement_ElementEffects_Exclusive_Use = 2, + ServiceAffectsElement_ElementEffects_Performance_Impact = 3, + ServiceAffectsElement_ElementEffects_Element_Integrity = 4, + ServiceAffectsElement_ElementEffects_Manages = 5, + ServiceAffectsElement_ElementEffects_Consumes = 6, + ServiceAffectsElement_ElementEffects_Enhances_Integrity = 7, + ServiceAffectsElement_ElementEffects_Degrades_Integrity = 8, + ServiceAffectsElement_ElementEffects_Enhances_Performance = 9, + ServiceAffectsElement_ElementEffects_Degrades_Performance = 10, + ServiceAffectsElement_ElementEffects_DMTF_Reserved = 0, + ServiceAffectsElement_ElementEffects_Vendor_Reserved = 0, +} +ServiceAffectsElement_ElementEffects_Enum; + +/* "Unknown" */ +#define ServiceAffectsElement_Set_ElementEffects_Unknown(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 0) + +/* "Other" */ +#define ServiceAffectsElement_Set_ElementEffects_Other(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 1) + +/* "Exclusive Use" */ +#define ServiceAffectsElement_Set_ElementEffects_Exclusive_Use(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 2) + +/* "Performance Impact" */ +#define ServiceAffectsElement_Set_ElementEffects_Performance_Impact(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 3) + +/* "Element Integrity" */ +#define ServiceAffectsElement_Set_ElementEffects_Element_Integrity(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 4) + +/* "Manages" */ +#define ServiceAffectsElement_Set_ElementEffects_Manages(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 5) + +/* "Consumes" */ +#define ServiceAffectsElement_Set_ElementEffects_Consumes(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 6) + +/* "Enhances Integrity" */ +#define ServiceAffectsElement_Set_ElementEffects_Enhances_Integrity(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 7) + +/* "Degrades Integrity" */ +#define ServiceAffectsElement_Set_ElementEffects_Degrades_Integrity(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 8) + +/* "Enhances Performance" */ +#define ServiceAffectsElement_Set_ElementEffects_Enhances_Performance(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 9) + +/* "Degrades Performance" */ +#define ServiceAffectsElement_Set_ElementEffects_Degrades_Performance(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 10) + +/* "DMTF Reserved" */ +#define ServiceAffectsElement_Set_ElementEffects_DMTF_Reserved(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 0) + +/* "Vendor Reserved" */ +#define ServiceAffectsElement_Set_ElementEffects_Vendor_Reserved(SELF, INDEX)\ + ServiceAffectsElement_Set_ElementEffects(SELF, INDEX, 0) + +KINLINE CMPIBoolean ServiceAffectsElement_Init_OtherElementEffectsDescriptions( + ServiceAffectsElement* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void ServiceAffectsElement_InitNull_OtherElementEffectsDescriptions( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean ServiceAffectsElement_SetString_OtherElementEffectsDescriptions( + ServiceAffectsElement* self, + CMPICount i, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_SetString(field, i, x); + } + return 0; +} + +KINLINE CMPIBoolean ServiceAffectsElement_Set_OtherElementEffectsDescriptions( + ServiceAffectsElement* self, + CMPICount i, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_Set(field, self->__base.cb, i, s); + } + return 0; +} + +KINLINE KString ServiceAffectsElement_GetString_OtherElementEffectsDescriptions( + ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_GetString(field, i); + } + return KStringA_GetString(NULL, 0); +} + +KINLINE const char* ServiceAffectsElement_Get_OtherElementEffectsDescriptions( + ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean ServiceAffectsElement_Null_OtherElementEffectsDescriptions( + ServiceAffectsElement* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void ServiceAffectsElement_Clr_OtherElementEffectsDescriptions( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherElementEffectsDescriptions; + KStringA_Clr(field); + } +} + +KINLINE void ServiceAffectsElement_Set_AssignedSequence( + ServiceAffectsElement* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->AssignedSequence; + KUint16_Set(field, x); + } +} + +KINLINE void ServiceAffectsElement_Null_AssignedSequence( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->AssignedSequence; + KUint16_Null(field); + } +} + +KINLINE void ServiceAffectsElement_Clr_AssignedSequence( + ServiceAffectsElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->AssignedSequence; + KUint16_Clr(field); + } +} + +/* +**============================================================================== +** +** ServiceAffectsElement methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus ServiceAffectsElement_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + ServiceAffectsElementRef self; + + KReturnIf(ServiceAffectsElementRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_ServiceAffectsElement_h */ Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ServiceAffectsElementProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ServiceAffectsElementProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ServiceAffectsElementProvider.c 2008-07-18 21:34:28 UTC (rev 770) @@ -0,0 +1,204 @@ +#include <konkret/konkret.h> +#include "ServiceAffectsElement.h" +#include "Resource.h" + +static const CMPIBroker* _cb; + +static void ServiceAffectsElementInitialize() +{ +} + +static CMPIStatus ServiceAffectsElementCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ServiceAffectsElementEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus ServiceAffectsElementEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + const char* ns = KNameSpace(cop); + ComputerSystemRef cs; + BootServiceRef bs; + ServiceAffectsElement x; + + /* Linux_BootServiceAffectsElement.AffectingElement */ + BootServiceRef_Init(&bs, _cb, ns); + BootServiceRef_Set_Name(&bs, "SBLIM:Boot_Service"); + BootServiceRef_Set_SystemCreationClassName(&bs, SysCreationClassName().str); + BootServiceRef_Set_SystemName(&bs, SysName().str); + BootServiceRef_Set_CreationClassName(&bs, "Linux_BootService"); + + /* Linux_BootServiceAffectsElement.AffectedElement */ + ComputerSystemRef_Init(&cs, _cb, KNameSpace(cop)); + ComputerSystemRef_Set_CreationClassName(&cs, "Linux_ComputerSystem"); + ComputerSystemRef_Set_Name(&cs, SysName().str); + + /* Linux_BootServiceAffectsElement */ + ServiceAffectsElement_Init(&x, _cb, ns); + ServiceAffectsElement_Set_AffectingElement(&x, &bs); + ServiceAffectsElement_Set_AffectedElement(&x, &cs); + KReturnInstance(cr, x); + + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ServiceAffectsElementGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus ServiceAffectsElementCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ServiceAffectsElementModifyInstance( + 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 ServiceAffectsElementDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ServiceAffectsElementExecQuery( + 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 ServiceAffectsElementAssociationCleanup( + CMPIAssociationMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ServiceAffectsElementAssociators( + 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_BootServiceAffectsElement"; + + return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, + resultClass, role, resultRole, properties); +} + +static CMPIStatus ServiceAffectsElementAssociatorNames( + 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_BootServiceAffectsElement"; + + return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, + assocClass, resultClass, role, resultRole); +} + +static CMPIStatus ServiceAffectsElementReferences( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_BootServiceAffectsElement"; + + return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, + role, properties); +} + +static CMPIStatus ServiceAffectsElementReferenceNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role) +{ + if (!assocClass) + assocClass = "Linux_BootServiceAffectsElement"; + + return KDefaultReferenceNames( + _cb, mi, cc, cr, cop, assocClass, role); +} + +CMInstanceMIStub( + ServiceAffectsElement, + ServiceAffectsElement, + _cb, + ServiceAffectsElementInitialize()) + +CMAssociationMIStub( + ServiceAffectsElement, + ServiceAffectsElement, + _cb, + ServiceAffectsElementInitialize()) + +KONKRET_REGISTRATION( + "root/cimv2", + "Linux_BootServiceAffectsElement", + "ServiceAffectsElement", + "instance association"); 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-18 21:21:06 UTC (rev 769) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon 2008-07-18 21:34:28 UTC (rev 770) @@ -11,3 +11,4 @@ Linux_BootOrderedComponent=OrderedComponent! Linux_BootHostedService=HostedService! Linux_ComputerSystem=ComputerSystem +Linux_BootServiceAffectsElement=ServiceAffectsElement! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-18 21:20:56
|
Revision: 769 http://omc.svn.sourceforge.net/omc/?rev=769&view=rev Author: kkaempf Date: 2008-07-18 21:21:06 +0000 (Fri, 18 Jul 2008) Log Message: ----------- prepare for broker callbacks, move LogMessage there Modified Paths: -------------- cmpi-bindings/swig/cmpi.i Added Paths: ----------- cmpi-bindings/swig/cmpi_callbacks.i Modified: cmpi-bindings/swig/cmpi.i =================================================================== --- cmpi-bindings/swig/cmpi.i 2008-07-18 21:12:44 UTC (rev 768) +++ cmpi-bindings/swig/cmpi.i 2008-07-18 21:21:06 UTC (rev 769) @@ -29,11 +29,6 @@ #include "../src/cmpi_provider.c" -static void LogMessage(int severity, const char *id, const char *text) -{ - CMLogMessage(_BROKER, severity, id, text, NULL); -} - %} # Definitions @@ -43,5 +38,5 @@ %include "cmpi_types.i" # _BROKER callbacks +%include "cmpi_callbacks.i" -void LogMessage(int severity, const char *id, const char *text); Added: cmpi-bindings/swig/cmpi_callbacks.i =================================================================== --- cmpi-bindings/swig/cmpi_callbacks.i (rev 0) +++ cmpi-bindings/swig/cmpi_callbacks.i 2008-07-18 21:21:06 UTC (rev 769) @@ -0,0 +1,14 @@ +# cmpi_callbacks.i +# +# swig bindings for CMPI broker callbacks +# + +%{ +static void LogMessage(int severity, const char *id, const char *text) +{ + CMLogMessage(_BROKER, severity, id, text, NULL); +} + +%} + +void LogMessage(int severity, const char *id, const char *text); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-18 21:12:35
|
Revision: 768 http://omc.svn.sourceforge.net/omc/?rev=768&view=rev Author: kkaempf Date: 2008-07-18 21:12:44 +0000 (Fri, 18 Jul 2008) Log Message: ----------- add empty destructors for all %nodefault classes, swig/python will complain without them Modified Paths: -------------- cmpi-bindings/swig/cmpi_types.i Modified: cmpi-bindings/swig/cmpi_types.i =================================================================== --- cmpi-bindings/swig/cmpi_types.i 2008-07-18 21:11:53 UTC (rev 767) +++ cmpi-bindings/swig/cmpi_types.i 2008-07-18 21:12:44 UTC (rev 768) @@ -120,6 +120,7 @@ { return CMNewCMPIError(_BROKER, owner, msgID, msg, sev, pc, cimStatusCode, NULL); } + ~CMPIError() { } /* Gets the type of this Error */ CMPIErrorType type() { CMGetErrorType( $self, NULL ); @@ -302,6 +303,7 @@ /* fprintf( stderr, "CMNewObjectPath: %p\n", path ); */ return path; } + ~CMPIObjectPath( ) { } /** * Create an independent copy of this ObjectPath object. The resulting * object must be released explicitly. @@ -508,6 +510,7 @@ #endif return inst; } + ~CMPIInstance() { } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -685,6 +688,8 @@ CMPIArgs() { return CMNewArgs(_BROKER, NULL); } + ~CMPIArgs() { } + /* Adds/replaces a named argument. */ void set( char *name, const CMPIValue * value, const CMPIType type) { CMAddArg( $self, name, value, type ); @@ -745,6 +750,7 @@ CMPISelectExp(const char *query, const char *lang, CMPIArray **projection) { return CMNewSelectExp(_BROKER, query, lang, projection, NULL); } + ~CMPISelectExp() { } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -757,6 +763,7 @@ %extend _CMPISelectCond { CMPISelectCond() { } + ~CMPISelectCond() { } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -769,6 +776,7 @@ %extend _CMPISubCond { CMPISubCond() { } + ~CMPISubCond() { } } #----------------------------------------------------- @@ -777,6 +785,7 @@ %extend _CMPIPredicate { CMPIPredicate() { } + ~CMPIPredicate() { } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -789,6 +798,7 @@ %extend _CMPIEnumeration { CMPIEnumeration() { } + ~CMPIEnumeration() { } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -806,6 +816,7 @@ CMPIArray(int count, CMPIType type ) { return CMNewArray( _BROKER, count, type, NULL); } + CMPIArray( ) { } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -842,6 +853,7 @@ CMPIString(const char *s) { return CMNewString(_BROKER, s, NULL); } + CMPIString() { } const char* to_s() { return CMGetCharPtr($self); } @@ -853,6 +865,7 @@ %extend _CMPIContext { CMPIContext() { } + ~CMPIContext() { } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -868,6 +881,7 @@ CMPIDateTime(void) { return CMNewDateTime(_BROKER, NULL); } + ~CMPIDateTime() { } /* bintime: Date/Time definition in binary format in microsecods * starting since 00:00:00 GMT, Jan 1,1970. * interval: Wenn true, defines Date/Time definition to be an interval value This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ba...@us...> - 2008-07-18 21:11:44
|
Revision: 767 http://omc.svn.sourceforge.net/omc/?rev=767&view=rev Author: bartw Date: 2008-07-18 21:11:53 +0000 (Fri, 18 Jul 2008) Log Message: ----------- fixed typo Modified Paths: -------------- cmpi-bindings/TODO Modified: cmpi-bindings/TODO =================================================================== --- cmpi-bindings/TODO 2008-07-18 20:57:54 UTC (rev 766) +++ cmpi-bindings/TODO 2008-07-18 21:11:53 UTC (rev 767) @@ -8,7 +8,7 @@ Items marked as "TODO" in the code. -Fix the build to figure determine the python version and dynamically link +Fix the build to determine the python version and dynamically link to libpython. Cmake only knows how to statically link to libpython. Right now it is hard-coded for libpython-2.5. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-18 20:57:45
|
Revision: 766 http://omc.svn.sourceforge.net/omc/?rev=766&view=rev Author: mike-brasher Date: 2008-07-18 20:57:54 +0000 (Fri, 18 Jul 2008) Log Message: ----------- Added HostedService 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_Dependency.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_HostedDependency.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_HostedService.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ComputerSystem.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/HostedService.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/HostedServiceProvider.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-18 20:54:29 UTC (rev 765) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof 2008-07-18 20:57:54 UTC (rev 766) @@ -33,3 +33,9 @@ [Key] Linux_BootConfigSetting REF GroupComponent; [Key] Linux_GrubBootSourceSetting REF PartComponent; }; + +class Linux_BootHostedService : CIM_HostedService +{ + [Key] Linux_ComputerSystem REF Antecedent; + [Key] Linux_BootService REF Dependent; +}; Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_Dependency.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_Dependency.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_Dependency.h 2008-07-18 20:57:54 UTC (rev 766) @@ -0,0 +1,379 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_Dependency_h +#define _konkrete_CIM_Dependency_h + +#include <konkret/konkret.h> +#include "CIM_ManagedElement.h" + +/* +**============================================================================== +** +** struct CIM_DependencyRef +** +**============================================================================== +*/ + +/* classname=CIM_Dependency */ +typedef struct _CIM_DependencyRef +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_ManagedElement */ + const KRef Dependent; /* CIM_ManagedElement */ +} +CIM_DependencyRef; + +static const unsigned char __CIM_DependencyRef_sig[] = +{ + 0x0e,0x43,0x49,0x4d,0x5f,0x44,0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x63,0x79, + 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_DependencyRef_Init( + CIM_DependencyRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_DependencyRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->Dependent)->__sig = __CIM_ManagedElement_sig; +} + +KINLINE CMPIStatus CIM_DependencyRef_InitFromInstance( + CIM_DependencyRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_DependencyRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_DependencyRef_InitFromObjectPath( + CIM_DependencyRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_DependencyRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_DependencyRef_Print( + const CIM_DependencyRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_DependencyRef_ToInstance( + const CIM_DependencyRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_DependencyRef_ToObjectPath( + const CIM_DependencyRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_DependencyRef_NameSpace( + CIM_DependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_DependencyRef_SetObjectPath_Antecedent( + CIM_DependencyRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_DependencyRef_Set_Antecedent( + CIM_DependencyRef* self, + const CIM_ManagedElementRef* 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_DependencyRef_Null_Antecedent( + CIM_DependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void CIM_DependencyRef_Clr_Antecedent( + CIM_DependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void CIM_DependencyRef_SetObjectPath_Dependent( + CIM_DependencyRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_DependencyRef_Set_Dependent( + CIM_DependencyRef* self, + const CIM_ManagedElementRef* 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_DependencyRef_Null_Dependent( + CIM_DependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void CIM_DependencyRef_Clr_Dependent( + CIM_DependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_Dependency +** +**============================================================================== +*/ + +/* classname=CIM_Dependency */ +typedef struct _CIM_Dependency +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_ManagedElement */ + const KRef Dependent; /* CIM_ManagedElement */ +} +CIM_Dependency; + +static const unsigned char __CIM_Dependency_sig[] = +{ + 0x0e,0x43,0x49,0x4d,0x5f,0x44,0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x63,0x79, + 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_Dependency_Init( + CIM_Dependency* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_Dependency_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->Dependent)->__sig = __CIM_ManagedElement_sig; +} + +KINLINE CMPIStatus CIM_Dependency_InitFromInstance( + CIM_Dependency* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_Dependency_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_Dependency_InitFromObjectPath( + CIM_Dependency* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_Dependency_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_Dependency_Print( + const CIM_Dependency* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_Dependency_ToInstance( + const CIM_Dependency* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_Dependency_ToObjectPath( + const CIM_Dependency* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_Dependency_NameSpace( + CIM_Dependency* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_Dependency_SetObjectPath_Antecedent( + CIM_Dependency* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_Dependency_Set_Antecedent( + CIM_Dependency* self, + const CIM_ManagedElementRef* 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_Dependency_Null_Antecedent( + CIM_Dependency* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void CIM_Dependency_Clr_Antecedent( + CIM_Dependency* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void CIM_Dependency_SetObjectPath_Dependent( + CIM_Dependency* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_Dependency_Set_Dependent( + CIM_Dependency* self, + const CIM_ManagedElementRef* 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_Dependency_Null_Dependent( + CIM_Dependency* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void CIM_Dependency_Clr_Dependent( + CIM_Dependency* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** CIM_Dependency methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus CIM_Dependency_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CIM_DependencyRef self; + + KReturnIf(CIM_DependencyRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_CIM_Dependency_h */ Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_HostedDependency.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_HostedDependency.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_HostedDependency.h 2008-07-18 20:57:54 UTC (rev 766) @@ -0,0 +1,383 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_HostedDependency_h +#define _konkrete_CIM_HostedDependency_h + +#include <konkret/konkret.h> +#include "CIM_ManagedElement.h" + +/* +**============================================================================== +** +** struct CIM_HostedDependencyRef +** +**============================================================================== +*/ + +/* classname=CIM_HostedDependency */ +typedef struct _CIM_HostedDependencyRef +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_ManagedElement */ + const KRef Dependent; /* CIM_ManagedElement */ + /* CIM_HostedDependency features */ +} +CIM_HostedDependencyRef; + +static const unsigned char __CIM_HostedDependencyRef_sig[] = +{ + 0x14,0x43,0x49,0x4d,0x5f,0x48,0x6f,0x73,0x74,0x65,0x64,0x44,0x65,0x70,0x65, + 0x6e,0x64,0x65,0x6e,0x63,0x79,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_HostedDependencyRef_Init( + CIM_HostedDependencyRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_HostedDependencyRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->Dependent)->__sig = __CIM_ManagedElement_sig; +} + +KINLINE CMPIStatus CIM_HostedDependencyRef_InitFromInstance( + CIM_HostedDependencyRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_HostedDependencyRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_HostedDependencyRef_InitFromObjectPath( + CIM_HostedDependencyRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_HostedDependencyRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_HostedDependencyRef_Print( + const CIM_HostedDependencyRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_HostedDependencyRef_ToInstance( + const CIM_HostedDependencyRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_HostedDependencyRef_ToObjectPath( + const CIM_HostedDependencyRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_HostedDependencyRef_NameSpace( + CIM_HostedDependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_HostedDependencyRef_SetObjectPath_Antecedent( + CIM_HostedDependencyRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_HostedDependencyRef_Set_Antecedent( + CIM_HostedDependencyRef* self, + const CIM_ManagedElementRef* 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_HostedDependencyRef_Null_Antecedent( + CIM_HostedDependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void CIM_HostedDependencyRef_Clr_Antecedent( + CIM_HostedDependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void CIM_HostedDependencyRef_SetObjectPath_Dependent( + CIM_HostedDependencyRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_HostedDependencyRef_Set_Dependent( + CIM_HostedDependencyRef* self, + const CIM_ManagedElementRef* 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_HostedDependencyRef_Null_Dependent( + CIM_HostedDependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void CIM_HostedDependencyRef_Clr_Dependent( + CIM_HostedDependencyRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_HostedDependency +** +**============================================================================== +*/ + +/* classname=CIM_HostedDependency */ +typedef struct _CIM_HostedDependency +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_ManagedElement */ + const KRef Dependent; /* CIM_ManagedElement */ + /* CIM_HostedDependency features */ +} +CIM_HostedDependency; + +static const unsigned char __CIM_HostedDependency_sig[] = +{ + 0x14,0x43,0x49,0x4d,0x5f,0x48,0x6f,0x73,0x74,0x65,0x64,0x44,0x65,0x70,0x65, + 0x6e,0x64,0x65,0x6e,0x63,0x79,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_HostedDependency_Init( + CIM_HostedDependency* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_HostedDependency_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->Dependent)->__sig = __CIM_ManagedElement_sig; +} + +KINLINE CMPIStatus CIM_HostedDependency_InitFromInstance( + CIM_HostedDependency* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_HostedDependency_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_HostedDependency_InitFromObjectPath( + CIM_HostedDependency* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_HostedDependency_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_HostedDependency_Print( + const CIM_HostedDependency* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_HostedDependency_ToInstance( + const CIM_HostedDependency* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_HostedDependency_ToObjectPath( + const CIM_HostedDependency* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_HostedDependency_NameSpace( + CIM_HostedDependency* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_HostedDependency_SetObjectPath_Antecedent( + CIM_HostedDependency* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_HostedDependency_Set_Antecedent( + CIM_HostedDependency* self, + const CIM_ManagedElementRef* 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_HostedDependency_Null_Antecedent( + CIM_HostedDependency* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void CIM_HostedDependency_Clr_Antecedent( + CIM_HostedDependency* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void CIM_HostedDependency_SetObjectPath_Dependent( + CIM_HostedDependency* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_HostedDependency_Set_Dependent( + CIM_HostedDependency* self, + const CIM_ManagedElementRef* 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_HostedDependency_Null_Dependent( + CIM_HostedDependency* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void CIM_HostedDependency_Clr_Dependent( + CIM_HostedDependency* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** CIM_HostedDependency methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus CIM_HostedDependency_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CIM_HostedDependencyRef self; + + KReturnIf(CIM_HostedDependencyRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_CIM_HostedDependency_h */ Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_HostedService.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_HostedService.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_HostedService.h 2008-07-18 20:57:54 UTC (rev 766) @@ -0,0 +1,384 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_HostedService_h +#define _konkrete_CIM_HostedService_h + +#include <konkret/konkret.h> +#include "CIM_System.h" +#include "CIM_Service.h" + +/* +**============================================================================== +** +** struct CIM_HostedServiceRef +** +**============================================================================== +*/ + +/* classname=CIM_HostedService */ +typedef struct _CIM_HostedServiceRef +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_System */ + const KRef Dependent; /* CIM_Service */ + /* CIM_HostedDependency features */ + /* CIM_HostedService features */ +} +CIM_HostedServiceRef; + +static const unsigned char __CIM_HostedServiceRef_sig[] = +{ + 0x11,0x43,0x49,0x4d,0x5f,0x48,0x6f,0x73,0x74,0x65,0x64,0x53,0x65,0x72,0x76, + 0x69,0x63,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_HostedServiceRef_Init( + CIM_HostedServiceRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_HostedServiceRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_System_sig; + ((KRef*)&self->Dependent)->__sig = __CIM_Service_sig; +} + +KINLINE CMPIStatus CIM_HostedServiceRef_InitFromInstance( + CIM_HostedServiceRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_HostedServiceRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_HostedServiceRef_InitFromObjectPath( + CIM_HostedServiceRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_HostedServiceRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_HostedServiceRef_Print( + const CIM_HostedServiceRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_HostedServiceRef_ToInstance( + const CIM_HostedServiceRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_HostedServiceRef_ToObjectPath( + const CIM_HostedServiceRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_HostedServiceRef_NameSpace( + CIM_HostedServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_HostedServiceRef_SetObjectPath_Antecedent( + CIM_HostedServiceRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_HostedServiceRef_Set_Antecedent( + CIM_HostedServiceRef* self, + const CIM_SystemRef* 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_HostedServiceRef_Null_Antecedent( + CIM_HostedServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void CIM_HostedServiceRef_Clr_Antecedent( + CIM_HostedServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void CIM_HostedServiceRef_SetObjectPath_Dependent( + CIM_HostedServiceRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_HostedServiceRef_Set_Dependent( + CIM_HostedServiceRef* self, + const CIM_ServiceRef* 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_HostedServiceRef_Null_Dependent( + CIM_HostedServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void CIM_HostedServiceRef_Clr_Dependent( + CIM_HostedServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_HostedService +** +**============================================================================== +*/ + +/* classname=CIM_HostedService */ +typedef struct _CIM_HostedService +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_System */ + const KRef Dependent; /* CIM_Service */ + /* CIM_HostedDependency features */ + /* CIM_HostedService features */ +} +CIM_HostedService; + +static const unsigned char __CIM_HostedService_sig[] = +{ + 0x11,0x43,0x49,0x4d,0x5f,0x48,0x6f,0x73,0x74,0x65,0x64,0x53,0x65,0x72,0x76, + 0x69,0x63,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_HostedService_Init( + CIM_HostedService* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_HostedService_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_System_sig; + ((KRef*)&self->Dependent)->__sig = __CIM_Service_sig; +} + +KINLINE CMPIStatus CIM_HostedService_InitFromInstance( + CIM_HostedService* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_HostedService_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_HostedService_InitFromObjectPath( + CIM_HostedService* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_HostedService_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_HostedService_Print( + const CIM_HostedService* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_HostedService_ToInstance( + const CIM_HostedService* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_HostedService_ToObjectPath( + const CIM_HostedService* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_HostedService_NameSpace( + CIM_HostedService* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_HostedService_SetObjectPath_Antecedent( + CIM_HostedService* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_HostedService_Set_Antecedent( + CIM_HostedService* self, + const CIM_SystemRef* 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_HostedService_Null_Antecedent( + CIM_HostedService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void CIM_HostedService_Clr_Antecedent( + CIM_HostedService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void CIM_HostedService_SetObjectPath_Dependent( + CIM_HostedService* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_HostedService_Set_Dependent( + CIM_HostedService* self, + const CIM_ServiceRef* 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_HostedService_Null_Dependent( + CIM_HostedService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void CIM_HostedService_Clr_Dependent( + CIM_HostedService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** CIM_HostedService methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus CIM_HostedService_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CIM_HostedServiceRef self; + + KReturnIf(CIM_HostedServiceRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_CIM_HostedService_h */ Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ComputerSystem.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ComputerSystem.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/ComputerSystem.h 2008-07-18 20:57:54 UTC (rev 766) @@ -0,0 +1,3107 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_ComputerSystem_h +#define _konkrete_ComputerSystem_h + +#include <konkret/konkret.h> +#include "CIM_ConcreteJob.h" + +/* +**============================================================================== +** +** struct ComputerSystemRef +** +**============================================================================== +*/ + +/* classname=Linux_ComputerSystem */ +typedef struct _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 */ + /* Linux_ComputerSystem features */ +} +ComputerSystemRef; + +static const unsigned char __ComputerSystemRef_sig[] = +{ + 0x14,0x4c,0x69,0x6e,0x75,0x78,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 ComputerSystemRef_Init( + ComputerSystemRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ComputerSystemRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus ComputerSystemRef_InitFromInstance( + ComputerSystemRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ComputerSystemRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ComputerSystemRef_InitFromObjectPath( + ComputerSystemRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ComputerSystemRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ComputerSystemRef_Print( + const ComputerSystemRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* ComputerSystemRef_ToInstance( + const ComputerSystemRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ComputerSystemRef_ToObjectPath( + const ComputerSystemRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ComputerSystemRef_NameSpace( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ComputerSystemRef_SetString_Name( + ComputerSystemRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystemRef_Set_Name( + 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 ComputerSystemRef_Null_Name( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Null(field); + } +} + +KINLINE void ComputerSystemRef_Clr_Name( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Clr(field); + } +} + +KINLINE void ComputerSystemRef_SetString_CreationClassName( + ComputerSystemRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystemRef_Set_CreationClassName( + 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 ComputerSystemRef_Null_CreationClassName( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Null(field); + } +} + +KINLINE void ComputerSystemRef_Clr_CreationClassName( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct ComputerSystem +** +**============================================================================== +*/ + +/* classname=Linux_ComputerSystem */ +typedef struct _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; + /* Linux_ComputerSystem features */ + const KString LPARID; +} +ComputerSystem; + +static const unsigned char __ComputerSystem_sig[] = +{ + 0x14,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x43,0x6f,0x6d,0x70,0x75,0x74,0x65,0x72, + 0x53,0x79,0x73,0x74,0x65,0x6d,0x00,0x20,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,0x0c,0x06,0x4c, + 0x50,0x41,0x52,0x49,0x44,0x00, +}; + +KINLINE void ComputerSystem_Init( + ComputerSystem* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ComputerSystem_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus ComputerSystem_InitFromInstance( + ComputerSystem* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ComputerSystem_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ComputerSystem_InitFromObjectPath( + ComputerSystem* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ComputerSystem_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ComputerSystem_Print( + const ComputerSystem* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* ComputerSystem_ToInstance( + const ComputerSystem* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ComputerSystem_ToObjectPath( + const ComputerSystem* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ComputerSystem_NameSpace( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ComputerSystem_SetString_Caption( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_Caption( + 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 ComputerSystem_Null_Caption( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_Caption( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void ComputerSystem_SetString_Description( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_Description( + 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 ComputerSystem_Null_Description( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_Description( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void ComputerSystem_SetString_ElementName( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_ElementName( + 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 ComputerSystem_Null_ElementName( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_ElementName( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void ComputerSystem_Set_InstallDate( + ComputerSystem* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_InstallDate( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_InstallDate( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Clr(field); + } +} + +KINLINE void ComputerSystem_SetString_Name( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_Name( + 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 ComputerSystem_Null_Name( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_Name( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean ComputerSystem_Init_OperationalStatus( + 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 ComputerSystem_InitNull_OperationalStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean ComputerSystem_Set_OperationalStatus( + 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 ComputerSystem_Get_OperationalStatus( + 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 ComputerSystem_Null_OperationalStatus( + ComputerSystem* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void ComputerSystem_Clr_OperationalStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_Clr(field); + } +} + +typedef enum _ComputerSystem_OperationalStatus_Enum +{ + ComputerSystem_OperationalStatus_Unknown = 0, + ComputerSystem_OperationalStatus_Other = 1, + ComputerSystem_OperationalStatus_OK = 2, + ComputerSystem_OperationalStatus_Degraded = 3, + ComputerSystem_OperationalStatus_Stressed = 4, + ComputerSystem_OperationalStatus_Predictive_Failure = 5, + ComputerSystem_OperationalStatus_Error = 6, + ComputerSystem_OperationalStatus_Non_Recoverable_Error = 7, + ComputerSystem_OperationalStatus_Starting = 8, + ComputerSystem_OperationalStatus_Stopping = 9, + ComputerSystem_OperationalStatus_Stopped = 10, + ComputerSystem_OperationalStatus_In_Service = 11, + ComputerSystem_OperationalStatus_No_Contact = 12, + ComputerSystem_OperationalStatus_Lost_Communication = 13, + ComputerSystem_OperationalStatus_Aborted = 14, + ComputerSystem_OperationalStatus_Dormant = 15, + ComputerSystem_OperationalStatus_Supporting_Entity_in_Error = 16, + ComputerSystem_OperationalStatus_Completed = 17, + ComputerSystem_OperationalStatus_Power_Mode = 18, + ComputerSystem_OperationalStatus_DMTF_Reserved = 0, + ComputerSystem_OperationalStatus_Vendor_Reserved = 0, +} +ComputerSystem_OperationalStatus_Enum; + +/* "Unknown" */ +#define ComputerSystem_Set_OperationalStatus_Unknown(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Other" */ +#define ComputerSystem_Set_OperationalStatus_Other(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 1) + +/* "OK" */ +#define ComputerSystem_Set_OperationalStatus_OK(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 2) + +/* "Degraded" */ +#define ComputerSystem_Set_OperationalStatus_Degraded(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 3) + +/* "Stressed" */ +#define ComputerSystem_Set_OperationalStatus_Stressed(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 4) + +/* "Predictive Failure" */ +#define ComputerSystem_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 5) + +/* "Error" */ +#define ComputerSystem_Set_OperationalStatus_Error(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 6) + +/* "Non-Recoverable Error" */ +#define ComputerSystem_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 7) + +/* "Starting" */ +#define ComputerSystem_Set_OperationalStatus_Starting(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 8) + +/* "Stopping" */ +#define ComputerSystem_Set_OperationalStatus_Stopping(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 9) + +/* "Stopped" */ +#define ComputerSystem_Set_OperationalStatus_Stopped(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 10) + +/* "In Service" */ +#define ComputerSystem_Set_OperationalStatus_In_Service(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 11) + +/* "No Contact" */ +#define ComputerSystem_Set_OperationalStatus_No_Contact(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 12) + +/* "Lost Communication" */ +#define ComputerSystem_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 13) + +/* "Aborted" */ +#define ComputerSystem_Set_OperationalStatus_Aborted(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 14) + +/* "Dormant" */ +#define ComputerSystem_Set_OperationalStatus_Dormant(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 15) + +/* "Supporting Entity in Error" */ +#define ComputerSystem_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 16) + +/* "Completed" */ +#define ComputerSystem_Set_OperationalStatus_Completed(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 17) + +/* "Power Mode" */ +#define ComputerSystem_Set_OperationalStatus_Power_Mode(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 18) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Vendor Reserved" */ +#define ComputerSystem_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0) + +KINLINE CMPIBoolean ComputerSystem_Init_StatusDescriptions( + 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 ComputerSystem_InitNull_StatusDescriptions( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean ComputerSystem_SetString_StatusDescriptions( + 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 ComputerSystem_Set_StatusDescriptions( + 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 ComputerSystem_GetString_StatusDescriptions( + 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* ComputerSystem_Get_StatusDescriptions( + ComputerSystem* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean ComputerSystem_Null_StatusDescriptions( + ComputerSystem* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void ComputerSystem_Clr_StatusDescriptions( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_Clr(field); + } +} + +KINLINE void ComputerSystem_SetString_Status( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_Status( + 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 ComputerSystem_Null_Status( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_Status( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Clr(field); + } +} + +KINLINE void ComputerSystem_Set_HealthState( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_HealthState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_HealthState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Clr(field); + } +} + +typedef enum _ComputerSystem_HealthState_Enum +{ + ComputerSystem_HealthState_Unknown = 0, + ComputerSystem_HealthState_OK = 5, + ComputerSystem_HealthState_Degraded_Warning = 10, + ComputerSystem_HealthState_Minor_failure = 15, + ComputerSystem_HealthState_Major_failure = 20, + ComputerSystem_HealthState_Critical_failure = 25, + ComputerSystem_HealthState_Non_recoverable_error = 30, + ComputerSystem_HealthState_DMTF_Reserved = 0, +} +ComputerSystem_HealthState_Enum; + +/* "Unknown" */ +#define ComputerSystem_Set_HealthState_Unknown(SELF) \ + ComputerSystem_Set_HealthState(SELF, 0) + +/* "OK" */ +#define ComputerSystem_Set_HealthState_OK(SELF) \ + ComputerSystem_Set_HealthState(SELF, 5) + +/* "Degraded/Warning" */ +#define ComputerSystem_Set_HealthState_Degraded_Warning(SELF) \ + ComputerSystem_Set_HealthState(SELF, 10) + +/* "Minor failure" */ +#define ComputerSystem_Set_HealthState_Minor_failure(SELF) \ + ComputerSystem_Set_HealthState(SELF, 15) + +/* "Major failure" */ +#define ComputerSystem_Set_HealthState_M... [truncated message content] |
From: <ba...@us...> - 2008-07-18 20:54:19
|
Revision: 765 http://omc.svn.sourceforge.net/omc/?rev=765&view=rev Author: bartw Date: 2008-07-18 20:54:29 +0000 (Fri, 18 Jul 2008) Log Message: ----------- removed setting thisown Modified Paths: -------------- cmpi-bindings/swig/python/pycmpi_provider.py Modified: cmpi-bindings/swig/python/pycmpi_provider.py =================================================================== --- cmpi-bindings/swig/python/pycmpi_provider.py 2008-07-18 20:49:46 UTC (rev 764) +++ cmpi-bindings/swig/python/pycmpi_provider.py 2008-07-18 20:54:29 UTC (rev 765) @@ -176,7 +176,6 @@ except pywbem.CIMError, args: return args[:2] ciname = pywbem2cmpi_instname(piname) - ciname.thisown = 0 rslt.return_objectpath(ciname) rslt.done return (0, '') @@ -243,7 +242,6 @@ ciname = pywbem2cmpi_instname(i) rslt.return_objectpath(ciname) except pywbem.CIMError, args: - import traceback; traceback.print_exc() return args[:2] rslt.done() return (0, '') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kk...@us...> - 2008-07-18 20:49:37
|
Revision: 764 http://omc.svn.sourceforge.net/omc/?rev=764&view=rev Author: kkaempf Date: 2008-07-18 20:49:46 +0000 (Fri, 18 Jul 2008) Log Message: ----------- Don't expose destructors, cmpi is doing its own memory management. One only needs to release() objects created with clone(). Modified Paths: -------------- cmpi-bindings/swig/cmpi_types.i Modified: cmpi-bindings/swig/cmpi_types.i =================================================================== --- cmpi-bindings/swig/cmpi_types.i 2008-07-18 20:35:04 UTC (rev 763) +++ cmpi-bindings/swig/cmpi_types.i 2008-07-18 20:49:46 UTC (rev 764) @@ -41,7 +41,7 @@ # %nodefault CMPIError; -#%rename(CMPIError) _CMPIError; +%rename(CMPIError) _CMPIError; typedef struct _CMPIError {} CMPIError; %nodefault _CMPIResult; @@ -302,17 +302,14 @@ /* fprintf( stderr, "CMNewObjectPath: %p\n", path ); */ return path; } - ~CMPIObjectPath() { -/* fprintf( stderr, "~CMPIObjectPath %p\n", $self ); */ - $self->ft->release( $self ); - } /** * Create an independent copy of this ObjectPath object. The resulting * object must be released explicitly. - */ +FIXME: if clone() is exposed, release() must also CMPIObjectPath *clone() { return $self->ft->clone( $self, NULL ); } + */ const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -511,10 +508,6 @@ #endif return inst; } - ~CMPIInstance() { -/* fprintf(stderr, "~CMPIInstance(%p)\n", $self ); - _BROKER->mft->freeInstance( _BROKER, $self ); */ - } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -692,11 +685,6 @@ CMPIArgs() { return CMNewArgs(_BROKER, NULL); } - ~CMPIArgs() { - //_BROKER->mft->freeArgs(_BROKER, $self); - // TODO: determine if we were created by NewArgs() or clone(). - // Free if the later. - } /* Adds/replaces a named argument. */ void set( char *name, const CMPIValue * value, const CMPIType type) { CMAddArg( $self, name, value, type ); @@ -723,7 +711,7 @@ #if defined (SWIGRUBY) VALUE rbdata = SWIG_NewPointerObj((void*) clone_data(&data), SWIGTYPE_p__CMPIData, 0); VALUE rl = rb_ary_new2(2); - return rb_ary_push( rb_ary_push( rl, rbdata ), rb_str_new2(CMGetCharPtr(s) ); + return rb_ary_push( rb_ary_push( rl, rbdata ), rb_str_new2(CMGetCharPtr(s) ) ); #endif #if defined (SWIGPYTHON) #TODO memory leak alert (clone_data) @@ -757,9 +745,6 @@ CMPISelectExp(const char *query, const char *lang, CMPIArray **projection) { return CMNewSelectExp(_BROKER, query, lang, projection, NULL); } - ~CMPISelectExp() { - $self->ft->release($self); - } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -772,9 +757,6 @@ %extend _CMPISelectCond { CMPISelectCond() { } - ~CMPISelectCond() { - $self->ft->release($self); - } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -787,9 +769,6 @@ %extend _CMPISubCond { CMPISubCond() { } - ~CMPISubCond() { - $self->ft->release($self); - } } #----------------------------------------------------- @@ -798,9 +777,6 @@ %extend _CMPIPredicate { CMPIPredicate() { } - ~CMPIPredicate() { - $self->ft->release($self); - } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -813,9 +789,6 @@ %extend _CMPIEnumeration { CMPIEnumeration() { } - ~CMPIEnumeration() { - $self->ft->release($self); - } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -833,9 +806,6 @@ CMPIArray(int count, CMPIType type ) { return CMNewArray( _BROKER, count, type, NULL); } - ~CMPIArray() { - _BROKER->mft->freeArray(_BROKER, $self); - } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -872,9 +842,6 @@ CMPIString(const char *s) { return CMNewString(_BROKER, s, NULL); } - ~CMPIString() { - _BROKER->mft->freeString(_BROKER, $self); - } const char* to_s() { return CMGetCharPtr($self); } @@ -886,9 +853,6 @@ %extend _CMPIContext { CMPIContext() { } - ~CMPIContext() { - $self->ft->release($self); - } const char* to_s() { CMPIString *s = CDToString(_BROKER, $self, NULL); return CMGetCharPtr(s); @@ -916,12 +880,6 @@ return CMNewDateTimeFromChars(_BROKER, utc, NULL); } - ~CMPIDateTime() { - // _BROKER->mft->freeDateTime(_BROKER, $self); - // TODO: determine if we were created by NewDateTime*() or clone(). - // Free if the later. - } - const char* to_s() { return CMGetCharPtr( CMGetStringFormat( $self, NULL ) ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-18 20:34:55
|
Revision: 763 http://omc.svn.sourceforge.net/omc/?rev=763&view=rev Author: mike-brasher Date: 2008-07-18 20:35:04 +0000 (Fri, 18 Jul 2008) Log Message: ----------- Fixed error in OrderedComponent provider. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.registration cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.registration 2008-07-18 20:22:17 UTC (rev 762) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.registration 2008-07-18 20:35:04 UTC (rev 763) @@ -1,4 +1,5 @@ Linux_BootConfigSetting root/cimv2 BootConfigSetting linux_bootctrlprovider instance method Linux_BootService root/cimv2 BootService linux_bootctrlprovider instance method Linux_GrubBootSourceSetting root/cimv2 BootSourceSetting linux_bootctrlprovider instance method +Linux_BootOrderedComponent root/cimv2 OrderedComponent linux_bootctrlprovider instance association Linux_BootRegisteredProfile root/interop RegisteredProfile linux_bootctrlprovider instance method Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c 2008-07-18 20:22:17 UTC (rev 762) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c 2008-07-18 20:35:04 UTC (rev 763) @@ -33,6 +33,41 @@ const CMPIObjectPath* cop, const char** properties) { + const char* ns = KNameSpace(cop); + BootConfigSettingRef g; /* GroupComponent */ + BootSourceSettingRef p; /* PartComponent */ + OrderedComponent x; + 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"); + + /* Linux_BootOrderedComponent.GroupComponent */ + BootConfigSettingRef_Init(&g, _cb, ns); + BootConfigSettingRef_Set_InstanceID(&g, "SBLIM:BootConfigSetting:Grub"); + + /* Generate association instances */ + + for (i = 0; i < menu.numItems; i++) + { + const struct GrubMenuItem* mi = &menu.items[i]; + + /* Linux_BootOrderedComponent.PartComponent */ + BootSourceSettingRef_Init(&p, _cb, ns); + BootSourceSettingRef_Set_InstanceID(&p, + Sprintf("SBLIM:GrubBootSourceSetting:%d", i).str); + + /* Linux_BootOrderedComponent */ + OrderedComponent_Init(&x, _cb, ns); + OrderedComponent_Set_GroupComponent(&x, &g); + OrderedComponent_Set_PartComponent(&x, &p); + OrderedComponent_Set_AssignedSequence(&x, i); + + KReturnInstance(cr, x); + } + CMReturn(CMPI_RC_OK); } @@ -74,41 +109,6 @@ const CMPIResult* cr, const CMPIObjectPath* cop) { - const char* ns = KNameSpace(cop); - BootConfigSettingRef g; /* GroupComponent */ - BootSourceSettingRef p; /* PartComponent */ - OrderedComponent x; - 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"); - - /* Linux_BootOrderedComponent.GroupComponent */ - BootConfigSettingRef_Init(&g, _cb, ns); - BootConfigSettingRef_Set_InstanceID(&g, "SBLIM:BootConfigSetting:Grub"); - - /* Generate association instances */ - - for (i = 0; i < menu.numItems; i++) - { - const struct GrubMenuItem* mi = &menu.items[i]; - - /* Linux_BootOrderedComponent.PartComponent */ - BootSourceSettingRef_Init(&p, _cb, ns); - BootSourceSettingRef_Set_InstanceID(&p, - Sprintf("SBLIM:GrubBootSourceSetting:%d", i).str); - - /* Linux_BootOrderedComponent */ - OrderedComponent_Init(&x, _cb, ns); - OrderedComponent_Set_GroupComponent(&x, &g); - OrderedComponent_Set_PartComponent(&x, &p); - OrderedComponent_Set_AssignedSequence(&x, i); - - KReturnInstance(cr, x); - } - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-18 20:22:09
|
Revision: 762 http://omc.svn.sourceforge.net/omc/?rev=762&view=rev Author: mike-brasher Date: 2008-07-18 20:22:17 +0000 (Fri, 18 Jul 2008) Log Message: ----------- Added OrderedComponent provider. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c 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_Component.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_OrderedComponent.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponent.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.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-18 19:30:59 UTC (rev 761) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof 2008-07-18 20:22:17 UTC (rev 762) @@ -27,3 +27,9 @@ [Description("initrd field from Grub menu.lst file")] string GrubInitrd; }; + +class Linux_BootOrderedComponent : CIM_OrderedComponent +{ + [Key] Linux_BootConfigSetting REF GroupComponent; + [Key] Linux_GrubBootSourceSetting REF PartComponent; +}; Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c 2008-07-18 19:30:59 UTC (rev 761) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c 2008-07-18 20:22:17 UTC (rev 762) @@ -37,7 +37,6 @@ size_t i; /* Load Grub configuration */ - if (LoadGrubMenu(GRUB_MENU_LST, &menu) != 0) KReturn2(_cb, ERR_FAILED, "failed to access Grub configuration"); Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_Component.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_Component.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_Component.h 2008-07-18 20:22:17 UTC (rev 762) @@ -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-boot_control_profile/trunk/src/CIM_OrderedComponent.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_OrderedComponent.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_OrderedComponent.h 2008-07-18 20:22:17 UTC (rev 762) @@ -0,0 +1,416 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_OrderedComponent_h +#define _konkrete_CIM_OrderedComponent_h + +#include <konkret/konkret.h> +#include "CIM_ManagedElement.h" + +/* +**============================================================================== +** +** struct CIM_OrderedComponentRef +** +**============================================================================== +*/ + +/* classname=CIM_OrderedComponent */ +typedef struct _CIM_OrderedComponentRef +{ + KBase __base; + /* CIM_Component features */ + const KRef GroupComponent; /* CIM_ManagedElement */ + const KRef PartComponent; /* CIM_ManagedElement */ + /* CIM_OrderedComponent features */ +} +CIM_OrderedComponentRef; + +static const unsigned char __CIM_OrderedComponentRef_sig[] = +{ + 0x14,0x43,0x49,0x4d,0x5f,0x4f,0x72,0x64,0x65,0x72,0x65,0x64,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_OrderedComponentRef_Init( + CIM_OrderedComponentRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_OrderedComponentRef_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_OrderedComponentRef_InitFromInstance( + CIM_OrderedComponentRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_OrderedComponentRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_OrderedComponentRef_InitFromObjectPath( + CIM_OrderedComponentRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_OrderedComponentRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_OrderedComponentRef_Print( + const CIM_OrderedComponentRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_OrderedComponentRef_ToInstance( + const CIM_OrderedComponentRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_OrderedComponentRef_ToObjectPath( + const CIM_OrderedComponentRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_OrderedComponentRef_NameSpace( + CIM_OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_OrderedComponentRef_SetObjectPath_GroupComponent( + CIM_OrderedComponentRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_OrderedComponentRef_Set_GroupComponent( + CIM_OrderedComponentRef* 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_OrderedComponentRef_Null_GroupComponent( + CIM_OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_Null(field); + } +} + +KINLINE void CIM_OrderedComponentRef_Clr_GroupComponent( + CIM_OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_Clr(field); + } +} + +KINLINE void CIM_OrderedComponentRef_SetObjectPath_PartComponent( + CIM_OrderedComponentRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_OrderedComponentRef_Set_PartComponent( + CIM_OrderedComponentRef* 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_OrderedComponentRef_Null_PartComponent( + CIM_OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_Null(field); + } +} + +KINLINE void CIM_OrderedComponentRef_Clr_PartComponent( + CIM_OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_OrderedComponent +** +**============================================================================== +*/ + +/* classname=CIM_OrderedComponent */ +typedef struct _CIM_OrderedComponent +{ + KBase __base; + /* CIM_Component features */ + const KRef GroupComponent; /* CIM_ManagedElement */ + const KRef PartComponent; /* CIM_ManagedElement */ + /* CIM_OrderedComponent features */ + const KUint64 AssignedSequence; +} +CIM_OrderedComponent; + +static const unsigned char __CIM_OrderedComponent_sig[] = +{ + 0x14,0x43,0x49,0x4d,0x5f,0x4f,0x72,0x64,0x65,0x72,0x65,0x64,0x43,0x6f,0x6d, + 0x70,0x6f,0x6e,0x65,0x6e,0x74,0x00,0x03,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,0x07,0x10,0x41,0x73, + 0x73,0x69,0x67,0x6e,0x65,0x64,0x53,0x65,0x71,0x75,0x65,0x6e,0x63,0x65,0x00, +}; + +KINLINE void CIM_OrderedComponent_Init( + CIM_OrderedComponent* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_OrderedComponent_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_OrderedComponent_InitFromInstance( + CIM_OrderedComponent* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_OrderedComponent_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_OrderedComponent_InitFromObjectPath( + CIM_OrderedComponent* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_OrderedComponent_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_OrderedComponent_Print( + const CIM_OrderedComponent* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_OrderedComponent_ToInstance( + const CIM_OrderedComponent* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_OrderedComponent_ToObjectPath( + const CIM_OrderedComponent* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_OrderedComponent_NameSpace( + CIM_OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_OrderedComponent_SetObjectPath_GroupComponent( + CIM_OrderedComponent* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_OrderedComponent_Set_GroupComponent( + CIM_OrderedComponent* 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_OrderedComponent_Null_GroupComponent( + CIM_OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_Null(field); + } +} + +KINLINE void CIM_OrderedComponent_Clr_GroupComponent( + CIM_OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_Clr(field); + } +} + +KINLINE void CIM_OrderedComponent_SetObjectPath_PartComponent( + CIM_OrderedComponent* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus CIM_OrderedComponent_Set_PartComponent( + CIM_OrderedComponent* 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_OrderedComponent_Null_PartComponent( + CIM_OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_Null(field); + } +} + +KINLINE void CIM_OrderedComponent_Clr_PartComponent( + CIM_OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_Clr(field); + } +} + +KINLINE void CIM_OrderedComponent_Set_AssignedSequence( + CIM_OrderedComponent* self, + CMPIUint64 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint64* field = (KUint64*)&self->AssignedSequence; + KUint64_Set(field, x); + } +} + +KINLINE void CIM_OrderedComponent_Null_AssignedSequence( + CIM_OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint64* field = (KUint64*)&self->AssignedSequence; + KUint64_Null(field); + } +} + +KINLINE void CIM_OrderedComponent_Clr_AssignedSequence( + CIM_OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint64* field = (KUint64*)&self->AssignedSequence; + KUint64_Clr(field); + } +} + +/* +**============================================================================== +** +** CIM_OrderedComponent methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus CIM_OrderedComponent_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CIM_OrderedComponentRef self; + + KReturnIf(CIM_OrderedComponentRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_CIM_OrderedComponent_h */ Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am 2008-07-18 19:30:59 UTC (rev 761) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am 2008-07-18 20:22:17 UTC (rev 762) @@ -12,6 +12,7 @@ CIM_BootConfigSetting.h \ CIM_BootService.h \ CIM_BootSourceSetting.h \ + CIM_Component.h \ CIM_ComputerSystem.h \ CIM_ConcreteJob.h \ CIM_EnabledLogicalElement.h \ @@ -19,10 +20,14 @@ CIM_LogicalElement.h \ CIM_ManagedElement.h \ CIM_ManagedSystemElement.h \ + CIM_OrderedComponent.h \ CIM_RegisteredProfile.h \ CIM_Service.h \ CIM_SettingData.h \ CIM_System.h \ + Linux_BootSourceSetting.h \ + OrderedComponent.h \ + OrderedComponentProvider.c \ RegisteredProfile.h \ RegisteredProfileProvider.c \ Resource.c \ Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponent.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponent.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponent.h 2008-07-18 20:22:17 UTC (rev 762) @@ -0,0 +1,421 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_OrderedComponent_h +#define _konkrete_OrderedComponent_h + +#include <konkret/konkret.h> +#include "BootConfigSetting.h" +#include "BootSourceSetting.h" + +/* +**============================================================================== +** +** struct OrderedComponentRef +** +**============================================================================== +*/ + +/* classname=Linux_BootOrderedComponent */ +typedef struct _OrderedComponentRef +{ + KBase __base; + /* CIM_Component features */ + const KRef GroupComponent; /* BootConfigSetting */ + const KRef PartComponent; /* BootSourceSetting */ + /* CIM_OrderedComponent features */ + /* Linux_BootOrderedComponent features */ +} +OrderedComponentRef; + +static const unsigned char __OrderedComponentRef_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x4f,0x72,0x64,0x65, + 0x72,0x65,0x64,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 OrderedComponentRef_Init( + OrderedComponentRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __OrderedComponentRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->GroupComponent)->__sig = __BootConfigSetting_sig; + ((KRef*)&self->PartComponent)->__sig = __BootSourceSetting_sig; +} + +KINLINE CMPIStatus OrderedComponentRef_InitFromInstance( + OrderedComponentRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + OrderedComponentRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus OrderedComponentRef_InitFromObjectPath( + OrderedComponentRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + OrderedComponentRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void OrderedComponentRef_Print( + const OrderedComponentRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* OrderedComponentRef_ToInstance( + const OrderedComponentRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* OrderedComponentRef_ToObjectPath( + const OrderedComponentRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* OrderedComponentRef_NameSpace( + OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void OrderedComponentRef_SetObjectPath_GroupComponent( + OrderedComponentRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus OrderedComponentRef_Set_GroupComponent( + OrderedComponentRef* self, + const BootConfigSettingRef* 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 OrderedComponentRef_Null_GroupComponent( + OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_Null(field); + } +} + +KINLINE void OrderedComponentRef_Clr_GroupComponent( + OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_Clr(field); + } +} + +KINLINE void OrderedComponentRef_SetObjectPath_PartComponent( + OrderedComponentRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus OrderedComponentRef_Set_PartComponent( + OrderedComponentRef* self, + const BootSourceSettingRef* 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 OrderedComponentRef_Null_PartComponent( + OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_Null(field); + } +} + +KINLINE void OrderedComponentRef_Clr_PartComponent( + OrderedComponentRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct OrderedComponent +** +**============================================================================== +*/ + +/* classname=Linux_BootOrderedComponent */ +typedef struct _OrderedComponent +{ + KBase __base; + /* CIM_Component features */ + const KRef GroupComponent; /* BootConfigSetting */ + const KRef PartComponent; /* BootSourceSetting */ + /* CIM_OrderedComponent features */ + const KUint64 AssignedSequence; + /* Linux_BootOrderedComponent features */ +} +OrderedComponent; + +static const unsigned char __OrderedComponent_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x4f,0x72,0x64,0x65, + 0x72,0x65,0x64,0x43,0x6f,0x6d,0x70,0x6f,0x6e,0x65,0x6e,0x74,0x00,0x03,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,0x07,0x10,0x41,0x73,0x73,0x69,0x67,0x6e,0x65,0x64,0x53,0x65,0x71, + 0x75,0x65,0x6e,0x63,0x65,0x00, +}; + +KINLINE void OrderedComponent_Init( + OrderedComponent* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __OrderedComponent_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->GroupComponent)->__sig = __BootConfigSetting_sig; + ((KRef*)&self->PartComponent)->__sig = __BootSourceSetting_sig; +} + +KINLINE CMPIStatus OrderedComponent_InitFromInstance( + OrderedComponent* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + OrderedComponent_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus OrderedComponent_InitFromObjectPath( + OrderedComponent* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + OrderedComponent_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void OrderedComponent_Print( + const OrderedComponent* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* OrderedComponent_ToInstance( + const OrderedComponent* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* OrderedComponent_ToObjectPath( + const OrderedComponent* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* OrderedComponent_NameSpace( + OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void OrderedComponent_SetObjectPath_GroupComponent( + OrderedComponent* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus OrderedComponent_Set_GroupComponent( + OrderedComponent* self, + const BootConfigSettingRef* 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 OrderedComponent_Null_GroupComponent( + OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_Null(field); + } +} + +KINLINE void OrderedComponent_Clr_GroupComponent( + OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->GroupComponent; + KRef_Clr(field); + } +} + +KINLINE void OrderedComponent_SetObjectPath_PartComponent( + OrderedComponent* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus OrderedComponent_Set_PartComponent( + OrderedComponent* self, + const BootSourceSettingRef* 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 OrderedComponent_Null_PartComponent( + OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_Null(field); + } +} + +KINLINE void OrderedComponent_Clr_PartComponent( + OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->PartComponent; + KRef_Clr(field); + } +} + +KINLINE void OrderedComponent_Set_AssignedSequence( + OrderedComponent* self, + CMPIUint64 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint64* field = (KUint64*)&self->AssignedSequence; + KUint64_Set(field, x); + } +} + +KINLINE void OrderedComponent_Null_AssignedSequence( + OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint64* field = (KUint64*)&self->AssignedSequence; + KUint64_Null(field); + } +} + +KINLINE void OrderedComponent_Clr_AssignedSequence( + OrderedComponent* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint64* field = (KUint64*)&self->AssignedSequence; + KUint64_Clr(field); + } +} + +/* +**============================================================================== +** +** OrderedComponent methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus OrderedComponent_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + OrderedComponentRef self; + + KReturnIf(OrderedComponentRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_OrderedComponent_h */ Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/OrderedComponentProvider.c 2008-07-18 20:22:17 UTC (rev 762) @@ -0,0 +1,216 @@ +#include <konkret/konkret.h> +#include "OrderedComponent.h" +#include "Resource.h" + +static const CMPIBroker* _cb; + +static void OrderedComponentInitialize() +{ +} + +static CMPIStatus OrderedComponentCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus OrderedComponentEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus OrderedComponentEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus OrderedComponentGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus OrderedComponentCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus OrderedComponentModifyInstance( + 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 OrderedComponentDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + const char* ns = KNameSpace(cop); + BootConfigSettingRef g; /* GroupComponent */ + BootSourceSettingRef p; /* PartComponent */ + OrderedComponent x; + 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"); + + /* Linux_BootOrderedComponent.GroupComponent */ + BootConfigSettingRef_Init(&g, _cb, ns); + BootConfigSettingRef_Set_InstanceID(&g, "SBLIM:BootConfigSetting:Grub"); + + /* Generate association instances */ + + for (i = 0; i < menu.numItems; i++) + { + const struct GrubMenuItem* mi = &menu.items[i]; + + /* Linux_BootOrderedComponent.PartComponent */ + BootSourceSettingRef_Init(&p, _cb, ns); + BootSourceSettingRef_Set_InstanceID(&p, + Sprintf("SBLIM:GrubBootSourceSetting:%d", i).str); + + /* Linux_BootOrderedComponent */ + OrderedComponent_Init(&x, _cb, ns); + OrderedComponent_Set_GroupComponent(&x, &g); + OrderedComponent_Set_PartComponent(&x, &p); + OrderedComponent_Set_AssignedSequence(&x, i); + + KReturnInstance(cr, x); + } + + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus OrderedComponentExecQuery( + 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 OrderedComponentAssociationCleanup( + CMPIAssociationMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus OrderedComponentAssociators( + 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_BootOrderedComponent"; + + return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, + resultClass, role, resultRole, properties); +} + +static CMPIStatus OrderedComponentAssociatorNames( + 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_BootOrderedComponent"; + + return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, + assocClass, resultClass, role, resultRole); +} + +static CMPIStatus OrderedComponentReferences( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_BootOrderedComponent"; + + return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, + role, properties); +} + +static CMPIStatus OrderedComponentReferenceNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role) +{ + if (!assocClass) + assocClass = "Linux_BootOrderedComponent"; + + return KDefaultReferenceNames( + _cb, mi, cc, cr, cop, assocClass, role); +} + +CMInstanceMIStub( + OrderedComponent, + OrderedComponent, + _cb, + OrderedComponentInitialize()) + +CMAssociationMIStub( + OrderedComponent, + OrderedComponent, + _cb, + OrderedComponentInitialize()) + +KONKRET_REGISTRATION( + "root/cimv2", + "Linux_BootOrderedComponent", + "OrderedComponent", + "instance association"); 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-18 19:30:59 UTC (rev 761) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon 2008-07-18 20:22:17 UTC (rev 762) @@ -8,3 +8,4 @@ Linux_BootRegisteredProfile=RegisteredProfile! Linux_BootConfigSetting=BootConfigSetting! Linux_GrubBootSourceSetting=BootSourceSetting! +Linux_BootOrderedComponent=OrderedComponent! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-18 19:30:51
|
Revision: 761 http://omc.svn.sourceforge.net/omc/?rev=761&view=rev Author: mike-brasher Date: 2008-07-18 19:30:59 +0000 (Fri, 18 Jul 2008) Log Message: ----------- More boot-control providers. Modified Paths: -------------- 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.registration cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/register.sh cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootServiceProvider.c 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/Resource.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon Added 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 cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Linux_BootSourceSetting.h 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-18 16:33:08 UTC (rev 760) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof 2008-07-18 19:30:59 UTC (rev 761) @@ -7,3 +7,23 @@ class Linux_BootService : CIM_BootService { }; + +class Linux_BootConfigSetting : CIM_BootConfigSetting +{ +}; + +class Linux_BootSourceSetting : CIM_BootSourceSetting +{ +}; + +class Linux_GrubBootSourceSetting : Linux_BootSourceSetting +{ + [Description("root field from Grub menu.lst file")] + string GrubRoot; + + [Description("kernel field from Grub menu.lst file")] + string GrubKernel; + + [Description("initrd field from Grub menu.lst file")] + string GrubInitrd; +}; Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.registration 2008-07-18 16:33:08 UTC (rev 760) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.registration 2008-07-18 19:30:59 UTC (rev 761) @@ -0,0 +1,4 @@ +Linux_BootConfigSetting root/cimv2 BootConfigSetting linux_bootctrlprovider instance method +Linux_BootService root/cimv2 BootService linux_bootctrlprovider instance method +Linux_GrubBootSourceSetting root/cimv2 BootSourceSetting linux_bootctrlprovider instance method +Linux_BootRegisteredProfile root/interop RegisteredProfile linux_bootctrlprovider instance method Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/register.sh 2008-07-18 16:33:08 UTC (rev 760) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/register.sh 2008-07-18 19:30:59 UTC (rev 761) @@ -1,5 +1,5 @@ #!/bin/sh -BASE=linux-bool-control-profile +BASE=linux-boot-control-profile TARGET=../src/.libs/liblinux_bootctrlprovider.so konkretreg $TARGET > $BASE.registration provider-register.sh -r $BASE.registration -m $BASE.mof Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSetting.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSetting.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSetting.h 2008-07-18 19:30:59 UTC (rev 761) @@ -0,0 +1,723 @@ +/* +**============================================================================== +** +** 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 */ Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootConfigSettingProvider.c 2008-07-18 19:30:59 UTC (rev 761) @@ -0,0 +1,171 @@ +#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; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} + +KONKRET_REGISTRATION( + "root/cimv2", + "Linux_BootConfigSetting", + "BootConfigSetting", + "instance method"); Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootServiceProvider.c 2008-07-18 16:33:08 UTC (rev 760) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootServiceProvider.c 2008-07-18 19:30:59 UTC (rev 761) @@ -41,6 +41,8 @@ BootService_Set_SystemCreationClassName(&x, SysCreationClassName().str); BootService_Set_SystemName(&x, SysName().str); BootService_Set_CreationClassName(&x, "Linux_BootService"); + BootService_Set_ElementName(&x, "SBLIM:Boot_Service"); + KReturnInstance(cr, x); CMReturn(CMPI_RC_OK); } Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSetting.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSetting.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSetting.h 2008-07-18 19:30:59 UTC (rev 761) @@ -0,0 +1,844 @@ +/* +**============================================================================== +** +** 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 */ Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootSourceSettingProvider.c 2008-07-18 19:30:59 UTC (rev 761) @@ -0,0 +1,173 @@ +#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/Linux_BootSourceSetting.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Linux_BootSourceSetting.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Linux_BootSourceSetting.h 2008-07-18 19:30:59 UTC (rev 761) @@ -0,0 +1,710 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_Linux_BootSourceSetting_h +#define _konkrete_Linux_BootSourceSetting_h + +#include <konkret/konkret.h> + +/* +**============================================================================== +** +** struct Linux_BootSourceSettingRef +** +**============================================================================== +*/ + +/* classname=Linux_BootSourceSetting */ +typedef struct _Linux_BootSourceSettingRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_SettingData features */ + const KString InstanceID; + /* CIM_BootSourceSetting features */ + /* Linux_BootSourceSetting features */ +} +Linux_BootSourceSettingRef; + +static const unsigned char __Linux_BootSourceSettingRef_sig[] = +{ + 0x17,0x4c,0x69,0x6e,0x75,0x78,0x5f,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 Linux_BootSourceSettingRef_Init( + Linux_BootSourceSettingRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __Linux_BootSourceSettingRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus Linux_BootSourceSettingRef_InitFromInstance( + Linux_BootSourceSettingRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + Linux_BootSourceSettingRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus Linux_BootSourceSettingRef_InitFromObjectPath( + Linux_BootSourceSettingRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + Linux_BootSourceSettingRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void Linux_BootSourceSettingRef_Print( + const Linux_BootSourceSettingRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* Linux_BootSourceSettingRef_ToInstance( + const Linux_BootSourceSettingRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* Linux_BootSourceSettingRef_ToObjectPath( + const Linux_BootSourceSettingRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* Linux_BootSourceSettingRef_NameSpace( + Linux_BootSourceSettingRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void Linux_BootSourceSettingRef_SetString_InstanceID( + Linux_BootSourceSettingRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void Linux_BootSourceSettingRef_Set_InstanceID( + Linux_BootSourceSettingRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KStrin... [truncated message content] |
From: <np...@us...> - 2008-07-18 16:32:59
|
Revision: 760 http://omc.svn.sourceforge.net/omc/?rev=760&view=rev Author: npaxton Date: 2008-07-18 16:33:08 +0000 (Fri, 18 Jul 2008) Log Message: ----------- fixup mof Makefile to install files Modified Paths: -------------- contrib/xen-vm-builder/trunk/mof/Makefile.am Modified: contrib/xen-vm-builder/trunk/mof/Makefile.am =================================================================== --- contrib/xen-vm-builder/trunk/mof/Makefile.am 2008-07-18 16:09:24 UTC (rev 759) +++ contrib/xen-vm-builder/trunk/mof/Makefile.am 2008-07-18 16:33:08 UTC (rev 760) @@ -1,4 +1,4 @@ -EXTRA_DIST = \ +mof_DATA = \ XEN_SettingsDefineBuild.mof \ XEN_VMBuilder.mof \ XEN_VMBuilderHostedService.mof \ @@ -13,3 +13,7 @@ settings-define-build-peg.reg \ vmcreation-data-peg.reg \ XEN_VMBuilder.registration + +mofdir = $(datadir)/mof/$(PACKAGE_NAME) + +EXTRA_DIST = $(mof_DATA) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-18 16:09:16
|
Revision: 759 http://omc.svn.sourceforge.net/omc/?rev=759&view=rev Author: mike-brasher Date: 2008-07-18 16:09:24 +0000 (Fri, 18 Jul 2008) Log Message: ----------- Removed .reg file. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/Makefile.am Modified: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/Makefile.am 2008-07-18 15:42:34 UTC (rev 758) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/Makefile.am 2008-07-18 16:09:24 UTC (rev 759) @@ -1,7 +1,6 @@ mof_DATA = \ linux-boot-control-profile-interop.mof \ linux-boot-control-profile.mof \ - linux-boot-control-profile.reg \ linux-boot-control-profile.registration mofdir = $(datadir)/mof/$(PACKAGE_NAME) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <np...@us...> - 2008-07-18 15:49:31
|
Revision: 758 http://omc.svn.sourceforge.net/omc/?rev=758&view=rev Author: npaxton Date: 2008-07-18 15:42:34 +0000 (Fri, 18 Jul 2008) Log Message: ----------- fixup mof Makefile to install files Modified Paths: -------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.am Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.am 2008-07-18 15:19:43 UTC (rev 757) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.am 2008-07-18 15:42:34 UTC (rev 758) @@ -1,4 +1,8 @@ -EXTRA_DIST = \ +mof_DATA = \ linux-fan-profile.mof \ linux-fan-profile-interop.mof \ - linux-fan-profile.registration + linux-fan-profile.registration + +mofdir = $(datadir)/mof/$(PACKAGE_NAME) + +EXTRA_DIST = $(mof_DATA) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |