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: <jc...@us...> - 2008-07-18 15:35:49
|
Revision: 757 http://omc.svn.sourceforge.net/omc/?rev=757&view=rev Author: jcarey Date: 2008-07-18 15:19:43 +0000 (Fri, 18 Jul 2008) Log Message: ----------- added vnc password to install Modified Paths: -------------- contrib/xen-vm-builder/trunk/mof/XEN_VMBuilderVirtualSystemCreationData.mof contrib/xen-vm-builder/trunk/src/providers/vm-builder/builder-service.c Modified: contrib/xen-vm-builder/trunk/mof/XEN_VMBuilderVirtualSystemCreationData.mof =================================================================== --- contrib/xen-vm-builder/trunk/mof/XEN_VMBuilderVirtualSystemCreationData.mof 2008-07-18 00:27:28 UTC (rev 756) +++ contrib/xen-vm-builder/trunk/mof/XEN_VMBuilderVirtualSystemCreationData.mof 2008-07-18 15:19:43 UTC (rev 757) @@ -78,6 +78,9 @@ [Description("Port to use for VNC server")] uint32 VNCPort; + [Description("VNC Password")] + string VNCPassword; + [Description("Field for users of this object to store additional data related " "to this object. This is not used by the providers. It is user-defined " "and user consumed. It is defined as a string array to allow for " Modified: contrib/xen-vm-builder/trunk/src/providers/vm-builder/builder-service.c =================================================================== --- contrib/xen-vm-builder/trunk/src/providers/vm-builder/builder-service.c 2008-07-18 00:27:28 UTC (rev 756) +++ contrib/xen-vm-builder/trunk/src/providers/vm-builder/builder-service.c 2008-07-18 15:19:43 UTC (rev 757) @@ -777,6 +777,15 @@ cmpiutilStrArray_append(pstra, wkbfr); } } + /**** VNCPassword ****/ + data = CMGetProperty(cdci, "VNCPassword", NULL); + if (!CMIsNullValue(data)) { + const char *vncpwd = CMGetCharPtr(data.value.string); + if (vncpwd && strlen(vncpwd)) { + cmpiutilStrArray_append(pstra, "--vnc-password"); + cmpiutilStrArray_append(pstra, vncpwd); + } + } /**** SourceURL ****/ data = CMGetProperty(cdci, "SourceURL", NULL); if (!CMIsNullValue(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 00:27:21
|
Revision: 756 http://omc.svn.sourceforge.net/omc/?rev=756&view=rev Author: mike-brasher Date: 2008-07-18 00:27:28 +0000 (Fri, 18 Jul 2008) Log Message: ----------- Did not mean to commit this! Removed Paths: ------------- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/a.out This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-18 00:25:44
|
Revision: 755 http://omc.svn.sourceforge.net/omc/?rev=755&view=rev Author: mike-brasher Date: 2008-07-18 00:25:43 +0000 (Fri, 18 Jul 2008) Log Message: ----------- Initial commit of boot control profile (first steps). Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/README cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/Makefile.am Added Paths: ----------- cmpiprofiles/sblim-cmpi-boot_control_profile/ cmpiprofiles/sblim-cmpi-boot_control_profile/branches/ cmpiprofiles/sblim-cmpi-boot_control_profile/tags/ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/AUTHORS cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/COPYING cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/ChangeLog cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/INSTALL cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/Makefile.am cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/NEWS cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/README cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/bootstrap.sh cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/cleanup.sh cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/configure.ac cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/Makefile.am cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile-interop.mof cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.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/ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootService.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootServiceProvider.c cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_BootConfigSetting.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_BootService.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_BootSourceSetting.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ComputerSystem.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ConcreteJob.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_EnabledLogicalElement.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_Job.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_LogicalElement.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ManagedElement.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_ManagedSystemElement.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_RegisteredProfile.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_Service.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_SettingData.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/CIM_System.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/RegisteredProfile.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/RegisteredProfileProvider.c cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Resource.c cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/Resource.h cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/a.out cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/konkret.sh cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/linux-boot-control-profile.kon cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/menu.lst Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/COPYING =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/COPYING (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/COPYING 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,19 @@ +SBLIM work within the OMC project is primarily constrained by EPL License. + +Please pay attention to the license for each file. + + +Notice for Projects/Files Released Under the EPL License + +/****************************************************************************** +* Copyright (c) 2008, Novell, Inc. All rights reserved. +* +* This file is provided under the terms of the Eclipse Public License v1.0 +* ("Agreement"). Any use, reproduction or distribution of this file +* constitutes recipient's acceptance of the agreement. +* +* You can obtain a current copy of the Eclipse Public License from +* http://www.opensource.org/licenses/eclipse-1.0.php +* +******************************************************************************/ + Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/INSTALL =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/INSTALL (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/INSTALL 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,229 @@ +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software +Foundation, Inc. + + This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. + +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. (Caching is +disabled by default to prevent problems with accidental use of stale +cache files.) + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You only need +`configure.ac' if you want to change it or regenerate `configure' using +a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not support the `VPATH' +variable, you have to compile the package for one architecture at a +time in the source code directory. After you have installed the +package for one architecture, use `make distclean' before reconfiguring +for another architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=PATH' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the `--target=TYPE' option to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +will cause the specified gcc to be used as the C compiler (unless it is +overridden in the site shell script). + +`configure' Invocation +====================== + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of the options to `configure', and exit. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/Makefile.am (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/Makefile.am 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,5 @@ +## Process this file with automake to produce Makefile.in + +AUTOMAKE_OPTIONS = gnu + +SUBDIRS = . src mof Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/bootstrap.sh =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/bootstrap.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/bootstrap.sh 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,7 @@ +#!/bin/sh +touch NEWS README AUTHORS ChangeLog +aclocal \ +&& autoconf \ +&& autoheader \ +&& libtoolize --force --copy \ +&& automake --add-missing Property changes on: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/bootstrap.sh ___________________________________________________________________ Added: svn:executable + * Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/cleanup.sh =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/cleanup.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/cleanup.sh 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,28 @@ +#!/bin/sh + +# Clean up files created by autotools. + +rm -rf \ + configure \ + Makefile.in \ + depcomp \ + config.guess \ + config.sub \ + ltmain.sh \ + config.h.in \ + autom4te.cache \ + missing \ + aclocal.m4 \ + install-sh \ + mof/Makefile.in \ + src/Makefile.in \ + config.h.in~ \ + config.log \ + config.status \ + stamp-h1 \ + config.h \ + libtool \ + Makefile \ + mof/Makefile \ + src/.deps \ + src/Makefile Property changes on: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/cleanup.sh ___________________________________________________________________ Added: svn:executable + * Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/configure.ac =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/configure.ac (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/configure.ac 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,17 @@ +# Process this file with autoconf to produce a configure script +AC_PREREQ(2.57) +AC_INIT(sblim-cmpi-ethport_profile, 1.0.0) +AM_INIT_AUTOMAKE +AC_CONFIG_SRCDIR([src]) +AC_CONFIG_HEADER([config.h]) +AC_PROG_LIBTOOL +AC_PREFIX_DEFAULT(/usr) +AC_PROG_CC +AC_PROG_CPP +AC_PROG_INSTALL +AC_PROG_LN_S +AC_PROG_MAKE_SET +AC_CHECK_LIB(konkret,KPrintInstance,,[AC_MSG_ERROR(missing required library: konkret: please install KonkretCMPI)]) +AC_CHECK_HEADERS(konkret/konkret.h,,[AC_MSG_ERROR(missing required header: konkret.h: please install KonkretCMPI)]) +AC_CONFIG_FILES([Makefile src/Makefile mof/Makefile]) +AC_OUTPUT Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/Makefile.am (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/Makefile.am 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,9 @@ +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) + +EXTRA_DIST = $(mof_DATA) Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile-interop.mof =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile-interop.mof (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile-interop.mof 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,3 @@ +class Linux_BootRegisteredProfile : CIM_RegisteredProfile +{ +}; Added: 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 (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/linux-boot-control-profile.mof 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,9 @@ +//============================================================================== +// +// Boot Control Profile +// +//============================================================================== + +class Linux_BootService : CIM_BootService +{ +}; Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/register.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/register.sh 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,7 @@ +#!/bin/sh +BASE=linux-bool-control-profile +TARGET=../src/.libs/liblinux_bootctrlprovider.so +konkretreg $TARGET > $BASE.registration +provider-register.sh -r $BASE.registration -m $BASE.mof +cp $BASE-interop.mof /usr/var/lib/sfcb/stage/mofs/root/interop +cp $TARGET /usr/lib64/ Property changes on: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/mof/register.sh ___________________________________________________________________ Added: svn:executable + * Added: cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootService.h =================================================================== --- cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootService.h (rev 0) +++ cmpiprofiles/sblim-cmpi-boot_control_profile/trunk/src/BootService.h 2008-07-18 00:25:43 UTC (rev 755) @@ -0,0 +1,3091 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_BootService_h +#define _konkrete_BootService_h + +#include <konkret/konkret.h> +#include "CIM_ConcreteJob.h" +#include "CIM_ManagedElement.h" +#include "CIM_BootConfigSetting.h" +#include "CIM_ComputerSystem.h" + +/* +**============================================================================== +** +** struct BootServiceRef +** +**============================================================================== +*/ + +/* classname=Linux_BootService */ +typedef struct _BootServiceRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_ManagedSystemElement features */ + const KString Name; + /* CIM_LogicalElement features */ + /* CIM_EnabledLogicalElement features */ + /* CIM_Service features */ + const KString SystemCreationClassName; + const KString SystemName; + const KString CreationClassName; + /* CIM_BootService features */ + /* Linux_BootService features */ +} +BootServiceRef; + +static const unsigned char __BootServiceRef_sig[] = +{ + 0x11,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x53,0x65,0x72,0x76, + 0x69,0x63,0x65,0x00,0x04,0x4c,0x04,0x4e,0x61,0x6d,0x65,0x00,0x4c,0x17,0x53, + 0x79,0x73,0x74,0x65,0x6d,0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c, + 0x61,0x73,0x73,0x4e,0x61,0x6d,0x65,0x00,0x4c,0x0a,0x53,0x79,0x73,0x74,0x65, + 0x6d,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 BootServiceRef_Init( + BootServiceRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __BootServiceRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus BootServiceRef_InitFromInstance( + BootServiceRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + BootServiceRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus BootServiceRef_InitFromObjectPath( + BootServiceRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + BootServiceRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void BootServiceRef_Print( + const BootServiceRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* BootServiceRef_ToInstance( + const BootServiceRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* BootServiceRef_ToObjectPath( + const BootServiceRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* BootServiceRef_NameSpace( + BootServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void BootServiceRef_SetString_Name( + BootServiceRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_SetString(field, x); + } +} + +KINLINE void BootServiceRef_Set_Name( + BootServiceRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void BootServiceRef_Null_Name( + BootServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Null(field); + } +} + +KINLINE void BootServiceRef_Clr_Name( + BootServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Clr(field); + } +} + +KINLINE void BootServiceRef_SetString_SystemCreationClassName( + BootServiceRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void BootServiceRef_Set_SystemCreationClassName( + BootServiceRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void BootServiceRef_Null_SystemCreationClassName( + BootServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Null(field); + } +} + +KINLINE void BootServiceRef_Clr_SystemCreationClassName( + BootServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Clr(field); + } +} + +KINLINE void BootServiceRef_SetString_SystemName( + BootServiceRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_SetString(field, x); + } +} + +KINLINE void BootServiceRef_Set_SystemName( + BootServiceRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void BootServiceRef_Null_SystemName( + BootServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Null(field); + } +} + +KINLINE void BootServiceRef_Clr_SystemName( + BootServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Clr(field); + } +} + +KINLINE void BootServiceRef_SetString_CreationClassName( + BootServiceRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void BootServiceRef_Set_CreationClassName( + BootServiceRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void BootServiceRef_Null_CreationClassName( + BootServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Null(field); + } +} + +KINLINE void BootServiceRef_Clr_CreationClassName( + BootServiceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct BootService +** +**============================================================================== +*/ + +/* classname=Linux_BootService */ +typedef struct _BootService +{ + 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_Service features */ + const KString SystemCreationClassName; + const KString SystemName; + const KString CreationClassName; + const KString PrimaryOwnerName; + const KString PrimaryOwnerContact; + const KString StartMode; + const KBoolean Started; + /* CIM_BootService features */ + /* Linux_BootService features */ +} +BootService; + +static const unsigned char __BootService_sig[] = +{ + 0x11,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x42,0x6f,0x6f,0x74,0x53,0x65,0x72,0x76, + 0x69,0x63,0x65,0x00,0x1b,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, + 0x17,0x53,0x79,0x73,0x74,0x65,0x6d,0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e, + 0x43,0x6c,0x61,0x73,0x73,0x4e,0x61,0x6d,0x65,0x00,0x4c,0x0a,0x53,0x79,0x73, + 0x74,0x65,0x6d,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,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,0x0c,0x09,0x53,0x74,0x61,0x72, + 0x74,0x4d,0x6f,0x64,0x65,0x00,0x00,0x07,0x53,0x74,0x61,0x72,0x74,0x65,0x64, + 0x00, +}; + +KINLINE void BootService_Init( + BootService* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __BootService_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus BootService_InitFromInstance( + BootService* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + BootService_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus BootService_InitFromObjectPath( + BootService* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + BootService_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void BootService_Print( + const BootService* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* BootService_ToInstance( + const BootService* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* BootService_ToObjectPath( + const BootService* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* BootService_NameSpace( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void BootService_SetString_Caption( + BootService* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void BootService_Set_Caption( + BootService* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void BootService_Null_Caption( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void BootService_Clr_Caption( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void BootService_SetString_Description( + BootService* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void BootService_Set_Description( + BootService* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void BootService_Null_Description( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void BootService_Clr_Description( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void BootService_SetString_ElementName( + BootService* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void BootService_Set_ElementName( + BootService* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void BootService_Null_ElementName( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void BootService_Clr_ElementName( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void BootService_Set_InstallDate( + BootService* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Set(field, x); + } +} + +KINLINE void BootService_Null_InstallDate( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Null(field); + } +} + +KINLINE void BootService_Clr_InstallDate( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Clr(field); + } +} + +KINLINE void BootService_SetString_Name( + BootService* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_SetString(field, x); + } +} + +KINLINE void BootService_Set_Name( + BootService* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void BootService_Null_Name( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Null(field); + } +} + +KINLINE void BootService_Clr_Name( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean BootService_Init_OperationalStatus( + BootService* 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 BootService_InitNull_OperationalStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean BootService_Set_OperationalStatus( + BootService* 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 BootService_Get_OperationalStatus( + BootService* 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 BootService_Null_OperationalStatus( + BootService* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void BootService_Clr_OperationalStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_Clr(field); + } +} + +typedef enum _BootService_OperationalStatus_Enum +{ + BootService_OperationalStatus_Unknown = 0, + BootService_OperationalStatus_Other = 1, + BootService_OperationalStatus_OK = 2, + BootService_OperationalStatus_Degraded = 3, + BootService_OperationalStatus_Stressed = 4, + BootService_OperationalStatus_Predictive_Failure = 5, + BootService_OperationalStatus_Error = 6, + BootService_OperationalStatus_Non_Recoverable_Error = 7, + BootService_OperationalStatus_Starting = 8, + BootService_OperationalStatus_Stopping = 9, + BootService_OperationalStatus_Stopped = 10, + BootService_OperationalStatus_In_Service = 11, + BootService_OperationalStatus_No_Contact = 12, + BootService_OperationalStatus_Lost_Communication = 13, + BootService_OperationalStatus_Aborted = 14, + BootService_OperationalStatus_Dormant = 15, + BootService_OperationalStatus_Supporting_Entity_in_Error = 16, + BootService_OperationalStatus_Completed = 17, + BootService_OperationalStatus_Power_Mode = 18, + BootService_OperationalStatus_DMTF_Reserved = 0, + BootService_OperationalStatus_Vendor_Reserved = 0, +} +BootService_OperationalStatus_Enum; + +/* "Unknown" */ +#define BootService_Set_OperationalStatus_Unknown(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Other" */ +#define BootService_Set_OperationalStatus_Other(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 1) + +/* "OK" */ +#define BootService_Set_OperationalStatus_OK(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 2) + +/* "Degraded" */ +#define BootService_Set_OperationalStatus_Degraded(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 3) + +/* "Stressed" */ +#define BootService_Set_OperationalStatus_Stressed(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 4) + +/* "Predictive Failure" */ +#define BootService_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 5) + +/* "Error" */ +#define BootService_Set_OperationalStatus_Error(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 6) + +/* "Non-Recoverable Error" */ +#define BootService_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 7) + +/* "Starting" */ +#define BootService_Set_OperationalStatus_Starting(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 8) + +/* "Stopping" */ +#define BootService_Set_OperationalStatus_Stopping(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 9) + +/* "Stopped" */ +#define BootService_Set_OperationalStatus_Stopped(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 10) + +/* "In Service" */ +#define BootService_Set_OperationalStatus_In_Service(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 11) + +/* "No Contact" */ +#define BootService_Set_OperationalStatus_No_Contact(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 12) + +/* "Lost Communication" */ +#define BootService_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 13) + +/* "Aborted" */ +#define BootService_Set_OperationalStatus_Aborted(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 14) + +/* "Dormant" */ +#define BootService_Set_OperationalStatus_Dormant(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 15) + +/* "Supporting Entity in Error" */ +#define BootService_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 16) + +/* "Completed" */ +#define BootService_Set_OperationalStatus_Completed(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 17) + +/* "Power Mode" */ +#define BootService_Set_OperationalStatus_Power_Mode(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 18) + +/* "DMTF Reserved" */ +#define BootService_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Vendor Reserved" */ +#define BootService_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\ + BootService_Set_OperationalStatus(SELF, INDEX, 0) + +KINLINE CMPIBoolean BootService_Init_StatusDescriptions( + BootService* 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 BootService_InitNull_StatusDescriptions( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean BootService_SetString_StatusDescriptions( + BootService* 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 BootService_Set_StatusDescriptions( + BootService* 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 BootService_GetString_StatusDescriptions( + BootService* 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* BootService_Get_StatusDescriptions( + BootService* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean BootService_Null_StatusDescriptions( + BootService* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void BootService_Clr_StatusDescriptions( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_Clr(field); + } +} + +KINLINE void BootService_SetString_Status( + BootService* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_SetString(field, x); + } +} + +KINLINE void BootService_Set_Status( + BootService* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void BootService_Null_Status( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Null(field); + } +} + +KINLINE void BootService_Clr_Status( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Clr(field); + } +} + +KINLINE void BootService_Set_HealthState( + BootService* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Set(field, x); + } +} + +KINLINE void BootService_Null_HealthState( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Null(field); + } +} + +KINLINE void BootService_Clr_HealthState( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Clr(field); + } +} + +typedef enum _BootService_HealthState_Enum +{ + BootService_HealthState_Unknown = 0, + BootService_HealthState_OK = 5, + BootService_HealthState_Degraded_Warning = 10, + BootService_HealthState_Minor_failure = 15, + BootService_HealthState_Major_failure = 20, + BootService_HealthState_Critical_failure = 25, + BootService_HealthState_Non_recoverable_error = 30, + BootService_HealthState_DMTF_Reserved = 0, +} +BootService_HealthState_Enum; + +/* "Unknown" */ +#define BootService_Set_HealthState_Unknown(SELF) \ + BootService_Set_HealthState(SELF, 0) + +/* "OK" */ +#define BootService_Set_HealthState_OK(SELF) \ + BootService_Set_HealthState(SELF, 5) + +/* "Degraded/Warning" */ +#define BootService_Set_HealthState_Degraded_Warning(SELF) \ + BootService_Set_HealthState(SELF, 10) + +/* "Minor failure" */ +#define BootService_Set_HealthState_Minor_failure(SELF) \ + BootService_Set_HealthState(SELF, 15) + +/* "Major failure" */ +#define BootService_Set_HealthState_Major_failure(SELF) \ + BootService_Set_HealthState(SELF, 20) + +/* "Critical failure" */ +#define BootService_Set_HealthState_Critical_failure(SELF) \ + BootService_Set_HealthState(SELF, 25) + +/* "Non-recoverable error" */ +#define BootService_Set_HealthState_Non_recoverable_error(SELF) \ + BootService_Set_HealthState(SELF, 30) + +/* "DMTF Reserved" */ +#define BootService_Set_HealthState_DMTF_Reserved(SELF) \ + BootService_Set_HealthState(SELF, 0) + +KINLINE void BootService_Set_PrimaryStatus( + BootService* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Set(field, x); + } +} + +KINLINE void BootService_Null_PrimaryStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Null(field); + } +} + +KINLINE void BootService_Clr_PrimaryStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Clr(field); + } +} + +typedef enum _BootService_PrimaryStatus_Enum +{ + BootService_PrimaryStatus_Unknown = 0, + BootService_PrimaryStatus_OK = 1, + BootService_PrimaryStatus_Degraded = 2, + BootService_PrimaryStatus_Error = 3, + BootService_PrimaryStatus_DMTF_Reserved = 0, + BootService_PrimaryStatus_Vendor_Reserved = 0, +} +BootService_PrimaryStatus_Enum; + +/* "Unknown" */ +#define BootService_Set_PrimaryStatus_Unknown(SELF) \ + BootService_Set_PrimaryStatus(SELF, 0) + +/* "OK" */ +#define BootService_Set_PrimaryStatus_OK(SELF) \ + BootService_Set_PrimaryStatus(SELF, 1) + +/* "Degraded" */ +#define BootService_Set_PrimaryStatus_Degraded(SELF) \ + BootService_Set_PrimaryStatus(SELF, 2) + +/* "Error" */ +#define BootService_Set_PrimaryStatus_Error(SELF) \ + BootService_Set_PrimaryStatus(SELF, 3) + +/* "DMTF Reserved" */ +#define BootService_Set_PrimaryStatus_DMTF_Reserved(SELF) \ + BootService_Set_PrimaryStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define BootService_Set_PrimaryStatus_Vendor_Reserved(SELF) \ + BootService_Set_PrimaryStatus(SELF, 0) + +KINLINE void BootService_Set_DetailedStatus( + BootService* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Set(field, x); + } +} + +KINLINE void BootService_Null_DetailedStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Null(field); + } +} + +KINLINE void BootService_Clr_DetailedStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Clr(field); + } +} + +typedef enum _BootService_DetailedStatus_Enum +{ + BootService_DetailedStatus_Not_Available = 0, + BootService_DetailedStatus_No_Additional_Information = 1, + BootService_DetailedStatus_Stressed = 2, + BootService_DetailedStatus_Predictive_Failure = 3, + BootService_DetailedStatus_Non_Recoverable_Error = 4, + BootService_DetailedStatus_Supporting_Entity_in_Error = 5, + BootService_DetailedStatus_DMTF_Reserved = 0, + BootService_DetailedStatus_Vendor_Reserved = 0, +} +BootService_DetailedStatus_Enum; + +/* "Not Available" */ +#define BootService_Set_DetailedStatus_Not_Available(SELF) \ + BootService_Set_DetailedStatus(SELF, 0) + +/* "No Additional Information" */ +#define BootService_Set_DetailedStatus_No_Additional_Information(SELF) \ + BootService_Set_DetailedStatus(SELF, 1) + +/* "Stressed" */ +#define BootService_Set_DetailedStatus_Stressed(SELF) \ + BootService_Set_DetailedStatus(SELF, 2) + +/* "Predictive Failure" */ +#define BootService_Set_DetailedStatus_Predictive_Failure(SELF) \ + BootService_Set_DetailedStatus(SELF, 3) + +/* "Non-Recoverable Error" */ +#define BootService_Set_DetailedStatus_Non_Recoverable_Error(SELF) \ + BootService_Set_DetailedStatus(SELF, 4) + +/* "Supporting Entity in Error" */ +#define BootService_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \ + BootService_Set_DetailedStatus(SELF, 5) + +/* "DMTF Reserved" */ +#define BootService_Set_DetailedStatus_DMTF_Reserved(SELF) \ + BootService_Set_DetailedStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define BootService_Set_DetailedStatus_Vendor_Reserved(SELF) \ + BootService_Set_DetailedStatus(SELF, 0) + +KINLINE void BootService_Set_OperatingStatus( + BootService* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Set(field, x); + } +} + +KINLINE void BootService_Null_OperatingStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Null(field); + } +} + +KINLINE void BootService_Clr_OperatingStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Clr(field); + } +} + +typedef enum _BootService_OperatingStatus_Enum +{ + BootService_OperatingStatus_Unknown = 0, + BootService_OperatingStatus_Not_Available = 1, + BootService_OperatingStatus_Servicing = 2, + BootService_OperatingStatus_Starting = 3, + BootService_OperatingStatus_Stopping = 4, + BootService_OperatingStatus_Stopped = 5, + BootService_OperatingStatus_Aborted = 6, + BootService_OperatingStatus_Dormant = 7, + BootService_OperatingStatus_Completed = 8, + BootService_OperatingStatus_Migrating = 9, + BootService_OperatingStatus_Emigrating = 10, + BootService_OperatingStatus_Immigrating = 11, + BootService_OperatingStatus_Snapshotting = 12, + BootService_OperatingStatus_Shutting_Down = 13, + BootService_OperatingStatus_In_Test = 14, + BootService_OperatingStatus_Transitioning = 15, + BootService_OperatingStatus_In_Service = 16, + BootService_OperatingStatus_DMTF_Reserved = 0, + BootService_OperatingStatus_Vendor_Reserved = 0, +} +BootService_OperatingStatus_Enum; + +/* "Unknown" */ +#define BootService_Set_OperatingStatus_Unknown(SELF) \ + BootService_Set_OperatingStatus(SELF, 0) + +/* "Not Available" */ +#define BootService_Set_OperatingStatus_Not_Available(SELF) \ + BootService_Set_OperatingStatus(SELF, 1) + +/* "Servicing" */ +#define BootService_Set_OperatingStatus_Servicing(SELF) \ + BootService_Set_OperatingStatus(SELF, 2) + +/* "Starting" */ +#define BootService_Set_OperatingStatus_Starting(SELF) \ + BootService_Set_OperatingStatus(SELF, 3) + +/* "Stopping" */ +#define BootService_Set_OperatingStatus_Stopping(SELF) \ + BootService_Set_OperatingStatus(SELF, 4) + +/* "Stopped" */ +#define BootService_Set_OperatingStatus_Stopped(SELF) \ + BootService_Set_OperatingStatus(SELF, 5) + +/* "Aborted" */ +#define BootService_Set_OperatingStatus_Aborted(SELF) \ + BootService_Set_OperatingStatus(SELF, 6) + +/* "Dormant" */ +#define BootService_Set_OperatingStatus_Dormant(SELF) \ + BootService_Set_OperatingStatus(SELF, 7) + +/* "Completed" */ +#define BootService_Set_OperatingStatus_Completed(SELF) \ + BootService_Set_OperatingStatus(SELF, 8) + +/* "Migrating" */ +#define BootService_Set_OperatingStatus_Migrating(SELF) \ + BootService_Set_OperatingStatus(SELF, 9) + +/* "Emigrating" */ +#define BootService_Set_OperatingStatus_Emigrating(SELF) \ + BootService_Set_OperatingStatus(SELF, 10) + +/* "Immigrating" */ +#define BootService_Set_OperatingStatus_Immigrating(SELF) \ + BootService_Set_OperatingStatus(SELF, 11) + +/* "Snapshotting" */ +#define BootService_Set_OperatingStatus_Snapshotting(SELF) \ + BootService_Set_OperatingStatus(SELF, 12) + +/* "Shutting Down" */ +#define BootService_Set_OperatingStatus_Shutting_Down(SELF) \ + BootService_Set_OperatingStatus(SELF, 13) + +/* "In Test" */ +#define BootService_Set_OperatingStatus_In_Test(SELF) \ + BootService_Set_OperatingStatus(SELF, 14) + +/* "Transitioning" */ +#define BootService_Set_OperatingStatus_Transitioning(SELF) \ + BootService_Set_OperatingStatus(SELF, 15) + +/* "In Service" */ +#define BootService_Set_OperatingStatus_In_Service(SELF) \ + BootService_Set_OperatingStatus(SELF, 16) + +/* "DMTF Reserved" */ +#define BootService_Set_OperatingStatus_DMTF_Reserved(SELF) \ + BootService_Set_OperatingStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define BootService_Set_OperatingStatus_Vendor_Reserved(SELF) \ + BootService_Set_OperatingStatus(SELF, 0) + +KINLINE void BootService_Set_CommunicationStatus( + BootService* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Set(field, x); + } +} + +KINLINE void BootService_Null_CommunicationStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Null(field); + } +} + +KINLINE void BootService_Clr_CommunicationStatus( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Clr(field); + } +} + +typedef enum _BootService_CommunicationStatus_Enum +{ + BootService_CommunicationStatus_Unknown = 0, + BootService_CommunicationStatus_Not_Available = 1, + BootService_CommunicationStatus_Communication_OK = 2, + BootService_CommunicationStatus_Lost_Communication = 3, + BootService_CommunicationStatus_No_Contact = 4, + BootService_CommunicationStatus_DMTF_Reserved = 0, + BootService_CommunicationStatus_Vendor_Reserved = 0, +} +BootService_CommunicationStatus_Enum; + +/* "Unknown" */ +#define BootService_Set_CommunicationStatus_Unknown(SELF) \ + BootService_Set_CommunicationStatus(SELF, 0) + +/* "Not Available" */ +#define BootService_Set_CommunicationStatus_Not_Available(SELF) \ + BootService_Set_CommunicationStatus(SELF, 1) + +/* "Communication OK" */ +#define BootService_Set_CommunicationStatus_Communication_OK(SELF) \ + BootService_Set_CommunicationStatus(SELF, 2) + +/* "Lost Communication" */ +#define BootService_Set_CommunicationStatus_Lost_Communication(SELF) \ + BootService_Set_CommunicationStatus(SELF, 3) + +/* "No Contact" */ +#define BootService_Set_CommunicationStatus_No_Contact(SELF) \ + BootService_Set_CommunicationStatus(SELF, 4) + +/* "DMTF Reserved" */ +#define BootService_Set_CommunicationStatus_DMTF_Reserved(SELF) \ + BootService_Set_CommunicationStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define BootService_Set_CommunicationStatus_Vendor_Reserved(SELF) \ + BootService_Set_CommunicationStatus(SELF, 0) + +KINLINE void BootService_Set_EnabledState( + BootService* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledState; + KUint16_Set(field, x); + } +} + +KINLINE void BootService_Null_EnabledState( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledState; + KUint16_Null(field); + } +} + +KINLINE void BootService_Clr_EnabledState( + BootService* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledState; + KUint16_Clr(field); + } +} + +typedef enum _BootService_EnabledState_Enum +{ + BootService_Ena... [truncated message content] |
From: <mik...@us...> - 2008-07-11 21:06:40
|
Revision: 754 http://omc.svn.sourceforge.net/omc/?rev=754&view=rev Author: mike-brasher Date: 2008-07-11 14:06:11 -0700 (Fri, 11 Jul 2008) Log Message: ----------- Added MemberOfCollection provider. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/FanProvider.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpare.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpareProvider.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/MemberOfCollection.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/MemberOfCollectionProvider.c Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-11 19:29:33 UTC (rev 753) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-11 21:06:11 UTC (rev 754) @@ -59,22 +59,20 @@ }; // =========================================================================== -// Linux_MemberOfFanRedundancySet +// Linux_FanMemberOfCollection // =========================================================================== [Association, Version ( "0.0.1" ), Description ( "SBLIM instrumentation of SMASH's Fan Profile.")] -class Linux_MemberOfFanRedundancySet : CIM_MemberOfCollection +class Linux_FanMemberOfCollection : CIM_MemberOfCollection { - [Override("Collection"), Key, Aggregate, - Description ( - "The Collection that aggregates members.")] - Linux_FanRedundancySet REF Collection; + [Override("Collection"), Key, Aggregate, + Description("The Collection that aggregates members.")] + Linux_FanRedundancySet REF Collection; - [Override("Member"), Key, - Description ( - "The aggregated member of the Collection.")] - Linux_Fan REF Member; + [Override("Member"), Key, + Description ("The aggregated member of the Collection.")] + Linux_Fan REF Member; }; // =========================================================================== @@ -99,7 +97,7 @@ Description ( "A ManagedElement or Collection of elements acting as a " "spare fan.")] - CIM_ManagedElement REF Antecedent; + Linux_Fan REF Antecedent; [Override ( "Dependent" ), Description ( Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration 2008-07-11 19:29:33 UTC (rev 753) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration 2008-07-11 21:06:11 UTC (rev 754) @@ -1,6 +1,7 @@ Linux_FanElementConformsToProfile root/interop ElementConformsToProfile linux_fanprovider instance association Linux_Fan root/cimv2 Fan linux_fanprovider instance method Linux_FanIsSpare root/cimv2 IsSpare linux_fanprovider instance association +Linux_FanMemberOfCollection root/cimv2 MemberOfCollection linux_fanprovider instance association Linux_FanRedundancySet root/cimv2 RedundancySet linux_fanprovider instance method Linux_FanReferencedProfile root/interop ReferencedProfile linux_fanprovider instance association Linux_FanRegisteredProfile root/interop RegisteredProfile linux_fanprovider instance method Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/FanProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/FanProvider.c 2008-07-11 19:29:33 UTC (rev 753) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/FanProvider.c 2008-07-11 21:06:11 UTC (rev 754) @@ -99,6 +99,9 @@ KReturnInstance(cr, x); } + /* Free resource data */ + free(data); + CMReturn(CMPI_RC_OK); } Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpare.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpare.h 2008-07-11 19:29:33 UTC (rev 753) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpare.h 2008-07-11 21:06:11 UTC (rev 754) @@ -10,7 +10,7 @@ #define _konkrete_IsSpare_h #include <konkret/konkret.h> -#include "CIM_ManagedElement.h" +#include "Fan.h" #include "RedundancySet.h" /* @@ -26,7 +26,7 @@ { KBase __base; /* CIM_Dependency features */ - const KRef Antecedent; /* CIM_ManagedElement */ + const KRef Antecedent; /* Fan */ const KRef Dependent; /* RedundancySet */ /* CIM_IsSpare features */ /* Linux_FanIsSpare features */ @@ -47,7 +47,7 @@ { const unsigned char* sig = __IsSpareRef_sig; KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); - ((KRef*)&self->Antecedent)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->Antecedent)->__sig = __Fan_sig; ((KRef*)&self->Dependent)->__sig = __RedundancySet_sig; } @@ -111,7 +111,7 @@ KINLINE CMPIStatus IsSpareRef_Set_Antecedent( IsSpareRef* self, - const CIM_ManagedElementRef* x) + const FanRef* x) { if (self && self->__base.magic == KMAGIC) { @@ -197,7 +197,7 @@ { KBase __base; /* CIM_Dependency features */ - const KRef Antecedent; /* CIM_ManagedElement */ + const KRef Antecedent; /* Fan */ const KRef Dependent; /* RedundancySet */ /* CIM_IsSpare features */ const KUint16 SpareStatus; @@ -223,7 +223,7 @@ { const unsigned char* sig = __IsSpare_sig; KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); - ((KRef*)&self->Antecedent)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->Antecedent)->__sig = __Fan_sig; ((KRef*)&self->Dependent)->__sig = __RedundancySet_sig; } @@ -287,7 +287,7 @@ KINLINE CMPIStatus IsSpare_Set_Antecedent( IsSpare* self, - const CIM_ManagedElementRef* x) + const FanRef* x) { if (self && self->__base.magic == KMAGIC) { Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpareProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpareProvider.c 2008-07-11 19:29:33 UTC (rev 753) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpareProvider.c 2008-07-11 21:06:11 UTC (rev 754) @@ -1,5 +1,6 @@ #include <konkret/konkret.h> #include "IsSpare.h" +#include "Resource.h" static const CMPIBroker* _cb; @@ -32,6 +33,48 @@ const CMPIObjectPath* cop, const char** properties) { + const char* ns = KNameSpace(cop); + struct RedundancyInfo* data; + size_t size; + size_t i; + + /* Get redundancy resource data */ + if (GetRedundancyInfo(&data, &size) != 0) + KReturn2(_cb, ERR_FAILED, "failed to access fan resource"); + + /* For each redundancy */ + for (i = 0; i < size; i++) + { + IsSpare x; + FanRef a; /* Antecedent */ + RedundancySetRef d; /* Dependent */ + + if (!data[i].isSpare) + continue; + + /* Linux_FanIsSpare.Antecedent */ + FanRef_Init(&a, _cb, ns); + FanRef_Set_SystemCreationClassName(&a, SysClassName().str); + FanRef_Set_SystemName(&a, SysName().str); + FanRef_Set_CreationClassName(&a, "Linux_Fan"); + FanRef_Set_DeviceID(&a, data[i].deviceID); + + /* Linux_FanIsSpare.Dependent */ + RedundancySetRef_Init(&d, _cb, ns); + RedundancySetRef_Set_InstanceID(&d, data[i].instanceID); + + /* Linux_FanIsSpare */ + IsSpare_Init(&x, _cb, ns); + IsSpare_Set_Antecedent(&x, &a); + IsSpare_Set_Dependent(&x, &d); + + /* Return this instance */ + KReturnInstance(cr, x); + } + + /* Release redundancy info array */ + free(data); + CMReturn(CMPI_RC_OK); } Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-11 19:29:33 UTC (rev 753) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-11 21:06:11 UTC (rev 754) @@ -18,6 +18,8 @@ FanProvider.c \ IsSpare.h \ IsSpareProvider.c \ + MemberOfCollection.h \ + MemberOfCollectionProvider.c \ RedundancySet.h \ RedundancySetProvider.c \ ReferencedProfile.h \ @@ -29,7 +31,6 @@ SystemDevice.h \ SystemDeviceProvider.c - liblinux_fanprovider_la_LDFLAGS = \ -lpthread \ -lsblim-cmpiutil \ Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/MemberOfCollection.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/MemberOfCollection.h (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/MemberOfCollection.h 2008-07-11 21:06:11 UTC (rev 754) @@ -0,0 +1,384 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_MemberOfCollection_h +#define _konkrete_MemberOfCollection_h + +#include <konkret/konkret.h> +#include "RedundancySet.h" +#include "Fan.h" + +/* +**============================================================================== +** +** struct MemberOfCollectionRef +** +**============================================================================== +*/ + +/* classname=Linux_FanMemberOfCollection */ +typedef struct _MemberOfCollectionRef +{ + KBase __base; + /* CIM_MemberOfCollection features */ + const KRef Collection; /* RedundancySet */ + const KRef Member; /* Fan */ + /* Linux_FanMemberOfCollection features */ +} +MemberOfCollectionRef; + +static const unsigned char __MemberOfCollectionRef_sig[] = +{ + 0x1b,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x4d,0x65,0x6d,0x62,0x65, + 0x72,0x4f,0x66,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,0x00,0x02, + 0x4e,0x0a,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,0x00,0x4e,0x06, + 0x4d,0x65,0x6d,0x62,0x65,0x72,0x00, +}; + +KINLINE void MemberOfCollectionRef_Init( + MemberOfCollectionRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __MemberOfCollectionRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Collection)->__sig = __RedundancySet_sig; + ((KRef*)&self->Member)->__sig = __Fan_sig; +} + +KINLINE CMPIStatus MemberOfCollectionRef_InitFromInstance( + MemberOfCollectionRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + MemberOfCollectionRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus MemberOfCollectionRef_InitFromObjectPath( + MemberOfCollectionRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + MemberOfCollectionRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void MemberOfCollectionRef_Print( + const MemberOfCollectionRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* MemberOfCollectionRef_ToInstance( + const MemberOfCollectionRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* MemberOfCollectionRef_ToObjectPath( + const MemberOfCollectionRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* MemberOfCollectionRef_NameSpace( + MemberOfCollectionRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void MemberOfCollectionRef_SetObjectPath_Collection( + MemberOfCollectionRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Collection; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus MemberOfCollectionRef_Set_Collection( + MemberOfCollectionRef* self, + const RedundancySetRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Collection; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void MemberOfCollectionRef_Null_Collection( + MemberOfCollectionRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Collection; + KRef_Null(field); + } +} + +KINLINE void MemberOfCollectionRef_Clr_Collection( + MemberOfCollectionRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Collection; + KRef_Clr(field); + } +} + +KINLINE void MemberOfCollectionRef_SetObjectPath_Member( + MemberOfCollectionRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Member; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus MemberOfCollectionRef_Set_Member( + MemberOfCollectionRef* self, + const FanRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Member; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void MemberOfCollectionRef_Null_Member( + MemberOfCollectionRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Member; + KRef_Null(field); + } +} + +KINLINE void MemberOfCollectionRef_Clr_Member( + MemberOfCollectionRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Member; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct MemberOfCollection +** +**============================================================================== +*/ + +/* classname=Linux_FanMemberOfCollection */ +typedef struct _MemberOfCollection +{ + KBase __base; + /* CIM_MemberOfCollection features */ + const KRef Collection; /* RedundancySet */ + const KRef Member; /* Fan */ + /* Linux_FanMemberOfCollection features */ +} +MemberOfCollection; + +static const unsigned char __MemberOfCollection_sig[] = +{ + 0x1b,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x4d,0x65,0x6d,0x62,0x65, + 0x72,0x4f,0x66,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,0x00,0x02, + 0x4e,0x0a,0x43,0x6f,0x6c,0x6c,0x65,0x63,0x74,0x69,0x6f,0x6e,0x00,0x4e,0x06, + 0x4d,0x65,0x6d,0x62,0x65,0x72,0x00, +}; + +KINLINE void MemberOfCollection_Init( + MemberOfCollection* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __MemberOfCollection_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Collection)->__sig = __RedundancySet_sig; + ((KRef*)&self->Member)->__sig = __Fan_sig; +} + +KINLINE CMPIStatus MemberOfCollection_InitFromInstance( + MemberOfCollection* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + MemberOfCollection_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus MemberOfCollection_InitFromObjectPath( + MemberOfCollection* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + MemberOfCollection_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void MemberOfCollection_Print( + const MemberOfCollection* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* MemberOfCollection_ToInstance( + const MemberOfCollection* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* MemberOfCollection_ToObjectPath( + const MemberOfCollection* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* MemberOfCollection_NameSpace( + MemberOfCollection* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void MemberOfCollection_SetObjectPath_Collection( + MemberOfCollection* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Collection; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus MemberOfCollection_Set_Collection( + MemberOfCollection* self, + const RedundancySetRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Collection; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void MemberOfCollection_Null_Collection( + MemberOfCollection* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Collection; + KRef_Null(field); + } +} + +KINLINE void MemberOfCollection_Clr_Collection( + MemberOfCollection* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Collection; + KRef_Clr(field); + } +} + +KINLINE void MemberOfCollection_SetObjectPath_Member( + MemberOfCollection* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Member; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus MemberOfCollection_Set_Member( + MemberOfCollection* self, + const FanRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Member; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void MemberOfCollection_Null_Member( + MemberOfCollection* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Member; + KRef_Null(field); + } +} + +KINLINE void MemberOfCollection_Clr_Member( + MemberOfCollection* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Member; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** MemberOfCollection methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus MemberOfCollection_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + MemberOfCollectionRef self; + + KReturnIf(MemberOfCollectionRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_MemberOfCollection_h */ Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/MemberOfCollectionProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/MemberOfCollectionProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/MemberOfCollectionProvider.c 2008-07-11 21:06:11 UTC (rev 754) @@ -0,0 +1,220 @@ +#include <konkret/konkret.h> +#include "MemberOfCollection.h" +#include "Resource.h" + +static const CMPIBroker* _cb; + +static void MemberOfCollectionInitialize() +{ +} + +static CMPIStatus MemberOfCollectionCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus MemberOfCollectionEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus MemberOfCollectionEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + const char* ns = KNameSpace(cop); + struct RedundancyInfo* data; + size_t size; + size_t i; + + /* Get redundancy resource data */ + if (GetRedundancyInfo(&data, &size) != 0) + KReturn2(_cb, ERR_FAILED, "failed to access fan resource"); + + /* For each redundancy */ + for (i = 0; i < size; i++) + { + MemberOfCollection x; + FanRef m; /* Member */ + RedundancySetRef c; /* Collection */ + + /* Linux_FanIsSpare.Antecedent */ + FanRef_Init(&m, _cb, ns); + FanRef_Set_SystemCreationClassName(&m, SysClassName().str); + FanRef_Set_SystemName(&m, SysName().str); + FanRef_Set_CreationClassName(&m, "Linux_Fan"); + FanRef_Set_DeviceID(&m, data[i].deviceID); + + /* Linux_FanIsSpare.Dependent */ + RedundancySetRef_Init(&c, _cb, ns); + RedundancySetRef_Set_InstanceID(&c, data[i].instanceID); + + /* Linux_FanIsSpare */ + MemberOfCollection_Init(&x, _cb, ns); + MemberOfCollection_Set_Member(&x, &m); + MemberOfCollection_Set_Collection(&x, &c); + + /* Return this instance */ + KReturnInstance(cr, x); + } + + /* Release redundancy info array */ + free(data); + + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus MemberOfCollectionGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus MemberOfCollectionCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus MemberOfCollectionModifyInstance( + 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 MemberOfCollectionDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus MemberOfCollectionExecQuery( + 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 MemberOfCollectionAssociationCleanup( + CMPIAssociationMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus MemberOfCollectionAssociators( + 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_FanMemberOfCollection"; + + return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, + resultClass, role, resultRole, properties); +} + +static CMPIStatus MemberOfCollectionAssociatorNames( + 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_FanMemberOfCollection"; + + return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, + assocClass, resultClass, role, resultRole); +} + +static CMPIStatus MemberOfCollectionReferences( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_FanMemberOfCollection"; + + return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, + role, properties); +} + +static CMPIStatus MemberOfCollectionReferenceNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role) +{ + if (!assocClass) + assocClass = "Linux_FanMemberOfCollection"; + + return KDefaultReferenceNames( + _cb, mi, cc, cr, cop, assocClass, role); +} + +CMInstanceMIStub( + MemberOfCollection, + MemberOfCollection, + _cb, + MemberOfCollectionInitialize()) + +CMAssociationMIStub( + MemberOfCollection, + MemberOfCollection, + _cb, + MemberOfCollectionInitialize()) + +KONKRET_REGISTRATION( + "root/cimv2", + "Linux_FanMemberOfCollection", + "MemberOfCollection", + "instance association"); Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon 2008-07-11 19:29:33 UTC (rev 753) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon 2008-07-11 21:06:11 UTC (rev 754) @@ -6,3 +6,4 @@ Linux_FanReferencedProfile=ReferencedProfile! Linux_FanRedundancySet=RedundancySet! Linux_FanIsSpare=IsSpare! +Linux_FanMemberOfCollection=MemberOfCollection! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-11 19:29:24
|
Revision: 753 http://omc.svn.sourceforge.net/omc/?rev=753&view=rev Author: mike-brasher Date: 2008-07-11 12:29:33 -0700 (Fri, 11 Jul 2008) Log Message: ----------- Start on redudancy set providers. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ManagedElement.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpare.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpareProvider.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RedundancySet.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RedundancySetProvider.c Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-11 06:13:42 UTC (rev 752) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-11 19:29:33 UTC (rev 753) @@ -78,7 +78,7 @@ }; // =========================================================================== -// Linux_IsSpareFan +// Linux_FanIsSpare // =========================================================================== [Association, Version ( "2.10.0" ), Description ( @@ -93,7 +93,7 @@ "into smaller sets (and the IsSpare association defined for " "each of these smaller sets), such that the properties of this " "association apply to all collected members.")] -class Linux_IsSpareFan : CIM_IsSpare +class Linux_FanIsSpare : CIM_IsSpare { [Override ( "Antecedent" ), Description ( Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration 2008-07-11 06:13:42 UTC (rev 752) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration 2008-07-11 19:29:33 UTC (rev 753) @@ -1,5 +1,7 @@ Linux_FanElementConformsToProfile root/interop ElementConformsToProfile linux_fanprovider instance association Linux_Fan root/cimv2 Fan linux_fanprovider instance method +Linux_FanIsSpare root/cimv2 IsSpare linux_fanprovider instance association +Linux_FanRedundancySet root/cimv2 RedundancySet linux_fanprovider instance method Linux_FanReferencedProfile root/interop ReferencedProfile linux_fanprovider instance association Linux_FanRegisteredProfile root/interop RegisteredProfile linux_fanprovider instance method Linux_FanSystemDevice root/cimv2 SystemDevice linux_fanprovider instance association Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ManagedElement.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ManagedElement.h (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ManagedElement.h 2008-07-11 19:29:33 UTC (rev 753) @@ -0,0 +1,327 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_ManagedElement_h +#define _konkrete_CIM_ManagedElement_h + +#include <konkret/konkret.h> + +/* +**============================================================================== +** +** struct CIM_ManagedElementRef +** +**============================================================================== +*/ + +/* classname=CIM_ManagedElement */ +typedef struct _CIM_ManagedElementRef +{ + KBase __base; + /* CIM_ManagedElement features */ +} +CIM_ManagedElementRef; + +static const unsigned char __CIM_ManagedElementRef_sig[] = +{ + 0x12,0x43,0x49,0x4d,0x5f,0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65, + 0x6d,0x65,0x6e,0x74,0x00,0x00, +}; + +KINLINE void CIM_ManagedElementRef_Init( + CIM_ManagedElementRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_ManagedElementRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_ManagedElementRef_InitFromInstance( + CIM_ManagedElementRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_ManagedElementRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_ManagedElementRef_InitFromObjectPath( + CIM_ManagedElementRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_ManagedElementRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_ManagedElementRef_Print( + const CIM_ManagedElementRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_ManagedElementRef_ToInstance( + const CIM_ManagedElementRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_ManagedElementRef_ToObjectPath( + const CIM_ManagedElementRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_ManagedElementRef_NameSpace( + CIM_ManagedElementRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +/* +**============================================================================== +** +** struct CIM_ManagedElement +** +**============================================================================== +*/ + +/* classname=CIM_ManagedElement */ +typedef struct _CIM_ManagedElement +{ + KBase __base; + /* CIM_ManagedElement features */ + const KString Caption; + const KString Description; + const KString ElementName; +} +CIM_ManagedElement; + +static const unsigned char __CIM_ManagedElement_sig[] = +{ + 0x12,0x43,0x49,0x4d,0x5f,0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65, + 0x6d,0x65,0x6e,0x74,0x00,0x03,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e, + 0x00,0x0c,0x0b,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00, + 0x0c,0x0b,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00, +}; + +KINLINE void CIM_ManagedElement_Init( + CIM_ManagedElement* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_ManagedElement_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_ManagedElement_InitFromInstance( + CIM_ManagedElement* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_ManagedElement_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_ManagedElement_InitFromObjectPath( + CIM_ManagedElement* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_ManagedElement_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_ManagedElement_Print( + const CIM_ManagedElement* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_ManagedElement_ToInstance( + const CIM_ManagedElement* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_ManagedElement_ToObjectPath( + const CIM_ManagedElement* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_ManagedElement_NameSpace( + CIM_ManagedElement* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_ManagedElement_SetString_Caption( + CIM_ManagedElement* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ManagedElement_Set_Caption( + CIM_ManagedElement* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ManagedElement_Null_Caption( + CIM_ManagedElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void CIM_ManagedElement_Clr_Caption( + CIM_ManagedElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void CIM_ManagedElement_SetString_Description( + CIM_ManagedElement* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ManagedElement_Set_Description( + CIM_ManagedElement* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ManagedElement_Null_Description( + CIM_ManagedElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void CIM_ManagedElement_Clr_Description( + CIM_ManagedElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void CIM_ManagedElement_SetString_ElementName( + CIM_ManagedElement* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_ManagedElement_Set_ElementName( + CIM_ManagedElement* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_ManagedElement_Null_ElementName( + CIM_ManagedElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void CIM_ManagedElement_Clr_ElementName( + CIM_ManagedElement* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** CIM_ManagedElement methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus CIM_ManagedElement_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CIM_ManagedElementRef self; + + KReturnIf(CIM_ManagedElementRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_CIM_ManagedElement_h */ Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpare.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpare.h (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpare.h 2008-07-11 19:29:33 UTC (rev 753) @@ -0,0 +1,496 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_IsSpare_h +#define _konkrete_IsSpare_h + +#include <konkret/konkret.h> +#include "CIM_ManagedElement.h" +#include "RedundancySet.h" + +/* +**============================================================================== +** +** struct IsSpareRef +** +**============================================================================== +*/ + +/* classname=Linux_FanIsSpare */ +typedef struct _IsSpareRef +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_ManagedElement */ + const KRef Dependent; /* RedundancySet */ + /* CIM_IsSpare features */ + /* Linux_FanIsSpare features */ +} +IsSpareRef; + +static const unsigned char __IsSpareRef_sig[] = +{ + 0x10,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x49,0x73,0x53,0x70,0x61, + 0x72,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 IsSpareRef_Init( + IsSpareRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __IsSpareRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->Dependent)->__sig = __RedundancySet_sig; +} + +KINLINE CMPIStatus IsSpareRef_InitFromInstance( + IsSpareRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + IsSpareRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus IsSpareRef_InitFromObjectPath( + IsSpareRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + IsSpareRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void IsSpareRef_Print( + const IsSpareRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* IsSpareRef_ToInstance( + const IsSpareRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* IsSpareRef_ToObjectPath( + const IsSpareRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* IsSpareRef_NameSpace( + IsSpareRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void IsSpareRef_SetObjectPath_Antecedent( + IsSpareRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus IsSpareRef_Set_Antecedent( + IsSpareRef* 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 IsSpareRef_Null_Antecedent( + IsSpareRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void IsSpareRef_Clr_Antecedent( + IsSpareRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void IsSpareRef_SetObjectPath_Dependent( + IsSpareRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus IsSpareRef_Set_Dependent( + IsSpareRef* self, + const RedundancySetRef* 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 IsSpareRef_Null_Dependent( + IsSpareRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void IsSpareRef_Clr_Dependent( + IsSpareRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct IsSpare +** +**============================================================================== +*/ + +/* classname=Linux_FanIsSpare */ +typedef struct _IsSpare +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_ManagedElement */ + const KRef Dependent; /* RedundancySet */ + /* CIM_IsSpare features */ + const KUint16 SpareStatus; + const KUint16 FailoverSupported; + /* Linux_FanIsSpare features */ +} +IsSpare; + +static const unsigned char __IsSpare_sig[] = +{ + 0x10,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x49,0x73,0x53,0x70,0x61, + 0x72,0x65,0x00,0x04,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,0x03, + 0x0b,0x53,0x70,0x61,0x72,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x11, + 0x46,0x61,0x69,0x6c,0x6f,0x76,0x65,0x72,0x53,0x75,0x70,0x70,0x6f,0x72,0x74, + 0x65,0x64,0x00, +}; + +KINLINE void IsSpare_Init( + IsSpare* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __IsSpare_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_ManagedElement_sig; + ((KRef*)&self->Dependent)->__sig = __RedundancySet_sig; +} + +KINLINE CMPIStatus IsSpare_InitFromInstance( + IsSpare* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + IsSpare_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus IsSpare_InitFromObjectPath( + IsSpare* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + IsSpare_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void IsSpare_Print( + const IsSpare* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* IsSpare_ToInstance( + const IsSpare* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* IsSpare_ToObjectPath( + const IsSpare* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* IsSpare_NameSpace( + IsSpare* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void IsSpare_SetObjectPath_Antecedent( + IsSpare* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus IsSpare_Set_Antecedent( + IsSpare* 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 IsSpare_Null_Antecedent( + IsSpare* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void IsSpare_Clr_Antecedent( + IsSpare* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void IsSpare_SetObjectPath_Dependent( + IsSpare* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus IsSpare_Set_Dependent( + IsSpare* self, + const RedundancySetRef* 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 IsSpare_Null_Dependent( + IsSpare* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void IsSpare_Clr_Dependent( + IsSpare* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +KINLINE void IsSpare_Set_SpareStatus( + IsSpare* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->SpareStatus; + KUint16_Set(field, x); + } +} + +KINLINE void IsSpare_Null_SpareStatus( + IsSpare* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->SpareStatus; + KUint16_Null(field); + } +} + +KINLINE void IsSpare_Clr_SpareStatus( + IsSpare* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->SpareStatus; + KUint16_Clr(field); + } +} + +typedef enum _IsSpare_SpareStatus_Enum +{ + IsSpare_SpareStatus_Unknown = 0, + IsSpare_SpareStatus_Hot_Standby = 2, + IsSpare_SpareStatus_Cold_Standby = 3, +} +IsSpare_SpareStatus_Enum; + +/* "Unknown" */ +#define IsSpare_Set_SpareStatus_Unknown(SELF) \ + IsSpare_Set_SpareStatus(SELF, 0) + +/* "Hot Standby" */ +#define IsSpare_Set_SpareStatus_Hot_Standby(SELF) \ + IsSpare_Set_SpareStatus(SELF, 2) + +/* "Cold Standby" */ +#define IsSpare_Set_SpareStatus_Cold_Standby(SELF) \ + IsSpare_Set_SpareStatus(SELF, 3) + +KINLINE void IsSpare_Set_FailoverSupported( + IsSpare* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->FailoverSupported; + KUint16_Set(field, x); + } +} + +KINLINE void IsSpare_Null_FailoverSupported( + IsSpare* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->FailoverSupported; + KUint16_Null(field); + } +} + +KINLINE void IsSpare_Clr_FailoverSupported( + IsSpare* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->FailoverSupported; + KUint16_Clr(field); + } +} + +typedef enum _IsSpare_FailoverSupported_Enum +{ + IsSpare_FailoverSupported_Unknown = 0, + IsSpare_FailoverSupported_Automatic = 2, + IsSpare_FailoverSupported_Manual = 3, + IsSpare_FailoverSupported_Both_Manual_and_Automatic = 4, +} +IsSpare_FailoverSupported_Enum; + +/* "Unknown" */ +#define IsSpare_Set_FailoverSupported_Unknown(SELF) \ + IsSpare_Set_FailoverSupported(SELF, 0) + +/* "Automatic" */ +#define IsSpare_Set_FailoverSupported_Automatic(SELF) \ + IsSpare_Set_FailoverSupported(SELF, 2) + +/* "Manual" */ +#define IsSpare_Set_FailoverSupported_Manual(SELF) \ + IsSpare_Set_FailoverSupported(SELF, 3) + +/* "Both Manual and Automatic" */ +#define IsSpare_Set_FailoverSupported_Both_Manual_and_Automatic(SELF) \ + IsSpare_Set_FailoverSupported(SELF, 4) + +/* +**============================================================================== +** +** IsSpare methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus IsSpare_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + IsSpareRef self; + + KReturnIf(IsSpareRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_IsSpare_h */ Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpareProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpareProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/IsSpareProvider.c 2008-07-11 19:29:33 UTC (rev 753) @@ -0,0 +1,180 @@ +#include <konkret/konkret.h> +#include "IsSpare.h" + +static const CMPIBroker* _cb; + +static void IsSpareInitialize() +{ +} + +static CMPIStatus IsSpareCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus IsSpareEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus IsSpareEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus IsSpareGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus IsSpareCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus IsSpareModifyInstance( + 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 IsSpareDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus IsSpareExecQuery( + 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 IsSpareAssociationCleanup( + CMPIAssociationMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus IsSpareAssociators( + 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_FanIsSpare"; + + return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, + resultClass, role, resultRole, properties); +} + +static CMPIStatus IsSpareAssociatorNames( + 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_FanIsSpare"; + + return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, + assocClass, resultClass, role, resultRole); +} + +static CMPIStatus IsSpareReferences( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_FanIsSpare"; + + return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, + role, properties); +} + +static CMPIStatus IsSpareReferenceNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role) +{ + if (!assocClass) + assocClass = "Linux_FanIsSpare"; + + return KDefaultReferenceNames( + _cb, mi, cc, cr, cop, assocClass, role); +} + +CMInstanceMIStub( + IsSpare, + IsSpare, + _cb, + IsSpareInitialize()) + +CMAssociationMIStub( + IsSpare, + IsSpare, + _cb, + IsSpareInitialize()) + +KONKRET_REGISTRATION( + "root/cimv2", + "Linux_FanIsSpare", + "IsSpare", + "instance association"); Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-11 06:13:42 UTC (rev 752) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-11 19:29:33 UTC (rev 753) @@ -8,6 +8,7 @@ liblinux_fanprovider_la_SOURCES = \ CIM_ConcreteJob.h \ CIM_LogicalDevice.h \ + CIM_ManagedElement.h \ CIM_RegisteredProfile.h \ CIM_System.h \ ComputerSystem.h \ @@ -15,6 +16,10 @@ ElementConformsToProfileProvider.c \ Fan.h \ FanProvider.c \ + IsSpare.h \ + IsSpareProvider.c \ + RedundancySet.h \ + RedundancySetProvider.c \ ReferencedProfile.h \ ReferencedProfileProvider.c \ RegisteredProfile.h \ Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RedundancySet.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RedundancySet.h (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RedundancySet.h 2008-07-11 19:29:33 UTC (rev 753) @@ -0,0 +1,1043 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_RedundancySet_h +#define _konkrete_RedundancySet_h + +#include <konkret/konkret.h> +#include "CIM_ManagedElement.h" + +/* +**============================================================================== +** +** struct RedundancySetRef +** +**============================================================================== +*/ + +/* classname=Linux_FanRedundancySet */ +typedef struct _RedundancySetRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_Collection features */ + /* CIM_SystemSpecificCollection features */ + const KString InstanceID; + /* CIM_RedundancySet features */ + /* Linux_FanRedundancySet features */ +} +RedundancySetRef; + +static const unsigned char __RedundancySetRef_sig[] = +{ + 0x16,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x52,0x65,0x64,0x75,0x6e, + 0x64,0x61,0x6e,0x63,0x79,0x53,0x65,0x74,0x00,0x01,0x4c,0x0a,0x49,0x6e,0x73, + 0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00, +}; + +KINLINE void RedundancySetRef_Init( + RedundancySetRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __RedundancySetRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus RedundancySetRef_InitFromInstance( + RedundancySetRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + RedundancySetRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus RedundancySetRef_InitFromObjectPath( + RedundancySetRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + RedundancySetRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void RedundancySetRef_Print( + const RedundancySetRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* RedundancySetRef_ToInstance( + const RedundancySetRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* RedundancySetRef_ToObjectPath( + const RedundancySetRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* RedundancySetRef_NameSpace( + RedundancySetRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void RedundancySetRef_SetString_InstanceID( + RedundancySetRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void RedundancySetRef_Set_InstanceID( + RedundancySetRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RedundancySetRef_Null_InstanceID( + RedundancySetRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void RedundancySetRef_Clr_InstanceID( + RedundancySetRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct RedundancySet +** +**============================================================================== +*/ + +/* classname=Linux_FanRedundancySet */ +typedef struct _RedundancySet +{ + KBase __base; + /* CIM_ManagedElement features */ + const KString Caption; + const KString Description; + const KString ElementName; + /* CIM_Collection features */ + /* CIM_SystemSpecificCollection features */ + const KString InstanceID; + /* CIM_RedundancySet features */ + const KUint16 RedundancyStatus; + const KUint16A TypeOfSet; + const KUint32 MinNumberNeeded; + const KUint32 MaxNumberSupported; + const KString VendorIdentifyingInfo; + const KStringA OtherTypeOfSet; + const KUint16 LoadBalanceAlgorithm; + const KString OtherLoadBalanceAlgorithm; + /* Linux_FanRedundancySet features */ +} +RedundancySet; + +static const unsigned char __RedundancySet_sig[] = +{ + 0x16,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x52,0x65,0x64,0x75,0x6e, + 0x64,0x61,0x6e,0x63,0x79,0x53,0x65,0x74,0x00,0x0c,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,0x03,0x10,0x52,0x65,0x64,0x75,0x6e,0x64,0x61,0x6e,0x63,0x79,0x53,0x74, + 0x61,0x74,0x75,0x73,0x00,0x83,0x09,0x54,0x79,0x70,0x65,0x4f,0x66,0x53,0x65, + 0x74,0x00,0x05,0x0f,0x4d,0x69,0x6e,0x4e,0x75,0x6d,0x62,0x65,0x72,0x4e,0x65, + 0x65,0x64,0x65,0x64,0x00,0x05,0x12,0x4d,0x61,0x78,0x4e,0x75,0x6d,0x62,0x65, + 0x72,0x53,0x75,0x70,0x70,0x6f,0x72,0x74,0x65,0x64,0x00,0x0c,0x15,0x56,0x65, + 0x6e,0x64,0x6f,0x72,0x49,0x64,0x65,0x6e,0x74,0x69,0x66,0x79,0x69,0x6e,0x67, + 0x49,0x6e,0x66,0x6f,0x00,0x8c,0x0e,0x4f,0x74,0x68,0x65,0x72,0x54,0x79,0x70, + 0x65,0x4f,0x66,0x53,0x65,0x74,0x00,0x03,0x14,0x4c,0x6f,0x61,0x64,0x42,0x61, + 0x6c,0x61,0x6e,0x63,0x65,0x41,0x6c,0x67,0x6f,0x72,0x69,0x74,0x68,0x6d,0x00, + 0x0c,0x19,0x4f,0x74,0x68,0x65,0x72,0x4c,0x6f,0x61,0x64,0x42,0x61,0x6c,0x61, + 0x6e,0x63,0x65,0x41,0x6c,0x67,0x6f,0x72,0x69,0x74,0x68,0x6d,0x00, +}; + +KINLINE void RedundancySet_Init( + RedundancySet* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __RedundancySet_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus RedundancySet_InitFromInstance( + RedundancySet* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + RedundancySet_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus RedundancySet_InitFromObjectPath( + RedundancySet* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + RedundancySet_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void RedundancySet_Print( + const RedundancySet* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* RedundancySet_ToInstance( + const RedundancySet* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* RedundancySet_ToObjectPath( + const RedundancySet* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* RedundancySet_NameSpace( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void RedundancySet_SetString_Caption( + RedundancySet* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void RedundancySet_Set_Caption( + RedundancySet* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RedundancySet_Null_Caption( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void RedundancySet_Clr_Caption( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void RedundancySet_SetString_Description( + RedundancySet* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void RedundancySet_Set_Description( + RedundancySet* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RedundancySet_Null_Description( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void RedundancySet_Clr_Description( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void RedundancySet_SetString_ElementName( + RedundancySet* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void RedundancySet_Set_ElementName( + RedundancySet* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RedundancySet_Null_ElementName( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void RedundancySet_Clr_ElementName( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void RedundancySet_SetString_InstanceID( + RedundancySet* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void RedundancySet_Set_InstanceID( + RedundancySet* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RedundancySet_Null_InstanceID( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void RedundancySet_Clr_InstanceID( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +KINLINE void RedundancySet_Set_RedundancyStatus( + RedundancySet* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RedundancyStatus; + KUint16_Set(field, x); + } +} + +KINLINE void RedundancySet_Null_RedundancyStatus( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RedundancyStatus; + KUint16_Null(field); + } +} + +KINLINE void RedundancySet_Clr_RedundancyStatus( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RedundancyStatus; + KUint16_Clr(field); + } +} + +typedef enum _RedundancySet_RedundancyStatus_Enum +{ + RedundancySet_RedundancyStatus_Unknown = 0, + RedundancySet_RedundancyStatus_DMTF_Reserved = 1, + RedundancySet_RedundancyStatus_Fully_Redundant = 2, + RedundancySet_RedundancyStatus_Degraded_Redundancy = 3, + RedundancySet_RedundancyStatus_Redundancy_Lost = 4, + RedundancySet_RedundancyStatus_Overall_Failure = 5, +} +RedundancySet_RedundancyStatus_Enum; + +/* "Unknown" */ +#define RedundancySet_Set_RedundancyStatus_Unknown(SELF) \ + RedundancySet_Set_RedundancyStatus(SELF, 0) + +/* "DMTF Reserved" */ +#define RedundancySet_Set_RedundancyStatus_DMTF_Reserved(SELF) \ + RedundancySet_Set_RedundancyStatus(SELF, 1) + +/* "Fully Redundant" */ +#define RedundancySet_Set_RedundancyStatus_Fully_Redundant(SELF) \ + RedundancySet_Set_RedundancyStatus(SELF, 2) + +/* "Degraded Redundancy" */ +#define RedundancySet_Set_RedundancyStatus_Degraded_Redundancy(SELF) \ + RedundancySet_Set_RedundancyStatus(SELF, 3) + +/* "Redundancy Lost" */ +#define RedundancySet_Set_RedundancyStatus_Redundancy_Lost(SELF) \ + RedundancySet_Set_RedundancyStatus(SELF, 4) + +/* "Overall Failure" */ +#define RedundancySet_Set_RedundancyStatus_Overall_Failure(SELF) \ + RedundancySet_Set_RedundancyStatus(SELF, 5) + +KINLINE CMPIBoolean RedundancySet_Init_TypeOfSet( + RedundancySet* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->TypeOfSet; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void RedundancySet_InitNull_TypeOfSet( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->TypeOfSet; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean RedundancySet_Set_TypeOfSet( + RedundancySet* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->TypeOfSet; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 RedundancySet_Get_TypeOfSet( + RedundancySet* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->TypeOfSet; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean RedundancySet_Null_TypeOfSet( + RedundancySet* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->TypeOfSet; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void RedundancySet_Clr_TypeOfSet( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->TypeOfSet; + KUint16A_Clr(field); + } +} + +typedef enum _RedundancySet_TypeOfSet_Enum +{ + RedundancySet_TypeOfSet_Unknown = 0, + RedundancySet_TypeOfSet_Other = 1, + RedundancySet_TypeOfSet_N_1 = 2, + RedundancySet_TypeOfSet_Load_Balanced = 3, + RedundancySet_TypeOfSet_Sparing = 4, + RedundancySet_TypeOfSet_Limited_Sparing = 5, + RedundancySet_TypeOfSet_DMTF_Reserved = 0, + RedundancySet_TypeOfSet_Vendor_Reserved = 0, +} +RedundancySet_TypeOfSet_Enum; + +/* "Unknown" */ +#define RedundancySet_Set_TypeOfSet_Unknown(SELF, INDEX)\ + RedundancySet_Set_TypeOfSet(SELF, INDEX, 0) + +/* "Other" */ +#define RedundancySet_Set_TypeOfSet_Other(SELF, INDEX)\ + RedundancySet_Set_TypeOfSet(SELF, INDEX, 1) + +/* "N+1" */ +#define RedundancySet_Set_TypeOfSet_N_1(SELF, INDEX)\ + RedundancySet_Set_TypeOfSet(SELF, INDEX, 2) + +/* "Load Balanced" */ +#define RedundancySet_Set_TypeOfSet_Load_Balanced(SELF, INDEX)\ + RedundancySet_Set_TypeOfSet(SELF, INDEX, 3) + +/* "Sparing" */ +#define RedundancySet_Set_TypeOfSet_Sparing(SELF, INDEX)\ + RedundancySet_Set_TypeOfSet(SELF, INDEX, 4) + +/* "Limited Sparing" */ +#define RedundancySet_Set_TypeOfSet_Limited_Sparing(SELF, INDEX)\ + RedundancySet_Set_TypeOfSet(SELF, INDEX, 5) + +/* "DMTF Reserved" */ +#define RedundancySet_Set_TypeOfSet_DMTF_Reserved(SELF, INDEX)\ + RedundancySet_Set_TypeOfSet(SELF, INDEX, 0) + +/* "Vendor Reserved" */ +#define RedundancySet_Set_TypeOfSet_Vendor_Reserved(SELF, INDEX)\ + RedundancySet_Set_TypeOfSet(SELF, INDEX, 0) + +KINLINE void RedundancySet_Set_MinNumberNeeded( + RedundancySet* self, + CMPIUint32 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->MinNumberNeeded; + KUint32_Set(field, x); + } +} + +KINLINE void RedundancySet_Null_MinNumberNeeded( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->MinNumberNeeded; + KUint32_Null(field); + } +} + +KINLINE void RedundancySet_Clr_MinNumberNeeded( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->MinNumberNeeded; + KUint32_Clr(field); + } +} + +KINLINE void RedundancySet_Set_MaxNumberSupported( + RedundancySet* self, + CMPIUint32 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->MaxNumberSupported; + KUint32_Set(field, x); + } +} + +KINLINE void RedundancySet_Null_MaxNumberSupported( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->MaxNumberSupported; + KUint32_Null(field); + } +} + +KINLINE void RedundancySet_Clr_MaxNumberSupported( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->MaxNumberSupported; + KUint32_Clr(field); + } +} + +KINLINE void RedundancySet_SetString_VendorIdentifyingInfo( + RedundancySet* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->VendorIdentifyingInfo; + KString_SetString(field, x); + } +} + +KINLINE void RedundancySet_Set_VendorIdentifyingInfo( + RedundancySet* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->VendorIdentifyingInfo; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RedundancySet_Null_VendorIdentifyingInfo( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->VendorIdentifyingInfo; + KString_Null(field); + } +} + +KINLINE void RedundancySet_Clr_VendorIdentifyingInfo( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->VendorIdentifyingInfo; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean RedundancySet_Init_OtherTypeOfSet( + RedundancySet* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherTypeOfSet; + return KStringA_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void RedundancySet_InitNull_OtherTypeOfSet( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherTypeOfSet; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean RedundancySet_SetString_OtherTypeOfSet( + RedundancySet* self, + CMPICount i, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherTypeOfSet; + return KStringA_SetString(field, i, x); + } + return 0; +} + +KINLINE CMPIBoolean RedundancySet_Set_OtherTypeOfSet( + RedundancySet* self, + CMPICount i, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherTypeOfSet; + return KStringA_Set(field, self->__base.cb, i, s); + } + return 0; +} + +KINLINE KString RedundancySet_GetString_OtherTypeOfSet( + RedundancySet* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherTypeOfSet; + return KStringA_GetString(field, i); + } + return KStringA_GetString(NULL, 0); +} + +KINLINE const char* RedundancySet_Get_OtherTypeOfSet( + RedundancySet* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherTypeOfSet; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean RedundancySet_Null_OtherTypeOfSet( + RedundancySet* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherTypeOfSet; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void RedundancySet_Clr_OtherTypeOfSet( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->OtherTypeOfSet; + KStringA_Clr(field); + } +} + +KINLINE void RedundancySet_Set_LoadBalanceAlgorithm( + RedundancySet* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->LoadBalanceAlgorithm; + KUint16_Set(field, x); + } +} + +KINLINE void RedundancySet_Null_LoadBalanceAlgorithm( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->LoadBalanceAlgorithm; + KUint16_Null(field); + } +} + +KINLINE void RedundancySet_Clr_LoadBalanceAlgorithm( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->LoadBalanceAlgorithm; + KUint16_Clr(field); + } +} + +typedef enum _RedundancySet_LoadBalanceAlgorithm_Enum +{ + RedundancySet_LoadBalanceAlgorithm_Unknown = 0, + RedundancySet_LoadBalanceAlgorithm_Other = 1, + RedundancySet_LoadBalanceAlgorithm_No_Load_Balancing = 2, + RedundancySet_LoadBalanceAlgorithm_Round_Robin = 3, + RedundancySet_LoadBalanceAlgorithm_Least_Blocks = 4, + RedundancySet_LoadBalanceAlgorithm_Least_IO = 5, + RedundancySet_LoadBalanceAlgorithm_Address_Region = 6, + RedundancySet_LoadBalanceAlgorithm_Product_Specific = 7, +} +RedundancySet_LoadBalanceAlgorithm_Enum; + +/* "Unknown" */ +#define RedundancySet_Set_LoadBalanceAlgorithm_Unknown(SELF) \ + RedundancySet_Set_LoadBalanceAlgorithm(SELF, 0) + +/* "Other" */ +#define RedundancySet_Set_LoadBalanceAlgorithm_Other(SELF) \ + RedundancySet_Set_LoadBalanceAlgorithm(SELF, 1) + +/* "No Load Balancing" */ +#define RedundancySet_Set_LoadBalanceAlgorithm_No_Load_Balancing(SELF) \ + RedundancySet_Set_LoadBalanceAlgorithm(SELF, 2) + +/* "Round Robin" */ +#define RedundancySet_Set_LoadBalanceAlgorithm_Round_Robin(SELF) \ + RedundancySet_Set_LoadBalanceAlgorithm(SELF, 3) + +/* "Least Blocks" */ +#define RedundancySet_Set_LoadBalanceAlgorithm_Least_Blocks(SELF) \ + RedundancySet_Set_LoadBalanceAlgorithm(SELF, 4) + +/* "Least IO" */ +#define RedundancySet_Set_LoadBalanceAlgorithm_Least_IO(SELF) \ + RedundancySet_Set_LoadBalanceAlgorithm(SELF, 5) + +/* "Address Region" */ +#define RedundancySet_Set_LoadBalanceAlgorithm_Address_Region(SELF) \ + RedundancySet_Set_LoadBalanceAlgorithm(SELF, 6) + +/* "Product Specific" */ +#define RedundancySet_Set_LoadBalanceAlgorithm_Product_Specific(SELF) \ + RedundancySet_Set_LoadBalanceAlgorithm(SELF, 7) + +KINLINE void RedundancySet_SetString_OtherLoadBalanceAlgorithm( + RedundancySet* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherLoadBalanceAlgorithm; + KString_SetString(field, x); + } +} + +KINLINE void RedundancySet_Set_OtherLoadBalanceAlgorithm( + RedundancySet* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherLoadBalanceAlgorithm; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RedundancySet_Null_OtherLoadBalanceAlgorithm( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherLoadBalanceAlgorithm; + KString_Null(field); + } +} + +KINLINE void RedundancySet_Clr_OtherLoadBalanceAlgorithm( + RedundancySet* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherLoadBalanceAlgorithm; + KString_Clr(field); + } +} + +/* classname=Linux_FanRedundancySet */ +typedef struct _RedundancySet_Failover_Args +{ + KBase __base; + /* IN */ + KRef FailoverFrom; /* CIM_ManagedElement */ + /* IN */ + KRef FailoverTo; /* CIM_ManagedElement */ +} +RedundancySet_Failover_Args; + +static const unsigned char __RedundancySet_Failover_Args_sig[] = +{ + 0x08,0x46,0x61,0x69,0x6c,0x6f,0x76,0x65,0x72,0x00,0x02,0x2e,0x0c,0x46,0x61, + 0x69,0x6c,0x6f,0x76,0x65,0x72,0x46,0x72,0x6f,0x6d,0x00,0x2e,0x0a,0x46,0x61, + 0x69,0x6c,0x6f,0x76,0x65,0x72,0x54,0x6f,0x00, +}; + +KINLINE void RedundancySet_Failover_Args_Init( + RedundancySet_Failover_Args* self, + const CMPIBroker* cb) +{ + const unsigned char* sig = __RedundancySet_Failover_Args_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, NULL); + self->FailoverFrom.__sig = __CIM_ManagedElement_sig; + self->FailoverTo.__sig = __CIM_ManagedElement_sig; +} + +KINLINE CMPIStatus RedundancySet_Failover_Args_InitFromArgs( + RedundancySet_Failover_Args* self, + const CMPIBroker* cb, + const CMPIArgs* x, + CMPIBoolean in, + CMPIBoolean out) +{ + RedundancySet_Failover_Args_Init(self, cb); + return KBase_FromArgs(&self->__base, x, in, out); +} + +KINLINE CMPIArgs* RedundancySet_Failover_Args_ToArgs( + const RedundancySet_Failover_Args* self, + CMPIBoolean in, + CMPIBoolean out, + CMPIStatus* status) +{ + return KBase_ToArgs(&self->__base, in, out, status); +} + +KINLINE CMPIStatus RedundancySet_Failover_Args_SetArgs( + const RedundancySet_Failover_Args* self, + CMPIBoolean in, + CMPIBoolean out, + CMPIArgs* ca) +{ + return KBase_SetToArgs(&self->__base, in, out, ca); +} + +KINLINE void RedundancySet_Failover_Args_Print( + const RedundancySet_Failover_Args* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'a'); +} + +/* +**============================================================================== +** +** RedundancySet methods +** +**============================================================================== +*/ + +KEXTERN KUint32 RedundancySet_Failover( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const RedundancySetRef* self, + const KRef* FailoverFrom, + const KRef* FailoverTo, + CMPIStatus* status); + +KINLINE CMPIStatus RedundancySet_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + RedundancySetRef self; + + KReturnIf(RedundancySetRef_InitFromObjectPath(&self, cb, cop)); + + if (strcasecmp(meth, "Failover") == 0) + { + CMPIStatus st = KSTATUS_INIT; + RedundancySet_Failover_Args args; + KUint32 r; + + KReturnIf(RedundancySet_Failover_Args_InitFromArgs( + &args, cb, in, 1, 0)); + + r = RedundancySet_Failover( + cb, + mi, + cc, + &self, + &args.FailoverFrom, + &args.FailoverTo, + &st); + + if (!KOkay(st)) + return st; + + if (!r.exists) + KReturn(ERR_FAILED); + + KReturnIf(RedundancySet_Failover_Args_SetArgs( + &args, 0, 1, out)); + KReturnUint32Data(cr, &r); + CMReturnDone(cr); + + KReturn(OK); + } + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_RedundancySet_h */ Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RedundancySetProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RedundancySetProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RedundancySetProvider.c 2008-07-11 19:29:33 UTC (rev 753) @@ -0,0 +1,190 @@ +#include <konkret/konkret.h> +#include "RedundancySet.h" +#include "Resource.h" + +static const CMPIBroker* _cb = NULL; + +static void RedundancySetInitialize() +{ +} + +static CMPIStatus RedundancySetCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus RedundancySetEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus RedundancySetEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + const char* ns = KNameSpace(cop); + struct RedundancyInfo* data; + size_t size; + size_t i; + size_t j; + + /* Get redundancy resource data */ + if (GetRedundancyInfo(&data, &size) != 0) + KReturn2(_cb, ERR_FAILED, "failed to access fan resource"); + + /* For each redundancy */ + for (i = 0; i < size; i++) + { + RedundancySet x; + + /* Skip if this redundancy element has same id as last */ + + if (i && strcmp(data[i].instanceID, data[i-1].instanceID) == 0) + continue; + + RedundancySet_Init(&x, _cb, ns); + + /* Linux_FanRedundancySet.InstanceID */ + RedundancySet_Set_InstanceID(&x, data[i].instanceID); + + /* Linux_FanRedundancySet.InstanceID */ + RedundancySet_Set_InstanceID(&x, data[i].instanceID); + + /* Linux_FanRedundancySet.RedundancyStatus */ + RedundancySet_Set_RedundancyStatus(&x, data[i].redundancyStatus); + + /* Linux_FanRedundancySet.TypeOfSet */ + RedundancySet_Init_TypeOfSet(&x, data[i].typeOfSetSize); + + for (j = 0; j < data[i].typeOfSetSize; j++) + RedundancySet_Set_TypeOfSet(&x, j, data[i].typeOfSet[j]); + + ... [truncated message content] |
From: <np...@us...> - 2008-07-11 06:13:33
|
Revision: 752 http://omc.svn.sourceforge.net/omc/?rev=752&view=rev Author: npaxton Date: 2008-07-10 23:13:42 -0700 (Thu, 10 Jul 2008) Log Message: ----------- refactor new libsblim-cmpiutil name Modified Paths: -------------- sblim-cmpi-base-plus/trunk/src/providers/logical-file/Makefile.am Modified: sblim-cmpi-base-plus/trunk/src/providers/logical-file/Makefile.am =================================================================== --- sblim-cmpi-base-plus/trunk/src/providers/logical-file/Makefile.am 2008-07-10 23:31:48 UTC (rev 751) +++ sblim-cmpi-base-plus/trunk/src/providers/logical-file/Makefile.am 2008-07-11 06:13:42 UTC (rev 752) @@ -36,7 +36,7 @@ schema/libcmpi_LinuxFileSchema.la libcmpi_LinuxFilesCommon_la_LDFLAGS = \ - -lsblim_cmpiutil + -lsblim-cmpiutil INCLUDES = -I${srcdir}/schema -I${top_srcdir}/src/include -I${top_srcdir} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-10 23:31:38
|
Revision: 751 http://omc.svn.sourceforge.net/omc/?rev=751&view=rev Author: mike-brasher Date: 2008-07-10 16:31:48 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Added missing header dependency. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-10 23:30:00 UTC (rev 750) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-10 23:31:48 UTC (rev 751) @@ -3,10 +3,8 @@ providerdir = $(libdir)/cmpi liblinux_ethportprovider_la_SOURCES = \ - CIM_Capabilities.h \ CIM_ConcreteJob.h \ - CIM_LogicalDevice.h \ - CIM_ManagedElement.h \ + CIM_RegisteredProfile.h \ CIM_ServiceAccessPoint.h \ CIM_System.h \ common.c \ @@ -32,7 +30,6 @@ LANEndpointProvider.c \ ReferencedProfile.h \ ReferencedProfileProvider.c \ - RegisteredProfileComputerSystem.h \ RegisteredProfile.h \ RegisteredProfileProvider.c \ Resource.c \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-10 23:29:50
|
Revision: 750 http://omc.svn.sourceforge.net/omc/?rev=750&view=rev Author: mike-brasher Date: 2008-07-10 16:30:00 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Fixed errors in mof files. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.registration cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/register.sh Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.registration 2008-07-10 23:24:23 UTC (rev 749) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.registration 2008-07-10 23:30:00 UTC (rev 750) @@ -1,13 +1,12 @@ -# Classname Namespace ProviderName ProviderModule ProviderTypes ... -Linux_EthernetPort root/cimv2 EthernetPort linux_ethportprovider instance -Linux_LANEndpoint root/cimv2 LANEndpoint linux_ethportprovider instance -Linux_DeviceSAPImplementationEthernetPort root/cimv2 DeviceSAPImplementation linux_ethportprovider association -Linux_HostedAccessPointEthernetPort root/cimv2 HostedAccessPoint linux_ethportprovider instance association -Linux_SystemDeviceEthernetPort root/cimv2 SystemDevice linux_ethportprovider instance association -Linux_ElementCapabilitiesEthernetPort root/cimv2 ElementCapabilities linux_ethportprovider instance association -Linux_EnabledLogicalElementCapabilitiesEthernetPort root/cimv2 EnabledLogicalElementCapabilities linux_ethportprovider instance +Linux_DeviceSAPImplementationEthernetPort root/cimv2 DeviceSAPImplementation linux_ethportprovider instance association Linux_ElementCapabilitiesLANEndpoint root/cimv2 ElementCapabilitiesLANEndpoint linux_ethportprovider instance association -Linux_EnabledLogicalElementCapabilitiesLANEndpoint root/cimv2 EnabledLogicalElementCapabilitiesLANEndpoint linux_ethportprovider instance -Linux_RegisteredProfileEthernetPort root/interop RegisteredProfile linux_ethportprovider instance -Linux_ReferencedProfileEthernetPort root/interop ReferencedProfile linux_ethportprovider instance association +Linux_ElementCapabilitiesEthernetPort root/cimv2 ElementCapabilities linux_ethportprovider instance association Linux_ElementConformsToProfileEthernetPort root/interop ElementConformsToProfile linux_ethportprovider instance association +Linux_EnabledLogicalElementCapabilitiesLANEndpoint root/cimv2 EnabledLogicalElementCapabilitiesLANEndpoint linux_ethportprovider instance method +Linux_EnabledLogicalElementCapabilitiesEthernetPort root/cimv2 EnabledLogicalElementCapabilities linux_ethportprovider instance method +Linux_EthernetPort root/cimv2 EthernetPort linux_ethportprovider instance method +Linux_HostedAccessPointEthernetPort root/cimv2 HostedAccessPoint linux_ethportprovider instance association +Linux_LANEndpoint root/cimv2 LANEndpoint linux_ethportprovider instance method +Linux_ReferencedProfileEthernetPort root/interop ReferencedProfile linux_ethportprovider instance association +Linux_RegisteredProfileEthernetPort root/interop RegisteredProfile linux_ethportprovider instance method +Linux_SystemDeviceEthernetPort root/cimv2 SystemDevice linux_ethportprovider instance association Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/register.sh 2008-07-10 23:24:23 UTC (rev 749) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/register.sh 2008-07-10 23:30:00 UTC (rev 750) @@ -1,6 +1,6 @@ #!/bin/sh BASE=linux-ethernet-port-profile -TARGET= ../src/.libs/liblinux_ethportprovider.so +TARGET=../src/.libs/liblinux_ethportprovider.so konkretreg $TARGET > $BASE.registration provider-register.sh -r $BASE.registration -m $BASE.mof cp $BASE-interop.mof /usr/var/lib/sfcb/stage/mofs/root/interop This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-10 23:24:13
|
Revision: 749 http://omc.svn.sourceforge.net/omc/?rev=749&view=rev Author: mike-brasher Date: 2008-07-10 16:24:23 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Removed dummy intermediate "Linux_" classes for many classes. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementation.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilities.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfile.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilities.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfile.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfile.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDevice.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/linux-ethernet-port-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_RegisteredProfile.h Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_Capabilities.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_LogicalDevice.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ManagedElement.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileComputerSystem.h Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof 2008-07-10 23:03:14 UTC (rev 748) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof 2008-07-10 23:24:23 UTC (rev 749) @@ -1,54 +1,19 @@ -//============================================================================== -// -// These should be relocated to cmpi-base: -// -//============================================================================== -class Linux_RegisteredProfile : CIM_RegisteredProfile +class Linux_RegisteredProfileEthernetPort : CIM_RegisteredProfile { }; [Association] -class Linux_ElementConformsToProfile : CIM_ElementConformsToProfile +class Linux_ElementConformsToProfileEthernetPort : CIM_ElementConformsToProfile { -}; - -[Association] -class Linux_ReferencedProfile : CIM_ReferencedProfile -{ -}; - -//============================================================================== -// -// This should be relocated "Base Server" profile. -// -//============================================================================== - -class Linux_RegisteredProfileComputerSystem : Linux_RegisteredProfile -{ -}; - -//============================================================================== -// -// Ethernet Port Profile Registration Related Classes -// -//============================================================================== - -class Linux_RegisteredProfileEthernetPort : Linux_RegisteredProfile -{ -}; - -[Association] -class Linux_ElementConformsToProfileEthernetPort : Linux_ElementConformsToProfile -{ [Key] Linux_RegisteredProfileEthernetPort REF ConformantStandard; [Key] Linux_EthernetPort REF ManagedElement; }; [Association] -class Linux_ReferencedProfileEthernetPort : Linux_ReferencedProfile +class Linux_ReferencedProfileEthernetPort : CIM_ReferencedProfile { - [Key] Linux_RegisteredProfileComputerSystem REF Antecedent; + [Key] CIM_RegisteredProfile REF Antecedent; [Key] Linux_RegisteredProfileEthernetPort REF Dependent; }; Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.mof 2008-07-10 23:03:14 UTC (rev 748) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.mof 2008-07-10 23:24:23 UTC (rev 749) @@ -1,31 +1,6 @@ -[Association] -class Linux_DeviceSAPImplementation : CIM_DeviceSAPImplementation -{ -}; - -[Association] -class Linux_HostedAccessPoint : CIM_HostedAccessPoint -{ -}; - -[Association] -class Linux_SystemDevice : CIM_SystemDevice -{ -}; - -[Association] -class Linux_ElementCapabilities : CIM_ElementCapabilities -{ -}; - -class Linux_EnabledLogicalElementCapabilities : - CIM_EnabledLogicalElementCapabilities -{ -}; - //============================================================================== // -// Ethernet port profile classes +// Ethernet port profile // //============================================================================== @@ -38,43 +13,43 @@ }; [Association] -class Linux_DeviceSAPImplementationEthernetPort : Linux_DeviceSAPImplementation +class Linux_DeviceSAPImplementationEthernetPort : CIM_DeviceSAPImplementation { Linux_EthernetPort REF Antecedent; Linux_LANEndpoint REF Dependent; }; [Association] -class Linux_SystemDeviceEthernetPort : Linux_SystemDevice +class Linux_SystemDeviceEthernetPort : CIM_SystemDevice { [Key] Linux_ComputerSystem REF GroupComponent; [Key] Linux_EthernetPort REF PartComponent; }; [Association] -class Linux_HostedAccessPointEthernetPort : Linux_HostedAccessPoint +class Linux_HostedAccessPointEthernetPort : CIM_HostedAccessPoint { }; class Linux_EnabledLogicalElementCapabilitiesEthernetPort : - Linux_EnabledLogicalElementCapabilities + CIM_EnabledLogicalElementCapabilities { }; [Association] -class Linux_ElementCapabilitiesEthernetPort : Linux_ElementCapabilities +class Linux_ElementCapabilitiesEthernetPort : CIM_ElementCapabilities { [Key] Linux_EthernetPort REF ManagedElement; [Key] Linux_EnabledLogicalElementCapabilitiesEthernetPort REF Capabilities; }; class Linux_EnabledLogicalElementCapabilitiesLANEndpoint : - Linux_EnabledLogicalElementCapabilities + CIM_EnabledLogicalElementCapabilities { }; [Association] -class Linux_ElementCapabilitiesLANEndpoint : Linux_ElementCapabilities +class Linux_ElementCapabilitiesLANEndpoint : CIM_ElementCapabilities { [Key] Linux_LANEndpoint REF ManagedElement; [Key] Linux_EnabledLogicalElementCapabilitiesLANEndpoint REF Capabilities; Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_Capabilities.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_Capabilities.h 2008-07-10 23:03:14 UTC (rev 748) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_Capabilities.h 2008-07-10 23:24:23 UTC (rev 749) @@ -1,417 +0,0 @@ -/* -**============================================================================== -** -** CAUTION: This file generated by KonkretCMPI. Please do not edit. -** -**============================================================================== -*/ - -#ifndef _konkrete_CIM_Capabilities_h -#define _konkrete_CIM_Capabilities_h - -#include <konkret/konkret.h> - -/* -**============================================================================== -** -** struct CIM_CapabilitiesRef -** -**============================================================================== -*/ - -/* classname=CIM_Capabilities */ -typedef struct _CIM_CapabilitiesRef -{ - KBase __base; - /* CIM_ManagedElement features */ - /* CIM_Capabilities features */ - const KString InstanceID; -} -CIM_CapabilitiesRef; - -static const unsigned char __CIM_CapabilitiesRef_sig[] = -{ - 0x10,0x43,0x49,0x4d,0x5f,0x43,0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x69, - 0x65,0x73,0x00,0x01,0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49, - 0x44,0x00, -}; - -KINLINE void CIM_CapabilitiesRef_Init( - CIM_CapabilitiesRef* self, - const CMPIBroker* cb, - const char* ns) -{ - const unsigned char* sig = __CIM_CapabilitiesRef_sig; - KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); -} - -KINLINE CMPIStatus CIM_CapabilitiesRef_InitFromInstance( - CIM_CapabilitiesRef* self, - const CMPIBroker* cb, - const CMPIInstance* x) -{ - CIM_CapabilitiesRef_Init(self, cb, NULL); - return KBase_FromInstance(&self->__base, x); -} - -KINLINE CMPIStatus CIM_CapabilitiesRef_InitFromObjectPath( - CIM_CapabilitiesRef* self, - const CMPIBroker* cb, - const CMPIObjectPath* x) -{ - CIM_CapabilitiesRef_Init(self, cb, NULL); - return KBase_FromObjectPath(&self->__base, x); -} - -KINLINE void CIM_CapabilitiesRef_Print( - const CIM_CapabilitiesRef* self, - FILE* os) -{ - KBase_Print(os, &self->__base, 'r'); -} - -KINLINE CMPIInstance* CIM_CapabilitiesRef_ToInstance( - const CIM_CapabilitiesRef* self, - CMPIStatus* status) -{ - return KBase_ToInstance(&self->__base, status); -} - -KINLINE CMPIObjectPath* CIM_CapabilitiesRef_ToObjectPath( - const CIM_CapabilitiesRef* self, - CMPIStatus* status) -{ - return KBase_ToObjectPath(&self->__base, status); -} - -KINLINE const char* CIM_CapabilitiesRef_NameSpace( - CIM_CapabilitiesRef* self) -{ - if (self && self->__base.magic == KMAGIC) - return self->__base.ns ? KChars(self->__base.ns) : NULL; - return NULL; -} - -KINLINE void CIM_CapabilitiesRef_SetString_InstanceID( - CIM_CapabilitiesRef* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->InstanceID; - KString_SetString(field, x); - } -} - -KINLINE void CIM_CapabilitiesRef_Set_InstanceID( - CIM_CapabilitiesRef* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->InstanceID; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_CapabilitiesRef_Null_InstanceID( - CIM_CapabilitiesRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->InstanceID; - KString_Null(field); - } -} - -KINLINE void CIM_CapabilitiesRef_Clr_InstanceID( - CIM_CapabilitiesRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->InstanceID; - KString_Clr(field); - } -} - -/* -**============================================================================== -** -** struct CIM_Capabilities -** -**============================================================================== -*/ - -/* classname=CIM_Capabilities */ -typedef struct _CIM_Capabilities -{ - KBase __base; - /* CIM_ManagedElement features */ - const KString Caption; - const KString Description; - const KString ElementName; - /* CIM_Capabilities features */ - const KString InstanceID; -} -CIM_Capabilities; - -static const unsigned char __CIM_Capabilities_sig[] = -{ - 0x10,0x43,0x49,0x4d,0x5f,0x43,0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x69, - 0x65,0x73,0x00,0x04,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, -}; - -KINLINE void CIM_Capabilities_Init( - CIM_Capabilities* self, - const CMPIBroker* cb, - const char* ns) -{ - const unsigned char* sig = __CIM_Capabilities_sig; - KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); -} - -KINLINE CMPIStatus CIM_Capabilities_InitFromInstance( - CIM_Capabilities* self, - const CMPIBroker* cb, - const CMPIInstance* x) -{ - CIM_Capabilities_Init(self, cb, NULL); - return KBase_FromInstance(&self->__base, x); -} - -KINLINE CMPIStatus CIM_Capabilities_InitFromObjectPath( - CIM_Capabilities* self, - const CMPIBroker* cb, - const CMPIObjectPath* x) -{ - CIM_Capabilities_Init(self, cb, NULL); - return KBase_FromObjectPath(&self->__base, x); -} - -KINLINE void CIM_Capabilities_Print( - const CIM_Capabilities* self, - FILE* os) -{ - KBase_Print(os, &self->__base, 'i'); -} - -KINLINE CMPIInstance* CIM_Capabilities_ToInstance( - const CIM_Capabilities* self, - CMPIStatus* status) -{ - return KBase_ToInstance(&self->__base, status); -} - -KINLINE CMPIObjectPath* CIM_Capabilities_ToObjectPath( - const CIM_Capabilities* self, - CMPIStatus* status) -{ - return KBase_ToObjectPath(&self->__base, status); -} - -KINLINE const char* CIM_Capabilities_NameSpace( - CIM_Capabilities* self) -{ - if (self && self->__base.magic == KMAGIC) - return self->__base.ns ? KChars(self->__base.ns) : NULL; - return NULL; -} - -KINLINE void CIM_Capabilities_SetString_Caption( - CIM_Capabilities* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Caption; - KString_SetString(field, x); - } -} - -KINLINE void CIM_Capabilities_Set_Caption( - CIM_Capabilities* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Caption; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_Capabilities_Null_Caption( - CIM_Capabilities* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Caption; - KString_Null(field); - } -} - -KINLINE void CIM_Capabilities_Clr_Caption( - CIM_Capabilities* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Caption; - KString_Clr(field); - } -} - -KINLINE void CIM_Capabilities_SetString_Description( - CIM_Capabilities* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Description; - KString_SetString(field, x); - } -} - -KINLINE void CIM_Capabilities_Set_Description( - CIM_Capabilities* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Description; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_Capabilities_Null_Description( - CIM_Capabilities* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Description; - KString_Null(field); - } -} - -KINLINE void CIM_Capabilities_Clr_Description( - CIM_Capabilities* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Description; - KString_Clr(field); - } -} - -KINLINE void CIM_Capabilities_SetString_ElementName( - CIM_Capabilities* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->ElementName; - KString_SetString(field, x); - } -} - -KINLINE void CIM_Capabilities_Set_ElementName( - CIM_Capabilities* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->ElementName; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_Capabilities_Null_ElementName( - CIM_Capabilities* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->ElementName; - KString_Null(field); - } -} - -KINLINE void CIM_Capabilities_Clr_ElementName( - CIM_Capabilities* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->ElementName; - KString_Clr(field); - } -} - -KINLINE void CIM_Capabilities_SetString_InstanceID( - CIM_Capabilities* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->InstanceID; - KString_SetString(field, x); - } -} - -KINLINE void CIM_Capabilities_Set_InstanceID( - CIM_Capabilities* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->InstanceID; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_Capabilities_Null_InstanceID( - CIM_Capabilities* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->InstanceID; - KString_Null(field); - } -} - -KINLINE void CIM_Capabilities_Clr_InstanceID( - CIM_Capabilities* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->InstanceID; - KString_Clr(field); - } -} - -/* -**============================================================================== -** -** CIM_Capabilities methods -** -**============================================================================== -*/ - -KINLINE CMPIStatus CIM_Capabilities_DispatchMethod( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char* meth, - const CMPIArgs* in, - CMPIArgs* out) -{ - CIM_CapabilitiesRef self; - - KReturnIf(CIM_CapabilitiesRef_InitFromObjectPath(&self, cb, cop)); - - - KReturn(ERR_METHOD_NOT_FOUND); -} - -#endif /* _konkrete_CIM_Capabilities_h */ Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_LogicalDevice.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_LogicalDevice.h 2008-07-10 23:03:14 UTC (rev 748) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_LogicalDevice.h 2008-07-10 23:24:23 UTC (rev 749) @@ -1,3438 +0,0 @@ -/* -**============================================================================== -** -** CAUTION: This file generated by KonkretCMPI. Please do not edit. -** -**============================================================================== -*/ - -#ifndef _konkrete_CIM_LogicalDevice_h -#define _konkrete_CIM_LogicalDevice_h - -#include <konkret/konkret.h> -#include "CIM_ConcreteJob.h" - -/* -**============================================================================== -** -** struct CIM_LogicalDeviceRef -** -**============================================================================== -*/ - -/* classname=CIM_LogicalDevice */ -typedef struct _CIM_LogicalDeviceRef -{ - KBase __base; - /* CIM_ManagedElement features */ - /* CIM_ManagedSystemElement features */ - /* CIM_LogicalElement features */ - /* CIM_EnabledLogicalElement features */ - /* CIM_LogicalDevice features */ - const KString SystemCreationClassName; - const KString SystemName; - const KString CreationClassName; - const KString DeviceID; -} -CIM_LogicalDeviceRef; - -static const unsigned char __CIM_LogicalDeviceRef_sig[] = -{ - 0x11,0x43,0x49,0x4d,0x5f,0x4c,0x6f,0x67,0x69,0x63,0x61,0x6c,0x44,0x65,0x76, - 0x69,0x63,0x65,0x00,0x04,0x4c,0x17,0x53,0x79,0x73,0x74,0x65,0x6d,0x43,0x72, - 0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c,0x61,0x73,0x73,0x4e,0x61,0x6d,0x65, - 0x00,0x4c,0x0a,0x53,0x79,0x73,0x74,0x65,0x6d,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,0x4c,0x08,0x44,0x65,0x76,0x69,0x63,0x65,0x49,0x44,0x00, -}; - -KINLINE void CIM_LogicalDeviceRef_Init( - CIM_LogicalDeviceRef* self, - const CMPIBroker* cb, - const char* ns) -{ - const unsigned char* sig = __CIM_LogicalDeviceRef_sig; - KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); -} - -KINLINE CMPIStatus CIM_LogicalDeviceRef_InitFromInstance( - CIM_LogicalDeviceRef* self, - const CMPIBroker* cb, - const CMPIInstance* x) -{ - CIM_LogicalDeviceRef_Init(self, cb, NULL); - return KBase_FromInstance(&self->__base, x); -} - -KINLINE CMPIStatus CIM_LogicalDeviceRef_InitFromObjectPath( - CIM_LogicalDeviceRef* self, - const CMPIBroker* cb, - const CMPIObjectPath* x) -{ - CIM_LogicalDeviceRef_Init(self, cb, NULL); - return KBase_FromObjectPath(&self->__base, x); -} - -KINLINE void CIM_LogicalDeviceRef_Print( - const CIM_LogicalDeviceRef* self, - FILE* os) -{ - KBase_Print(os, &self->__base, 'r'); -} - -KINLINE CMPIInstance* CIM_LogicalDeviceRef_ToInstance( - const CIM_LogicalDeviceRef* self, - CMPIStatus* status) -{ - return KBase_ToInstance(&self->__base, status); -} - -KINLINE CMPIObjectPath* CIM_LogicalDeviceRef_ToObjectPath( - const CIM_LogicalDeviceRef* self, - CMPIStatus* status) -{ - return KBase_ToObjectPath(&self->__base, status); -} - -KINLINE const char* CIM_LogicalDeviceRef_NameSpace( - CIM_LogicalDeviceRef* self) -{ - if (self && self->__base.magic == KMAGIC) - return self->__base.ns ? KChars(self->__base.ns) : NULL; - return NULL; -} - -KINLINE void CIM_LogicalDeviceRef_SetString_SystemCreationClassName( - CIM_LogicalDeviceRef* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->SystemCreationClassName; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDeviceRef_Set_SystemCreationClassName( - CIM_LogicalDeviceRef* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->SystemCreationClassName; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDeviceRef_Null_SystemCreationClassName( - CIM_LogicalDeviceRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->SystemCreationClassName; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDeviceRef_Clr_SystemCreationClassName( - CIM_LogicalDeviceRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->SystemCreationClassName; - KString_Clr(field); - } -} - -KINLINE void CIM_LogicalDeviceRef_SetString_SystemName( - CIM_LogicalDeviceRef* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->SystemName; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDeviceRef_Set_SystemName( - CIM_LogicalDeviceRef* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->SystemName; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDeviceRef_Null_SystemName( - CIM_LogicalDeviceRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->SystemName; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDeviceRef_Clr_SystemName( - CIM_LogicalDeviceRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->SystemName; - KString_Clr(field); - } -} - -KINLINE void CIM_LogicalDeviceRef_SetString_CreationClassName( - CIM_LogicalDeviceRef* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->CreationClassName; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDeviceRef_Set_CreationClassName( - CIM_LogicalDeviceRef* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->CreationClassName; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDeviceRef_Null_CreationClassName( - CIM_LogicalDeviceRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->CreationClassName; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDeviceRef_Clr_CreationClassName( - CIM_LogicalDeviceRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->CreationClassName; - KString_Clr(field); - } -} - -KINLINE void CIM_LogicalDeviceRef_SetString_DeviceID( - CIM_LogicalDeviceRef* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->DeviceID; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDeviceRef_Set_DeviceID( - CIM_LogicalDeviceRef* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->DeviceID; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDeviceRef_Null_DeviceID( - CIM_LogicalDeviceRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->DeviceID; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDeviceRef_Clr_DeviceID( - CIM_LogicalDeviceRef* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->DeviceID; - KString_Clr(field); - } -} - -/* -**============================================================================== -** -** struct CIM_LogicalDevice -** -**============================================================================== -*/ - -/* classname=CIM_LogicalDevice */ -typedef struct _CIM_LogicalDevice -{ - 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; - /* CIM_LogicalElement features */ - /* CIM_EnabledLogicalElement features */ - const KUint16 EnabledState; - const KString OtherEnabledState; - const KUint16 RequestedState; - const KUint16 EnabledDefault; - const KDateTime TimeOfLastStateChange; - /* CIM_LogicalDevice features */ - const KString SystemCreationClassName; - const KString SystemName; - const KString CreationClassName; - const KString DeviceID; - const KBoolean PowerManagementSupported; - const KUint16A PowerManagementCapabilities; - const KUint16 Availability; - const KUint16 StatusInfo; - const KUint32 LastErrorCode; - const KString ErrorDescription; - const KBoolean ErrorCleared; - const KStringA OtherIdentifyingInfo; - const KUint64 PowerOnHours; - const KUint64 TotalPowerOnHours; - const KStringA IdentifyingDescriptions; - const KUint16A AdditionalAvailability; - const KUint64 MaxQuiesceTime; -} -CIM_LogicalDevice; - -static const unsigned char __CIM_LogicalDevice_sig[] = -{ - 0x11,0x43,0x49,0x4d,0x5f,0x4c,0x6f,0x67,0x69,0x63,0x61,0x6c,0x44,0x65,0x76, - 0x69,0x63,0x65,0x00,0x1f,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00, - 0x0c,0x0b,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c, - 0x0b,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x0d,0x0b, - 0x49,0x6e,0x73,0x74,0x61,0x6c,0x6c,0x44,0x61,0x74,0x65,0x00,0x0c,0x04,0x4e, - 0x61,0x6d,0x65,0x00,0x83,0x11,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e, - 0x61,0x6c,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x8c,0x12,0x53,0x74,0x61,0x74, - 0x75,0x73,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00, - 0x0c,0x06,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0b,0x48,0x65,0x61,0x6c, - 0x74,0x68,0x53,0x74,0x61,0x74,0x65,0x00,0x03,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,0x4c,0x17,0x53,0x79, - 0x73,0x74,0x65,0x6d,0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c,0x61, - 0x73,0x73,0x4e,0x61,0x6d,0x65,0x00,0x4c,0x0a,0x53,0x79,0x73,0x74,0x65,0x6d, - 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,0x4c,0x08,0x44,0x65,0x76, - 0x69,0x63,0x65,0x49,0x44,0x00,0x00,0x18,0x50,0x6f,0x77,0x65,0x72,0x4d,0x61, - 0x6e,0x61,0x67,0x65,0x6d,0x65,0x6e,0x74,0x53,0x75,0x70,0x70,0x6f,0x72,0x74, - 0x65,0x64,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,0x03,0x0c,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x69,0x6c,0x69, - 0x74,0x79,0x00,0x03,0x0a,0x53,0x74,0x61,0x74,0x75,0x73,0x49,0x6e,0x66,0x6f, - 0x00,0x05,0x0d,0x4c,0x61,0x73,0x74,0x45,0x72,0x72,0x6f,0x72,0x43,0x6f,0x64, - 0x65,0x00,0x0c,0x10,0x45,0x72,0x72,0x6f,0x72,0x44,0x65,0x73,0x63,0x72,0x69, - 0x70,0x74,0x69,0x6f,0x6e,0x00,0x00,0x0c,0x45,0x72,0x72,0x6f,0x72,0x43,0x6c, - 0x65,0x61,0x72,0x65,0x64,0x00,0x8c,0x14,0x4f,0x74,0x68,0x65,0x72,0x49,0x64, - 0x65,0x6e,0x74,0x69,0x66,0x79,0x69,0x6e,0x67,0x49,0x6e,0x66,0x6f,0x00,0x07, - 0x0c,0x50,0x6f,0x77,0x65,0x72,0x4f,0x6e,0x48,0x6f,0x75,0x72,0x73,0x00,0x07, - 0x11,0x54,0x6f,0x74,0x61,0x6c,0x50,0x6f,0x77,0x65,0x72,0x4f,0x6e,0x48,0x6f, - 0x75,0x72,0x73,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,0x16,0x41,0x64,0x64,0x69,0x74,0x69,0x6f,0x6e,0x61,0x6c,0x41,0x76,0x61, - 0x69,0x6c,0x61,0x62,0x69,0x6c,0x69,0x74,0x79,0x00,0x07,0x0e,0x4d,0x61,0x78, - 0x51,0x75,0x69,0x65,0x73,0x63,0x65,0x54,0x69,0x6d,0x65,0x00, -}; - -KINLINE void CIM_LogicalDevice_Init( - CIM_LogicalDevice* self, - const CMPIBroker* cb, - const char* ns) -{ - const unsigned char* sig = __CIM_LogicalDevice_sig; - KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); -} - -KINLINE CMPIStatus CIM_LogicalDevice_InitFromInstance( - CIM_LogicalDevice* self, - const CMPIBroker* cb, - const CMPIInstance* x) -{ - CIM_LogicalDevice_Init(self, cb, NULL); - return KBase_FromInstance(&self->__base, x); -} - -KINLINE CMPIStatus CIM_LogicalDevice_InitFromObjectPath( - CIM_LogicalDevice* self, - const CMPIBroker* cb, - const CMPIObjectPath* x) -{ - CIM_LogicalDevice_Init(self, cb, NULL); - return KBase_FromObjectPath(&self->__base, x); -} - -KINLINE void CIM_LogicalDevice_Print( - const CIM_LogicalDevice* self, - FILE* os) -{ - KBase_Print(os, &self->__base, 'i'); -} - -KINLINE CMPIInstance* CIM_LogicalDevice_ToInstance( - const CIM_LogicalDevice* self, - CMPIStatus* status) -{ - return KBase_ToInstance(&self->__base, status); -} - -KINLINE CMPIObjectPath* CIM_LogicalDevice_ToObjectPath( - const CIM_LogicalDevice* self, - CMPIStatus* status) -{ - return KBase_ToObjectPath(&self->__base, status); -} - -KINLINE const char* CIM_LogicalDevice_NameSpace( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - return self->__base.ns ? KChars(self->__base.ns) : NULL; - return NULL; -} - -KINLINE void CIM_LogicalDevice_SetString_Caption( - CIM_LogicalDevice* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Caption; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Set_Caption( - CIM_LogicalDevice* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Caption; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDevice_Null_Caption( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Caption; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_Caption( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Caption; - KString_Clr(field); - } -} - -KINLINE void CIM_LogicalDevice_SetString_Description( - CIM_LogicalDevice* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Description; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Set_Description( - CIM_LogicalDevice* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Description; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDevice_Null_Description( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Description; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_Description( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Description; - KString_Clr(field); - } -} - -KINLINE void CIM_LogicalDevice_SetString_ElementName( - CIM_LogicalDevice* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->ElementName; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Set_ElementName( - CIM_LogicalDevice* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->ElementName; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDevice_Null_ElementName( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->ElementName; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_ElementName( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->ElementName; - KString_Clr(field); - } -} - -KINLINE void CIM_LogicalDevice_Set_InstallDate( - CIM_LogicalDevice* self, - CMPIDateTime* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KDateTime* field = (KDateTime*)&self->InstallDate; - KDateTime_Set(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Null_InstallDate( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KDateTime* field = (KDateTime*)&self->InstallDate; - KDateTime_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_InstallDate( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KDateTime* field = (KDateTime*)&self->InstallDate; - KDateTime_Clr(field); - } -} - -KINLINE void CIM_LogicalDevice_SetString_Name( - CIM_LogicalDevice* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Name; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Set_Name( - CIM_LogicalDevice* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Name; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDevice_Null_Name( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Name; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_Name( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Name; - KString_Clr(field); - } -} - -KINLINE CMPIBoolean CIM_LogicalDevice_Init_OperationalStatus( - CIM_LogicalDevice* self, - CMPICount count) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16A* field = (KUint16A*)&self->OperationalStatus; - return KUint16A_Init(field, self->__base.cb, count); - } - return 0; -} - -KINLINE void CIM_LogicalDevice_InitNull_OperationalStatus( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16A* field = (KUint16A*)&self->OperationalStatus; - KUint16A_InitNull(field); - } -} - -KINLINE CMPIBoolean CIM_LogicalDevice_Set_OperationalStatus( - CIM_LogicalDevice* self, - CMPICount i, - CMPIUint16 x) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16A* field = (KUint16A*)&self->OperationalStatus; - return KUint16A_Set(field, i, x); - } - return 0; -} - -KINLINE KUint16 CIM_LogicalDevice_Get_OperationalStatus( - CIM_LogicalDevice* self, - CMPICount i) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16A* field = (KUint16A*)&self->OperationalStatus; - return KUint16A_Get(field, i); - } - return KUint16A_Get(NULL, 0); -} - -KINLINE CMPIBoolean CIM_LogicalDevice_Null_OperationalStatus( - CIM_LogicalDevice* self, - CMPICount i) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16A* field = (KUint16A*)&self->OperationalStatus; - return KUint16A_Null(field, i); - } - return 0; -} - -KINLINE void CIM_LogicalDevice_Clr_OperationalStatus( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16A* field = (KUint16A*)&self->OperationalStatus; - KUint16A_Clr(field); - } -} - -/* "Unknown" */ -#define CIM_LogicalDevice_OperationalStatus_Unknown 0 - -/* "Other" */ -#define CIM_LogicalDevice_OperationalStatus_Other 1 - -/* "OK" */ -#define CIM_LogicalDevice_OperationalStatus_OK 2 - -/* "Degraded" */ -#define CIM_LogicalDevice_OperationalStatus_Degraded 3 - -/* "Stressed" */ -#define CIM_LogicalDevice_OperationalStatus_Stressed 4 - -/* "Predictive Failure" */ -#define CIM_LogicalDevice_OperationalStatus_Predictive_Failure 5 - -/* "Error" */ -#define CIM_LogicalDevice_OperationalStatus_Error 6 - -/* "Non-Recoverable Error" */ -#define CIM_LogicalDevice_OperationalStatus_Non_Recoverable_Error 7 - -/* "Starting" */ -#define CIM_LogicalDevice_OperationalStatus_Starting 8 - -/* "Stopping" */ -#define CIM_LogicalDevice_OperationalStatus_Stopping 9 - -/* "Stopped" */ -#define CIM_LogicalDevice_OperationalStatus_Stopped 10 - -/* "In Service" */ -#define CIM_LogicalDevice_OperationalStatus_In_Service 11 - -/* "No Contact" */ -#define CIM_LogicalDevice_OperationalStatus_No_Contact 12 - -/* "Lost Communication" */ -#define CIM_LogicalDevice_OperationalStatus_Lost_Communication 13 - -/* "Aborted" */ -#define CIM_LogicalDevice_OperationalStatus_Aborted 14 - -/* "Dormant" */ -#define CIM_LogicalDevice_OperationalStatus_Dormant 15 - -/* "Supporting Entity in Error" */ -#define CIM_LogicalDevice_OperationalStatus_Supporting_Entity_in_Error 16 - -/* "Completed" */ -#define CIM_LogicalDevice_OperationalStatus_Completed 17 - -/* "Power Mode" */ -#define CIM_LogicalDevice_OperationalStatus_Power_Mode 18 - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_OperationalStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_LogicalDevice_OperationalStatus_Vendor_Reserved 0 - -/* "Unknown" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Unknown(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 0) - -/* "Other" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Other(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 1) - -/* "OK" */ -#define CIM_LogicalDevice_Set_OperationalStatus_OK(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 2) - -/* "Degraded" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Degraded(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 3) - -/* "Stressed" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Stressed(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 4) - -/* "Predictive Failure" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 5) - -/* "Error" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Error(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 6) - -/* "Non-Recoverable Error" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 7) - -/* "Starting" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Starting(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 8) - -/* "Stopping" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Stopping(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 9) - -/* "Stopped" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Stopped(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 10) - -/* "In Service" */ -#define CIM_LogicalDevice_Set_OperationalStatus_In_Service(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 11) - -/* "No Contact" */ -#define CIM_LogicalDevice_Set_OperationalStatus_No_Contact(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 12) - -/* "Lost Communication" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 13) - -/* "Aborted" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Aborted(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 14) - -/* "Dormant" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Dormant(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 15) - -/* "Supporting Entity in Error" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 16) - -/* "Completed" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Completed(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 17) - -/* "Power Mode" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Power_Mode(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 18) - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 0) - -/* "Vendor Reserved" */ -#define CIM_LogicalDevice_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\ - CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 0) - -KINLINE CMPIBoolean CIM_LogicalDevice_Init_StatusDescriptions( - CIM_LogicalDevice* self, - CMPICount count) -{ - if (self && self->__base.magic == KMAGIC) - { - KStringA* field = (KStringA*)&self->StatusDescriptions; - return KStringA_Init(field, self->__base.cb, count); - } - return 0; -} - -KINLINE void CIM_LogicalDevice_InitNull_StatusDescriptions( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KStringA* field = (KStringA*)&self->StatusDescriptions; - KStringA_InitNull(field); - } -} - -KINLINE CMPIBoolean CIM_LogicalDevice_SetString_StatusDescriptions( - CIM_LogicalDevice* self, - CMPICount i, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KStringA* field = (KStringA*)&self->StatusDescriptions; - return KStringA_SetString(field, i, x); - } - return 0; -} - -KINLINE CMPIBoolean CIM_LogicalDevice_Set_StatusDescriptions( - CIM_LogicalDevice* self, - CMPICount i, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KStringA* field = (KStringA*)&self->StatusDescriptions; - return KStringA_Set(field, self->__base.cb, i, s); - } - return 0; -} - -KINLINE KString CIM_LogicalDevice_GetString_StatusDescriptions( - CIM_LogicalDevice* self, - CMPICount i) -{ - if (self && self->__base.magic == KMAGIC) - { - KStringA* field = (KStringA*)&self->StatusDescriptions; - return KStringA_GetString(field, i); - } - return KStringA_GetString(NULL, 0); -} - -KINLINE const char* CIM_LogicalDevice_Get_StatusDescriptions( - CIM_LogicalDevice* self, - CMPICount i) -{ - if (self && self->__base.magic == KMAGIC) - { - KStringA* field = (KStringA*)&self->StatusDescriptions; - return KStringA_Get(field, i); - } - return NULL; -} - -KINLINE CMPIBoolean CIM_LogicalDevice_Null_StatusDescriptions( - CIM_LogicalDevice* self, - CMPICount i) -{ - if (self && self->__base.magic == KMAGIC) - { - KStringA* field = (KStringA*)&self->StatusDescriptions; - return KStringA_Null(field, i); - } - return 0; -} - -KINLINE void CIM_LogicalDevice_Clr_StatusDescriptions( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KStringA* field = (KStringA*)&self->StatusDescriptions; - KStringA_Clr(field); - } -} - -KINLINE void CIM_LogicalDevice_SetString_Status( - CIM_LogicalDevice* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Status; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Set_Status( - CIM_LogicalDevice* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Status; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDevice_Null_Status( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Status; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_Status( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->Status; - KString_Clr(field); - } -} - -KINLINE void CIM_LogicalDevice_Set_HealthState( - CIM_LogicalDevice* self, - CMPIUint16 x) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->HealthState; - KUint16_Set(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Null_HealthState( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->HealthState; - KUint16_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_HealthState( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->HealthState; - KUint16_Clr(field); - } -} - -/* "Unknown" */ -#define CIM_LogicalDevice_HealthState_Unknown 0 - -/* "OK" */ -#define CIM_LogicalDevice_HealthState_OK 5 - -/* "Degraded/Warning" */ -#define CIM_LogicalDevice_HealthState_Degraded_Warning 10 - -/* "Minor failure" */ -#define CIM_LogicalDevice_HealthState_Minor_failure 15 - -/* "Major failure" */ -#define CIM_LogicalDevice_HealthState_Major_failure 20 - -/* "Critical failure" */ -#define CIM_LogicalDevice_HealthState_Critical_failure 25 - -/* "Non-recoverable error" */ -#define CIM_LogicalDevice_HealthState_Non_recoverable_error 30 - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_HealthState_DMTF_Reserved 0 - -/* "Unknown" */ -#define CIM_LogicalDevice_Set_HealthState_Unknown(SELF) \ - CIM_LogicalDevice_Set_HealthState(SELF, 0) - -/* "OK" */ -#define CIM_LogicalDevice_Set_HealthState_OK(SELF) \ - CIM_LogicalDevice_Set_HealthState(SELF, 5) - -/* "Degraded/Warning" */ -#define CIM_LogicalDevice_Set_HealthState_Degraded_Warning(SELF) \ - CIM_LogicalDevice_Set_HealthState(SELF, 10) - -/* "Minor failure" */ -#define CIM_LogicalDevice_Set_HealthState_Minor_failure(SELF) \ - CIM_LogicalDevice_Set_HealthState(SELF, 15) - -/* "Major failure" */ -#define CIM_LogicalDevice_Set_HealthState_Major_failure(SELF) \ - CIM_LogicalDevice_Set_HealthState(SELF, 20) - -/* "Critical failure" */ -#define CIM_LogicalDevice_Set_HealthState_Critical_failure(SELF) \ - CIM_LogicalDevice_Set_HealthState(SELF, 25) - -/* "Non-recoverable error" */ -#define CIM_LogicalDevice_Set_HealthState_Non_recoverable_error(SELF) \ - CIM_LogicalDevice_Set_HealthState(SELF, 30) - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_Set_HealthState_DMTF_Reserved(SELF) \ - CIM_LogicalDevice_Set_HealthState(SELF, 0) - -KINLINE void CIM_LogicalDevice_Set_EnabledState( - CIM_LogicalDevice* self, - CMPIUint16 x) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->EnabledState; - KUint16_Set(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Null_EnabledState( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->EnabledState; - KUint16_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_EnabledState( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->EnabledState; - KUint16_Clr(field); - } -} - -/* "Unknown" */ -#define CIM_LogicalDevice_EnabledState_Unknown 0 - -/* "Other" */ -#define CIM_LogicalDevice_EnabledState_Other 1 - -/* "Enabled" */ -#define CIM_LogicalDevice_EnabledState_Enabled 2 - -/* "Disabled" */ -#define CIM_LogicalDevice_EnabledState_Disabled 3 - -/* "Shutting Down" */ -#define CIM_LogicalDevice_EnabledState_Shutting_Down 4 - -/* "Not Applicable" */ -#define CIM_LogicalDevice_EnabledState_Not_Applicable 5 - -/* "Enabled but Offline" */ -#define CIM_LogicalDevice_EnabledState_Enabled_but_Offline 6 - -/* "In Test" */ -#define CIM_LogicalDevice_EnabledState_In_Test 7 - -/* "Deferred" */ -#define CIM_LogicalDevice_EnabledState_Deferred 8 - -/* "Quiesce" */ -#define CIM_LogicalDevice_EnabledState_Quiesce 9 - -/* "Starting" */ -#define CIM_LogicalDevice_EnabledState_Starting 10 - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_EnabledState_DMTF_Reserved 11 - -/* "Vendor Reserved" */ -#define CIM_LogicalDevice_EnabledState_Vendor_Reserved 32768 - -/* "Unknown" */ -#define CIM_LogicalDevice_Set_EnabledState_Unknown(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 0) - -/* "Other" */ -#define CIM_LogicalDevice_Set_EnabledState_Other(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 1) - -/* "Enabled" */ -#define CIM_LogicalDevice_Set_EnabledState_Enabled(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 2) - -/* "Disabled" */ -#define CIM_LogicalDevice_Set_EnabledState_Disabled(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 3) - -/* "Shutting Down" */ -#define CIM_LogicalDevice_Set_EnabledState_Shutting_Down(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 4) - -/* "Not Applicable" */ -#define CIM_LogicalDevice_Set_EnabledState_Not_Applicable(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 5) - -/* "Enabled but Offline" */ -#define CIM_LogicalDevice_Set_EnabledState_Enabled_but_Offline(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 6) - -/* "In Test" */ -#define CIM_LogicalDevice_Set_EnabledState_In_Test(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 7) - -/* "Deferred" */ -#define CIM_LogicalDevice_Set_EnabledState_Deferred(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 8) - -/* "Quiesce" */ -#define CIM_LogicalDevice_Set_EnabledState_Quiesce(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 9) - -/* "Starting" */ -#define CIM_LogicalDevice_Set_EnabledState_Starting(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 10) - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_Set_EnabledState_DMTF_Reserved(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 11) - -/* "Vendor Reserved" */ -#define CIM_LogicalDevice_Set_EnabledState_Vendor_Reserved(SELF) \ - CIM_LogicalDevice_Set_EnabledState(SELF, 32768) - -KINLINE void CIM_LogicalDevice_SetString_OtherEnabledState( - CIM_LogicalDevice* self, - CMPIString* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->OtherEnabledState; - KString_SetString(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Set_OtherEnabledState( - CIM_LogicalDevice* self, - const char* s) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->OtherEnabledState; - KString_Set(field, self->__base.cb, s); - } -} - -KINLINE void CIM_LogicalDevice_Null_OtherEnabledState( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->OtherEnabledState; - KString_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_OtherEnabledState( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KString* field = (KString*)&self->OtherEnabledState; - KString_Clr(field); - } -} - -KINLINE void CIM_LogicalDevice_Set_RequestedState( - CIM_LogicalDevice* self, - CMPIUint16 x) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->RequestedState; - KUint16_Set(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Null_RequestedState( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->RequestedState; - KUint16_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_RequestedState( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->RequestedState; - KUint16_Clr(field); - } -} - -/* "Enabled" */ -#define CIM_LogicalDevice_RequestedState_Enabled 2 - -/* "Disabled" */ -#define CIM_LogicalDevice_RequestedState_Disabled 3 - -/* "Shut Down" */ -#define CIM_LogicalDevice_RequestedState_Shut_Down 4 - -/* "No Change" */ -#define CIM_LogicalDevice_RequestedState_No_Change 5 - -/* "Offline" */ -#define CIM_LogicalDevice_RequestedState_Offline 6 - -/* "Test" */ -#define CIM_LogicalDevice_RequestedState_Test 7 - -/* "Deferred" */ -#define CIM_LogicalDevice_RequestedState_Deferred 8 - -/* "Quiesce" */ -#define CIM_LogicalDevice_RequestedState_Quiesce 9 - -/* "Reboot" */ -#define CIM_LogicalDevice_RequestedState_Reboot 10 - -/* "Reset" */ -#define CIM_LogicalDevice_RequestedState_Reset 11 - -/* "Not Applicable" */ -#define CIM_LogicalDevice_RequestedState_Not_Applicable 12 - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_RequestedState_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_LogicalDevice_RequestedState_Vendor_Reserved 32768 - -/* "Enabled" */ -#define CIM_LogicalDevice_Set_RequestedState_Enabled(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 2) - -/* "Disabled" */ -#define CIM_LogicalDevice_Set_RequestedState_Disabled(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 3) - -/* "Shut Down" */ -#define CIM_LogicalDevice_Set_RequestedState_Shut_Down(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 4) - -/* "No Change" */ -#define CIM_LogicalDevice_Set_RequestedState_No_Change(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 5) - -/* "Offline" */ -#define CIM_LogicalDevice_Set_RequestedState_Offline(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 6) - -/* "Test" */ -#define CIM_LogicalDevice_Set_RequestedState_Test(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 7) - -/* "Deferred" */ -#define CIM_LogicalDevice_Set_RequestedState_Deferred(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 8) - -/* "Quiesce" */ -#define CIM_LogicalDevice_Set_RequestedState_Quiesce(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 9) - -/* "Reboot" */ -#define CIM_LogicalDevice_Set_RequestedState_Reboot(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 10) - -/* "Reset" */ -#define CIM_LogicalDevice_Set_RequestedState_Reset(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 11) - -/* "Not Applicable" */ -#define CIM_LogicalDevice_Set_RequestedState_Not_Applicable(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 12) - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_Set_RequestedState_DMTF_Reserved(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 0) - -/* "Vendor Reserved" */ -#define CIM_LogicalDevice_Set_RequestedState_Vendor_Reserved(SELF) \ - CIM_LogicalDevice_Set_RequestedState(SELF, 32768) - -KINLINE void CIM_LogicalDevice_Set_EnabledDefault( - CIM_LogicalDevice* self, - CMPIUint16 x) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->EnabledDefault; - KUint16_Set(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Null_EnabledDefault( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->EnabledDefault; - KUint16_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_EnabledDefault( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KUint16* field = (KUint16*)&self->EnabledDefault; - KUint16_Clr(field); - } -} - -/* "Enabled" */ -#define CIM_LogicalDevice_EnabledDefault_Enabled 2 - -/* "Disabled" */ -#define CIM_LogicalDevice_EnabledDefault_Disabled 3 - -/* "Not Applicable" */ -#define CIM_LogicalDevice_EnabledDefault_Not_Applicable 5 - -/* "Enabled but Offline" */ -#define CIM_LogicalDevice_EnabledDefault_Enabled_but_Offline 6 - -/* "No Default" */ -#define CIM_LogicalDevice_EnabledDefault_No_Default 7 - -/* "Quiesce" */ -#define CIM_LogicalDevice_EnabledDefault_Quiesce 9 - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_EnabledDefault_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_LogicalDevice_EnabledDefault_Vendor_Reserved 32768 - -/* "Enabled" */ -#define CIM_LogicalDevice_Set_EnabledDefault_Enabled(SELF) \ - CIM_LogicalDevice_Set_EnabledDefault(SELF, 2) - -/* "Disabled" */ -#define CIM_LogicalDevice_Set_EnabledDefault_Disabled(SELF) \ - CIM_LogicalDevice_Set_EnabledDefault(SELF, 3) - -/* "Not Applicable" */ -#define CIM_LogicalDevice_Set_EnabledDefault_Not_Applicable(SELF) \ - CIM_LogicalDevice_Set_EnabledDefault(SELF, 5) - -/* "Enabled but Offline" */ -#define CIM_LogicalDevice_Set_EnabledDefault_Enabled_but_Offline(SELF) \ - CIM_LogicalDevice_Set_EnabledDefault(SELF, 6) - -/* "No Default" */ -#define CIM_LogicalDevice_Set_EnabledDefault_No_Default(SELF) \ - CIM_LogicalDevice_Set_EnabledDefault(SELF, 7) - -/* "Quiesce" */ -#define CIM_LogicalDevice_Set_EnabledDefault_Quiesce(SELF) \ - CIM_LogicalDevice_Set_EnabledDefault(SELF, 9) - -/* "DMTF Reserved" */ -#define CIM_LogicalDevice_Set_EnabledDefault_DMTF_Reserved(SELF) \ - CIM_LogicalDevice_Set_EnabledDefault(SELF, 0) - -/* "Vendor Reserved" */ -#define CIM_LogicalDevice_Set_EnabledDefault_Vendor_Reserved(SELF) \ - CIM_LogicalDevice_Set_EnabledDefault(SELF, 32768) - -KINLINE void CIM_LogicalDevice_Set_TimeOfLastStateChange( - CIM_LogicalDevice* self, - CMPIDateTime* x) -{ - if (self && self->__base.magic == KMAGIC) - { - KDateTime* field = (KDateTime*)&self->TimeOfLastStateChange; - KDateTime_Set(field, x); - } -} - -KINLINE void CIM_LogicalDevice_Null_TimeOfLastStateChange( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KDateTime* field = (KDateTime*)&self->TimeOfLastStateChange; - KDateTime_Null(field); - } -} - -KINLINE void CIM_LogicalDevice_Clr_TimeOfLastStateChange( - CIM_LogicalDevice* self) -{ - if (self && self->__base.magic == KMAGIC) - { - KDateTime* field = (KDateTime*)&self->TimeOfLastStateChange; - KDateTime_Clr(field); - } -} - -KINLINE void CIM_LogicalDevice_SetString_SystemCreationClassName( - CIM_LogicalDevice* self, - CMPIString... [truncated message content] |
From: <mik...@us...> - 2008-07-10 23:03:06
|
Revision: 748 http://omc.svn.sourceforge.net/omc/?rev=748&view=rev Author: mike-brasher Date: 2008-07-10 16:03:14 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Reworked ethernet port provider to use standard names. Regenerated classes with new enum feature. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/Makefile.am cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ConcreteJob.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ServiceAccessPoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_System.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ComputerSystem.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilities.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilities.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfile.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileComputerSystem.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/konkret.sh Added Paths: ----------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.reg cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.registration cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/register.sh cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/linux-ethernet-port-profile.kon Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.reg cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPortInterop.mof cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPort.kon cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/install.sh Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.mof 2008-07-10 22:38:17 UTC (rev 747) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.mof 2008-07-10 23:03:14 UTC (rev 748) @@ -1,82 +0,0 @@ -[Association] -class Linux_DeviceSAPImplementation : CIM_DeviceSAPImplementation -{ -}; - -[Association] -class Linux_HostedAccessPoint : CIM_HostedAccessPoint -{ -}; - -[Association] -class Linux_SystemDevice : CIM_SystemDevice -{ -}; - -[Association] -class Linux_ElementCapabilities : CIM_ElementCapabilities -{ -}; - -class Linux_EnabledLogicalElementCapabilities : - CIM_EnabledLogicalElementCapabilities -{ -}; - -//============================================================================== -// -// Ethernet port profile classes -// -//============================================================================== - -class Linux_EthernetPort : CIM_EthernetPort -{ -}; - -class Linux_LANEndpoint : CIM_LANEndpoint -{ -}; - -[Association] -class Linux_DeviceSAPImplementationEthernetPort : Linux_DeviceSAPImplementation -{ - Linux_EthernetPort REF Antecedent; - Linux_LANEndpoint REF Dependent; -}; - -[Association] -class Linux_SystemDeviceEthernetPort : Linux_SystemDevice -{ - [Key] Linux_ComputerSystem REF GroupComponent; - [Key] Linux_EthernetPort REF PartComponent; -}; - -[Association] -class Linux_HostedAccessPointEthernetPort : Linux_HostedAccessPoint -{ -}; - -class Linux_EnabledLogicalElementCapabilitiesEthernetPort : - Linux_EnabledLogicalElementCapabilities -{ -}; - -[Association] -class Linux_ElementCapabilitiesEthernetPort : Linux_ElementCapabilities -{ - [Key] Linux_EthernetPort REF ManagedElement; - [Key] Linux_EnabledLogicalElementCapabilitiesEthernetPort REF Capabilities; -}; - -class Linux_EnabledLogicalElementCapabilitiesLANEndpoint : - Linux_EnabledLogicalElementCapabilities -{ -}; - -[Association] -class Linux_ElementCapabilitiesLANEndpoint : Linux_ElementCapabilities -{ - [Key] Linux_LANEndpoint REF ManagedElement; - [Key] Linux_EnabledLogicalElementCapabilitiesLANEndpoint REF Capabilities; -}; - Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.reg =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.reg 2008-07-10 22:38:17 UTC (rev 747) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.reg 2008-07-10 23:03:14 UTC (rev 748) @@ -1,84 +0,0 @@ -##============================================================================== -## -## root/cimv2 -## -##============================================================================== - -[Linux_EthernetPort] - provider: EthernetPort - location: linux_ethportprovider - type: instance - namespace: root/cimv2 - -[Linux_LANEndpoint] - provider: LANEndpoint - location: linux_ethportprovider - type: instance - namespace: root/cimv2 - -[Linux_DeviceSAPImplementationEthernetPort] - provider: DeviceSAPImplementation - location: linux_ethportprovider - type: instance association - namespace: root/cimv2 - -[Linux_HostedAccessPointEthernetPort] - provider: HostedAccessPoint - location: linux_ethportprovider - type: instance association - namespace: root/cimv2 - -[Linux_SystemDeviceEthernetPort] - provider: SystemDevice - location: linux_ethportprovider - type: instance association - namespace: root/cimv2 - -[Linux_ElementCapabilitiesEthernetPort] - provider: ElementCapabilities - location: linux_ethportprovider - type: instance association - namespace: root/cimv2 - -[Linux_EnabledLogicalElementCapabilitiesEthernetPort] - provider: EnabledLogicalElementCapabilities - location: linux_ethportprovider - type: instance - namespace: root/cimv2 - -[Linux_ElementCapabilitiesLANEndpoint] - provider: ElementCapabilitiesLANEndpoint - location: linux_ethportprovider - type: instance association - namespace: root/cimv2 - -[Linux_EnabledLogicalElementCapabilitiesLANEndpoint] - provider: EnabledLogicalElementCapabilitiesLANEndpoint - location: linux_ethportprovider - type: instance - namespace: root/cimv2 - -##============================================================================== -## -## root/interop -## -##============================================================================== - -[Linux_RegisteredProfileEthernetPort] - provider: RegisteredProfile - location: linux_ethportprovider - type: instance - namespace: root/interop - -[Linux_ReferencedProfileEthernetPort] - provider: ReferencedProfile - location: linux_ethportprovider - type: instance association - namespace: root/interop - -[Linux_ElementConformsToProfileEthernetPort] - provider: ElementConformsToProfile - location: linux_ethportprovider - type: instance association - namespace: root/interop - Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration 2008-07-10 22:38:17 UTC (rev 747) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration 2008-07-10 23:03:14 UTC (rev 748) @@ -1,13 +0,0 @@ -# Classname Namespace ProviderName ProviderModule ProviderTypes ... -Linux_EthernetPort root/cimv2 EthernetPort linux_ethportprovider instance -Linux_LANEndpoint root/cimv2 LANEndpoint linux_ethportprovider instance -Linux_DeviceSAPImplementationEthernetPort root/cimv2 DeviceSAPImplementation linux_ethportprovider association -Linux_HostedAccessPointEthernetPort root/cimv2 HostedAccessPoint linux_ethportprovider instance association -Linux_SystemDeviceEthernetPort root/cimv2 SystemDevice linux_ethportprovider instance association -Linux_ElementCapabilitiesEthernetPort root/cimv2 ElementCapabilities linux_ethportprovider instance association -Linux_EnabledLogicalElementCapabilitiesEthernetPort root/cimv2 EnabledLogicalElementCapabilities linux_ethportprovider instance -Linux_ElementCapabilitiesLANEndpoint root/cimv2 ElementCapabilitiesLANEndpoint linux_ethportprovider instance association -Linux_EnabledLogicalElementCapabilitiesLANEndpoint root/cimv2 EnabledLogicalElementCapabilitiesLANEndpoint linux_ethportprovider instance -Linux_RegisteredProfileEthernetPort root/interop RegisteredProfile linux_ethportprovider instance -Linux_ReferencedProfileEthernetPort root/interop ReferencedProfile linux_ethportprovider instance association -Linux_ElementConformsToProfileEthernetPort root/interop ElementConformsToProfile linux_ethportprovider instance association Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPortInterop.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPortInterop.mof 2008-07-10 22:38:17 UTC (rev 747) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPortInterop.mof 2008-07-10 23:03:14 UTC (rev 748) @@ -1,54 +0,0 @@ -//============================================================================== -// -// These should be relocated to cmpi-base: -// -//============================================================================== - -class Linux_RegisteredProfile : CIM_RegisteredProfile -{ -}; - -[Association] -class Linux_ElementConformsToProfile : CIM_ElementConformsToProfile -{ -}; - -[Association] -class Linux_ReferencedProfile : CIM_ReferencedProfile -{ -}; - -//============================================================================== -// -// This should be relocated "Base Server" profile. -// -//============================================================================== - -class Linux_RegisteredProfileComputerSystem : Linux_RegisteredProfile -{ -}; - -//============================================================================== -// -// Ethernet Port Profile Registration Related Classes -// -//============================================================================== - -class Linux_RegisteredProfileEthernetPort : Linux_RegisteredProfile -{ -}; - -[Association] -class Linux_ElementConformsToProfileEthernetPort : Linux_ElementConformsToProfile -{ - [Key] Linux_RegisteredProfileEthernetPort REF ConformantStandard; - [Key] Linux_EthernetPort REF ManagedElement; -}; - -[Association] -class Linux_ReferencedProfileEthernetPort : Linux_ReferencedProfile -{ - [Key] Linux_RegisteredProfileComputerSystem REF Antecedent; - [Key] Linux_RegisteredProfileEthernetPort REF Dependent; -}; - Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/Makefile.am 2008-07-10 22:38:17 UTC (rev 747) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/Makefile.am 2008-07-10 23:03:14 UTC (rev 748) @@ -1,4 +1,8 @@ -mof_DATA = EthernetPortInterop.mof EthernetPort.mof EthernetPort.registration +mof_DATA = \ + linux-ethernet-port-profile-interop.mof \ + linux-ethernet-port-profile.mof \ + linux-ethernet-port-profile.reg \ + linux-ethernet-port-profile.registration mofdir = $(datadir)/mof/$(PACKAGE_NAME) Copied: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof (from rev 744, cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPortInterop.mof) =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile-interop.mof 2008-07-10 23:03:14 UTC (rev 748) @@ -0,0 +1,54 @@ +//============================================================================== +// +// These should be relocated to cmpi-base: +// +//============================================================================== + +class Linux_RegisteredProfile : CIM_RegisteredProfile +{ +}; + +[Association] +class Linux_ElementConformsToProfile : CIM_ElementConformsToProfile +{ +}; + +[Association] +class Linux_ReferencedProfile : CIM_ReferencedProfile +{ +}; + +//============================================================================== +// +// This should be relocated "Base Server" profile. +// +//============================================================================== + +class Linux_RegisteredProfileComputerSystem : Linux_RegisteredProfile +{ +}; + +//============================================================================== +// +// Ethernet Port Profile Registration Related Classes +// +//============================================================================== + +class Linux_RegisteredProfileEthernetPort : Linux_RegisteredProfile +{ +}; + +[Association] +class Linux_ElementConformsToProfileEthernetPort : Linux_ElementConformsToProfile +{ + [Key] Linux_RegisteredProfileEthernetPort REF ConformantStandard; + [Key] Linux_EthernetPort REF ManagedElement; +}; + +[Association] +class Linux_ReferencedProfileEthernetPort : Linux_ReferencedProfile +{ + [Key] Linux_RegisteredProfileComputerSystem REF Antecedent; + [Key] Linux_RegisteredProfileEthernetPort REF Dependent; +}; + Copied: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.mof (from rev 744, cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.mof) =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.mof (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.mof 2008-07-10 23:03:14 UTC (rev 748) @@ -0,0 +1,82 @@ +[Association] +class Linux_DeviceSAPImplementation : CIM_DeviceSAPImplementation +{ +}; + +[Association] +class Linux_HostedAccessPoint : CIM_HostedAccessPoint +{ +}; + +[Association] +class Linux_SystemDevice : CIM_SystemDevice +{ +}; + +[Association] +class Linux_ElementCapabilities : CIM_ElementCapabilities +{ +}; + +class Linux_EnabledLogicalElementCapabilities : + CIM_EnabledLogicalElementCapabilities +{ +}; + +//============================================================================== +// +// Ethernet port profile classes +// +//============================================================================== + +class Linux_EthernetPort : CIM_EthernetPort +{ +}; + +class Linux_LANEndpoint : CIM_LANEndpoint +{ +}; + +[Association] +class Linux_DeviceSAPImplementationEthernetPort : Linux_DeviceSAPImplementation +{ + Linux_EthernetPort REF Antecedent; + Linux_LANEndpoint REF Dependent; +}; + +[Association] +class Linux_SystemDeviceEthernetPort : Linux_SystemDevice +{ + [Key] Linux_ComputerSystem REF GroupComponent; + [Key] Linux_EthernetPort REF PartComponent; +}; + +[Association] +class Linux_HostedAccessPointEthernetPort : Linux_HostedAccessPoint +{ +}; + +class Linux_EnabledLogicalElementCapabilitiesEthernetPort : + Linux_EnabledLogicalElementCapabilities +{ +}; + +[Association] +class Linux_ElementCapabilitiesEthernetPort : Linux_ElementCapabilities +{ + [Key] Linux_EthernetPort REF ManagedElement; + [Key] Linux_EnabledLogicalElementCapabilitiesEthernetPort REF Capabilities; +}; + +class Linux_EnabledLogicalElementCapabilitiesLANEndpoint : + Linux_EnabledLogicalElementCapabilities +{ +}; + +[Association] +class Linux_ElementCapabilitiesLANEndpoint : Linux_ElementCapabilities +{ + [Key] Linux_LANEndpoint REF ManagedElement; + [Key] Linux_EnabledLogicalElementCapabilitiesLANEndpoint REF Capabilities; +}; + Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.reg =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.reg (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.reg 2008-07-10 23:03:14 UTC (rev 748) @@ -0,0 +1,84 @@ +##============================================================================== +## +## root/cimv2 +## +##============================================================================== + +[Linux_EthernetPort] + provider: EthernetPort + location: linux_ethportprovider + type: instance + namespace: root/cimv2 + +[Linux_LANEndpoint] + provider: LANEndpoint + location: linux_ethportprovider + type: instance + namespace: root/cimv2 + +[Linux_DeviceSAPImplementationEthernetPort] + provider: DeviceSAPImplementation + location: linux_ethportprovider + type: instance association + namespace: root/cimv2 + +[Linux_HostedAccessPointEthernetPort] + provider: HostedAccessPoint + location: linux_ethportprovider + type: instance association + namespace: root/cimv2 + +[Linux_SystemDeviceEthernetPort] + provider: SystemDevice + location: linux_ethportprovider + type: instance association + namespace: root/cimv2 + +[Linux_ElementCapabilitiesEthernetPort] + provider: ElementCapabilities + location: linux_ethportprovider + type: instance association + namespace: root/cimv2 + +[Linux_EnabledLogicalElementCapabilitiesEthernetPort] + provider: EnabledLogicalElementCapabilities + location: linux_ethportprovider + type: instance + namespace: root/cimv2 + +[Linux_ElementCapabilitiesLANEndpoint] + provider: ElementCapabilitiesLANEndpoint + location: linux_ethportprovider + type: instance association + namespace: root/cimv2 + +[Linux_EnabledLogicalElementCapabilitiesLANEndpoint] + provider: EnabledLogicalElementCapabilitiesLANEndpoint + location: linux_ethportprovider + type: instance + namespace: root/cimv2 + +##============================================================================== +## +## root/interop +## +##============================================================================== + +[Linux_RegisteredProfileEthernetPort] + provider: RegisteredProfile + location: linux_ethportprovider + type: instance + namespace: root/interop + +[Linux_ReferencedProfileEthernetPort] + provider: ReferencedProfile + location: linux_ethportprovider + type: instance association + namespace: root/interop + +[Linux_ElementConformsToProfileEthernetPort] + provider: ElementConformsToProfile + location: linux_ethportprovider + type: instance association + namespace: root/interop + Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.registration (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/linux-ethernet-port-profile.registration 2008-07-10 23:03:14 UTC (rev 748) @@ -0,0 +1,13 @@ +# Classname Namespace ProviderName ProviderModule ProviderTypes ... +Linux_EthernetPort root/cimv2 EthernetPort linux_ethportprovider instance +Linux_LANEndpoint root/cimv2 LANEndpoint linux_ethportprovider instance +Linux_DeviceSAPImplementationEthernetPort root/cimv2 DeviceSAPImplementation linux_ethportprovider association +Linux_HostedAccessPointEthernetPort root/cimv2 HostedAccessPoint linux_ethportprovider instance association +Linux_SystemDeviceEthernetPort root/cimv2 SystemDevice linux_ethportprovider instance association +Linux_ElementCapabilitiesEthernetPort root/cimv2 ElementCapabilities linux_ethportprovider instance association +Linux_EnabledLogicalElementCapabilitiesEthernetPort root/cimv2 EnabledLogicalElementCapabilities linux_ethportprovider instance +Linux_ElementCapabilitiesLANEndpoint root/cimv2 ElementCapabilitiesLANEndpoint linux_ethportprovider instance association +Linux_EnabledLogicalElementCapabilitiesLANEndpoint root/cimv2 EnabledLogicalElementCapabilitiesLANEndpoint linux_ethportprovider instance +Linux_RegisteredProfileEthernetPort root/interop RegisteredProfile linux_ethportprovider instance +Linux_ReferencedProfileEthernetPort root/interop ReferencedProfile linux_ethportprovider instance association +Linux_ElementConformsToProfileEthernetPort root/interop ElementConformsToProfile linux_ethportprovider instance association Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/register.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/register.sh 2008-07-10 23:03:14 UTC (rev 748) @@ -0,0 +1,7 @@ +#!/bin/sh +BASE=linux-ethernet-port-profile +TARGET= ../src/.libs/liblinux_ethportprovider.so +konkretreg $TARGET > $BASE.registration +provider-register.sh -r $BASE.registration -m $BASE.mof +cp $BASE-interop.mof /usr/var/lib/sfcb/stage/mofs/root/interop +cp $TARGET /usr/lib64/ Property changes on: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/register.sh ___________________________________________________________________ Name: svn:executable + * Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ConcreteJob.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ConcreteJob.h 2008-07-10 22:38:17 UTC (rev 747) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ConcreteJob.h 2008-07-10 23:03:14 UTC (rev 748) @@ -563,69 +563,32 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_OperationalStatus_Unknown 0 +typedef enum _CIM_ConcreteJob_OperationalStatus_Enum +{ + CIM_ConcreteJob_OperationalStatus_Unknown = 0, + CIM_ConcreteJob_OperationalStatus_Other = 1, + CIM_ConcreteJob_OperationalStatus_OK = 2, + CIM_ConcreteJob_OperationalStatus_Degraded = 3, + CIM_ConcreteJob_OperationalStatus_Stressed = 4, + CIM_ConcreteJob_OperationalStatus_Predictive_Failure = 5, + CIM_ConcreteJob_OperationalStatus_Error = 6, + CIM_ConcreteJob_OperationalStatus_Non_Recoverable_Error = 7, + CIM_ConcreteJob_OperationalStatus_Starting = 8, + CIM_ConcreteJob_OperationalStatus_Stopping = 9, + CIM_ConcreteJob_OperationalStatus_Stopped = 10, + CIM_ConcreteJob_OperationalStatus_In_Service = 11, + CIM_ConcreteJob_OperationalStatus_No_Contact = 12, + CIM_ConcreteJob_OperationalStatus_Lost_Communication = 13, + CIM_ConcreteJob_OperationalStatus_Aborted = 14, + CIM_ConcreteJob_OperationalStatus_Dormant = 15, + CIM_ConcreteJob_OperationalStatus_Supporting_Entity_in_Error = 16, + CIM_ConcreteJob_OperationalStatus_Completed = 17, + CIM_ConcreteJob_OperationalStatus_Power_Mode = 18, + CIM_ConcreteJob_OperationalStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_OperationalStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_OperationalStatus_Enum; -/* "Other" */ -#define CIM_ConcreteJob_OperationalStatus_Other 1 - -/* "OK" */ -#define CIM_ConcreteJob_OperationalStatus_OK 2 - -/* "Degraded" */ -#define CIM_ConcreteJob_OperationalStatus_Degraded 3 - -/* "Stressed" */ -#define CIM_ConcreteJob_OperationalStatus_Stressed 4 - -/* "Predictive Failure" */ -#define CIM_ConcreteJob_OperationalStatus_Predictive_Failure 5 - -/* "Error" */ -#define CIM_ConcreteJob_OperationalStatus_Error 6 - -/* "Non-Recoverable Error" */ -#define CIM_ConcreteJob_OperationalStatus_Non_Recoverable_Error 7 - -/* "Starting" */ -#define CIM_ConcreteJob_OperationalStatus_Starting 8 - -/* "Stopping" */ -#define CIM_ConcreteJob_OperationalStatus_Stopping 9 - -/* "Stopped" */ -#define CIM_ConcreteJob_OperationalStatus_Stopped 10 - -/* "In Service" */ -#define CIM_ConcreteJob_OperationalStatus_In_Service 11 - -/* "No Contact" */ -#define CIM_ConcreteJob_OperationalStatus_No_Contact 12 - -/* "Lost Communication" */ -#define CIM_ConcreteJob_OperationalStatus_Lost_Communication 13 - -/* "Aborted" */ -#define CIM_ConcreteJob_OperationalStatus_Aborted 14 - -/* "Dormant" */ -#define CIM_ConcreteJob_OperationalStatus_Dormant 15 - -/* "Supporting Entity in Error" */ -#define CIM_ConcreteJob_OperationalStatus_Supporting_Entity_in_Error 16 - -/* "Completed" */ -#define CIM_ConcreteJob_OperationalStatus_Completed 17 - -/* "Power Mode" */ -#define CIM_ConcreteJob_OperationalStatus_Power_Mode 18 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_OperationalStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_OperationalStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_OperationalStatus_Unknown(SELF, INDEX)\ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0) @@ -877,30 +840,19 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_HealthState_Unknown 0 +typedef enum _CIM_ConcreteJob_HealthState_Enum +{ + CIM_ConcreteJob_HealthState_Unknown = 0, + CIM_ConcreteJob_HealthState_OK = 5, + CIM_ConcreteJob_HealthState_Degraded_Warning = 10, + CIM_ConcreteJob_HealthState_Minor_failure = 15, + CIM_ConcreteJob_HealthState_Major_failure = 20, + CIM_ConcreteJob_HealthState_Critical_failure = 25, + CIM_ConcreteJob_HealthState_Non_recoverable_error = 30, + CIM_ConcreteJob_HealthState_DMTF_Reserved = 0, +} +CIM_ConcreteJob_HealthState_Enum; -/* "OK" */ -#define CIM_ConcreteJob_HealthState_OK 5 - -/* "Degraded/Warning" */ -#define CIM_ConcreteJob_HealthState_Degraded_Warning 10 - -/* "Minor failure" */ -#define CIM_ConcreteJob_HealthState_Minor_failure 15 - -/* "Major failure" */ -#define CIM_ConcreteJob_HealthState_Major_failure 20 - -/* "Critical failure" */ -#define CIM_ConcreteJob_HealthState_Critical_failure 25 - -/* "Non-recoverable error" */ -#define CIM_ConcreteJob_HealthState_Non_recoverable_error 30 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_HealthState_DMTF_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_HealthState_Unknown(SELF) \ CIM_ConcreteJob_Set_HealthState(SELF, 0) @@ -964,24 +916,17 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_PrimaryStatus_Unknown 0 +typedef enum _CIM_ConcreteJob_PrimaryStatus_Enum +{ + CIM_ConcreteJob_PrimaryStatus_Unknown = 0, + CIM_ConcreteJob_PrimaryStatus_OK = 1, + CIM_ConcreteJob_PrimaryStatus_Degraded = 2, + CIM_ConcreteJob_PrimaryStatus_Error = 3, + CIM_ConcreteJob_PrimaryStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_PrimaryStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_PrimaryStatus_Enum; -/* "OK" */ -#define CIM_ConcreteJob_PrimaryStatus_OK 1 - -/* "Degraded" */ -#define CIM_ConcreteJob_PrimaryStatus_Degraded 2 - -/* "Error" */ -#define CIM_ConcreteJob_PrimaryStatus_Error 3 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_PrimaryStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_PrimaryStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_PrimaryStatus_Unknown(SELF) \ CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0) @@ -1037,30 +982,19 @@ } } -/* "Not Available" */ -#define CIM_ConcreteJob_DetailedStatus_Not_Available 0 +typedef enum _CIM_ConcreteJob_DetailedStatus_Enum +{ + CIM_ConcreteJob_DetailedStatus_Not_Available = 0, + CIM_ConcreteJob_DetailedStatus_No_Additional_Information = 1, + CIM_ConcreteJob_DetailedStatus_Stressed = 2, + CIM_ConcreteJob_DetailedStatus_Predictive_Failure = 3, + CIM_ConcreteJob_DetailedStatus_Non_Recoverable_Error = 4, + CIM_ConcreteJob_DetailedStatus_Supporting_Entity_in_Error = 5, + CIM_ConcreteJob_DetailedStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_DetailedStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_DetailedStatus_Enum; -/* "No Additional Information" */ -#define CIM_ConcreteJob_DetailedStatus_No_Additional_Information 1 - -/* "Stressed" */ -#define CIM_ConcreteJob_DetailedStatus_Stressed 2 - -/* "Predictive Failure" */ -#define CIM_ConcreteJob_DetailedStatus_Predictive_Failure 3 - -/* "Non-Recoverable Error" */ -#define CIM_ConcreteJob_DetailedStatus_Non_Recoverable_Error 4 - -/* "Supporting Entity in Error" */ -#define CIM_ConcreteJob_DetailedStatus_Supporting_Entity_in_Error 5 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_DetailedStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_DetailedStatus_Vendor_Reserved 0 - /* "Not Available" */ #define CIM_ConcreteJob_Set_DetailedStatus_Not_Available(SELF) \ CIM_ConcreteJob_Set_DetailedStatus(SELF, 0) @@ -1124,63 +1058,30 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_OperatingStatus_Unknown 0 +typedef enum _CIM_ConcreteJob_OperatingStatus_Enum +{ + CIM_ConcreteJob_OperatingStatus_Unknown = 0, + CIM_ConcreteJob_OperatingStatus_Not_Available = 1, + CIM_ConcreteJob_OperatingStatus_Servicing = 2, + CIM_ConcreteJob_OperatingStatus_Starting = 3, + CIM_ConcreteJob_OperatingStatus_Stopping = 4, + CIM_ConcreteJob_OperatingStatus_Stopped = 5, + CIM_ConcreteJob_OperatingStatus_Aborted = 6, + CIM_ConcreteJob_OperatingStatus_Dormant = 7, + CIM_ConcreteJob_OperatingStatus_Completed = 8, + CIM_ConcreteJob_OperatingStatus_Migrating = 9, + CIM_ConcreteJob_OperatingStatus_Emigrating = 10, + CIM_ConcreteJob_OperatingStatus_Immigrating = 11, + CIM_ConcreteJob_OperatingStatus_Snapshotting = 12, + CIM_ConcreteJob_OperatingStatus_Shutting_Down = 13, + CIM_ConcreteJob_OperatingStatus_In_Test = 14, + CIM_ConcreteJob_OperatingStatus_Transitioning = 15, + CIM_ConcreteJob_OperatingStatus_In_Service = 16, + CIM_ConcreteJob_OperatingStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_OperatingStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_OperatingStatus_Enum; -/* "Not Available" */ -#define CIM_ConcreteJob_OperatingStatus_Not_Available 1 - -/* "Servicing" */ -#define CIM_ConcreteJob_OperatingStatus_Servicing 2 - -/* "Starting" */ -#define CIM_ConcreteJob_OperatingStatus_Starting 3 - -/* "Stopping" */ -#define CIM_ConcreteJob_OperatingStatus_Stopping 4 - -/* "Stopped" */ -#define CIM_ConcreteJob_OperatingStatus_Stopped 5 - -/* "Aborted" */ -#define CIM_ConcreteJob_OperatingStatus_Aborted 6 - -/* "Dormant" */ -#define CIM_ConcreteJob_OperatingStatus_Dormant 7 - -/* "Completed" */ -#define CIM_ConcreteJob_OperatingStatus_Completed 8 - -/* "Migrating" */ -#define CIM_ConcreteJob_OperatingStatus_Migrating 9 - -/* "Emigrating" */ -#define CIM_ConcreteJob_OperatingStatus_Emigrating 10 - -/* "Immigrating" */ -#define CIM_ConcreteJob_OperatingStatus_Immigrating 11 - -/* "Snapshotting" */ -#define CIM_ConcreteJob_OperatingStatus_Snapshotting 12 - -/* "Shutting Down" */ -#define CIM_ConcreteJob_OperatingStatus_Shutting_Down 13 - -/* "In Test" */ -#define CIM_ConcreteJob_OperatingStatus_In_Test 14 - -/* "Transitioning" */ -#define CIM_ConcreteJob_OperatingStatus_Transitioning 15 - -/* "In Service" */ -#define CIM_ConcreteJob_OperatingStatus_In_Service 16 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_OperatingStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_OperatingStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_OperatingStatus_Unknown(SELF) \ CIM_ConcreteJob_Set_OperatingStatus(SELF, 0) @@ -1288,27 +1189,18 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_CommunicationStatus_Unknown 0 +typedef enum _CIM_ConcreteJob_CommunicationStatus_Enum +{ + CIM_ConcreteJob_CommunicationStatus_Unknown = 0, + CIM_ConcreteJob_CommunicationStatus_Not_Available = 1, + CIM_ConcreteJob_CommunicationStatus_Communication_OK = 2, + CIM_ConcreteJob_CommunicationStatus_Lost_Communication = 3, + CIM_ConcreteJob_CommunicationStatus_No_Contact = 4, + CIM_ConcreteJob_CommunicationStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_CommunicationStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_CommunicationStatus_Enum; -/* "Not Available" */ -#define CIM_ConcreteJob_CommunicationStatus_Not_Available 1 - -/* "Communication OK" */ -#define CIM_ConcreteJob_CommunicationStatus_Communication_OK 2 - -/* "Lost Communication" */ -#define CIM_ConcreteJob_CommunicationStatus_Lost_Communication 3 - -/* "No Contact" */ -#define CIM_ConcreteJob_CommunicationStatus_No_Contact 4 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_CommunicationStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_CommunicationStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_CommunicationStatus_Unknown(SELF) \ CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0) @@ -1565,42 +1457,23 @@ } } -/* "January" */ -#define CIM_ConcreteJob_RunMonth_January 0 +typedef enum _CIM_ConcreteJob_RunMonth_Enum +{ + CIM_ConcreteJob_RunMonth_January = 0, + CIM_ConcreteJob_RunMonth_February = 1, + CIM_ConcreteJob_RunMonth_March = 2, + CIM_ConcreteJob_RunMonth_April = 3, + CIM_ConcreteJob_RunMonth_May = 4, + CIM_ConcreteJob_RunMonth_June = 5, + CIM_ConcreteJob_RunMonth_July = 6, + CIM_ConcreteJob_RunMonth_August = 7, + CIM_ConcreteJob_RunMonth_September = 8, + CIM_ConcreteJob_RunMonth_October = 9, + CIM_ConcreteJob_RunMonth_November = 10, + CIM_ConcreteJob_RunMonth_December = 11, +} +CIM_ConcreteJob_RunMonth_Enum; -/* "February" */ -#define CIM_ConcreteJob_RunMonth_February 1 - -/* "March" */ -#define CIM_ConcreteJob_RunMonth_March 2 - -/* "April" */ -#define CIM_ConcreteJob_RunMonth_April 3 - -/* "May" */ -#define CIM_ConcreteJob_RunMonth_May 4 - -/* "June" */ -#define CIM_ConcreteJob_RunMonth_June 5 - -/* "July" */ -#define CIM_ConcreteJob_RunMonth_July 6 - -/* "August" */ -#define CIM_ConcreteJob_RunMonth_August 7 - -/* "September" */ -#define CIM_ConcreteJob_RunMonth_September 8 - -/* "October" */ -#define CIM_ConcreteJob_RunMonth_October 9 - -/* "November" */ -#define CIM_ConcreteJob_RunMonth_November 10 - -/* "December" */ -#define CIM_ConcreteJob_RunMonth_December 11 - /* "January" */ #define CIM_ConcreteJob_Set_RunMonth_January(SELF) \ CIM_ConcreteJob_Set_RunMonth(SELF, 0) @@ -1711,51 +1584,26 @@ } } -/* "-Saturday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Saturday -7 +typedef enum _CIM_ConcreteJob_RunDayOfWeek_Enum +{ + CIM_ConcreteJob_RunDayOfWeek__Saturday = -7, + CIM_ConcreteJob_RunDayOfWeek__Friday = -6, + CIM_ConcreteJob_RunDayOfWeek__Thursday = -5, + CIM_ConcreteJob_RunDayOfWeek__Wednesday = -4, + CIM_ConcreteJob_RunDayOfWeek__Tuesday = -3, + CIM_ConcreteJob_RunDayOfWeek__Monday = -2, + CIM_ConcreteJob_RunDayOfWeek__Sunday = -1, + CIM_ConcreteJob_RunDayOfWeek_ExactDayOfMonth = 0, + CIM_ConcreteJob_RunDayOfWeek_Sunday = 1, + CIM_ConcreteJob_RunDayOfWeek_Monday = 2, + CIM_ConcreteJob_RunDayOfWeek_Tuesday = 3, + CIM_ConcreteJob_RunDayOfWeek_Wednesday = 4, + CIM_ConcreteJob_RunDayOfWeek_Thursday = 5, + CIM_ConcreteJob_RunDayOfWeek_Friday = 6, + CIM_ConcreteJob_RunDayOfWeek_Saturday = 7, +} +CIM_ConcreteJob_RunDayOfWeek_Enum; -/* "-Friday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Friday -6 - -/* "-Thursday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Thursday -5 - -/* "-Wednesday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Wednesday -4 - -/* "-Tuesday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Tuesday -3 - -/* "-Monday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Monday -2 - -/* "-Sunday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Sunday -1 - -/* "ExactDayOfMonth" */ -#define CIM_ConcreteJob_RunDayOfWeek_ExactDayOfMonth 0 - -/* "Sunday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Sunday 1 - -/* "Monday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Monday 2 - -/* "Tuesday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Tuesday 3 - -/* "Wednesday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Wednesday 4 - -/* "Thursday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Thursday 5 - -/* "Friday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Friday 6 - -/* "Saturday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Saturday 7 - /* "-Saturday" */ #define CIM_ConcreteJob_Set_RunDayOfWeek__Saturday(SELF) \ CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -7) @@ -1878,12 +1726,13 @@ } } -/* "Local Time" */ -#define CIM_ConcreteJob_LocalOrUtcTime_Local_Time 1 +typedef enum _CIM_ConcreteJob_LocalOrUtcTime_Enum +{ + CIM_ConcreteJob_LocalOrUtcTime_Local_Time = 1, + CIM_ConcreteJob_LocalOrUtcTime_UTC_Time = 2, +} +CIM_ConcreteJob_LocalOrUtcTime_Enum; -/* "UTC Time" */ -#define CIM_ConcreteJob_LocalOrUtcTime_UTC_Time 2 - /* "Local Time" */ #define CIM_ConcreteJob_Set_LocalOrUtcTime_Local_Time(SELF) \ CIM_ConcreteJob_Set_LocalOrUtcTime(SELF, 1) @@ -2204,24 +2053,17 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_RecoveryAction_Unknown 0 +typedef enum _CIM_ConcreteJob_RecoveryAction_Enum +{ + CIM_ConcreteJob_RecoveryAction_Unknown = 0, + CIM_ConcreteJob_RecoveryAction_Other = 1, + CIM_ConcreteJob_RecoveryAction_Do_Not_Continue = 2, + CIM_ConcreteJob_RecoveryAction_Continue_With_Next_Job = 3, + CIM_ConcreteJob_RecoveryAction_Re_run_Job = 4, + CIM_ConcreteJob_RecoveryAction_Run_Recovery_Job = 5, +} +CIM_ConcreteJob_RecoveryAction_Enum; -/* "Other" */ -#define CIM_ConcreteJob_RecoveryAction_Other 1 - -/* "Do Not Continue" */ -#define CIM_ConcreteJob_RecoveryAction_Do_Not_Continue 2 - -/* "Continue With Next Job" */ -#define CIM_ConcreteJob_RecoveryAction_Continue_With_Next_Job 3 - -/* "Re-run Job" */ -#define CIM_ConcreteJob_RecoveryAction_Re_run_Job 4 - -/* "Run Recovery Job" */ -#define CIM_ConcreteJob_RecoveryAction_Run_Recovery_Job 5 - /* "Unknown" */ #define CIM_ConcreteJob_Set_RecoveryAction_Unknown(SELF) \ CIM_ConcreteJob_Set_RecoveryAction(SELF, 0) @@ -2361,45 +2203,24 @@ } } -/* "New" */ -#define CIM_ConcreteJob_JobState_New 2 +typedef enum _CIM_ConcreteJob_JobState_Enum +{ + CIM_ConcreteJob_JobState_New = 2, + CIM_ConcreteJob_JobState_Starting = 3, + CIM_ConcreteJob_JobState_Running = 4, + CIM_ConcreteJob_JobState_Suspended = 5, + CIM_ConcreteJob_JobState_Shutting_Down = 6, + CIM_ConcreteJob_JobState_Completed = 7, + CIM_ConcreteJob_JobState_Terminated = 8, + CIM_ConcreteJob_JobState_Killed = 9, + CIM_ConcreteJob_JobState_Exception = 10, + CIM_ConcreteJob_JobState_Service = 11, + CIM_ConcreteJob_JobState_Query_Pending = 12, + CIM_ConcreteJob_JobState_DMTF_Reserved = 13, + CIM_ConcreteJob_JobState_Vendor_Reserved = 32768, +} +CIM_ConcreteJob_JobState_Enum; -/* "Starting" */ -#define CIM_ConcreteJob_JobState_Starting 3 - -/* "Running" */ -#define CIM_ConcreteJob_JobState_Running 4 - -/* "Suspended" */ -#define CIM_ConcreteJob_JobState_Suspended 5 - -/* "Shutting Down" */ -#define CIM_ConcreteJob_JobState_Shutting_Down 6 - -/* "Completed" */ -#define CIM_ConcreteJob_JobState_Completed 7 - -/* "Terminated" */ -#define CIM_ConcreteJob_JobState_Terminated 8 - -/* "Killed" */ -#define CIM_ConcreteJob_JobState_Killed 9 - -/* "Exception" */ -#define CIM_ConcreteJob_JobState_Exception 10 - -/* "Service" */ -#define CIM_ConcreteJob_JobState_Service 11 - -/* "Query Pending" */ -#define CIM_ConcreteJob_JobState_Query_Pending 12 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_JobState_DMTF_Reserved 13 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_JobState_Vendor_Reserved 32768 - /* "New" */ #define CIM_ConcreteJob_Set_JobState_New(SELF) \ CIM_ConcreteJob_Set_JobState(SELF, 2) Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ServiceAccessPoint.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ServiceAccessPoint.h 2008-07-10 22:38:17 UTC (rev 747) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ServiceAccessPoint.h 2008-07-10 23:03:14 UTC (rev 748) @@ -671,69 +671,32 @@ } } -/* "Unknown" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Unknown 0 +typedef enum _CIM_ServiceAccessPoint_OperationalStatus_Enum +{ + CIM_ServiceAccessPoint_OperationalStatus_Unknown = 0, + CIM_ServiceAccessPoint_OperationalStatus_Other = 1, + CIM_ServiceAccessPoint_OperationalStatus_OK = 2, + CIM_ServiceAccessPoint_OperationalStatus_Degraded = 3, + CIM_ServiceAccessPoint_OperationalStatus_Stressed = 4, + CIM_ServiceAccessPoint_OperationalStatus_Predictive_Failure = 5, + CIM_ServiceAccessPoint_OperationalStatus_Error = 6, + CIM_ServiceAccessPoint_OperationalStatus_Non_Recoverable_Error = 7, + CIM_ServiceAccessPoint_OperationalStatus_Starting = 8, + CIM_ServiceAccessPoint_OperationalStatus_Stopping = 9, + CIM_ServiceAccessPoint_OperationalStatus_Stopped = 10, + CIM_ServiceAccessPoint_OperationalStatus_In_Service = 11, + CIM_ServiceAccessPoint_OperationalStatus_No_Contact = 12, + CIM_ServiceAccessPoint_OperationalStatus_Lost_Communication = 13, + CIM_ServiceAccessPoint_OperationalStatus_Aborted = 14, + CIM_ServiceAccessPoint_OperationalStatus_Dormant = 15, + CIM_ServiceAccessPoint_OperationalStatus_Supporting_Entity_in_Error = 16, + CIM_ServiceAccessPoint_OperationalStatus_Completed = 17, + CIM_ServiceAccessPoint_OperationalStatus_Power_Mode = 18, + CIM_ServiceAccessPoint_OperationalStatus_DMTF_Reserved = 0, + CIM_ServiceAccessPoint_OperationalStatus_Vendor_Reserved = 0, +} +CIM_ServiceAccessPoint_OperationalStatus_Enum; -/* "Other" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Other 1 - -/* "OK" */ -#define CIM_ServiceAccessPoint_OperationalStatus_OK 2 - -/* "Degraded" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Degraded 3 - -/* "Stressed" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Stressed 4 - -/* "Predictive Failure" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Predictive_Failure 5 - -/* "Error" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Error 6 - -/* "Non-Recoverable Error" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Non_Recoverable_Error 7 - -/* "Starting" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Starting 8 - -/* "Stopping" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Stopping 9 - -/* "Stopped" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Stopped 10 - -/* "In Service" */ -#define CIM_ServiceAccessPoint_OperationalStatus_In_Service 11 - -/* "No Contact" */ -#define CIM_ServiceAccessPoint_OperationalStatus_No_Contact 12 - -/* "Lost Communication" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Lost_Communication 13 - -/* "Aborted" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Aborted 14 - -/* "Dormant" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Dormant 15 - -/* "Supporting Entity in Error" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Supporting_Entity_in_Error 16 - -/* "Completed" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Completed 17 - -/* "Power Mode" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Power_Mode 18 - -/* "DMTF Reserved" */ -#define CIM_ServiceAccessPoint_OperationalStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ServiceAccessPoint_OperationalStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ServiceAccessPoint_Set_OperationalStatus_Unknown(SELF, INDEX)\ CIM_ServiceAccessPoint_Set_OperationalStatus(SELF, INDEX, 0) @@ -985,30 +948,19 @@ } } -/* "Unknown" */ -#define CIM_ServiceAccessPoint_HealthState_Unknown 0 +typedef enum _CIM_ServiceAccessPoint_HealthState_Enum +{ + CIM_ServiceAccessPoint_HealthState_Unknown = 0, + CIM_ServiceAccessPoint_HealthState_OK = 5, + CIM_ServiceAccessPoint_HealthState_Degraded_Warning = 10, + CIM_ServiceAccessPoint_HealthState_Minor_failure = 15, + CIM_ServiceAccessPoint_HealthState_Major_failure = 20, + CIM_ServiceAccessPoint_HealthState_Critical_failure = 25, + CIM_ServiceAccessPoint_HealthState_Non_recoverable_error = 30, + CIM_ServiceAccessPoint_HealthState_DMTF_Reserved = 0, +} +CIM_ServiceAccessPoint_HealthState_Enum; -/* "OK" */ -#define CIM_ServiceAccessPoint_HealthState_OK 5 - -/* "Degraded/Warning" */ -#define CIM_ServiceAccessPoint_HealthState_Degraded_Warning 10 - -/* "Minor failure" */ -#define CIM_ServiceAccessPoint_HealthState_Minor_failure 15 - -/* "Major failure" */ -#define CIM_ServiceAccessPoint_HealthState_Major_failure 20 - -/* "Critical failure" */ -#define CIM_ServiceAccessPoint_HealthState_Critical_failure 25 - -/* "Non-recoverable error" */ -#define CIM_ServiceAccessPoint_HealthState_Non_recoverable_error 30 - -/* "DMTF Reserved" */ -#define CIM_ServiceAccessPoint_HealthState_DMTF_Reserved 0 - /* "Unknown" */ #define CIM_ServiceAccessPoint_Set_HealthState_Unknown(SELF) \ CIM_ServiceAccessPoint_Set_HealthState(SELF, 0) @@ -1072,24 +1024,17 @@ } } -/* "Unknown" */ -#define CIM_ServiceAccessPoint_PrimaryStatus_Unknown 0 +typedef enum _CIM_ServiceAccessPoint_PrimaryStatus_Enum +{ + CIM_ServiceAccessPoint_PrimaryStatus_Unknown = 0, + CIM_ServiceAccessPoint_PrimaryStatus_OK = 1, + CIM_ServiceAccessPoint_PrimaryStatus_Degraded = 2, + CIM_ServiceAccessPoint_PrimaryStatus_Error = 3, + CIM_ServiceAccessPoint_PrimaryStatus_DMTF_Reserved = 0, + CIM_ServiceAccessPoint_PrimaryStatus_Vendor_Reserved = 0, +} +CIM_ServiceAccessPoint_PrimaryStatus_Enum; -/* "OK" */ -#define CIM_ServiceAccessPoint_PrimaryStatus_OK 1 - -/* "Degraded" */ -#define CIM_ServiceAccessPoint_PrimaryStatus_Degraded 2 - -/* "Error" */ -#define CIM_ServiceAccessPoint_PrimaryStatus_Error 3 - -/* "DMTF Reserved" */ -#define CIM_ServiceAccessPoint_PrimaryStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ServiceAccessPoint_PrimaryStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ServiceAccessPoint_Set_PrimaryStatus_Unknown(SELF) \ CIM_ServiceAccessPoint_Set_PrimaryStatus(SELF, 0) @@ -1145,30 +1090,19 @@ } } -/* "Not Available" */ -#define CIM_ServiceAccessPoint_DetailedStatus_Not_Available 0 +typedef enum _CIM_ServiceAccessPoint_DetailedStatus_Enum +{ + CIM_ServiceAccessPoint_DetailedStatus_Not_Available = 0, + CIM_ServiceAccessPoint_DetailedStatus_No_Additional_Information = 1, + CIM_ServiceAccessPoint_DetailedStatus_Stressed = 2, + CIM_ServiceAccessPoint_DetailedStatus_Predictive_Failure = 3, + CIM_ServiceAccessPoint_DetailedStatus_Non_Recoverable_Error = 4, + CIM_ServiceAccessPoint_DetailedStatus_Supporting_Entity_in_Error = 5, + CIM_ServiceAccessPoint_DetailedStatus_DMTF_Reserved = 0, + CIM_ServiceAccessPoint_DetailedStatus_Vendor_Reserved = 0, +} +CIM_ServiceAccessPoint_DetailedStatus_Enum; -/* "No Additional Information" */ -#define CIM_ServiceAccessPoint_DetailedStatus_No_Additional_Information 1 - -/* "Stressed" */ -#define CIM_ServiceAccessPoint_DetailedStatus_Stressed 2 - -/* "Predictive Failure" */ -#define CIM_ServiceAccessPoint_DetailedStatus_Predictive_Failure 3 - -/* "Non-Recoverable Error" */ -#define CIM_ServiceAccessPoint_DetailedStatus_Non_Recoverable_Error 4 - -/* "Supporting Entity in Error" */ -#define CIM_ServiceAccessPoint_DetailedStatus_Supporting_Entity_in_Error 5 - -/* "DMTF Reserved" */ -#define CIM_ServiceAccessPoint_DetailedStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ServiceAccessPoint_DetailedStatus_Vendor_Reserved 0 - /* "Not Available" */ #define CIM_ServiceAccessPoint_Set_DetailedStatus_Not_Available(SELF) \ CIM_ServiceAccessPoint_Set_DetailedStatus(SELF, 0) @@ -1232,63 +1166,30 @@ } } -/* "Unknown" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Unknown 0 +typedef enum _CIM_ServiceAccessPoint_OperatingStatus_Enum +{ + CIM_ServiceAccessPoint_OperatingStatus_Unknown = 0, + CIM_ServiceAccessPoint_OperatingStatus_Not_Available = 1, + CIM_ServiceAccessPoint_OperatingStatus_Servicing = 2, + CIM_ServiceAccessPoint_OperatingStatus_Starting = 3, + CIM_ServiceAccessPoint_OperatingStatus_Stopping = 4, + CIM_ServiceAccessPoint_OperatingStatus_Stopped = 5, + CIM_ServiceAccessPoint_OperatingStatus_Aborted = 6, + CIM_ServiceAccessPoint_OperatingStatus_Dormant = 7, + CIM_ServiceAccessPoint_OperatingStatus_Completed = 8, + CIM_ServiceAccessPoint_OperatingStatus_Migrating = 9, + CIM_ServiceAccessPoint_OperatingStatus_Emigrating = 10, + CIM_ServiceAccessPoint_OperatingStatus_Immigrating = 11, + CIM_ServiceAccessPoint_OperatingStatus_Snapshotting = 12, + CIM_ServiceAccessPoint_OperatingStatus_Shutting_Down = 13, + CIM_ServiceAccessPoint_OperatingStatus_In_Test = 14, + CIM_ServiceAccessPoint_OperatingStatus_Transitioning = 15, + CIM_ServiceAccessPoint_OperatingStatus_In_Service = 16, + CIM_ServiceAccessPoint_OperatingStatus_DMTF_Reserved = 0, + CIM_ServiceAccessPoint_OperatingStatus_Vendor_Reserved = 0, +} +CIM_ServiceAccessPoint_OperatingStatus_Enum; -/* "Not Available" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Not_Available 1 - -/* "Servicing" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Servicing 2 - -/* "Starting" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Starting 3 - -/* "Stopping" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Stopping 4 - -/* "Stopped" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Stopped 5 - -/* "Aborted" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Aborted 6 - -/* "Dormant" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Dormant 7 - -/* "Completed" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Completed 8 - -/* "Migrating" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Migrating 9 - -/* "Emigrating" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Emigrating 10 - -/* "Immigrating" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Immigrating 11 - -/* "Snapshotting" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Snapshotting 12 - -/* "Shutting Down" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Shutting_Down 13 - -/* "In Test" */ -#define CIM_ServiceAccessPoint_OperatingStatus_In_Test 14 - -/* "Transitioning" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Transitioning 15 - -/* "In Service" */ -#define CIM_ServiceAccessPoint_OperatingStatus_In_Service 16 - -/* "DMTF Reserved" */ -#define CIM_ServiceAccessPoint_OperatingStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ServiceAccessPoint_OperatingStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ServiceAccessPoint_Set_OperatingStatus_Unknown(SELF) \ CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 0) @@ -1396,27 +1297,18 @@ } } -/* "Unknown" */ -#define CIM_ServiceAccessPoint_CommunicationStatus_Unknown 0 +typedef enum _CIM_ServiceAccessPoint_CommunicationStatus_Enum +{ + CIM_ServiceAccessPoint_CommunicationStatus_Unknown = 0, + CIM_ServiceAccessPoint_CommunicationStatus_Not_Available = 1, + CIM_ServiceAccessPoint_CommunicationStatus_Communication_OK = 2, + CIM_ServiceAccessPoint_CommunicationStatus_Lost_Communication = 3, + CIM_ServiceAccessPoint_CommunicationStatus_No_Contact = 4, + CIM_ServiceAccessPoint_CommunicationStatus_DMTF_Reserved = 0, + CIM_ServiceAccessPoint_CommunicationStatus_Vendor_Reserved = 0, +} +CIM_ServiceAccessPoint_CommunicationStatus_Enum; -/* "Not Available" */ -#define CIM_ServiceAccessPoint_CommunicationStatus_Not_Available 1 - -/* "Communication OK" */ -#define CIM_ServiceAccessPoint_CommunicationStatus_Communication_OK 2 - -/* "Lost Communication" */ -#define CIM_ServiceAccessPoint_CommunicationStatus_Lost_Communication 3 - -/* "No Contact" */ -#define CIM_ServiceAccessPoint_CommunicationStatus_No_Contact 4 - -/* "DMTF Reserved" */ -#define CIM_ServiceAccessPoint_CommunicationStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ServiceAccessPoint_CommunicationStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ServiceAccessPoint_Set_CommunicationStatus_Unknown(SELF) \ CIM_ServiceAccessPoint_Set_CommunicationStatus(SELF, 0) @@ -1476,45 +1368,24 @@ } } -/* "Unknown" */ -#define CIM_ServiceAccessPoint_EnabledState_Unknown 0 +typedef enum _CIM_ServiceAccessPoint_EnabledState_Enum +{ + CIM_ServiceAccessPoint_EnabledState_Unknown = 0, + CIM_ServiceAccessPoint_EnabledState_Other = 1, + CIM_ServiceAccessPoint_EnabledState_Enabled = 2, + CIM_ServiceAccessPoint_EnabledState_Disabled = 3, + CIM_ServiceAccessPoint_EnabledState_Shutting_Down = 4, + CIM_ServiceAccessPoint_EnabledState_Not_Applicable = 5, + CIM_ServiceAccessPoint_EnabledState_Enabled_but_Offline = 6, + CIM_ServiceAccessPoint_EnabledState_In_Test = 7, + CIM_ServiceAccessPoint_EnabledState_Deferred = 8, + CIM_ServiceAccessPoint_EnabledState_Quiesce = 9, + CIM_ServiceAccessPoint_EnabledState_Starting = 10, + CIM_ServiceAccessPoint_EnabledState_DMTF_Reserved = 11, + CIM_ServiceAccessPoint_EnabledState_Vendor_Reserved = 32768, +} +CIM_ServiceAccessPoint_EnabledState_Enum; -/* "Other" */ -#define CIM_ServiceAccessPoint_EnabledState_Other 1 - -/* "Enabled" */ -#define CIM_ServiceAccessPoint_EnabledState_Enabled 2 - -/* "Disabled" */ -#define CIM_ServiceAccessPoint_EnabledState_Disabled 3 - -/* "Shutting Down" */ -#define CIM_ServiceAccessPoint_EnabledState_Shutting_Down 4 - -/* "Not Applicable" */ -#define CIM_ServiceAccessPoint_EnabledState_Not_Applicable 5 - -/* "Enabled but Offline" */ -#define CIM_ServiceAccessPoint_EnabledState_Enabled_but_Offline 6 - -/* "In Test" */ -#define CIM_ServiceAccessPoint_EnabledState_In_Test 7 - -/* "Deferred" */ -#define CIM_ServiceAccessPoint_EnabledState_Deferred 8 - -/* "Quiesce" */ -#define CIM_ServiceAccessPoint_EnabledState_Quiesce 9 - -/* "Starting" */ -#define CIM_ServiceAccessPoint_EnabledState_Starting 10 - -/* "DMTF Reserved" */ -#define CIM_ServiceAccessPoint_EnabledState_DMTF_Reserved 11 - -/* "Vendor Reserved" */ -#define CIM_ServiceAccessPoint_EnabledState_Vendor_Reserved 32768 - /* "Unknown" */ #define CIM_ServiceAccessPoint_Set_EnabledState_Unknown(SELF) \ CIM_ServiceAccessPoint_Set_EnabledState(SELF, 0) @@ -1640,48 +1511,25 @@ } } -/* "Unknown" */ -#define CIM_ServiceAccessPoint_RequestedState_Unknown 0 +typedef enum _CIM_ServiceAccessPoint_RequestedState_Enum +{ + CIM_ServiceAccessPoint_RequestedState_Unknown = 0, + CIM_ServiceAccessPoint_RequestedState_Enabled = 2, + CIM_ServiceAccessPoint_RequestedState_Disabled = 3, + CIM_ServiceAccessPoint_RequestedState_Shut_Down = 4, + CIM_ServiceAccessPoint_RequestedState_No_Change = 5, + CIM_ServiceAccessPoint_RequestedState_Offline = 6, + CIM_ServiceAccessPoint_RequestedState_Test = 7, + CIM_ServiceAccessPoint_RequestedState_Deferred = 8, + CIM_ServiceAccessPoint_RequestedState_Quiesce = 9, + CIM_ServiceAccessPoint_RequestedState_Reboot = 10, + CIM_ServiceAccessPoint_RequestedState_Reset = 11, + CIM_ServiceAccessPoint_RequestedState_Not_Applicable = 12, + CIM_ServiceAccessPoint_RequestedState_DMTF_Reserved = 0, + CIM_ServiceAccessPoint_RequestedState_Vendor_Reserved = 32768, +} +CIM_ServiceAccessPoint_RequestedState_Enum; -/* "Enabled" */ -#define CIM_ServiceAccessPoint_RequestedState_Enabled 2 - -/* "Disabled" */ -#define CIM_ServiceAccessPoint_RequestedState_Disabled 3 - -/* "Shut Down" */ -#define CIM_ServiceAccessPoint_RequestedState_Shut_Down 4 - -/* "No Change" */ -#define CIM_ServiceAccessPoint_RequestedState_No_Change 5 - -/* "Offline" */ -#define CIM_ServiceAccessPoint_RequestedState_Offline 6 - -/* "Test" */ -#define CIM_ServiceAccessPoint_RequestedState_Test 7 - -/* "Deferred" */ -#define CIM_ServiceAccessPoint_RequestedState_Deferred 8 - -/* "Quiesce" */ -#define CIM_ServiceAccessPoint_RequestedState_Quiesce 9 - -/* "Reboot" */ -#define CIM_ServiceAccessPoint_RequestedState_Reboot 10 - -/* "Reset" */ -#define CIM_ServiceAccessPoint_RequestedState_Reset 11 - -/* "Not Applicable" */ -#define CIM_ServiceAccessPoint_RequestedState_Not_Applicable 12 - -/* "DMTF Reserved" */ -#define CIM_ServiceAccessPoint_RequestedState_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ServiceAccessPoint_RequestedState_Vendor_Reserved 32768 - /* "Unknown" */ #define CIM_ServiceAccessPoint_Set_RequestedState_Unknown(SELF) \ CIM_ServiceAccessPoint_Set_RequestedState(SELF, 0) @@ -1769,30 +1617,19 @@ } } -/* "Enabled" */ -#define CIM_ServiceAccessPoint_EnabledDefault_Enabled 2 +typedef enum _CIM_ServiceAccessPoint_EnabledDefault_Enum +{ + CIM_ServiceAccessPoint_EnabledDefault_Enabled = 2, + CIM_ServiceAccessPoint_EnabledDefault_Disabled = 3, + CIM_ServiceAccessPoint_EnabledDefault_Not_Applicable = 5, + CIM_ServiceAccessPoint_EnabledDefault_Enabled_but_Offline = 6, + CIM_ServiceAccessPoint_EnabledDefault_No_Default = 7, + CIM_ServiceAccessPoint_EnabledDefault_Quiesce = 9, + CIM_ServiceAccessPoint_EnabledDefault_DMTF_Reserved = 0, + CIM_ServiceAccessPoint_EnabledDefault_Vendor_Reserved = 32768, +} +CIM_ServiceAccessPoint_EnabledDefault_Enum; -/* "Disabled" */ -#define CIM_ServiceAccessPoint_EnabledDefault_Disabled 3 - -/* "Not Applicable" */ -#define CIM_ServiceAccessPoint_EnabledDefault_Not_Applicable 5 - -/* "Enabled but Offline" */ -#define CIM_ServiceAccessPoint_EnabledDefault_Enabled_but_Offline 6 - -/* "No Default" */ -#define CIM_ServiceAccessPoint_EnabledDefault_No_Default 7 - -/* "Quiesce" */ -#define CIM_ServiceAccessPoint_EnabledDefault_Quiesce 9 - -/* "DMTF Reserved" */ -#define CIM_ServiceAccessPoint_EnabledDefault_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ServiceAccessPoint_EnabledDefault_Vendor_Reserved 32768 - /* "Enabled" */ #define CIM_ServiceAccessPoint_Set_EnabledDefault_Enabled(SELF) \ CIM_ServiceAccessPoint_Set_EnabledDefault(SELF, 2) @@ -1925,33 +1762,20 @@ } } -/* "Enabled" */ -#define CIM_ServiceAccessPoint_AvailableRequestedStates_Enabled 2 +typedef enum _CIM_ServiceAccessPoint_AvailableRequestedStates_Enum +{ + CIM_ServiceAccessPoint_AvailableRequestedStates_Enabled = 2, + CIM_ServiceAccessPoint_AvailableRequestedStates_Disabled = 3, + CIM_ServiceAccessPoint_AvailableRequestedStates_Shut_Down = 4, + CIM_ServiceAccessPoint_AvailableRequestedStates_Offline = 6, + CIM_ServiceAccessPoint_AvailableRequestedStates_Test = 7, + CIM_ServiceAccessPoint_AvailableRequestedStates_Defer = 8, + CIM_ServiceAccessPoint_AvailableRequestedStates_Quiesce = 9, + CIM_ServiceAccessPoint_AvailableRequestedStates_Reboot = 10, + CIM_ServiceAccessPoint_AvailableRequestedStates_Reset = 11, +} +CIM_ServiceAccessPoint_AvailableRequestedStates_Enum; -/* "Disabled" */ -#define CIM_ServiceAccessPoint_AvailableRequestedStates_Disabled 3 - -/* "Shut Down" */ -#define CIM_ServiceAccessPoint_AvailableRequestedStates_Shut_Down 4 - -/* "Offline" */ -#define CIM_ServiceAccessPoint_AvailableRequestedStates_Offline 6 - -/* "Test" */ -#define CIM_ServiceAccessPoint_AvailableRequestedStates_Test 7 - -/* "Defer" */ -#define CIM_ServiceAccessPoint_AvailableRequestedStates_Defer 8 - -/* "Quiesce" */ -#define CIM_ServiceAccessPoint_AvailableRequestedStates_Quiesce 9 - -/* "Reboot" */ -#define CIM_ServiceAccessPoint_AvailableRequestedStates_Reboot 10 - -/* "Reset" */ -#define CIM_ServiceAccessPoint_AvailableRequestedStates_Reset 11 - /* "Enabled" */ #define CIM_ServiceAccessPoint_Set_AvailableRequestedStates_Enabled(SELF, INDEX)\ CIM_ServiceAccessPoint_Set_AvailableRequestedStates(SELF, INDEX, 2) @@ -2019,42 +1843,23 @@ } } -/* "Unknown" */ -#define CIM_ServiceAccessPoint_TransitioningToState_Unknown 0 +typedef enum _CIM_ServiceAccessPoint_TransitioningToState_Enum +{ + CIM_ServiceAccessPoint_TransitioningToState_Unknown = 0, + CIM_ServiceAccessPoint_TransitioningToState_Enabled = 2, + CIM_ServiceAccessPoint_TransitioningToState_Disabled = 3, + CIM_ServiceAccessPoint_TransitioningToState_Shut_Down = 4, + CIM_ServiceAccessPoint_TransitioningToState_No_Change = 5, + CIM_ServiceAccessPoint_TransitioningToState_Offline = 6, + CIM_ServiceAccessPoint_TransitioningToState_Test = 7, + CIM_ServiceAccessPoint_TransitioningToState_Defer = 8, + CIM_ServiceAccessPoint_TransitioningToState_Quiesce = 9, + CIM_ServiceAccessPoint_TransitioningToState_Reboot = 10, + CIM_ServiceAccessPoint... [truncated message content] |
From: <mik...@us...> - 2008-07-10 22:38:11
|
Revision: 747 http://omc.svn.sourceforge.net/omc/?rev=747&view=rev Author: mike-brasher Date: 2008-07-10 15:38:17 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Added more autotools files to cleanup script. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh 2008-07-10 22:36:18 UTC (rev 746) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh 2008-07-10 22:38:17 UTC (rev 747) @@ -16,4 +16,13 @@ install-sh \ mof/Makefile.in \ src/Makefile.in \ - config.h.in~ + config.h.in~ \ + config.log \ + config.status \ + stamp-h1 \ + config.h \ + libtool \ + Makefile \ + mof/Makefile \ + src/.deps \ + src/Makefile This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-10 22:36:09
|
Revision: 746 http://omc.svn.sourceforge.net/omc/?rev=746&view=rev Author: mike-brasher Date: 2008-07-10 15:36:18 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Renamed library sblim_cmpiutil to sblim-cmpiutil. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-10 22:33:56 UTC (rev 745) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-10 22:36:18 UTC (rev 746) @@ -27,7 +27,7 @@ liblinux_fanprovider_la_LDFLAGS = \ -lpthread \ - -lsblim_cmpiutil \ + -lsblim-cmpiutil \ -version-info 1 liblinux_fanprovider_la_LIBADD = \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-10 22:33:46
|
Revision: 745 http://omc.svn.sourceforge.net/omc/?rev=745&view=rev Author: mike-brasher Date: 2008-07-10 15:33:56 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Cleanup Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ref/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-10 22:22:23
|
Revision: 744 http://omc.svn.sourceforge.net/omc/?rev=744&view=rev Author: mike-brasher Date: 2008-07-10 15:22:33 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Renamed back to libsblim-cmpiutil Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-10 22:21:30 UTC (rev 743) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-10 22:22:33 UTC (rev 744) @@ -39,7 +39,7 @@ liblinux_sshserviceprovider_la_LDFLAGS = \ -lkonkret \ -lpthread \ - -lsblim_cmpiutil \ + -lsblim-cmpiutil \ -version-info 1 #liblinux_sshserviceprovider_la_LIBADD = -lkonkret This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-10 22:21:22
|
Revision: 743 http://omc.svn.sourceforge.net/omc/?rev=743&view=rev Author: mike-brasher Date: 2008-07-10 15:21:30 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Renamed libsblim_cmpiuti Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-10 22:11:11 UTC (rev 742) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-10 22:21:30 UTC (rev 743) @@ -39,7 +39,7 @@ liblinux_sshserviceprovider_la_LDFLAGS = \ -lkonkret \ -lpthread \ - -lsblim-cmpiutil \ + -lsblim_cmpiutil \ -version-info 1 #liblinux_sshserviceprovider_la_LIBADD = -lkonkret This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-10 22:11:07
|
Revision: 742 http://omc.svn.sourceforge.net/omc/?rev=742&view=rev Author: mike-brasher Date: 2008-07-10 15:11:11 -0700 (Thu, 10 Jul 2008) Log Message: ----------- New profile registration providers. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/cleanup.sh cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile-interop.mof cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_RegisteredProfile.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfile.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfileProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ReferencedProfile.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ReferencedProfileProvider.c Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/install.sh Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/cleanup.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/cleanup.sh 2008-07-10 20:25:11 UTC (rev 741) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/cleanup.sh 2008-07-10 22:11:11 UTC (rev 742) @@ -16,4 +16,14 @@ install-sh \ mof/Makefile.in \ src/Makefile.in \ - config.h.in~ + config.h.in~ \ + config.log \ + config.status \ + stamp-h1 \ + config.h \ + libtool \ + Makefile \ + mof/Makefile \ + src/.deps \ + src/Makefile + Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile-interop.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile-interop.mof 2008-07-10 20:25:11 UTC (rev 741) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile-interop.mof 2008-07-10 22:11:11 UTC (rev 742) @@ -1,3 +1,17 @@ class Linux_SSHRegisteredProfile : CIM_RegisteredProfile { }; + +[Association] +class Linux_SSHElementConformsToProfile : CIM_ElementConformsToProfile +{ + [Key] Linux_SSHRegisteredProfile REF ConformantStandard; + [Key] Linux_SSHProtocolService REF ManagedElement; +}; + +[Association] +class Linux_SSHReferencedProfile : CIM_ReferencedProfile +{ + [Key] CIM_RegisteredProfile REF Antecedent; + [Key] Linux_SSHRegisteredProfile REF Dependent; +}; Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-10 20:25:11 UTC (rev 741) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-10 22:11:11 UTC (rev 742) @@ -1,8 +1,10 @@ Linux_SSHCapabilities root/cimv2 Capabilities linux_sshserviceprovider instance method Linux_SSHElementCapabilities root/cimv2 ElementCapabilities linux_sshserviceprovider instance association +Linux_SSHElementConformsToProfile root/cimv2 ElementConformsToProfile linux_sshserviceprovider instance association Linux_SSHHostedAccessPoint root/cimv2 HostedAccessPoint linux_sshserviceprovider instance association Linux_SSHHostedService root/cimv2 HostedService linux_sshserviceprovider instance association Linux_SSHProtocolEndpoint root/cimv2 ProtocolEndpoint linux_sshserviceprovider instance method Linux_SSHProtocolService root/cimv2 ProtocolService linux_sshserviceprovider instance method Linux_SSHProvidesEndpoint root/cimv2 ProvidesEndpoint linux_sshserviceprovider instance association +Linux_SSHReferencedProfile root/cimv2 ReferencedProfile linux_sshserviceprovider instance association Linux_SSHRegisteredProfile root/interop RegisteredProfile linux_sshserviceprovider instance method Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh 2008-07-10 20:25:11 UTC (rev 741) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh 2008-07-10 22:11:11 UTC (rev 742) @@ -1,3 +1,6 @@ #!/bin/sh +TARGET=../src/.libs/liblinux_sshserviceprovider.so +konkretreg $TARGET > linux-ssh-service-profile.registration provider-register.sh -r linux-ssh-service-profile.registration -m linux-ssh-service-profile.mof cp linux-ssh-service-profile-interop.mof /usr/var/lib/sfcb/stage/mofs/root/interop +cp $TARGET /usr/lib64/ Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_RegisteredProfile.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_RegisteredProfile.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_RegisteredProfile.h 2008-07-10 22:11:11 UTC (rev 742) @@ -0,0 +1,883 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_RegisteredProfile_h +#define _konkrete_CIM_RegisteredProfile_h + +#include <konkret/konkret.h> + +/* +**============================================================================== +** +** struct CIM_RegisteredProfileRef +** +**============================================================================== +*/ + +/* classname=CIM_RegisteredProfile */ +typedef struct _CIM_RegisteredProfileRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_RegisteredProfile features */ + const KString InstanceID; +} +CIM_RegisteredProfileRef; + +static const unsigned char __CIM_RegisteredProfileRef_sig[] = +{ + 0x15,0x43,0x49,0x4d,0x5f,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64, + 0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x01,0x4c,0x0a,0x49,0x6e,0x73,0x74, + 0x61,0x6e,0x63,0x65,0x49,0x44,0x00, +}; + +KINLINE void CIM_RegisteredProfileRef_Init( + CIM_RegisteredProfileRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_RegisteredProfileRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_RegisteredProfileRef_InitFromInstance( + CIM_RegisteredProfileRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_RegisteredProfileRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_RegisteredProfileRef_InitFromObjectPath( + CIM_RegisteredProfileRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_RegisteredProfileRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_RegisteredProfileRef_Print( + const CIM_RegisteredProfileRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_RegisteredProfileRef_ToInstance( + const CIM_RegisteredProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_RegisteredProfileRef_ToObjectPath( + const CIM_RegisteredProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_RegisteredProfileRef_NameSpace( + CIM_RegisteredProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_RegisteredProfileRef_SetString_InstanceID( + CIM_RegisteredProfileRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfileRef_Set_InstanceID( + CIM_RegisteredProfileRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfileRef_Null_InstanceID( + CIM_RegisteredProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfileRef_Clr_InstanceID( + CIM_RegisteredProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_RegisteredProfile +** +**============================================================================== +*/ + +/* classname=CIM_RegisteredProfile */ +typedef struct _CIM_RegisteredProfile +{ + KBase __base; + /* CIM_ManagedElement features */ + const KString Caption; + const KString Description; + const KString ElementName; + /* CIM_RegisteredProfile features */ + const KString InstanceID; + const KUint16 RegisteredOrganization; + const KString OtherRegisteredOrganization; + const KString RegisteredName; + const KString RegisteredVersion; + const KUint16A AdvertiseTypes; + const KStringA AdvertiseTypeDescriptions; +} +CIM_RegisteredProfile; + +static const unsigned char __CIM_RegisteredProfile_sig[] = +{ + 0x15,0x43,0x49,0x4d,0x5f,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64, + 0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x0a,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, + 0x03,0x16,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x4f,0x72,0x67, + 0x61,0x6e,0x69,0x7a,0x61,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x1b,0x4f,0x74,0x68, + 0x65,0x72,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x4f,0x72,0x67, + 0x61,0x6e,0x69,0x7a,0x61,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0e,0x52,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x11,0x52, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x56,0x65,0x72,0x73,0x69,0x6f, + 0x6e,0x00,0x83,0x0e,0x41,0x64,0x76,0x65,0x72,0x74,0x69,0x73,0x65,0x54,0x79, + 0x70,0x65,0x73,0x00,0x8c,0x19,0x41,0x64,0x76,0x65,0x72,0x74,0x69,0x73,0x65, + 0x54,0x79,0x70,0x65,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e, + 0x73,0x00, +}; + +KINLINE void CIM_RegisteredProfile_Init( + CIM_RegisteredProfile* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_RegisteredProfile_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_RegisteredProfile_InitFromInstance( + CIM_RegisteredProfile* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_RegisteredProfile_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_RegisteredProfile_InitFromObjectPath( + CIM_RegisteredProfile* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_RegisteredProfile_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_RegisteredProfile_Print( + const CIM_RegisteredProfile* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_RegisteredProfile_ToInstance( + const CIM_RegisteredProfile* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_RegisteredProfile_ToObjectPath( + const CIM_RegisteredProfile* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_RegisteredProfile_NameSpace( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_RegisteredProfile_SetString_Caption( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_Caption( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_Caption( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_Caption( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_Description( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_Description( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_Description( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_Description( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_ElementName( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_ElementName( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_ElementName( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_ElementName( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_InstanceID( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_InstanceID( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_InstanceID( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_InstanceID( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_Set_RegisteredOrganization( + CIM_RegisteredProfile* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RegisteredOrganization; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Null_RegisteredOrganization( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RegisteredOrganization; + KUint16_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_RegisteredOrganization( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RegisteredOrganization; + KUint16_Clr(field); + } +} + +typedef enum _CIM_RegisteredProfile_RegisteredOrganization_Enum +{ + CIM_RegisteredProfile_RegisteredOrganization_Other = 1, + CIM_RegisteredProfile_RegisteredOrganization_DMTF = 2, + CIM_RegisteredProfile_RegisteredOrganization_CompTIA = 3, + CIM_RegisteredProfile_RegisteredOrganization_Consortium_for_Service_Innovation = 4, + CIM_RegisteredProfile_RegisteredOrganization_FAST = 5, + CIM_RegisteredProfile_RegisteredOrganization_GGF = 6, + CIM_RegisteredProfile_RegisteredOrganization_INTAP = 7, + CIM_RegisteredProfile_RegisteredOrganization_itSMF = 8, + CIM_RegisteredProfile_RegisteredOrganization_NAC = 9, + CIM_RegisteredProfile_RegisteredOrganization_Northwest_Energy_Efficiency_Alliance = 10, + CIM_RegisteredProfile_RegisteredOrganization_SNIA = 11, + CIM_RegisteredProfile_RegisteredOrganization_TM_Forum = 12, + CIM_RegisteredProfile_RegisteredOrganization_The_Open_Group = 13, + CIM_RegisteredProfile_RegisteredOrganization_ANSI = 14, + CIM_RegisteredProfile_RegisteredOrganization_IEEE = 15, + CIM_RegisteredProfile_RegisteredOrganization_IETF = 16, + CIM_RegisteredProfile_RegisteredOrganization_INCITS = 17, + CIM_RegisteredProfile_RegisteredOrganization_ISO = 18, + CIM_RegisteredProfile_RegisteredOrganization_W3C = 19, + CIM_RegisteredProfile_RegisteredOrganization_OGF = 20, + CIM_RegisteredProfile_RegisteredOrganization_DMTF_Reserved = 0, +} +CIM_RegisteredProfile_RegisteredOrganization_Enum; + +/* "Other" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_Other(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 1) + +/* "DMTF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_DMTF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 2) + +/* "CompTIA" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_CompTIA(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 3) + +/* "Consortium for Service Innovation" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_Consortium_for_Service_Innovation(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 4) + +/* "FAST" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_FAST(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 5) + +/* "GGF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_GGF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 6) + +/* "INTAP" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_INTAP(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 7) + +/* "itSMF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_itSMF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 8) + +/* "NAC" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_NAC(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 9) + +/* "Northwest Energy Efficiency Alliance" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_Northwest_Energy_Efficiency_Alliance(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 10) + +/* "SNIA" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_SNIA(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 11) + +/* "TM Forum" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_TM_Forum(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 12) + +/* "The Open Group" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_The_Open_Group(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 13) + +/* "ANSI" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_ANSI(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 14) + +/* "IEEE" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_IEEE(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 15) + +/* "IETF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_IETF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 16) + +/* "INCITS" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_INCITS(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 17) + +/* "ISO" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_ISO(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 18) + +/* "W3C" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_W3C(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 19) + +/* "OGF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_OGF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 20) + +/* "DMTF Reserved" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_DMTF_Reserved(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 0) + +KINLINE void CIM_RegisteredProfile_SetString_OtherRegisteredOrganization( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_OtherRegisteredOrganization( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_OtherRegisteredOrganization( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_OtherRegisteredOrganization( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_RegisteredName( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_RegisteredName( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_RegisteredName( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_RegisteredName( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_RegisteredVersion( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_RegisteredVersion( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_RegisteredVersion( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_RegisteredVersion( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Init_AdvertiseTypes( + CIM_RegisteredProfile* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_RegisteredProfile_InitNull_AdvertiseTypes( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Set_AdvertiseTypes( + CIM_RegisteredProfile* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 CIM_RegisteredProfile_Get_AdvertiseTypes( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Null_AdvertiseTypes( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void CIM_RegisteredProfile_Clr_AdvertiseTypes( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + KUint16A_Clr(field); + } +} + +typedef enum _CIM_RegisteredProfile_AdvertiseTypes_Enum +{ + CIM_RegisteredProfile_AdvertiseTypes_Other = 1, + CIM_RegisteredProfile_AdvertiseTypes_Not_Advertised = 2, + CIM_RegisteredProfile_AdvertiseTypes_SLP = 3, +} +CIM_RegisteredProfile_AdvertiseTypes_Enum; + +/* "Other" */ +#define CIM_RegisteredProfile_Set_AdvertiseTypes_Other(SELF, INDEX)\ + CIM_RegisteredProfile_Set_AdvertiseTypes(SELF, INDEX, 1) + +/* "Not Advertised" */ +#define CIM_RegisteredProfile_Set_AdvertiseTypes_Not_Advertised(SELF, INDEX)\ + CIM_RegisteredProfile_Set_AdvertiseTypes(SELF, INDEX, 2) + +/* "SLP" */ +#define CIM_RegisteredProfile_Set_AdvertiseTypes_SLP(SELF, INDEX)\ + CIM_RegisteredProfile_Set_AdvertiseTypes(SELF, INDEX, 3) + +KINLINE CMPIBoolean CIM_RegisteredProfile_Init_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_RegisteredProfile_InitNull_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_SetString_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_SetString(field, i, x); + } + return 0; +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Set_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Set(field, self->__base.cb, i, s); + } + return 0; +} + +KINLINE KString CIM_RegisteredProfile_GetString_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_GetString(field, i); + } + return KStringA_GetString(NULL, 0); +} + +KINLINE const char* CIM_RegisteredProfile_Get_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Null_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void CIM_RegisteredProfile_Clr_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + KStringA_Clr(field); + } +} + +/* +**============================================================================== +** +** CIM_RegisteredProfile methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus CIM_RegisteredProfile_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CIM_RegisteredProfileRef self; + + KReturnIf(CIM_RegisteredProfileRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_CIM_RegisteredProfile_h */ Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfile.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfile.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfile.h 2008-07-10 22:11:11 UTC (rev 742) @@ -0,0 +1,386 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_ElementConformsToProfile_h +#define _konkrete_ElementConformsToProfile_h + +#include <konkret/konkret.h> +#include "RegisteredProfile.h" +#include "ProtocolService.h" + +/* +**============================================================================== +** +** struct ElementConformsToProfileRef +** +**============================================================================== +*/ + +/* classname=Linux_SSHElementConformsToProfile */ +typedef struct _ElementConformsToProfileRef +{ + KBase __base; + /* CIM_ElementConformsToProfile features */ + const KRef ConformantStandard; /* RegisteredProfile */ + const KRef ManagedElement; /* ProtocolService */ + /* Linux_SSHElementConformsToProfile features */ +} +ElementConformsToProfileRef; + +static const unsigned char __ElementConformsToProfileRef_sig[] = +{ + 0x21,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x45,0x6c,0x65,0x6d,0x65, + 0x6e,0x74,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,0x72,0x6f, + 0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d, + 0x61,0x6e,0x74,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,0x0e,0x4d, + 0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00, +}; + +KINLINE void ElementConformsToProfileRef_Init( + ElementConformsToProfileRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ElementConformsToProfileRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->ConformantStandard)->__sig = __RegisteredProfile_sig; + ((KRef*)&self->ManagedElement)->__sig = __ProtocolService_sig; +} + +KINLINE CMPIStatus ElementConformsToProfileRef_InitFromInstance( + ElementConformsToProfileRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ElementConformsToProfileRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ElementConformsToProfileRef_InitFromObjectPath( + ElementConformsToProfileRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ElementConformsToProfileRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ElementConformsToProfileRef_Print( + const ElementConformsToProfileRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* ElementConformsToProfileRef_ToInstance( + const ElementConformsToProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ElementConformsToProfileRef_ToObjectPath( + const ElementConformsToProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ElementConformsToProfileRef_NameSpace( + ElementConformsToProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ElementConformsToProfileRef_SetObjectPath_ConformantStandard( + ElementConformsToProfileRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ConformantStandard; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ElementConformsToProfileRef_Set_ConformantStandard( + ElementConformsToProfileRef* self, + const RegisteredProfileRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ConformantStandard; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ElementConformsToProfileRef_Null_ConformantStandard( + ElementConformsToProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ConformantStandard; + KRef_Null(field); + } +} + +KINLINE void ElementConformsToProfileRef_Clr_ConformantStandard( + ElementConformsToProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ConformantStandard; + KRef_Clr(field); + } +} + +KINLINE void ElementConformsToProfileRef_SetObjectPath_ManagedElement( + ElementConformsToProfileRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ElementConformsToProfileRef_Set_ManagedElement( + ElementConformsToProfileRef* self, + const ProtocolServiceRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ElementConformsToProfileRef_Null_ManagedElement( + ElementConformsToProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_Null(field); + } +} + +KINLINE void ElementConformsToProfileRef_Clr_ManagedElement( + ElementConformsToProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct ElementConformsToProfile +** +**============================================================================== +*/ + +/* classname=Linux_SSHElementConformsToProfile */ +typedef struct _ElementConformsToProfile +{ + KBase __base; + /* CIM_ElementConformsToProfile features */ + const KRef ConformantStandard; /* RegisteredProfile */ + const KRef ManagedElement; /* ProtocolService */ + /* Linux_SSHElementConformsToProfile features */ +} +ElementConformsToProfile; + +static const unsigned char __ElementConformsToProfile_sig[] = +{ + 0x21,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x45,0x6c,0x65,0x6d,0x65, + 0x6e,0x74,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d,0x73,0x54,0x6f,0x50,0x72,0x6f, + 0x66,0x69,0x6c,0x65,0x00,0x02,0x4e,0x12,0x43,0x6f,0x6e,0x66,0x6f,0x72,0x6d, + 0x61,0x6e,0x74,0x53,0x74,0x61,0x6e,0x64,0x61,0x72,0x64,0x00,0x4e,0x0e,0x4d, + 0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x00, +}; + +KINLINE void ElementConformsToProfile_Init( + ElementConformsToProfile* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ElementConformsToProfile_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->ConformantStandard)->__sig = __RegisteredProfile_sig; + ((KRef*)&self->ManagedElement)->__sig = __ProtocolService_sig; +} + +KINLINE CMPIStatus ElementConformsToProfile_InitFromInstance( + ElementConformsToProfile* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ElementConformsToProfile_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ElementConformsToProfile_InitFromObjectPath( + ElementConformsToProfile* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ElementConformsToProfile_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ElementConformsToProfile_Print( + const ElementConformsToProfile* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* ElementConformsToProfile_ToInstance( + const ElementConformsToProfile* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ElementConformsToProfile_ToObjectPath( + const ElementConformsToProfile* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ElementConformsToProfile_NameSpace( + ElementConformsToProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ElementConformsToProfile_SetObjectPath_ConformantStandard( + ElementConformsToProfile* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ConformantStandard; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ElementConformsToProfile_Set_ConformantStandard( + ElementConformsToProfile* self, + const RegisteredProfileRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ConformantStandard; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ElementConformsToProfile_Null_ConformantStandard( + ElementConformsToProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ConformantStandard; + KRef_Null(field); + } +} + +KINLINE void ElementConformsToProfile_Clr_ConformantStandard( + ElementConformsToProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ConformantStandard; + KRef_Clr(field); + } +} + +KINLINE void ElementConformsToProfile_SetObjectPath_ManagedElement( + ElementConformsToProfile* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ElementConformsToProfile_Set_ManagedElement( + ElementConformsToProfile* self, + const ProtocolServiceRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ElementConformsToProfile_Null_ManagedElement( + ElementConformsToProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_Null(field); + } +} + +KINLINE void ElementConformsToProfile_Clr_ManagedElement( + ElementConformsToProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** ElementConformsToProfile methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus ElementConformsToProfile_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + ElementConformsToProfileRef self; + + KReturnIf(ElementConformsToProfileRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_ElementConformsToProfile_h */ Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfileProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-10 22:11:11 UTC (rev 742) @@ -0,0 +1,197 @@ +#include <konkret/konkret.h> +#include "ElementConformsToProfile.h" +#include "Resource.h" + +static const CMPIBroker* _cb; + +static void ElementConformsToProfileInitialize() +{ +} + +static CMPIStatus ElementConformsToProfileCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ElementConformsToProfileEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus ElementConformsToProfileEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + const char* ns = KNameSpace(cop); + RegisteredProfileRef cs; + + /* Linux_SSHRegisteredProfile.ConformantStandard */ + RegisteredProfileRef_Init(&cs, _cb, ns); + RegisteredProfileRef_Set_InstanceID(&cs, "SBLIM:SSH_Service"); + + /* Associate with every instance of Linux_SSHProtocolService */ + return KDefaultEnumerateInstancesOneToAll( + _cb, + cc, + cr, + cop, + RegisteredProfileRef_ToObjectPath(&cs, NULL), + "ConformantStandard", + CMNewObjectPath(_cb, NAMESPACE, "Linux_SSHProtocolService", NULL), + "ManagedElement"); +} + +static CMPIStatus ElementConformsToProfileGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus ElementConformsToProfileCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ElementConformsToProfileModifyInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci, + const char**properties) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ElementConformsToProfileDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ElementConformsToProfileExecQuery( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* lang, + const char* query) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ElementConformsToProfileAssociationCleanup( + CMPIAssociationMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ElementConformsToProfileAssociators( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* resultClass, + const char* role, + const char* resultRole, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_SSHElementConformsToProfile"; + + return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, + resultClass, role, resultRole, properties); +} + +static CMPIStatus ElementConformsToProfileAssociatorNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* resultClass, + const char* role, + const char* resultRole) +{ + if (!assocClass) + assocClass = "Linux_SSHElementConformsToProfile"; + + return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, + assocClass, resultClass, role, resultRole); +} + +static CMPIStatus ElementConformsToProfileReferences( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_SSHElementConformsToProfile"; + + return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, + role, properties); +} + +static CMPIStatus ElementConformsToProfileReferenceNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role) +{ + if (!assocClass) + assocClass = "Linux_SSHElementConformsToProfile"; + + return KDefaultReferenceNames( + _cb, mi, cc, cr, cop, assocClass, role); +} + +CMInstanceMIStub( + ElementConformsToProfile, + ElementConformsToProfile, + _cb, + ElementConformsToProfileInitialize()) + +CMAssociationMIStub( + ElementConformsToProfile, + ElementConformsToProfile, + _cb, + ElementConformsToProfileInitialize()) + +KONKRET_REGISTRATION( + "root/cimv2", + "Linux_SSHElementConformsToProfile", + "ElementConformsToProfile", + "instance association"); Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-10 20:25:11 UTC (rev 741) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-10 22:11:11 UTC (rev 742) @@ -7,29 +7,34 @@ INCLUDES = -I$(top_builddir) liblinux_sshserviceprovider_la_SOURCES = \ - CapabilitiesProvider.c \ - ElementCapabilitiesProvider.c \ - HostedAccessPointProvider.c \ - HostedServiceProvider.c \ - ProtocolEndpointProvider.c \ - ProtocolServiceProvider.c \ - ProvidesEndpointProvider.c \ - RegisteredProfileProvider.c \ - Resource.c \ - Capabilities.h \ - CIM_ConcreteJob.h \ - CIM_IPProtocolEndpoint.h \ - CIM_ManagedElement.h \ - CIM_TCPProtocolEndpoint.h \ - ComputerSystem.h \ - ElementCapabilities.h \ - HostedAccessPoint.h \ - HostedService.h \ - ProtocolEndpoint.h \ - ProtocolService.h \ - ProvidesEndpoint.h \ - RegisteredProfile.h \ - Resource.h + Capabilities.h \ + CapabilitiesProvider.c \ + CIM_ConcreteJob.h \ + CIM_IPProtocolEndpoint.h \ + CIM_ManagedElement.h \ + CIM_RegisteredProfile.h \ + CIM_TCPProtocolEndpoint.h \ + ComputerSystem.h \ + ElementCapabilities.h \ + ElementCapabilitiesProvider.c \ + ElementConformsToProfile.h \ + ElementConformsToProfileProvider.c \ + HostedAccessPoint.h \ + HostedAccessPointProvider.c \ + HostedService.h \ + HostedServiceProvider.c \ + ProtocolEndpoint.h \ + ProtocolEndpointProvider.c \ + ProtocolService.h \ + ProtocolServiceProvider.c \ + ProvidesEndpoint.h \ + ProvidesEndpointProvider.c \ + ReferencedProfile.h \ + ReferencedProfileProvider.c \ + RegisteredProfile.h \ + RegisteredProfileProvider.c \ + Resource.c \ + Resource.h liblinux_sshserviceprovider_la_LDFLAGS = \ -lkonkret \ Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-10 20:25:11 UTC (rev 741) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-10 22:11:11 UTC (rev 742) @@ -28,12 +28,6 @@ _cb, mi, cc, cr, cop); } -Str256 Get() -{ - Str256 x; - return x; -} - static CMPIStatus ProtocolServiceEnumInstances( CMPIInstanceMI* mi, const CMPIContext* cc, Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ReferencedProfile.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ReferencedProfile.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ReferencedProfile.h 2008-07-10 22:11:11 UTC (rev 742) @@ -0,0 +1,386 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_ReferencedProfile_h +#define _konkrete_ReferencedProfile_h + +#include <konkret/konkret.h> +#include "CIM_RegisteredProfile.h" +#include "RegisteredProfile.h" + +/* +**============================================================================== +** +** struct ReferencedProfileRef +** +**============================================================================== +*/ + +/* classname=Linux_SSHReferencedProfile */ +typedef struct _ReferencedProfileRef +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_RegisteredProfile */ + const KRef Dependent; /* RegisteredProfile */ + /* CIM_ReferencedProfile features */ + /* Linux_SSHReferencedProfile features */ +} +ReferencedProfileRef; + +static const unsigned char __ReferencedProfileRef_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x52,0x65,0x66,0x65,0x72, + 0x65,0x6e,0x63,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e, + 0x0a,0x41,0x6e,0x74,0x65,0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,0x44, + 0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x74,0x00, +}; + +KINLINE void ReferencedProfileRef_Init( + ReferencedProfileRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ReferencedProfileRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig; + ((KRef*)&self->Dependent)->__sig = __RegisteredProfile_sig; +} + +KINLINE CMPIStatus ReferencedProfileRef_InitFromInstance( + ReferencedProfileRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ReferencedProfileRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ReferencedProfileRef_InitFromObjectPath( + ReferencedProfileRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ReferencedProfileRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ReferencedProfileRef_Print( + const ReferencedProfileRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* ReferencedProfileRef_ToInstance( + const ReferencedProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ReferencedProfileRef_ToObjectPath( + const ReferencedProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ReferencedProfileRef_NameSpace( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ReferencedProfileRef_SetObjectPath_Antecedent( + ReferencedProfileRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ReferencedProfileRef_Set_Antecedent( + ReferencedProfileRef* self, + const CIM_RegisteredProfileRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ReferencedProfileRef_Null_Antecedent( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void ReferencedProfileRef_Clr_Antecedent( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void ReferencedProfileRef_SetObjectPath_Dependent( + ReferencedProfileRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ReferencedProfileRef_Set_Dependent( + ReferencedProfileRef* self, + const RegisteredProfileRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ReferencedProfileRef_Null_Dependent( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void ReferencedProfileRef_Clr_Dependent( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct ReferencedProfile +** +**============================================================================== +*/ + +/* classname=Linux_SSHReferencedProfile */ +typedef struct _ReferencedProfile +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_RegisteredProfile */ + const KRef Dependent; /* RegisteredProfile */ + /* CIM_ReferencedProfile features */ + /* Linux_SSHReferencedProfile features */ +} +ReferencedProfile; + +static const unsigned char __ReferencedProfile_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x52,0x65,0x66,0x65,0x72, + 0x65,0x6e,0x63,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e, + 0x0a,0x41,0x6e,0x74,0x65,0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,0x44, + 0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x74,0x00, +}; + +KINLINE void ReferencedProfile_Init( + ReferencedProfile* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ReferencedProfile_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig; + ((KRef*)&self->Dependent)->__sig = __RegisteredProfile_sig; +} + +KINLINE CMPIStatus ReferencedProfile_InitFromInstance( + ReferencedProfile* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ReferencedProfile_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ReferencedProfile_InitFromObjectPath( + ReferencedProfile* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ReferencedProfile_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ReferencedProfile_Print( + const ReferencedProfile* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* ReferencedProfile_ToInstance( + const ReferencedProfile* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ReferencedProfile_ToObjectPath( + const ReferencedProfile* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ReferencedProfile_NameSpace( + ReferencedProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ReferencedProfile_SetObjectPath_Antecedent( + ReferencedProfile* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ReferencedProfile_Set_Antecedent( + ReferencedProfile* self, + const CIM_RegisteredProfileRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ReferencedProfile_Null_Antecedent( + ReferencedProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void ReferencedProfile_Clr_Antecedent( + ReferencedProfile* self) +{ + if (self... [truncated message content] |
From: <np...@us...> - 2008-07-10 20:25:09
|
Revision: 741 http://omc.svn.sourceforge.net/omc/?rev=741&view=rev Author: npaxton Date: 2008-07-10 13:25:11 -0700 (Thu, 10 Jul 2008) Log Message: ----------- fixup library name for sblim-cmpiutil Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-10 12:35:30 UTC (rev 740) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-10 20:25:11 UTC (rev 741) @@ -34,7 +34,7 @@ liblinux_sshserviceprovider_la_LDFLAGS = \ -lkonkret \ -lpthread \ - -lsblim_cmpiutil \ + -lsblim-cmpiutil \ -version-info 1 #liblinux_sshserviceprovider_la_LIBADD = -lkonkret This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-10 12:35:35
|
Revision: 740 http://omc.svn.sourceforge.net/omc/?rev=740&view=rev Author: mike-brasher Date: 2008-07-10 05:35:30 -0700 (Thu, 10 Jul 2008) Log Message: ----------- Fixed breakage due to lingering konkret dependency. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/configure.ac cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/konkret.sh Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/configure.ac =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/configure.ac 2008-07-09 21:34:50 UTC (rev 739) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/configure.ac 2008-07-10 12:35:30 UTC (rev 740) @@ -13,6 +13,5 @@ AC_PROG_MAKE_SET AC_CHECK_LIB(konkret,KPrintInstance,,[AC_MSG_ERROR(missing required library: konkret: please install KonkretCMPI)]) AC_CHECK_HEADERS(konkret/konkret.h,,[AC_MSG_ERROR(missing required header: konkret.h: please install KonkretCMPI)]) -AC_CHECK_HEADERS(konkret/configure.h,,[AC_MSG_ERROR(missing required header: configure.h: please install KonkretCMPI)]) AC_CONFIG_FILES([Makefile src/Makefile mof/Makefile]) AC_OUTPUT Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c 2008-07-09 21:34:50 UTC (rev 739) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c 2008-07-10 12:35:30 UTC (rev 740) @@ -42,7 +42,7 @@ /* Linux_RegisteredProfileComputerSystem.Antecedent */ RegisteredProfileComputerSystemRef_Init(&a, _cb, ns); - RegisteredProfileComputerSystemRef_Set_InstanceID(&a, "SBLIM:Base_Computer"); + RegisteredProfileComputerSystemRef_Set_InstanceID(&a,"SBLIM:Base_Computer"); /* Linux_RegisteredProfileEthernetPort.Dependent */ RegisteredProfileRef_Init(&d, _cb, ns); Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/konkret.sh =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/konkret.sh 2008-07-09 21:34:50 UTC (rev 739) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/konkret.sh 2008-07-10 12:35:30 UTC (rev 740) @@ -1,3 +1,3 @@ #!/bin/sh BASE=/usr/share/sblim-cmpi-base/Linux_Base.mof -/home/mbrasher/konkretcmpi/bin/konkret -m $BASE -m ../mof/linux-fan-profile.mof -m ../mof/linux-fan-profile-interop.mof -f linux-fan-profile.kon +konkret -m $BASE -m ../mof/linux-fan-profile.mof -m ../mof/linux-fan-profile-interop.mof -f linux-fan-profile.kon This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-09 21:34:58
|
Revision: 739 http://omc.svn.sourceforge.net/omc/?rev=739&view=rev Author: mike-brasher Date: 2008-07-09 14:34:50 -0700 (Wed, 09 Jul 2008) Log Message: ----------- Removed unused script. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh Removed Paths: ------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/install.sh Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration 2008-07-09 21:23:23 UTC (rev 738) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration 2008-07-09 21:34:50 UTC (rev 739) @@ -1,3 +1,5 @@ +Linux_FanElementConformsToProfile root/interop ElementConformsToProfile linux_fanprovider instance association Linux_Fan root/cimv2 Fan linux_fanprovider instance method +Linux_FanReferencedProfile root/interop ReferencedProfile linux_fanprovider instance association +Linux_FanRegisteredProfile root/interop RegisteredProfile linux_fanprovider instance method Linux_FanSystemDevice root/cimv2 SystemDevice linux_fanprovider instance association -Linux_FanRegisteredProfile root/interop RegisteredProfile linux_fanprovider instance method Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh 2008-07-09 21:23:23 UTC (rev 738) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh 2008-07-09 21:34:50 UTC (rev 739) @@ -1,3 +1,6 @@ #!/bin/sh +TARGET=../src/.libs/liblinux_fanprovider.so.1.0.0 +konkretreg $TARGET > linux-fan-profile.registration +cp $TARGET /usr/lib64/liblinux_fanprovider.so provider-register.sh -r linux-fan-profile.registration -m linux-fan-profile.mof cp linux-fan-profile-interop.mof /usr/var/lib/sfcb/stage/mofs/root/interop Deleted: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/install.sh =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/install.sh 2008-07-09 21:23:23 UTC (rev 738) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/install.sh 2008-07-09 21:34:50 UTC (rev 739) @@ -1,3 +0,0 @@ -#!/bin/sh -TARGET=liblinux_fanprovider.so -cp .libs/$TARGET.1.0.0 /usr/lib64/$TARGET This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-09 21:23:37
|
Revision: 738 http://omc.svn.sourceforge.net/omc/?rev=738&view=rev Author: mike-brasher Date: 2008-07-09 14:23:23 -0700 (Wed, 09 Jul 2008) Log Message: ----------- Adde more profile registration providers. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile-interop.mof cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ElementConformsToProfileProvider.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_RegisteredProfile.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ReferencedProfile.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ReferencedProfileProvider.c Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile-interop.mof =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile-interop.mof 2008-07-09 18:39:27 UTC (rev 737) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile-interop.mof 2008-07-09 21:23:23 UTC (rev 738) @@ -2,8 +2,16 @@ { }; +[Association] class Linux_FanElementConformsToProfile : CIM_ElementConformsToProfile { [Key] Linux_FanRegisteredProfile REF ConformantStandard; [Key] Linux_Fan REF ManagedElement; }; + +[Association] +class Linux_FanReferencedProfile : CIM_ReferencedProfile +{ + [Key] CIM_RegisteredProfile REF Antecedent; + [Key] Linux_FanRegisteredProfile REF Dependent; +}; Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_RegisteredProfile.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_RegisteredProfile.h (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_RegisteredProfile.h 2008-07-09 21:23:23 UTC (rev 738) @@ -0,0 +1,883 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_RegisteredProfile_h +#define _konkrete_CIM_RegisteredProfile_h + +#include <konkret/konkret.h> + +/* +**============================================================================== +** +** struct CIM_RegisteredProfileRef +** +**============================================================================== +*/ + +/* classname=CIM_RegisteredProfile */ +typedef struct _CIM_RegisteredProfileRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_RegisteredProfile features */ + const KString InstanceID; +} +CIM_RegisteredProfileRef; + +static const unsigned char __CIM_RegisteredProfileRef_sig[] = +{ + 0x15,0x43,0x49,0x4d,0x5f,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64, + 0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x01,0x4c,0x0a,0x49,0x6e,0x73,0x74, + 0x61,0x6e,0x63,0x65,0x49,0x44,0x00, +}; + +KINLINE void CIM_RegisteredProfileRef_Init( + CIM_RegisteredProfileRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_RegisteredProfileRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_RegisteredProfileRef_InitFromInstance( + CIM_RegisteredProfileRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_RegisteredProfileRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_RegisteredProfileRef_InitFromObjectPath( + CIM_RegisteredProfileRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_RegisteredProfileRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_RegisteredProfileRef_Print( + const CIM_RegisteredProfileRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_RegisteredProfileRef_ToInstance( + const CIM_RegisteredProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_RegisteredProfileRef_ToObjectPath( + const CIM_RegisteredProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_RegisteredProfileRef_NameSpace( + CIM_RegisteredProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_RegisteredProfileRef_SetString_InstanceID( + CIM_RegisteredProfileRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfileRef_Set_InstanceID( + CIM_RegisteredProfileRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfileRef_Null_InstanceID( + CIM_RegisteredProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfileRef_Clr_InstanceID( + CIM_RegisteredProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_RegisteredProfile +** +**============================================================================== +*/ + +/* classname=CIM_RegisteredProfile */ +typedef struct _CIM_RegisteredProfile +{ + KBase __base; + /* CIM_ManagedElement features */ + const KString Caption; + const KString Description; + const KString ElementName; + /* CIM_RegisteredProfile features */ + const KString InstanceID; + const KUint16 RegisteredOrganization; + const KString OtherRegisteredOrganization; + const KString RegisteredName; + const KString RegisteredVersion; + const KUint16A AdvertiseTypes; + const KStringA AdvertiseTypeDescriptions; +} +CIM_RegisteredProfile; + +static const unsigned char __CIM_RegisteredProfile_sig[] = +{ + 0x15,0x43,0x49,0x4d,0x5f,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64, + 0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x0a,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, + 0x03,0x16,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x4f,0x72,0x67, + 0x61,0x6e,0x69,0x7a,0x61,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x1b,0x4f,0x74,0x68, + 0x65,0x72,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x4f,0x72,0x67, + 0x61,0x6e,0x69,0x7a,0x61,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0e,0x52,0x65,0x67, + 0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x11,0x52, + 0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x56,0x65,0x72,0x73,0x69,0x6f, + 0x6e,0x00,0x83,0x0e,0x41,0x64,0x76,0x65,0x72,0x74,0x69,0x73,0x65,0x54,0x79, + 0x70,0x65,0x73,0x00,0x8c,0x19,0x41,0x64,0x76,0x65,0x72,0x74,0x69,0x73,0x65, + 0x54,0x79,0x70,0x65,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e, + 0x73,0x00, +}; + +KINLINE void CIM_RegisteredProfile_Init( + CIM_RegisteredProfile* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_RegisteredProfile_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_RegisteredProfile_InitFromInstance( + CIM_RegisteredProfile* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_RegisteredProfile_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_RegisteredProfile_InitFromObjectPath( + CIM_RegisteredProfile* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_RegisteredProfile_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_RegisteredProfile_Print( + const CIM_RegisteredProfile* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_RegisteredProfile_ToInstance( + const CIM_RegisteredProfile* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_RegisteredProfile_ToObjectPath( + const CIM_RegisteredProfile* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_RegisteredProfile_NameSpace( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_RegisteredProfile_SetString_Caption( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_Caption( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_Caption( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_Caption( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_Description( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_Description( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_Description( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_Description( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_ElementName( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_ElementName( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_ElementName( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_ElementName( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_InstanceID( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_InstanceID( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_InstanceID( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_InstanceID( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_Set_RegisteredOrganization( + CIM_RegisteredProfile* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RegisteredOrganization; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Null_RegisteredOrganization( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RegisteredOrganization; + KUint16_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_RegisteredOrganization( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RegisteredOrganization; + KUint16_Clr(field); + } +} + +typedef enum _CIM_RegisteredProfile_RegisteredOrganization_Enum +{ + CIM_RegisteredProfile_RegisteredOrganization_Other = 1, + CIM_RegisteredProfile_RegisteredOrganization_DMTF = 2, + CIM_RegisteredProfile_RegisteredOrganization_CompTIA = 3, + CIM_RegisteredProfile_RegisteredOrganization_Consortium_for_Service_Innovation = 4, + CIM_RegisteredProfile_RegisteredOrganization_FAST = 5, + CIM_RegisteredProfile_RegisteredOrganization_GGF = 6, + CIM_RegisteredProfile_RegisteredOrganization_INTAP = 7, + CIM_RegisteredProfile_RegisteredOrganization_itSMF = 8, + CIM_RegisteredProfile_RegisteredOrganization_NAC = 9, + CIM_RegisteredProfile_RegisteredOrganization_Northwest_Energy_Efficiency_Alliance = 10, + CIM_RegisteredProfile_RegisteredOrganization_SNIA = 11, + CIM_RegisteredProfile_RegisteredOrganization_TM_Forum = 12, + CIM_RegisteredProfile_RegisteredOrganization_The_Open_Group = 13, + CIM_RegisteredProfile_RegisteredOrganization_ANSI = 14, + CIM_RegisteredProfile_RegisteredOrganization_IEEE = 15, + CIM_RegisteredProfile_RegisteredOrganization_IETF = 16, + CIM_RegisteredProfile_RegisteredOrganization_INCITS = 17, + CIM_RegisteredProfile_RegisteredOrganization_ISO = 18, + CIM_RegisteredProfile_RegisteredOrganization_W3C = 19, + CIM_RegisteredProfile_RegisteredOrganization_OGF = 20, + CIM_RegisteredProfile_RegisteredOrganization_DMTF_Reserved = 0, +} +CIM_RegisteredProfile_RegisteredOrganization_Enum; + +/* "Other" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_Other(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 1) + +/* "DMTF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_DMTF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 2) + +/* "CompTIA" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_CompTIA(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 3) + +/* "Consortium for Service Innovation" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_Consortium_for_Service_Innovation(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 4) + +/* "FAST" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_FAST(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 5) + +/* "GGF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_GGF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 6) + +/* "INTAP" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_INTAP(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 7) + +/* "itSMF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_itSMF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 8) + +/* "NAC" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_NAC(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 9) + +/* "Northwest Energy Efficiency Alliance" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_Northwest_Energy_Efficiency_Alliance(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 10) + +/* "SNIA" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_SNIA(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 11) + +/* "TM Forum" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_TM_Forum(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 12) + +/* "The Open Group" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_The_Open_Group(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 13) + +/* "ANSI" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_ANSI(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 14) + +/* "IEEE" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_IEEE(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 15) + +/* "IETF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_IETF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 16) + +/* "INCITS" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_INCITS(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 17) + +/* "ISO" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_ISO(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 18) + +/* "W3C" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_W3C(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 19) + +/* "OGF" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_OGF(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 20) + +/* "DMTF Reserved" */ +#define CIM_RegisteredProfile_Set_RegisteredOrganization_DMTF_Reserved(SELF) \ + CIM_RegisteredProfile_Set_RegisteredOrganization(SELF, 0) + +KINLINE void CIM_RegisteredProfile_SetString_OtherRegisteredOrganization( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_OtherRegisteredOrganization( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_OtherRegisteredOrganization( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_OtherRegisteredOrganization( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_RegisteredName( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_RegisteredName( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_RegisteredName( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_RegisteredName( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_Clr(field); + } +} + +KINLINE void CIM_RegisteredProfile_SetString_RegisteredVersion( + CIM_RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_SetString(field, x); + } +} + +KINLINE void CIM_RegisteredProfile_Set_RegisteredVersion( + CIM_RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_RegisteredProfile_Null_RegisteredVersion( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_Null(field); + } +} + +KINLINE void CIM_RegisteredProfile_Clr_RegisteredVersion( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Init_AdvertiseTypes( + CIM_RegisteredProfile* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_RegisteredProfile_InitNull_AdvertiseTypes( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Set_AdvertiseTypes( + CIM_RegisteredProfile* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 CIM_RegisteredProfile_Get_AdvertiseTypes( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Null_AdvertiseTypes( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void CIM_RegisteredProfile_Clr_AdvertiseTypes( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + KUint16A_Clr(field); + } +} + +typedef enum _CIM_RegisteredProfile_AdvertiseTypes_Enum +{ + CIM_RegisteredProfile_AdvertiseTypes_Other = 1, + CIM_RegisteredProfile_AdvertiseTypes_Not_Advertised = 2, + CIM_RegisteredProfile_AdvertiseTypes_SLP = 3, +} +CIM_RegisteredProfile_AdvertiseTypes_Enum; + +/* "Other" */ +#define CIM_RegisteredProfile_Set_AdvertiseTypes_Other(SELF, INDEX)\ + CIM_RegisteredProfile_Set_AdvertiseTypes(SELF, INDEX, 1) + +/* "Not Advertised" */ +#define CIM_RegisteredProfile_Set_AdvertiseTypes_Not_Advertised(SELF, INDEX)\ + CIM_RegisteredProfile_Set_AdvertiseTypes(SELF, INDEX, 2) + +/* "SLP" */ +#define CIM_RegisteredProfile_Set_AdvertiseTypes_SLP(SELF, INDEX)\ + CIM_RegisteredProfile_Set_AdvertiseTypes(SELF, INDEX, 3) + +KINLINE CMPIBoolean CIM_RegisteredProfile_Init_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_RegisteredProfile_InitNull_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_SetString_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_SetString(field, i, x); + } + return 0; +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Set_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Set(field, self->__base.cb, i, s); + } + return 0; +} + +KINLINE KString CIM_RegisteredProfile_GetString_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_GetString(field, i); + } + return KStringA_GetString(NULL, 0); +} + +KINLINE const char* CIM_RegisteredProfile_Get_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean CIM_RegisteredProfile_Null_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void CIM_RegisteredProfile_Clr_AdvertiseTypeDescriptions( + CIM_RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + KStringA_Clr(field); + } +} + +/* +**============================================================================== +** +** CIM_RegisteredProfile methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus CIM_RegisteredProfile_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CIM_RegisteredProfileRef self; + + KReturnIf(CIM_RegisteredProfileRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_CIM_RegisteredProfile_h */ Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ElementConformsToProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-09 18:39:27 UTC (rev 737) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-09 21:23:23 UTC (rev 738) @@ -36,11 +36,11 @@ const char* ns = KNameSpace(cop); RegisteredProfileRef cs; - /* Linux_RegisteredProfileEthernetPort.ConformantStandard */ + /* Linux_FanRegisteredProfile.ConformantStandard */ RegisteredProfileRef_Init(&cs, _cb, ns); RegisteredProfileRef_Set_InstanceID(&cs, "SBLIM:Fan"); - /* Associate with every instance of Linux_EthernetPort */ + /* Associate with every instance of Linux_Fan */ return KDefaultEnumerateInstancesOneToAll( _cb, cc, Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-09 18:39:27 UTC (rev 737) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am 2008-07-09 21:23:23 UTC (rev 738) @@ -6,21 +6,25 @@ INCLUDES = -I$(top_builddir) liblinux_fanprovider_la_SOURCES = \ - FanProvider.c \ - SystemDeviceProvider.c \ - RegisteredProfileProvider.c \ - ElementConformsToProfileProvider.c \ - Resource.c \ - CIM_ConcreteJob.h \ - CIM_LogicalDevice.h \ - CIM_System.h \ - ComputerSystem.h \ - ElementConformsToProfile.h \ - Fan.h \ - RegisteredProfile.h \ - Resource.h \ - SystemDevice.h + CIM_ConcreteJob.h \ + CIM_LogicalDevice.h \ + CIM_RegisteredProfile.h \ + CIM_System.h \ + ComputerSystem.h \ + ElementConformsToProfile.h \ + ElementConformsToProfileProvider.c \ + Fan.h \ + FanProvider.c \ + ReferencedProfile.h \ + ReferencedProfileProvider.c \ + RegisteredProfile.h \ + RegisteredProfileProvider.c \ + Resource.c \ + Resource.h \ + SystemDevice.h \ + SystemDeviceProvider.c + liblinux_fanprovider_la_LDFLAGS = \ -lpthread \ -lsblim_cmpiutil \ Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ReferencedProfile.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ReferencedProfile.h (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ReferencedProfile.h 2008-07-09 21:23:23 UTC (rev 738) @@ -0,0 +1,386 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_ReferencedProfile_h +#define _konkrete_ReferencedProfile_h + +#include <konkret/konkret.h> +#include "CIM_RegisteredProfile.h" +#include "RegisteredProfile.h" + +/* +**============================================================================== +** +** struct ReferencedProfileRef +** +**============================================================================== +*/ + +/* classname=Linux_FanReferencedProfile */ +typedef struct _ReferencedProfileRef +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_RegisteredProfile */ + const KRef Dependent; /* RegisteredProfile */ + /* CIM_ReferencedProfile features */ + /* Linux_FanReferencedProfile features */ +} +ReferencedProfileRef; + +static const unsigned char __ReferencedProfileRef_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x52,0x65,0x66,0x65,0x72, + 0x65,0x6e,0x63,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e, + 0x0a,0x41,0x6e,0x74,0x65,0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,0x44, + 0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x74,0x00, +}; + +KINLINE void ReferencedProfileRef_Init( + ReferencedProfileRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ReferencedProfileRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig; + ((KRef*)&self->Dependent)->__sig = __RegisteredProfile_sig; +} + +KINLINE CMPIStatus ReferencedProfileRef_InitFromInstance( + ReferencedProfileRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ReferencedProfileRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ReferencedProfileRef_InitFromObjectPath( + ReferencedProfileRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ReferencedProfileRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ReferencedProfileRef_Print( + const ReferencedProfileRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* ReferencedProfileRef_ToInstance( + const ReferencedProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ReferencedProfileRef_ToObjectPath( + const ReferencedProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ReferencedProfileRef_NameSpace( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ReferencedProfileRef_SetObjectPath_Antecedent( + ReferencedProfileRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ReferencedProfileRef_Set_Antecedent( + ReferencedProfileRef* self, + const CIM_RegisteredProfileRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ReferencedProfileRef_Null_Antecedent( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void ReferencedProfileRef_Clr_Antecedent( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void ReferencedProfileRef_SetObjectPath_Dependent( + ReferencedProfileRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ReferencedProfileRef_Set_Dependent( + ReferencedProfileRef* self, + const RegisteredProfileRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ReferencedProfileRef_Null_Dependent( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void ReferencedProfileRef_Clr_Dependent( + ReferencedProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct ReferencedProfile +** +**============================================================================== +*/ + +/* classname=Linux_FanReferencedProfile */ +typedef struct _ReferencedProfile +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* CIM_RegisteredProfile */ + const KRef Dependent; /* RegisteredProfile */ + /* CIM_ReferencedProfile features */ + /* Linux_FanReferencedProfile features */ +} +ReferencedProfile; + +static const unsigned char __ReferencedProfile_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x52,0x65,0x66,0x65,0x72, + 0x65,0x6e,0x63,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x02,0x4e, + 0x0a,0x41,0x6e,0x74,0x65,0x63,0x65,0x64,0x65,0x6e,0x74,0x00,0x4e,0x09,0x44, + 0x65,0x70,0x65,0x6e,0x64,0x65,0x6e,0x74,0x00, +}; + +KINLINE void ReferencedProfile_Init( + ReferencedProfile* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ReferencedProfile_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __CIM_RegisteredProfile_sig; + ((KRef*)&self->Dependent)->__sig = __RegisteredProfile_sig; +} + +KINLINE CMPIStatus ReferencedProfile_InitFromInstance( + ReferencedProfile* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ReferencedProfile_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ReferencedProfile_InitFromObjectPath( + ReferencedProfile* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ReferencedProfile_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ReferencedProfile_Print( + const ReferencedProfile* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* ReferencedProfile_ToInstance( + const ReferencedProfile* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ReferencedProfile_ToObjectPath( + const ReferencedProfile* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ReferencedProfile_NameSpace( + ReferencedProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ReferencedProfile_SetObjectPath_Antecedent( + ReferencedProfile* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ReferencedProfile_Set_Antecedent( + ReferencedProfile* self, + const CIM_RegisteredProfileRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ReferencedProfile_Null_Antecedent( + ReferencedProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void ReferencedProfile_Clr_Antecedent( + ReferencedProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void ReferencedProfile_SetObjectPath_Dependent( + ReferencedProfile* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ReferencedProfile_Set_Dependent( + ReferencedProfile* self, + const RegisteredProfileRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ReferencedProfile_Null_Dependent( + ReferencedProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void ReferencedProfile_Clr_Dependent( + ReferencedProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** ReferencedProfile methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus ReferencedProfile_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + ReferencedProfileRef self; + + KReturnIf(ReferencedProfileRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_ReferencedProfile_h */ Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ReferencedProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ReferencedProfileProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ReferencedProfileProvider.c 2008-07-09 21:23:23 UTC (rev 738) @@ -0,0 +1,201 @@ +#include <konkret/konkret.h> +#include "ReferencedProfile.h" + +static const CMPIBroker* _cb; + +static void ReferencedProfileInitialize() +{ +} + +static CMPIStatus ReferencedProfileCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ReferencedProfileEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus ReferencedProfileEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + const char* ns = KNameSpace(cop); + ReferencedProfile x; + CIM_RegisteredProfileRef a; + RegisteredProfileRef d; + + /* Linux_RegisteredProfileComputerSystem.Antecedent */ + CIM_RegisteredProfileRef_Init(&a, _cb, ns); + CIM_RegisteredProfileRef_Set_InstanceID(&a,"SBLIM:Base_Computer"); + + /* Linux_FanRegisteredProfile.Dependent */ + RegisteredProfileRef_Init(&d, _cb, ns); + RegisteredProfileRef_Set_InstanceID(&d, "SBLIM:Fan"); + + /* Linux_FanReferencedProfile */ + ReferencedProfile_Init(&x, _cb, ns); + ReferencedProfile_Set_Antecedent(&x, &a); + ReferencedProfile_Set_Dependent(&x, &d); + + /* Return instance */ + KReturnInstance(cr, x); + + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ReferencedProfileGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus ReferencedProfileCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ReferencedProfileModifyInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci, + const char**properties) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ReferencedProfileDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ReferencedProfileExecQuery( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* lang, + const char* query) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ReferencedProfileAssociationCleanup( + CMPIAssociationMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ReferencedProfileAssociators( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* resultClass, + const char* role, + const char* resultRole, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_FanReferencedProfile"; + + return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, + resultClass, role, resultRole, properties); +} + +static CMPIStatus ReferencedProfileAssociatorNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* resultClass, + const char* role, + const char* resultRole) +{ + if (!assocClass) + assocClass = "Linux_FanReferencedProfile"; + + return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, + assocClass, resultClass, role, resultRole); +} + +static CMPIStatus ReferencedProfileReferences( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_FanReferencedProfile"; + + return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, + role, properties); +} + +static CMPIStatus ReferencedProfileReferenceNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role) +{ + if (!assocClass) + assocClass = "Linux_FanReferencedProfile"; + + return KDefaultReferenceNames( + _cb, mi, cc, cr, cop, assocClass, role); +} + +CMInstanceMIStub( + ReferencedProfile, + ReferencedProfile, + _cb, + ReferencedProfileInitialize()) + +CMAssociationMIStub( + ReferencedProfile, + ReferencedProfile, + _cb, + ReferencedProfileInitialize()) + +KONKRET_REGISTRATION( + "root/interop", + "Linux_FanReferencedProfile", + "ReferencedProfile", + "instance association"); Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon 2008-07-09 18:39:27 UTC (rev 737) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon 2008-07-09 21:23:23 UTC (rev 738) @@ -3,3 +3,4 @@ Linux_FanSystemDevice=SystemDevice! Linux_FanRegisteredProfile=RegisteredProfile! Linux_FanElementConformsToProfile=ElementConformsToProfile! +Linux_FanReferencedProfile=ReferencedProfile! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-09 18:39:31
|
Revision: 737 http://omc.svn.sourceforge.net/omc/?rev=737&view=rev Author: mike-brasher Date: 2008-07-09 11:39:27 -0700 (Wed, 09 Jul 2008) Log Message: ----------- New profile registration providers. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.am cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/konkret.sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile-interop.mof cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_LogicalDevice.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_System.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ComputerSystem.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ElementConformsToProfile.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/ElementConformsToProfileProvider.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RegisteredProfile.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/RegisteredProfileProvider.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/SystemDevice.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/SystemDeviceProvider.c Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.am 2008-07-09 18:36:02 UTC (rev 736) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/Makefile.am 2008-07-09 18:39:27 UTC (rev 737) @@ -1,2 +1,4 @@ EXTRA_DIST = \ - linux-fan-profile.mof + linux-fan-profile.mof \ + linux-fan-profile-interop.mof \ + linux-fan-profile.registration Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile-interop.mof =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile-interop.mof (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile-interop.mof 2008-07-09 18:39:27 UTC (rev 737) @@ -0,0 +1,9 @@ +class Linux_FanRegisteredProfile : CIM_RegisteredProfile +{ +}; + +class Linux_FanElementConformsToProfile : CIM_ElementConformsToProfile +{ + [Key] Linux_FanRegisteredProfile REF ConformantStandard; + [Key] Linux_Fan REF ManagedElement; +}; Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-09 18:36:02 UTC (rev 736) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.mof 2008-07-09 18:39:27 UTC (rev 737) @@ -137,6 +137,18 @@ { }; +// =========================================================================== +// Linux_FanSystemDevice +// =========================================================================== +[Association, + Version ( "0.0.1" ), + Description ("SBLIM instrumentation of SMASH's Fan Profile.")] +class Linux_FanSystemDevice : CIM_SystemDevice +{ +}; + // ================================================================== // end of file // ================================================================== + + Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration 2008-07-09 18:36:02 UTC (rev 736) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration 2008-07-09 18:39:27 UTC (rev 737) @@ -1 +1,3 @@ Linux_Fan root/cimv2 Fan linux_fanprovider instance method +Linux_FanSystemDevice root/cimv2 SystemDevice linux_fanprovider instance association +Linux_FanRegisteredProfile root/interop RegisteredProfile linux_fanprovider instance method Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh 2008-07-09 18:36:02 UTC (rev 736) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh 2008-07-09 18:39:27 UTC (rev 737) @@ -1,2 +1,3 @@ #!/bin/sh provider-register.sh -r linux-fan-profile.registration -m linux-fan-profile.mof +cp linux-fan-profile-interop.mof /usr/var/lib/sfcb/stage/mofs/root/interop Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_LogicalDevice.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_LogicalDevice.h (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_LogicalDevice.h 2008-07-09 18:39:27 UTC (rev 737) @@ -0,0 +1,3884 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_CIM_LogicalDevice_h +#define _konkrete_CIM_LogicalDevice_h + +#include <konkret/konkret.h> +#include "CIM_ConcreteJob.h" + +/* +**============================================================================== +** +** struct CIM_LogicalDeviceRef +** +**============================================================================== +*/ + +/* classname=CIM_LogicalDevice */ +typedef struct _CIM_LogicalDeviceRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_ManagedSystemElement features */ + /* CIM_LogicalElement features */ + /* CIM_EnabledLogicalElement features */ + /* CIM_LogicalDevice features */ + const KString SystemCreationClassName; + const KString SystemName; + const KString CreationClassName; + const KString DeviceID; +} +CIM_LogicalDeviceRef; + +static const unsigned char __CIM_LogicalDeviceRef_sig[] = +{ + 0x11,0x43,0x49,0x4d,0x5f,0x4c,0x6f,0x67,0x69,0x63,0x61,0x6c,0x44,0x65,0x76, + 0x69,0x63,0x65,0x00,0x04,0x4c,0x17,0x53,0x79,0x73,0x74,0x65,0x6d,0x43,0x72, + 0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c,0x61,0x73,0x73,0x4e,0x61,0x6d,0x65, + 0x00,0x4c,0x0a,0x53,0x79,0x73,0x74,0x65,0x6d,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,0x4c,0x08,0x44,0x65,0x76,0x69,0x63,0x65,0x49,0x44,0x00, +}; + +KINLINE void CIM_LogicalDeviceRef_Init( + CIM_LogicalDeviceRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_LogicalDeviceRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_LogicalDeviceRef_InitFromInstance( + CIM_LogicalDeviceRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_LogicalDeviceRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_LogicalDeviceRef_InitFromObjectPath( + CIM_LogicalDeviceRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_LogicalDeviceRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_LogicalDeviceRef_Print( + const CIM_LogicalDeviceRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CIM_LogicalDeviceRef_ToInstance( + const CIM_LogicalDeviceRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_LogicalDeviceRef_ToObjectPath( + const CIM_LogicalDeviceRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_LogicalDeviceRef_NameSpace( + CIM_LogicalDeviceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_LogicalDeviceRef_SetString_SystemCreationClassName( + CIM_LogicalDeviceRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDeviceRef_Set_SystemCreationClassName( + CIM_LogicalDeviceRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDeviceRef_Null_SystemCreationClassName( + CIM_LogicalDeviceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDeviceRef_Clr_SystemCreationClassName( + CIM_LogicalDeviceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Clr(field); + } +} + +KINLINE void CIM_LogicalDeviceRef_SetString_SystemName( + CIM_LogicalDeviceRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDeviceRef_Set_SystemName( + CIM_LogicalDeviceRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDeviceRef_Null_SystemName( + CIM_LogicalDeviceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDeviceRef_Clr_SystemName( + CIM_LogicalDeviceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Clr(field); + } +} + +KINLINE void CIM_LogicalDeviceRef_SetString_CreationClassName( + CIM_LogicalDeviceRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDeviceRef_Set_CreationClassName( + CIM_LogicalDeviceRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDeviceRef_Null_CreationClassName( + CIM_LogicalDeviceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDeviceRef_Clr_CreationClassName( + CIM_LogicalDeviceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Clr(field); + } +} + +KINLINE void CIM_LogicalDeviceRef_SetString_DeviceID( + CIM_LogicalDeviceRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->DeviceID; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDeviceRef_Set_DeviceID( + CIM_LogicalDeviceRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->DeviceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDeviceRef_Null_DeviceID( + CIM_LogicalDeviceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->DeviceID; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDeviceRef_Clr_DeviceID( + CIM_LogicalDeviceRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->DeviceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct CIM_LogicalDevice +** +**============================================================================== +*/ + +/* classname=CIM_LogicalDevice */ +typedef struct _CIM_LogicalDevice +{ + 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_LogicalDevice features */ + const KString SystemCreationClassName; + const KString SystemName; + const KString CreationClassName; + const KString DeviceID; + const KBoolean PowerManagementSupported; + const KUint16A PowerManagementCapabilities; + const KUint16 Availability; + const KUint16 StatusInfo; + const KUint32 LastErrorCode; + const KString ErrorDescription; + const KBoolean ErrorCleared; + const KStringA OtherIdentifyingInfo; + const KUint64 PowerOnHours; + const KUint64 TotalPowerOnHours; + const KStringA IdentifyingDescriptions; + const KUint16A AdditionalAvailability; + const KUint64 MaxQuiesceTime; + const KUint16 LocationIndicator; +} +CIM_LogicalDevice; + +static const unsigned char __CIM_LogicalDevice_sig[] = +{ + 0x11,0x43,0x49,0x4d,0x5f,0x4c,0x6f,0x67,0x69,0x63,0x61,0x6c,0x44,0x65,0x76, + 0x69,0x63,0x65,0x00,0x26,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00, + 0x0c,0x0b,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c, + 0x0b,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x0d,0x0b, + 0x49,0x6e,0x73,0x74,0x61,0x6c,0x6c,0x44,0x61,0x74,0x65,0x00,0x0c,0x04,0x4e, + 0x61,0x6d,0x65,0x00,0x83,0x11,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e, + 0x61,0x6c,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x8c,0x12,0x53,0x74,0x61,0x74, + 0x75,0x73,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00, + 0x0c,0x06,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0b,0x48,0x65,0x61,0x6c, + 0x74,0x68,0x53,0x74,0x61,0x74,0x65,0x00,0x03,0x0d,0x50,0x72,0x69,0x6d,0x61, + 0x72,0x79,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0e,0x44,0x65,0x74,0x61, + 0x69,0x6c,0x65,0x64,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0f,0x4f,0x70, + 0x65,0x72,0x61,0x74,0x69,0x6e,0x67,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03, + 0x13,0x43,0x6f,0x6d,0x6d,0x75,0x6e,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e,0x53, + 0x74,0x61,0x74,0x75,0x73,0x00,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, + 0x17,0x53,0x79,0x73,0x74,0x65,0x6d,0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e, + 0x43,0x6c,0x61,0x73,0x73,0x4e,0x61,0x6d,0x65,0x00,0x4c,0x0a,0x53,0x79,0x73, + 0x74,0x65,0x6d,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,0x4c,0x08, + 0x44,0x65,0x76,0x69,0x63,0x65,0x49,0x44,0x00,0x00,0x18,0x50,0x6f,0x77,0x65, + 0x72,0x4d,0x61,0x6e,0x61,0x67,0x65,0x6d,0x65,0x6e,0x74,0x53,0x75,0x70,0x70, + 0x6f,0x72,0x74,0x65,0x64,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,0x03,0x0c,0x41,0x76,0x61,0x69,0x6c,0x61,0x62, + 0x69,0x6c,0x69,0x74,0x79,0x00,0x03,0x0a,0x53,0x74,0x61,0x74,0x75,0x73,0x49, + 0x6e,0x66,0x6f,0x00,0x05,0x0d,0x4c,0x61,0x73,0x74,0x45,0x72,0x72,0x6f,0x72, + 0x43,0x6f,0x64,0x65,0x00,0x0c,0x10,0x45,0x72,0x72,0x6f,0x72,0x44,0x65,0x73, + 0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x00,0x0c,0x45,0x72,0x72,0x6f, + 0x72,0x43,0x6c,0x65,0x61,0x72,0x65,0x64,0x00,0x8c,0x14,0x4f,0x74,0x68,0x65, + 0x72,0x49,0x64,0x65,0x6e,0x74,0x69,0x66,0x79,0x69,0x6e,0x67,0x49,0x6e,0x66, + 0x6f,0x00,0x07,0x0c,0x50,0x6f,0x77,0x65,0x72,0x4f,0x6e,0x48,0x6f,0x75,0x72, + 0x73,0x00,0x07,0x11,0x54,0x6f,0x74,0x61,0x6c,0x50,0x6f,0x77,0x65,0x72,0x4f, + 0x6e,0x48,0x6f,0x75,0x72,0x73,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,0x16,0x41,0x64,0x64,0x69,0x74,0x69,0x6f,0x6e,0x61,0x6c, + 0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x69,0x6c,0x69,0x74,0x79,0x00,0x07,0x0e, + 0x4d,0x61,0x78,0x51,0x75,0x69,0x65,0x73,0x63,0x65,0x54,0x69,0x6d,0x65,0x00, + 0x03,0x11,0x4c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e,0x49,0x6e,0x64,0x69,0x63, + 0x61,0x74,0x6f,0x72,0x00, +}; + +KINLINE void CIM_LogicalDevice_Init( + CIM_LogicalDevice* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CIM_LogicalDevice_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CIM_LogicalDevice_InitFromInstance( + CIM_LogicalDevice* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CIM_LogicalDevice_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CIM_LogicalDevice_InitFromObjectPath( + CIM_LogicalDevice* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CIM_LogicalDevice_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CIM_LogicalDevice_Print( + const CIM_LogicalDevice* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* CIM_LogicalDevice_ToInstance( + const CIM_LogicalDevice* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CIM_LogicalDevice_ToObjectPath( + const CIM_LogicalDevice* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CIM_LogicalDevice_NameSpace( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CIM_LogicalDevice_SetString_Caption( + CIM_LogicalDevice* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Set_Caption( + CIM_LogicalDevice* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDevice_Null_Caption( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_Caption( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void CIM_LogicalDevice_SetString_Description( + CIM_LogicalDevice* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Set_Description( + CIM_LogicalDevice* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDevice_Null_Description( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_Description( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void CIM_LogicalDevice_SetString_ElementName( + CIM_LogicalDevice* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Set_ElementName( + CIM_LogicalDevice* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDevice_Null_ElementName( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_ElementName( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void CIM_LogicalDevice_Set_InstallDate( + CIM_LogicalDevice* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_InstallDate( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_InstallDate( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Clr(field); + } +} + +KINLINE void CIM_LogicalDevice_SetString_Name( + CIM_LogicalDevice* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Set_Name( + CIM_LogicalDevice* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDevice_Null_Name( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_Name( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean CIM_LogicalDevice_Init_OperationalStatus( + CIM_LogicalDevice* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_LogicalDevice_InitNull_OperationalStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_LogicalDevice_Set_OperationalStatus( + CIM_LogicalDevice* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 CIM_LogicalDevice_Get_OperationalStatus( + CIM_LogicalDevice* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean CIM_LogicalDevice_Null_OperationalStatus( + CIM_LogicalDevice* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void CIM_LogicalDevice_Clr_OperationalStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_Clr(field); + } +} + +typedef enum _CIM_LogicalDevice_OperationalStatus_Enum +{ + CIM_LogicalDevice_OperationalStatus_Unknown = 0, + CIM_LogicalDevice_OperationalStatus_Other = 1, + CIM_LogicalDevice_OperationalStatus_OK = 2, + CIM_LogicalDevice_OperationalStatus_Degraded = 3, + CIM_LogicalDevice_OperationalStatus_Stressed = 4, + CIM_LogicalDevice_OperationalStatus_Predictive_Failure = 5, + CIM_LogicalDevice_OperationalStatus_Error = 6, + CIM_LogicalDevice_OperationalStatus_Non_Recoverable_Error = 7, + CIM_LogicalDevice_OperationalStatus_Starting = 8, + CIM_LogicalDevice_OperationalStatus_Stopping = 9, + CIM_LogicalDevice_OperationalStatus_Stopped = 10, + CIM_LogicalDevice_OperationalStatus_In_Service = 11, + CIM_LogicalDevice_OperationalStatus_No_Contact = 12, + CIM_LogicalDevice_OperationalStatus_Lost_Communication = 13, + CIM_LogicalDevice_OperationalStatus_Aborted = 14, + CIM_LogicalDevice_OperationalStatus_Dormant = 15, + CIM_LogicalDevice_OperationalStatus_Supporting_Entity_in_Error = 16, + CIM_LogicalDevice_OperationalStatus_Completed = 17, + CIM_LogicalDevice_OperationalStatus_Power_Mode = 18, + CIM_LogicalDevice_OperationalStatus_DMTF_Reserved = 0, + CIM_LogicalDevice_OperationalStatus_Vendor_Reserved = 0, +} +CIM_LogicalDevice_OperationalStatus_Enum; + +/* "Unknown" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Unknown(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Other" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Other(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 1) + +/* "OK" */ +#define CIM_LogicalDevice_Set_OperationalStatus_OK(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 2) + +/* "Degraded" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Degraded(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 3) + +/* "Stressed" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Stressed(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 4) + +/* "Predictive Failure" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 5) + +/* "Error" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Error(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 6) + +/* "Non-Recoverable Error" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 7) + +/* "Starting" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Starting(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 8) + +/* "Stopping" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Stopping(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 9) + +/* "Stopped" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Stopped(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 10) + +/* "In Service" */ +#define CIM_LogicalDevice_Set_OperationalStatus_In_Service(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 11) + +/* "No Contact" */ +#define CIM_LogicalDevice_Set_OperationalStatus_No_Contact(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 12) + +/* "Lost Communication" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 13) + +/* "Aborted" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Aborted(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 14) + +/* "Dormant" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Dormant(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 15) + +/* "Supporting Entity in Error" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 16) + +/* "Completed" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Completed(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 17) + +/* "Power Mode" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Power_Mode(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 18) + +/* "DMTF Reserved" */ +#define CIM_LogicalDevice_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Vendor Reserved" */ +#define CIM_LogicalDevice_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\ + CIM_LogicalDevice_Set_OperationalStatus(SELF, INDEX, 0) + +KINLINE CMPIBoolean CIM_LogicalDevice_Init_StatusDescriptions( + CIM_LogicalDevice* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_LogicalDevice_InitNull_StatusDescriptions( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_LogicalDevice_SetString_StatusDescriptions( + CIM_LogicalDevice* self, + CMPICount i, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_SetString(field, i, x); + } + return 0; +} + +KINLINE CMPIBoolean CIM_LogicalDevice_Set_StatusDescriptions( + CIM_LogicalDevice* self, + CMPICount i, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Set(field, self->__base.cb, i, s); + } + return 0; +} + +KINLINE KString CIM_LogicalDevice_GetString_StatusDescriptions( + CIM_LogicalDevice* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_GetString(field, i); + } + return KStringA_GetString(NULL, 0); +} + +KINLINE const char* CIM_LogicalDevice_Get_StatusDescriptions( + CIM_LogicalDevice* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean CIM_LogicalDevice_Null_StatusDescriptions( + CIM_LogicalDevice* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void CIM_LogicalDevice_Clr_StatusDescriptions( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_Clr(field); + } +} + +KINLINE void CIM_LogicalDevice_SetString_Status( + CIM_LogicalDevice* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Set_Status( + CIM_LogicalDevice* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDevice_Null_Status( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_Status( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Clr(field); + } +} + +KINLINE void CIM_LogicalDevice_Set_HealthState( + CIM_LogicalDevice* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_HealthState( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_HealthState( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Clr(field); + } +} + +typedef enum _CIM_LogicalDevice_HealthState_Enum +{ + CIM_LogicalDevice_HealthState_Unknown = 0, + CIM_LogicalDevice_HealthState_OK = 5, + CIM_LogicalDevice_HealthState_Degraded_Warning = 10, + CIM_LogicalDevice_HealthState_Minor_failure = 15, + CIM_LogicalDevice_HealthState_Major_failure = 20, + CIM_LogicalDevice_HealthState_Critical_failure = 25, + CIM_LogicalDevice_HealthState_Non_recoverable_error = 30, + CIM_LogicalDevice_HealthState_DMTF_Reserved = 0, +} +CIM_LogicalDevice_HealthState_Enum; + +/* "Unknown" */ +#define CIM_LogicalDevice_Set_HealthState_Unknown(SELF) \ + CIM_LogicalDevice_Set_HealthState(SELF, 0) + +/* "OK" */ +#define CIM_LogicalDevice_Set_HealthState_OK(SELF) \ + CIM_LogicalDevice_Set_HealthState(SELF, 5) + +/* "Degraded/Warning" */ +#define CIM_LogicalDevice_Set_HealthState_Degraded_Warning(SELF) \ + CIM_LogicalDevice_Set_HealthState(SELF, 10) + +/* "Minor failure" */ +#define CIM_LogicalDevice_Set_HealthState_Minor_failure(SELF) \ + CIM_LogicalDevice_Set_HealthState(SELF, 15) + +/* "Major failure" */ +#define CIM_LogicalDevice_Set_HealthState_Major_failure(SELF) \ + CIM_LogicalDevice_Set_HealthState(SELF, 20) + +/* "Critical failure" */ +#define CIM_LogicalDevice_Set_HealthState_Critical_failure(SELF) \ + CIM_LogicalDevice_Set_HealthState(SELF, 25) + +/* "Non-recoverable error" */ +#define CIM_LogicalDevice_Set_HealthState_Non_recoverable_error(SELF) \ + CIM_LogicalDevice_Set_HealthState(SELF, 30) + +/* "DMTF Reserved" */ +#define CIM_LogicalDevice_Set_HealthState_DMTF_Reserved(SELF) \ + CIM_LogicalDevice_Set_HealthState(SELF, 0) + +KINLINE void CIM_LogicalDevice_Set_PrimaryStatus( + CIM_LogicalDevice* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_PrimaryStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_PrimaryStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Clr(field); + } +} + +typedef enum _CIM_LogicalDevice_PrimaryStatus_Enum +{ + CIM_LogicalDevice_PrimaryStatus_Unknown = 0, + CIM_LogicalDevice_PrimaryStatus_OK = 1, + CIM_LogicalDevice_PrimaryStatus_Degraded = 2, + CIM_LogicalDevice_PrimaryStatus_Error = 3, + CIM_LogicalDevice_PrimaryStatus_DMTF_Reserved = 0, + CIM_LogicalDevice_PrimaryStatus_Vendor_Reserved = 0, +} +CIM_LogicalDevice_PrimaryStatus_Enum; + +/* "Unknown" */ +#define CIM_LogicalDevice_Set_PrimaryStatus_Unknown(SELF) \ + CIM_LogicalDevice_Set_PrimaryStatus(SELF, 0) + +/* "OK" */ +#define CIM_LogicalDevice_Set_PrimaryStatus_OK(SELF) \ + CIM_LogicalDevice_Set_PrimaryStatus(SELF, 1) + +/* "Degraded" */ +#define CIM_LogicalDevice_Set_PrimaryStatus_Degraded(SELF) \ + CIM_LogicalDevice_Set_PrimaryStatus(SELF, 2) + +/* "Error" */ +#define CIM_LogicalDevice_Set_PrimaryStatus_Error(SELF) \ + CIM_LogicalDevice_Set_PrimaryStatus(SELF, 3) + +/* "DMTF Reserved" */ +#define CIM_LogicalDevice_Set_PrimaryStatus_DMTF_Reserved(SELF) \ + CIM_LogicalDevice_Set_PrimaryStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_LogicalDevice_Set_PrimaryStatus_Vendor_Reserved(SELF) \ + CIM_LogicalDevice_Set_PrimaryStatus(SELF, 0) + +KINLINE void CIM_LogicalDevice_Set_DetailedStatus( + CIM_LogicalDevice* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_DetailedStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_DetailedStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Clr(field); + } +} + +typedef enum _CIM_LogicalDevice_DetailedStatus_Enum +{ + CIM_LogicalDevice_DetailedStatus_Not_Available = 0, + CIM_LogicalDevice_DetailedStatus_No_Additional_Information = 1, + CIM_LogicalDevice_DetailedStatus_Stressed = 2, + CIM_LogicalDevice_DetailedStatus_Predictive_Failure = 3, + CIM_LogicalDevice_DetailedStatus_Non_Recoverable_Error = 4, + CIM_LogicalDevice_DetailedStatus_Supporting_Entity_in_Error = 5, + CIM_LogicalDevice_DetailedStatus_DMTF_Reserved = 0, + CIM_LogicalDevice_DetailedStatus_Vendor_Reserved = 0, +} +CIM_LogicalDevice_DetailedStatus_Enum; + +/* "Not Available" */ +#define CIM_LogicalDevice_Set_DetailedStatus_Not_Available(SELF) \ + CIM_LogicalDevice_Set_DetailedStatus(SELF, 0) + +/* "No Additional Information" */ +#define CIM_LogicalDevice_Set_DetailedStatus_No_Additional_Information(SELF) \ + CIM_LogicalDevice_Set_DetailedStatus(SELF, 1) + +/* "Stressed" */ +#define CIM_LogicalDevice_Set_DetailedStatus_Stressed(SELF) \ + CIM_LogicalDevice_Set_DetailedStatus(SELF, 2) + +/* "Predictive Failure" */ +#define CIM_LogicalDevice_Set_DetailedStatus_Predictive_Failure(SELF) \ + CIM_LogicalDevice_Set_DetailedStatus(SELF, 3) + +/* "Non-Recoverable Error" */ +#define CIM_LogicalDevice_Set_DetailedStatus_Non_Recoverable_Error(SELF) \ + CIM_LogicalDevice_Set_DetailedStatus(SELF, 4) + +/* "Supporting Entity in Error" */ +#define CIM_LogicalDevice_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \ + CIM_LogicalDevice_Set_DetailedStatus(SELF, 5) + +/* "DMTF Reserved" */ +#define CIM_LogicalDevice_Set_DetailedStatus_DMTF_Reserved(SELF) \ + CIM_LogicalDevice_Set_DetailedStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_LogicalDevice_Set_DetailedStatus_Vendor_Reserved(SELF) \ + CIM_LogicalDevice_Set_DetailedStatus(SELF, 0) + +KINLINE void CIM_LogicalDevice_Set_OperatingStatus( + CIM_LogicalDevice* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_OperatingStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_OperatingStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Clr(field); + } +} + +typedef enum _CIM_LogicalDevice_OperatingStatus_Enum +{ + CIM_LogicalDevice_OperatingStatus_Unknown = 0, + CIM_LogicalDevice_OperatingStatus_Not_Available = 1, + CIM_LogicalDevice_OperatingStatus_Servicing = 2, + CIM_LogicalDevice_OperatingStatus_Starting = 3, + CIM_LogicalDevice_OperatingStatus_Stopping = 4, + CIM_LogicalDevice_OperatingStatus_Stopped = 5, + CIM_LogicalDevice_OperatingStatus_Aborted = 6, + CIM_LogicalDevice_OperatingStatus_Dormant = 7, + CIM_LogicalDevice_OperatingStatus_Completed = 8, + CIM_LogicalDevice_OperatingStatus_Migrating = 9, + CIM_LogicalDevice_OperatingStatus_Emigrating = 10, + CIM_LogicalDevice_OperatingStatus_Immigrating = 11, + CIM_LogicalDevice_OperatingStatus_Snapshotting = 12, + CIM_LogicalDevice_OperatingStatus_Shutting_Down = 13, + CIM_LogicalDevice_OperatingStatus_In_Test = 14, + CIM_LogicalDevice_OperatingStatus_Transitioning = 15, + CIM_LogicalDevice_OperatingStatus_In_Service = 16, + CIM_LogicalDevice_OperatingStatus_DMTF_Reserved = 0, + CIM_LogicalDevice_OperatingStatus_Vendor_Reserved = 0, +} +CIM_LogicalDevice_OperatingStatus_Enum; + +/* "Unknown" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Unknown(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 0) + +/* "Not Available" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Not_Available(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 1) + +/* "Servicing" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Servicing(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 2) + +/* "Starting" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Starting(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 3) + +/* "Stopping" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Stopping(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 4) + +/* "Stopped" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Stopped(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 5) + +/* "Aborted" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Aborted(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 6) + +/* "Dormant" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Dormant(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 7) + +/* "Completed" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Completed(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 8) + +/* "Migrating" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Migrating(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 9) + +/* "Emigrating" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Emigrating(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 10) + +/* "Immigrating" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Immigrating(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 11) + +/* "Snapshotting" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Snapshotting(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 12) + +/* "Shutting Down" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Shutting_Down(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 13) + +/* "In Test" */ +#define CIM_LogicalDevice_Set_OperatingStatus_In_Test(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 14) + +/* "Transitioning" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Transitioning(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 15) + +/* "In Service" */ +#define CIM_LogicalDevice_Set_OperatingStatus_In_Service(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 16) + +/* "DMTF Reserved" */ +#define CIM_LogicalDevice_Set_OperatingStatus_DMTF_Reserved(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_LogicalDevice_Set_OperatingStatus_Vendor_Reserved(SELF) \ + CIM_LogicalDevice_Set_OperatingStatus(SELF, 0) + +KINLINE void CIM_LogicalDevice_Set_CommunicationStatus( + CIM_LogicalDevice* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_CommunicationStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_CommunicationStatus( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Clr(field); + } +} + +typedef enum _CIM_LogicalDevice_CommunicationStatus_Enum +{ + CIM_LogicalDevice_CommunicationStatus_Unknown = 0, + CIM_LogicalDevice_CommunicationStatus_Not_Available = 1, + CIM_LogicalDevice_CommunicationStatus_Communication_OK = 2, + CIM_LogicalDevice_CommunicationStatus_Lost_Communication = 3, + CIM_LogicalDevice_CommunicationStatus_No_Contact = 4, + CIM_LogicalDevice_CommunicationStatus_DMTF_Reserved = 0, + CIM_LogicalDevice_CommunicationStatus_Vendor_Reserved = 0, +} +CIM_LogicalDevice_CommunicationStatus_Enum; + +/* "Unknown" */ +#define CIM_LogicalDevice_Set_CommunicationStatus_Unknown(SELF) \ + CIM_LogicalDevice_Set_CommunicationStatus(SELF, 0) + +/* "Not Available" */ +#define CIM_LogicalDevice_Set_CommunicationStatus_Not_Available(SELF) \ + CIM_LogicalDevice_Set_CommunicationStatus(SELF, 1) + +/* "Communication OK" */ +#define CIM_LogicalDevice_Set_CommunicationStatus_Communication_OK(SELF) \ + CIM_LogicalDevice_Set_CommunicationStatus(SELF, 2) + +/* "Lost Communication" */ +#define CIM_LogicalDevice_Set_CommunicationStatus_Lost_Communication(SELF) \ + CIM_LogicalDevice_Set_CommunicationStatus(SELF, 3) + +/* "No Contact" */ +#define CIM_LogicalDevice_Set_CommunicationStatus_No_Contact(SELF) \ + CIM_LogicalDevice_Set_CommunicationStatus(SELF, 4) + +/* "DMTF Reserved" */ +#define CIM_LogicalDevice_Set_CommunicationStatus_DMTF_Reserved(SELF) \ + CIM_LogicalDevice_Set_CommunicationStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_LogicalDevice_Set_CommunicationStatus_Vendor_Reserved(SELF) \ + CIM_LogicalDevice_Set_CommunicationStatus(SELF, 0) + +KINLINE void CIM_LogicalDevice_Set_EnabledState( + CIM_LogicalDevice* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledState; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_EnabledState( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledState; + KUint16_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_EnabledState( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledState; + KUint16_Clr(field); + } +} + +typedef enum _CIM_LogicalDevice_EnabledState_Enum +{ + CIM_LogicalDevice_EnabledState_Unknown = 0, + CIM_LogicalDevice_EnabledState_Other = 1, + CIM_LogicalDevice_EnabledState_Enabled = 2, + CIM_LogicalDevice_EnabledState_Disabled = 3, + CIM_LogicalDevice_EnabledState_Shutting_Down = 4, + CIM_LogicalDevice_EnabledState_Not_Applicable = 5, + CIM_LogicalDevice_EnabledState_Enabled_but_Offline = 6, + CIM_LogicalDevice_EnabledState_In_Test = 7, + CIM_LogicalDevice_EnabledState_Deferred = 8, + CIM_LogicalDevice_EnabledState_Quiesce = 9, + CIM_LogicalDevice_EnabledState_Starting = 10, + CIM_LogicalDevice_EnabledState_DMTF_Reserved = 11, + CIM_LogicalDevice_EnabledState_Vendor_Reserved = 32768, +} +CIM_LogicalDevice_EnabledState_Enum; + +/* "Unknown" */ +#define CIM_LogicalDevice_Set_EnabledState_Unknown(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 0) + +/* "Other" */ +#define CIM_LogicalDevice_Set_EnabledState_Other(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 1) + +/* "Enabled" */ +#define CIM_LogicalDevice_Set_EnabledState_Enabled(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 2) + +/* "Disabled" */ +#define CIM_LogicalDevice_Set_EnabledState_Disabled(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 3) + +/* "Shutting Down" */ +#define CIM_LogicalDevice_Set_EnabledState_Shutting_Down(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 4) + +/* "Not Applicable" */ +#define CIM_LogicalDevice_Set_EnabledState_Not_Applicable(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 5) + +/* "Enabled but Offline" */ +#define CIM_LogicalDevice_Set_EnabledState_Enabled_but_Offline(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 6) + +/* "In Test" */ +#define CIM_LogicalDevice_Set_EnabledState_In_Test(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 7) + +/* "Deferred" */ +#define CIM_LogicalDevice_Set_EnabledState_Deferred(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 8) + +/* "Quiesce" */ +#define CIM_LogicalDevice_Set_EnabledState_Quiesce(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 9) + +/* "Starting" */ +#define CIM_LogicalDevice_Set_EnabledState_Starting(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 10) + +/* "DMTF Reserved" */ +#define CIM_LogicalDevice_Set_EnabledState_DMTF_Reserved(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 11) + +/* "Vendor Reserved" */ +#define CIM_LogicalDevice_Set_EnabledState_Vendor_Reserved(SELF) \ + CIM_LogicalDevice_Set_EnabledState(SELF, 32768) + +KINLINE void CIM_LogicalDevice_SetString_OtherEnabledState( + CIM_LogicalDevice* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherEnabledState; + KString_SetString(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Set_OtherEnabledState( + CIM_LogicalDevice* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherEnabledState; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void CIM_LogicalDevice_Null_OtherEnabledState( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherEnabledState; + KString_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_OtherEnabledState( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherEnabledState; + KString_Clr(field); + } +} + +KINLINE void CIM_LogicalDevice_Set_RequestedState( + CIM_LogicalDevice* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RequestedState; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_RequestedState( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RequestedState; + KUint16_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_RequestedState( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RequestedState; + KUint16_Clr(field); + } +} + +typedef enum _CIM_LogicalDevice_RequestedState_Enum +{ + CIM_LogicalDevice_RequestedState_Unknown = 0, + CIM_LogicalDevice_RequestedState_Enabled = 2, + CIM_LogicalDevice_RequestedState_Disabled = 3, + CIM_LogicalDevice_RequestedState_Shut_Down = 4, + CIM_LogicalDevice_RequestedState_No_Change = 5, + CIM_LogicalDevice_RequestedState_Offline = 6, + CIM_LogicalDevice_RequestedState_Test = 7, + CIM_LogicalDevice_RequestedState_Deferred = 8, + CIM_LogicalDevice_RequestedState_Quiesce = 9, + CIM_LogicalDevice_RequestedState_Reboot = 10, + CIM_LogicalDevice_RequestedState_Reset = 11, + CIM_LogicalDevice_RequestedState_Not_Applicable = 12, + CIM_LogicalDevice_RequestedState_DMTF_Reserved = 0, + CIM_LogicalDevice_RequestedState_Vendor_Reserved = 32768, +} +CIM_LogicalDevice_RequestedState_Enum; + +/* "Unknown" */ +#define CIM_LogicalDevice_Set_RequestedState_Unknown(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 0) + +/* "Enabled" */ +#define CIM_LogicalDevice_Set_RequestedState_Enabled(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 2) + +/* "Disabled" */ +#define CIM_LogicalDevice_Set_RequestedState_Disabled(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 3) + +/* "Shut Down" */ +#define CIM_LogicalDevice_Set_RequestedState_Shut_Down(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 4) + +/* "No Change" */ +#define CIM_LogicalDevice_Set_RequestedState_No_Change(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 5) + +/* "Offline" */ +#define CIM_LogicalDevice_Set_RequestedState_Offline(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 6) + +/* "Test" */ +#define CIM_LogicalDevice_Set_RequestedState_Test(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 7) + +/* "Deferred" */ +#define CIM_LogicalDevice_Set_RequestedState_Deferred(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 8) + +/* "Quiesce" */ +#define CIM_LogicalDevice_Set_RequestedState_Quiesce(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 9) + +/* "Reboot" */ +#define CIM_LogicalDevice_Set_RequestedState_Reboot(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 10) + +/* "Reset" */ +#define CIM_LogicalDevice_Set_RequestedState_Reset(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 11) + +/* "Not Applicable" */ +#define CIM_LogicalDevice_Set_RequestedState_Not_Applicable(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 12) + +/* "DMTF Reserved" */ +#define CIM_LogicalDevice_Set_RequestedState_DMTF_Reserved(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_LogicalDevice_Set_RequestedState_Vendor_Reserved(SELF) \ + CIM_LogicalDevice_Set_RequestedState(SELF, 32768) + +KINLINE void CIM_LogicalDevice_Set_EnabledDefault( + CIM_LogicalDevice* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledDefault; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_EnabledDefault( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledDefault; + KUint16_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_EnabledDefault( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledDefault; + KUint16_Clr(field); + } +} + +typedef enum _CIM_LogicalDevice_EnabledDefault_Enum +{ + CIM_LogicalDevice_EnabledDefault_Enabled = 2, + CIM_LogicalDevice_EnabledDefault_Disabled = 3, + CIM_LogicalDevice_EnabledDefault_Not_Applicable = 5, + CIM_LogicalDevice_EnabledDefault_Enabled_but_Offline = 6, + CIM_LogicalDevice_EnabledDefault_No_Default = 7, + CIM_LogicalDevice_EnabledDefault_Quiesce = 9, + CIM_LogicalDevice_EnabledDefault_DMTF_Reserved = 0, + CIM_LogicalDevice_EnabledDefault_Vendor_Reserved = 32768, +} +CIM_LogicalDevice_EnabledDefault_Enum; + +/* "Enabled" */ +#define CIM_LogicalDevice_Set_EnabledDefault_Enabled(SELF) \ + CIM_LogicalDevice_Set_EnabledDefault(SELF, 2) + +/* "Disabled" */ +#define CIM_LogicalDevice_Set_EnabledDefault_Disabled(SELF) \ + CIM_LogicalDevice_Set_EnabledDefault(SELF, 3) + +/* "Not Applicable" */ +#define CIM_LogicalDevice_Set_EnabledDefault_Not_Applicable(SELF) \ + CIM_LogicalDevice_Set_EnabledDefault(SELF, 5) + +/* "Enabled but Offline" */ +#define CIM_LogicalDevice_Set_EnabledDefault_Enabled_but_Offline(SELF) \ + CIM_LogicalDevice_Set_EnabledDefault(SELF, 6) + +/* "No Default" */ +#define CIM_LogicalDevice_Set_EnabledDefault_No_Default(SELF) \ + CIM_LogicalDevice_Set_EnabledDefault(SELF, 7) + +/* "Quiesce" */ +#define CIM_LogicalDevice_Set_EnabledDefault_Quiesce(SELF) \ + CIM_LogicalDevice_Set_EnabledDefault(SELF, 9) + +/* "DMTF Reserved" */ +#define CIM_LogicalDevice_Set_EnabledDefault_DMTF_Reserved(SELF) \ + CIM_LogicalDevice_Set_EnabledDefault(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_LogicalDevice_Set_EnabledDefault_Vendor_Reserved(SELF) \ + CIM_LogicalDevice_Set_EnabledDefault(SELF, 32768) + +KINLINE void CIM_LogicalDevice_Set_TimeOfLastStateChange( + CIM_LogicalDevice* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->TimeOfLastStateChange; + KDateTime_Set(field, x); + } +} + +KINLINE void CIM_LogicalDevice_Null_TimeOfLastStateChange( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->TimeOfLastStateChange; + KDateTime_Null(field); + } +} + +KINLINE void CIM_LogicalDevice_Clr_TimeOfLastStateChange( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->TimeOfLastStateChange; + KDateTime_Clr(field); + } +} + +KINLINE CMPIBoolean CIM_LogicalDevice_Init_AvailableRequestedStates( + CIM_LogicalDevice* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void CIM_LogicalDevice_InitNull_AvailableRequestedStates( + CIM_LogicalDevice* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_LogicalDevice_Set_AvailableRequestedStates( + CIM_LogicalDevice* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 CIM_LogicalDevice_Get_AvailableRequestedStates( + CIM_LogicalDevice* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean CIM_LogicalDevice_Null_AvailableRequestedStates( + CIM_LogicalDevice* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void CIM_LogicalDevice_... [truncated message content] |
From: <mik...@us...> - 2008-07-09 18:36:24
|
Revision: 736 http://omc.svn.sourceforge.net/omc/?rev=736&view=rev Author: mike-brasher Date: 2008-07-09 11:36:02 -0700 (Wed, 09 Jul 2008) Log Message: ----------- New registered profile provider. Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/RegisteredProfile.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/RegisteredProfileProvider.c Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/RegisteredProfile.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/RegisteredProfile.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/RegisteredProfile.h 2008-07-09 18:36:02 UTC (rev 736) @@ -0,0 +1,885 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_RegisteredProfile_h +#define _konkrete_RegisteredProfile_h + +#include <konkret/konkret.h> + +/* +**============================================================================== +** +** struct RegisteredProfileRef +** +**============================================================================== +*/ + +/* classname=Linux_SSHRegisteredProfile */ +typedef struct _RegisteredProfileRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_RegisteredProfile features */ + const KString InstanceID; + /* Linux_SSHRegisteredProfile features */ +} +RegisteredProfileRef; + +static const unsigned char __RegisteredProfileRef_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x52,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x01,0x4c, + 0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00, +}; + +KINLINE void RegisteredProfileRef_Init( + RegisteredProfileRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __RegisteredProfileRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus RegisteredProfileRef_InitFromInstance( + RegisteredProfileRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + RegisteredProfileRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus RegisteredProfileRef_InitFromObjectPath( + RegisteredProfileRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + RegisteredProfileRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void RegisteredProfileRef_Print( + const RegisteredProfileRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* RegisteredProfileRef_ToInstance( + const RegisteredProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* RegisteredProfileRef_ToObjectPath( + const RegisteredProfileRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* RegisteredProfileRef_NameSpace( + RegisteredProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void RegisteredProfileRef_SetString_InstanceID( + RegisteredProfileRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void RegisteredProfileRef_Set_InstanceID( + RegisteredProfileRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RegisteredProfileRef_Null_InstanceID( + RegisteredProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void RegisteredProfileRef_Clr_InstanceID( + RegisteredProfileRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct RegisteredProfile +** +**============================================================================== +*/ + +/* classname=Linux_SSHRegisteredProfile */ +typedef struct _RegisteredProfile +{ + KBase __base; + /* CIM_ManagedElement features */ + const KString Caption; + const KString Description; + const KString ElementName; + /* CIM_RegisteredProfile features */ + const KString InstanceID; + const KUint16 RegisteredOrganization; + const KString OtherRegisteredOrganization; + const KString RegisteredName; + const KString RegisteredVersion; + const KUint16A AdvertiseTypes; + const KStringA AdvertiseTypeDescriptions; + /* Linux_SSHRegisteredProfile features */ +} +RegisteredProfile; + +static const unsigned char __RegisteredProfile_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x52,0x65,0x67,0x69,0x73, + 0x74,0x65,0x72,0x65,0x64,0x50,0x72,0x6f,0x66,0x69,0x6c,0x65,0x00,0x0a,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,0x03,0x16,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72, + 0x65,0x64,0x4f,0x72,0x67,0x61,0x6e,0x69,0x7a,0x61,0x74,0x69,0x6f,0x6e,0x00, + 0x0c,0x1b,0x4f,0x74,0x68,0x65,0x72,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72, + 0x65,0x64,0x4f,0x72,0x67,0x61,0x6e,0x69,0x7a,0x61,0x74,0x69,0x6f,0x6e,0x00, + 0x0c,0x0e,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x4e,0x61,0x6d, + 0x65,0x00,0x0c,0x11,0x52,0x65,0x67,0x69,0x73,0x74,0x65,0x72,0x65,0x64,0x56, + 0x65,0x72,0x73,0x69,0x6f,0x6e,0x00,0x83,0x0e,0x41,0x64,0x76,0x65,0x72,0x74, + 0x69,0x73,0x65,0x54,0x79,0x70,0x65,0x73,0x00,0x8c,0x19,0x41,0x64,0x76,0x65, + 0x72,0x74,0x69,0x73,0x65,0x54,0x79,0x70,0x65,0x44,0x65,0x73,0x63,0x72,0x69, + 0x70,0x74,0x69,0x6f,0x6e,0x73,0x00, +}; + +KINLINE void RegisteredProfile_Init( + RegisteredProfile* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __RegisteredProfile_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus RegisteredProfile_InitFromInstance( + RegisteredProfile* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + RegisteredProfile_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus RegisteredProfile_InitFromObjectPath( + RegisteredProfile* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + RegisteredProfile_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void RegisteredProfile_Print( + const RegisteredProfile* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* RegisteredProfile_ToInstance( + const RegisteredProfile* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* RegisteredProfile_ToObjectPath( + const RegisteredProfile* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* RegisteredProfile_NameSpace( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void RegisteredProfile_SetString_Caption( + RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void RegisteredProfile_Set_Caption( + RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RegisteredProfile_Null_Caption( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void RegisteredProfile_Clr_Caption( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void RegisteredProfile_SetString_Description( + RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void RegisteredProfile_Set_Description( + RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RegisteredProfile_Null_Description( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void RegisteredProfile_Clr_Description( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void RegisteredProfile_SetString_ElementName( + RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void RegisteredProfile_Set_ElementName( + RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RegisteredProfile_Null_ElementName( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void RegisteredProfile_Clr_ElementName( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void RegisteredProfile_SetString_InstanceID( + RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void RegisteredProfile_Set_InstanceID( + RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RegisteredProfile_Null_InstanceID( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void RegisteredProfile_Clr_InstanceID( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +KINLINE void RegisteredProfile_Set_RegisteredOrganization( + RegisteredProfile* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RegisteredOrganization; + KUint16_Set(field, x); + } +} + +KINLINE void RegisteredProfile_Null_RegisteredOrganization( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RegisteredOrganization; + KUint16_Null(field); + } +} + +KINLINE void RegisteredProfile_Clr_RegisteredOrganization( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RegisteredOrganization; + KUint16_Clr(field); + } +} + +typedef enum _RegisteredProfile_RegisteredOrganization_Enum +{ + RegisteredProfile_RegisteredOrganization_Other = 1, + RegisteredProfile_RegisteredOrganization_DMTF = 2, + RegisteredProfile_RegisteredOrganization_CompTIA = 3, + RegisteredProfile_RegisteredOrganization_Consortium_for_Service_Innovation = 4, + RegisteredProfile_RegisteredOrganization_FAST = 5, + RegisteredProfile_RegisteredOrganization_GGF = 6, + RegisteredProfile_RegisteredOrganization_INTAP = 7, + RegisteredProfile_RegisteredOrganization_itSMF = 8, + RegisteredProfile_RegisteredOrganization_NAC = 9, + RegisteredProfile_RegisteredOrganization_Northwest_Energy_Efficiency_Alliance = 10, + RegisteredProfile_RegisteredOrganization_SNIA = 11, + RegisteredProfile_RegisteredOrganization_TM_Forum = 12, + RegisteredProfile_RegisteredOrganization_The_Open_Group = 13, + RegisteredProfile_RegisteredOrganization_ANSI = 14, + RegisteredProfile_RegisteredOrganization_IEEE = 15, + RegisteredProfile_RegisteredOrganization_IETF = 16, + RegisteredProfile_RegisteredOrganization_INCITS = 17, + RegisteredProfile_RegisteredOrganization_ISO = 18, + RegisteredProfile_RegisteredOrganization_W3C = 19, + RegisteredProfile_RegisteredOrganization_OGF = 20, + RegisteredProfile_RegisteredOrganization_DMTF_Reserved = 0, +} +RegisteredProfile_RegisteredOrganization_Enum; + +/* "Other" */ +#define RegisteredProfile_Set_RegisteredOrganization_Other(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 1) + +/* "DMTF" */ +#define RegisteredProfile_Set_RegisteredOrganization_DMTF(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 2) + +/* "CompTIA" */ +#define RegisteredProfile_Set_RegisteredOrganization_CompTIA(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 3) + +/* "Consortium for Service Innovation" */ +#define RegisteredProfile_Set_RegisteredOrganization_Consortium_for_Service_Innovation(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 4) + +/* "FAST" */ +#define RegisteredProfile_Set_RegisteredOrganization_FAST(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 5) + +/* "GGF" */ +#define RegisteredProfile_Set_RegisteredOrganization_GGF(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 6) + +/* "INTAP" */ +#define RegisteredProfile_Set_RegisteredOrganization_INTAP(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 7) + +/* "itSMF" */ +#define RegisteredProfile_Set_RegisteredOrganization_itSMF(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 8) + +/* "NAC" */ +#define RegisteredProfile_Set_RegisteredOrganization_NAC(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 9) + +/* "Northwest Energy Efficiency Alliance" */ +#define RegisteredProfile_Set_RegisteredOrganization_Northwest_Energy_Efficiency_Alliance(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 10) + +/* "SNIA" */ +#define RegisteredProfile_Set_RegisteredOrganization_SNIA(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 11) + +/* "TM Forum" */ +#define RegisteredProfile_Set_RegisteredOrganization_TM_Forum(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 12) + +/* "The Open Group" */ +#define RegisteredProfile_Set_RegisteredOrganization_The_Open_Group(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 13) + +/* "ANSI" */ +#define RegisteredProfile_Set_RegisteredOrganization_ANSI(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 14) + +/* "IEEE" */ +#define RegisteredProfile_Set_RegisteredOrganization_IEEE(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 15) + +/* "IETF" */ +#define RegisteredProfile_Set_RegisteredOrganization_IETF(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 16) + +/* "INCITS" */ +#define RegisteredProfile_Set_RegisteredOrganization_INCITS(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 17) + +/* "ISO" */ +#define RegisteredProfile_Set_RegisteredOrganization_ISO(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 18) + +/* "W3C" */ +#define RegisteredProfile_Set_RegisteredOrganization_W3C(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 19) + +/* "OGF" */ +#define RegisteredProfile_Set_RegisteredOrganization_OGF(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 20) + +/* "DMTF Reserved" */ +#define RegisteredProfile_Set_RegisteredOrganization_DMTF_Reserved(SELF) \ + RegisteredProfile_Set_RegisteredOrganization(SELF, 0) + +KINLINE void RegisteredProfile_SetString_OtherRegisteredOrganization( + RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_SetString(field, x); + } +} + +KINLINE void RegisteredProfile_Set_OtherRegisteredOrganization( + RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RegisteredProfile_Null_OtherRegisteredOrganization( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_Null(field); + } +} + +KINLINE void RegisteredProfile_Clr_OtherRegisteredOrganization( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherRegisteredOrganization; + KString_Clr(field); + } +} + +KINLINE void RegisteredProfile_SetString_RegisteredName( + RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_SetString(field, x); + } +} + +KINLINE void RegisteredProfile_Set_RegisteredName( + RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RegisteredProfile_Null_RegisteredName( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_Null(field); + } +} + +KINLINE void RegisteredProfile_Clr_RegisteredName( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredName; + KString_Clr(field); + } +} + +KINLINE void RegisteredProfile_SetString_RegisteredVersion( + RegisteredProfile* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_SetString(field, x); + } +} + +KINLINE void RegisteredProfile_Set_RegisteredVersion( + RegisteredProfile* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void RegisteredProfile_Null_RegisteredVersion( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_Null(field); + } +} + +KINLINE void RegisteredProfile_Clr_RegisteredVersion( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->RegisteredVersion; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean RegisteredProfile_Init_AdvertiseTypes( + RegisteredProfile* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void RegisteredProfile_InitNull_AdvertiseTypes( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean RegisteredProfile_Set_AdvertiseTypes( + RegisteredProfile* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 RegisteredProfile_Get_AdvertiseTypes( + RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean RegisteredProfile_Null_AdvertiseTypes( + RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void RegisteredProfile_Clr_AdvertiseTypes( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AdvertiseTypes; + KUint16A_Clr(field); + } +} + +typedef enum _RegisteredProfile_AdvertiseTypes_Enum +{ + RegisteredProfile_AdvertiseTypes_Other = 1, + RegisteredProfile_AdvertiseTypes_Not_Advertised = 2, + RegisteredProfile_AdvertiseTypes_SLP = 3, +} +RegisteredProfile_AdvertiseTypes_Enum; + +/* "Other" */ +#define RegisteredProfile_Set_AdvertiseTypes_Other(SELF, INDEX)\ + RegisteredProfile_Set_AdvertiseTypes(SELF, INDEX, 1) + +/* "Not Advertised" */ +#define RegisteredProfile_Set_AdvertiseTypes_Not_Advertised(SELF, INDEX)\ + RegisteredProfile_Set_AdvertiseTypes(SELF, INDEX, 2) + +/* "SLP" */ +#define RegisteredProfile_Set_AdvertiseTypes_SLP(SELF, INDEX)\ + RegisteredProfile_Set_AdvertiseTypes(SELF, INDEX, 3) + +KINLINE CMPIBoolean RegisteredProfile_Init_AdvertiseTypeDescriptions( + RegisteredProfile* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void RegisteredProfile_InitNull_AdvertiseTypeDescriptions( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean RegisteredProfile_SetString_AdvertiseTypeDescriptions( + RegisteredProfile* self, + CMPICount i, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_SetString(field, i, x); + } + return 0; +} + +KINLINE CMPIBoolean RegisteredProfile_Set_AdvertiseTypeDescriptions( + RegisteredProfile* self, + CMPICount i, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Set(field, self->__base.cb, i, s); + } + return 0; +} + +KINLINE KString RegisteredProfile_GetString_AdvertiseTypeDescriptions( + RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_GetString(field, i); + } + return KStringA_GetString(NULL, 0); +} + +KINLINE const char* RegisteredProfile_Get_AdvertiseTypeDescriptions( + RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean RegisteredProfile_Null_AdvertiseTypeDescriptions( + RegisteredProfile* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void RegisteredProfile_Clr_AdvertiseTypeDescriptions( + RegisteredProfile* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->AdvertiseTypeDescriptions; + KStringA_Clr(field); + } +} + +/* +**============================================================================== +** +** RegisteredProfile methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus RegisteredProfile_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + RegisteredProfileRef self; + + KReturnIf(RegisteredProfileRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_RegisteredProfile_h */ Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/RegisteredProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/RegisteredProfileProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/RegisteredProfileProvider.c 2008-07-09 18:36:02 UTC (rev 736) @@ -0,0 +1,138 @@ +#include <konkret/konkret.h> +#include "RegisteredProfile.h" + +static const CMPIBroker* _cb = NULL; + +static void RegisteredProfileInitialize() +{ +} + +static CMPIStatus RegisteredProfileCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus RegisteredProfileEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus RegisteredProfileEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + RegisteredProfile x; + + RegisteredProfile_Init(&x, _cb, KNameSpace(cop)); + RegisteredProfile_Set_InstanceID(&x, "SBLIM:SSH_Service"); + RegisteredProfile_Set_RegisteredOrganization_DMTF(&x); + RegisteredProfile_Set_RegisteredName(&x, "SSH Service"); + RegisteredProfile_Set_RegisteredVersion(&x, "1.0"); + RegisteredProfile_Init_AdvertiseTypes(&x, 1); + RegisteredProfile_Set_AdvertiseTypes_SLP(&x, 0); + KReturnInstance(cr, x); + + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus RegisteredProfileGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus RegisteredProfileCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus RegisteredProfileModifyInstance( + 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 RegisteredProfileDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus RegisteredProfileExecQuery( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* lang, + const char* query) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +CMInstanceMIStub( + RegisteredProfile, + RegisteredProfile, + _cb, + RegisteredProfileInitialize()) + +static CMPIStatus RegisteredProfileMethodCleanup( + CMPIMethodMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus RegisteredProfileInvokeMethod( + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + return RegisteredProfile_DispatchMethod( + _cb, mi, cc, cr, cop, meth, in, out); +} + +CMMethodMIStub( + RegisteredProfile, + RegisteredProfile, + _cb, + RegisteredProfileInitialize()) + +KONKRET_REGISTRATION( + "root/interop", + "Linux_SSHRegisteredProfile", + "RegisteredProfile", + "instance method"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-09 18:34:11
|
Revision: 735 http://omc.svn.sourceforge.net/omc/?rev=735&view=rev Author: mike-brasher Date: 2008-07-09 11:34:10 -0700 (Wed, 09 Jul 2008) Log Message: ----------- Added registration providers. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_ConcreteJob.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_IPProtocolEndpoint.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_TCPProtocolEndpoint.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Capabilities.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ComputerSystem.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilities.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpoint.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolService.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/konkret.sh cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile-interop.mof Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/Makefile.am 2008-07-09 17:06:38 UTC (rev 734) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/Makefile.am 2008-07-09 18:34:10 UTC (rev 735) @@ -1,5 +1,6 @@ mof_DATA = \ linux-ssh-service-profile.mof \ + linux-ssh-service-profile-interop.mof \ linux-ssh-service-profile.registration mofdir = $(datadir)/mof/$(PACKAGE_NAME) Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile-interop.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile-interop.mof (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile-interop.mof 2008-07-09 18:34:10 UTC (rev 735) @@ -0,0 +1,3 @@ +class Linux_SSHRegisteredProfile : CIM_RegisteredProfile +{ +}; Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-09 17:06:38 UTC (rev 734) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-09 18:34:10 UTC (rev 735) @@ -1,7 +1,8 @@ -Linux_SSHProtocolService root/cimv2 ProtocolService linux_sshserviceprovider instance method Linux_SSHCapabilities root/cimv2 Capabilities linux_sshserviceprovider instance method Linux_SSHElementCapabilities root/cimv2 ElementCapabilities linux_sshserviceprovider instance association +Linux_SSHHostedAccessPoint root/cimv2 HostedAccessPoint linux_sshserviceprovider instance association +Linux_SSHHostedService root/cimv2 HostedService linux_sshserviceprovider instance association Linux_SSHProtocolEndpoint root/cimv2 ProtocolEndpoint linux_sshserviceprovider instance method +Linux_SSHProtocolService root/cimv2 ProtocolService linux_sshserviceprovider instance method Linux_SSHProvidesEndpoint root/cimv2 ProvidesEndpoint linux_sshserviceprovider instance association -Linux_SSHHostedService root/cimv2 HostedService linux_sshserviceprovider instance association -Linux_SSHHostedAccessPoint root/cimv2 HostedAccessPoint linux_sshserviceprovider instance association +Linux_SSHRegisteredProfile root/interop RegisteredProfile linux_sshserviceprovider instance method Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh 2008-07-09 17:06:38 UTC (rev 734) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh 2008-07-09 18:34:10 UTC (rev 735) @@ -1,2 +1,3 @@ #!/bin/sh provider-register.sh -r linux-ssh-service-profile.registration -m linux-ssh-service-profile.mof +cp linux-ssh-service-profile-interop.mof /usr/var/lib/sfcb/stage/mofs/root/interop Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_ConcreteJob.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_ConcreteJob.h 2008-07-09 17:06:38 UTC (rev 734) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_ConcreteJob.h 2008-07-09 18:34:10 UTC (rev 735) @@ -563,69 +563,32 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_OperationalStatus_Unknown 0 +typedef enum _CIM_ConcreteJob_OperationalStatus_Enum +{ + CIM_ConcreteJob_OperationalStatus_Unknown = 0, + CIM_ConcreteJob_OperationalStatus_Other = 1, + CIM_ConcreteJob_OperationalStatus_OK = 2, + CIM_ConcreteJob_OperationalStatus_Degraded = 3, + CIM_ConcreteJob_OperationalStatus_Stressed = 4, + CIM_ConcreteJob_OperationalStatus_Predictive_Failure = 5, + CIM_ConcreteJob_OperationalStatus_Error = 6, + CIM_ConcreteJob_OperationalStatus_Non_Recoverable_Error = 7, + CIM_ConcreteJob_OperationalStatus_Starting = 8, + CIM_ConcreteJob_OperationalStatus_Stopping = 9, + CIM_ConcreteJob_OperationalStatus_Stopped = 10, + CIM_ConcreteJob_OperationalStatus_In_Service = 11, + CIM_ConcreteJob_OperationalStatus_No_Contact = 12, + CIM_ConcreteJob_OperationalStatus_Lost_Communication = 13, + CIM_ConcreteJob_OperationalStatus_Aborted = 14, + CIM_ConcreteJob_OperationalStatus_Dormant = 15, + CIM_ConcreteJob_OperationalStatus_Supporting_Entity_in_Error = 16, + CIM_ConcreteJob_OperationalStatus_Completed = 17, + CIM_ConcreteJob_OperationalStatus_Power_Mode = 18, + CIM_ConcreteJob_OperationalStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_OperationalStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_OperationalStatus_Enum; -/* "Other" */ -#define CIM_ConcreteJob_OperationalStatus_Other 1 - -/* "OK" */ -#define CIM_ConcreteJob_OperationalStatus_OK 2 - -/* "Degraded" */ -#define CIM_ConcreteJob_OperationalStatus_Degraded 3 - -/* "Stressed" */ -#define CIM_ConcreteJob_OperationalStatus_Stressed 4 - -/* "Predictive Failure" */ -#define CIM_ConcreteJob_OperationalStatus_Predictive_Failure 5 - -/* "Error" */ -#define CIM_ConcreteJob_OperationalStatus_Error 6 - -/* "Non-Recoverable Error" */ -#define CIM_ConcreteJob_OperationalStatus_Non_Recoverable_Error 7 - -/* "Starting" */ -#define CIM_ConcreteJob_OperationalStatus_Starting 8 - -/* "Stopping" */ -#define CIM_ConcreteJob_OperationalStatus_Stopping 9 - -/* "Stopped" */ -#define CIM_ConcreteJob_OperationalStatus_Stopped 10 - -/* "In Service" */ -#define CIM_ConcreteJob_OperationalStatus_In_Service 11 - -/* "No Contact" */ -#define CIM_ConcreteJob_OperationalStatus_No_Contact 12 - -/* "Lost Communication" */ -#define CIM_ConcreteJob_OperationalStatus_Lost_Communication 13 - -/* "Aborted" */ -#define CIM_ConcreteJob_OperationalStatus_Aborted 14 - -/* "Dormant" */ -#define CIM_ConcreteJob_OperationalStatus_Dormant 15 - -/* "Supporting Entity in Error" */ -#define CIM_ConcreteJob_OperationalStatus_Supporting_Entity_in_Error 16 - -/* "Completed" */ -#define CIM_ConcreteJob_OperationalStatus_Completed 17 - -/* "Power Mode" */ -#define CIM_ConcreteJob_OperationalStatus_Power_Mode 18 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_OperationalStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_OperationalStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_OperationalStatus_Unknown(SELF, INDEX)\ CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0) @@ -877,30 +840,19 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_HealthState_Unknown 0 +typedef enum _CIM_ConcreteJob_HealthState_Enum +{ + CIM_ConcreteJob_HealthState_Unknown = 0, + CIM_ConcreteJob_HealthState_OK = 5, + CIM_ConcreteJob_HealthState_Degraded_Warning = 10, + CIM_ConcreteJob_HealthState_Minor_failure = 15, + CIM_ConcreteJob_HealthState_Major_failure = 20, + CIM_ConcreteJob_HealthState_Critical_failure = 25, + CIM_ConcreteJob_HealthState_Non_recoverable_error = 30, + CIM_ConcreteJob_HealthState_DMTF_Reserved = 0, +} +CIM_ConcreteJob_HealthState_Enum; -/* "OK" */ -#define CIM_ConcreteJob_HealthState_OK 5 - -/* "Degraded/Warning" */ -#define CIM_ConcreteJob_HealthState_Degraded_Warning 10 - -/* "Minor failure" */ -#define CIM_ConcreteJob_HealthState_Minor_failure 15 - -/* "Major failure" */ -#define CIM_ConcreteJob_HealthState_Major_failure 20 - -/* "Critical failure" */ -#define CIM_ConcreteJob_HealthState_Critical_failure 25 - -/* "Non-recoverable error" */ -#define CIM_ConcreteJob_HealthState_Non_recoverable_error 30 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_HealthState_DMTF_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_HealthState_Unknown(SELF) \ CIM_ConcreteJob_Set_HealthState(SELF, 0) @@ -964,24 +916,17 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_PrimaryStatus_Unknown 0 +typedef enum _CIM_ConcreteJob_PrimaryStatus_Enum +{ + CIM_ConcreteJob_PrimaryStatus_Unknown = 0, + CIM_ConcreteJob_PrimaryStatus_OK = 1, + CIM_ConcreteJob_PrimaryStatus_Degraded = 2, + CIM_ConcreteJob_PrimaryStatus_Error = 3, + CIM_ConcreteJob_PrimaryStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_PrimaryStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_PrimaryStatus_Enum; -/* "OK" */ -#define CIM_ConcreteJob_PrimaryStatus_OK 1 - -/* "Degraded" */ -#define CIM_ConcreteJob_PrimaryStatus_Degraded 2 - -/* "Error" */ -#define CIM_ConcreteJob_PrimaryStatus_Error 3 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_PrimaryStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_PrimaryStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_PrimaryStatus_Unknown(SELF) \ CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0) @@ -1037,30 +982,19 @@ } } -/* "Not Available" */ -#define CIM_ConcreteJob_DetailedStatus_Not_Available 0 +typedef enum _CIM_ConcreteJob_DetailedStatus_Enum +{ + CIM_ConcreteJob_DetailedStatus_Not_Available = 0, + CIM_ConcreteJob_DetailedStatus_No_Additional_Information = 1, + CIM_ConcreteJob_DetailedStatus_Stressed = 2, + CIM_ConcreteJob_DetailedStatus_Predictive_Failure = 3, + CIM_ConcreteJob_DetailedStatus_Non_Recoverable_Error = 4, + CIM_ConcreteJob_DetailedStatus_Supporting_Entity_in_Error = 5, + CIM_ConcreteJob_DetailedStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_DetailedStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_DetailedStatus_Enum; -/* "No Additional Information" */ -#define CIM_ConcreteJob_DetailedStatus_No_Additional_Information 1 - -/* "Stressed" */ -#define CIM_ConcreteJob_DetailedStatus_Stressed 2 - -/* "Predictive Failure" */ -#define CIM_ConcreteJob_DetailedStatus_Predictive_Failure 3 - -/* "Non-Recoverable Error" */ -#define CIM_ConcreteJob_DetailedStatus_Non_Recoverable_Error 4 - -/* "Supporting Entity in Error" */ -#define CIM_ConcreteJob_DetailedStatus_Supporting_Entity_in_Error 5 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_DetailedStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_DetailedStatus_Vendor_Reserved 0 - /* "Not Available" */ #define CIM_ConcreteJob_Set_DetailedStatus_Not_Available(SELF) \ CIM_ConcreteJob_Set_DetailedStatus(SELF, 0) @@ -1124,63 +1058,30 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_OperatingStatus_Unknown 0 +typedef enum _CIM_ConcreteJob_OperatingStatus_Enum +{ + CIM_ConcreteJob_OperatingStatus_Unknown = 0, + CIM_ConcreteJob_OperatingStatus_Not_Available = 1, + CIM_ConcreteJob_OperatingStatus_Servicing = 2, + CIM_ConcreteJob_OperatingStatus_Starting = 3, + CIM_ConcreteJob_OperatingStatus_Stopping = 4, + CIM_ConcreteJob_OperatingStatus_Stopped = 5, + CIM_ConcreteJob_OperatingStatus_Aborted = 6, + CIM_ConcreteJob_OperatingStatus_Dormant = 7, + CIM_ConcreteJob_OperatingStatus_Completed = 8, + CIM_ConcreteJob_OperatingStatus_Migrating = 9, + CIM_ConcreteJob_OperatingStatus_Emigrating = 10, + CIM_ConcreteJob_OperatingStatus_Immigrating = 11, + CIM_ConcreteJob_OperatingStatus_Snapshotting = 12, + CIM_ConcreteJob_OperatingStatus_Shutting_Down = 13, + CIM_ConcreteJob_OperatingStatus_In_Test = 14, + CIM_ConcreteJob_OperatingStatus_Transitioning = 15, + CIM_ConcreteJob_OperatingStatus_In_Service = 16, + CIM_ConcreteJob_OperatingStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_OperatingStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_OperatingStatus_Enum; -/* "Not Available" */ -#define CIM_ConcreteJob_OperatingStatus_Not_Available 1 - -/* "Servicing" */ -#define CIM_ConcreteJob_OperatingStatus_Servicing 2 - -/* "Starting" */ -#define CIM_ConcreteJob_OperatingStatus_Starting 3 - -/* "Stopping" */ -#define CIM_ConcreteJob_OperatingStatus_Stopping 4 - -/* "Stopped" */ -#define CIM_ConcreteJob_OperatingStatus_Stopped 5 - -/* "Aborted" */ -#define CIM_ConcreteJob_OperatingStatus_Aborted 6 - -/* "Dormant" */ -#define CIM_ConcreteJob_OperatingStatus_Dormant 7 - -/* "Completed" */ -#define CIM_ConcreteJob_OperatingStatus_Completed 8 - -/* "Migrating" */ -#define CIM_ConcreteJob_OperatingStatus_Migrating 9 - -/* "Emigrating" */ -#define CIM_ConcreteJob_OperatingStatus_Emigrating 10 - -/* "Immigrating" */ -#define CIM_ConcreteJob_OperatingStatus_Immigrating 11 - -/* "Snapshotting" */ -#define CIM_ConcreteJob_OperatingStatus_Snapshotting 12 - -/* "Shutting Down" */ -#define CIM_ConcreteJob_OperatingStatus_Shutting_Down 13 - -/* "In Test" */ -#define CIM_ConcreteJob_OperatingStatus_In_Test 14 - -/* "Transitioning" */ -#define CIM_ConcreteJob_OperatingStatus_Transitioning 15 - -/* "In Service" */ -#define CIM_ConcreteJob_OperatingStatus_In_Service 16 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_OperatingStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_OperatingStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_OperatingStatus_Unknown(SELF) \ CIM_ConcreteJob_Set_OperatingStatus(SELF, 0) @@ -1288,27 +1189,18 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_CommunicationStatus_Unknown 0 +typedef enum _CIM_ConcreteJob_CommunicationStatus_Enum +{ + CIM_ConcreteJob_CommunicationStatus_Unknown = 0, + CIM_ConcreteJob_CommunicationStatus_Not_Available = 1, + CIM_ConcreteJob_CommunicationStatus_Communication_OK = 2, + CIM_ConcreteJob_CommunicationStatus_Lost_Communication = 3, + CIM_ConcreteJob_CommunicationStatus_No_Contact = 4, + CIM_ConcreteJob_CommunicationStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_CommunicationStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_CommunicationStatus_Enum; -/* "Not Available" */ -#define CIM_ConcreteJob_CommunicationStatus_Not_Available 1 - -/* "Communication OK" */ -#define CIM_ConcreteJob_CommunicationStatus_Communication_OK 2 - -/* "Lost Communication" */ -#define CIM_ConcreteJob_CommunicationStatus_Lost_Communication 3 - -/* "No Contact" */ -#define CIM_ConcreteJob_CommunicationStatus_No_Contact 4 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_CommunicationStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_CommunicationStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_ConcreteJob_Set_CommunicationStatus_Unknown(SELF) \ CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0) @@ -1565,42 +1457,23 @@ } } -/* "January" */ -#define CIM_ConcreteJob_RunMonth_January 0 +typedef enum _CIM_ConcreteJob_RunMonth_Enum +{ + CIM_ConcreteJob_RunMonth_January = 0, + CIM_ConcreteJob_RunMonth_February = 1, + CIM_ConcreteJob_RunMonth_March = 2, + CIM_ConcreteJob_RunMonth_April = 3, + CIM_ConcreteJob_RunMonth_May = 4, + CIM_ConcreteJob_RunMonth_June = 5, + CIM_ConcreteJob_RunMonth_July = 6, + CIM_ConcreteJob_RunMonth_August = 7, + CIM_ConcreteJob_RunMonth_September = 8, + CIM_ConcreteJob_RunMonth_October = 9, + CIM_ConcreteJob_RunMonth_November = 10, + CIM_ConcreteJob_RunMonth_December = 11, +} +CIM_ConcreteJob_RunMonth_Enum; -/* "February" */ -#define CIM_ConcreteJob_RunMonth_February 1 - -/* "March" */ -#define CIM_ConcreteJob_RunMonth_March 2 - -/* "April" */ -#define CIM_ConcreteJob_RunMonth_April 3 - -/* "May" */ -#define CIM_ConcreteJob_RunMonth_May 4 - -/* "June" */ -#define CIM_ConcreteJob_RunMonth_June 5 - -/* "July" */ -#define CIM_ConcreteJob_RunMonth_July 6 - -/* "August" */ -#define CIM_ConcreteJob_RunMonth_August 7 - -/* "September" */ -#define CIM_ConcreteJob_RunMonth_September 8 - -/* "October" */ -#define CIM_ConcreteJob_RunMonth_October 9 - -/* "November" */ -#define CIM_ConcreteJob_RunMonth_November 10 - -/* "December" */ -#define CIM_ConcreteJob_RunMonth_December 11 - /* "January" */ #define CIM_ConcreteJob_Set_RunMonth_January(SELF) \ CIM_ConcreteJob_Set_RunMonth(SELF, 0) @@ -1711,51 +1584,26 @@ } } -/* "-Saturday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Saturday -7 +typedef enum _CIM_ConcreteJob_RunDayOfWeek_Enum +{ + CIM_ConcreteJob_RunDayOfWeek__Saturday = -7, + CIM_ConcreteJob_RunDayOfWeek__Friday = -6, + CIM_ConcreteJob_RunDayOfWeek__Thursday = -5, + CIM_ConcreteJob_RunDayOfWeek__Wednesday = -4, + CIM_ConcreteJob_RunDayOfWeek__Tuesday = -3, + CIM_ConcreteJob_RunDayOfWeek__Monday = -2, + CIM_ConcreteJob_RunDayOfWeek__Sunday = -1, + CIM_ConcreteJob_RunDayOfWeek_ExactDayOfMonth = 0, + CIM_ConcreteJob_RunDayOfWeek_Sunday = 1, + CIM_ConcreteJob_RunDayOfWeek_Monday = 2, + CIM_ConcreteJob_RunDayOfWeek_Tuesday = 3, + CIM_ConcreteJob_RunDayOfWeek_Wednesday = 4, + CIM_ConcreteJob_RunDayOfWeek_Thursday = 5, + CIM_ConcreteJob_RunDayOfWeek_Friday = 6, + CIM_ConcreteJob_RunDayOfWeek_Saturday = 7, +} +CIM_ConcreteJob_RunDayOfWeek_Enum; -/* "-Friday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Friday -6 - -/* "-Thursday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Thursday -5 - -/* "-Wednesday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Wednesday -4 - -/* "-Tuesday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Tuesday -3 - -/* "-Monday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Monday -2 - -/* "-Sunday" */ -#define CIM_ConcreteJob_RunDayOfWeek__Sunday -1 - -/* "ExactDayOfMonth" */ -#define CIM_ConcreteJob_RunDayOfWeek_ExactDayOfMonth 0 - -/* "Sunday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Sunday 1 - -/* "Monday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Monday 2 - -/* "Tuesday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Tuesday 3 - -/* "Wednesday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Wednesday 4 - -/* "Thursday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Thursday 5 - -/* "Friday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Friday 6 - -/* "Saturday" */ -#define CIM_ConcreteJob_RunDayOfWeek_Saturday 7 - /* "-Saturday" */ #define CIM_ConcreteJob_Set_RunDayOfWeek__Saturday(SELF) \ CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -7) @@ -1878,12 +1726,13 @@ } } -/* "Local Time" */ -#define CIM_ConcreteJob_LocalOrUtcTime_Local_Time 1 +typedef enum _CIM_ConcreteJob_LocalOrUtcTime_Enum +{ + CIM_ConcreteJob_LocalOrUtcTime_Local_Time = 1, + CIM_ConcreteJob_LocalOrUtcTime_UTC_Time = 2, +} +CIM_ConcreteJob_LocalOrUtcTime_Enum; -/* "UTC Time" */ -#define CIM_ConcreteJob_LocalOrUtcTime_UTC_Time 2 - /* "Local Time" */ #define CIM_ConcreteJob_Set_LocalOrUtcTime_Local_Time(SELF) \ CIM_ConcreteJob_Set_LocalOrUtcTime(SELF, 1) @@ -2204,24 +2053,17 @@ } } -/* "Unknown" */ -#define CIM_ConcreteJob_RecoveryAction_Unknown 0 +typedef enum _CIM_ConcreteJob_RecoveryAction_Enum +{ + CIM_ConcreteJob_RecoveryAction_Unknown = 0, + CIM_ConcreteJob_RecoveryAction_Other = 1, + CIM_ConcreteJob_RecoveryAction_Do_Not_Continue = 2, + CIM_ConcreteJob_RecoveryAction_Continue_With_Next_Job = 3, + CIM_ConcreteJob_RecoveryAction_Re_run_Job = 4, + CIM_ConcreteJob_RecoveryAction_Run_Recovery_Job = 5, +} +CIM_ConcreteJob_RecoveryAction_Enum; -/* "Other" */ -#define CIM_ConcreteJob_RecoveryAction_Other 1 - -/* "Do Not Continue" */ -#define CIM_ConcreteJob_RecoveryAction_Do_Not_Continue 2 - -/* "Continue With Next Job" */ -#define CIM_ConcreteJob_RecoveryAction_Continue_With_Next_Job 3 - -/* "Re-run Job" */ -#define CIM_ConcreteJob_RecoveryAction_Re_run_Job 4 - -/* "Run Recovery Job" */ -#define CIM_ConcreteJob_RecoveryAction_Run_Recovery_Job 5 - /* "Unknown" */ #define CIM_ConcreteJob_Set_RecoveryAction_Unknown(SELF) \ CIM_ConcreteJob_Set_RecoveryAction(SELF, 0) @@ -2361,45 +2203,24 @@ } } -/* "New" */ -#define CIM_ConcreteJob_JobState_New 2 +typedef enum _CIM_ConcreteJob_JobState_Enum +{ + CIM_ConcreteJob_JobState_New = 2, + CIM_ConcreteJob_JobState_Starting = 3, + CIM_ConcreteJob_JobState_Running = 4, + CIM_ConcreteJob_JobState_Suspended = 5, + CIM_ConcreteJob_JobState_Shutting_Down = 6, + CIM_ConcreteJob_JobState_Completed = 7, + CIM_ConcreteJob_JobState_Terminated = 8, + CIM_ConcreteJob_JobState_Killed = 9, + CIM_ConcreteJob_JobState_Exception = 10, + CIM_ConcreteJob_JobState_Service = 11, + CIM_ConcreteJob_JobState_Query_Pending = 12, + CIM_ConcreteJob_JobState_DMTF_Reserved = 13, + CIM_ConcreteJob_JobState_Vendor_Reserved = 32768, +} +CIM_ConcreteJob_JobState_Enum; -/* "Starting" */ -#define CIM_ConcreteJob_JobState_Starting 3 - -/* "Running" */ -#define CIM_ConcreteJob_JobState_Running 4 - -/* "Suspended" */ -#define CIM_ConcreteJob_JobState_Suspended 5 - -/* "Shutting Down" */ -#define CIM_ConcreteJob_JobState_Shutting_Down 6 - -/* "Completed" */ -#define CIM_ConcreteJob_JobState_Completed 7 - -/* "Terminated" */ -#define CIM_ConcreteJob_JobState_Terminated 8 - -/* "Killed" */ -#define CIM_ConcreteJob_JobState_Killed 9 - -/* "Exception" */ -#define CIM_ConcreteJob_JobState_Exception 10 - -/* "Service" */ -#define CIM_ConcreteJob_JobState_Service 11 - -/* "Query Pending" */ -#define CIM_ConcreteJob_JobState_Query_Pending 12 - -/* "DMTF Reserved" */ -#define CIM_ConcreteJob_JobState_DMTF_Reserved 13 - -/* "Vendor Reserved" */ -#define CIM_ConcreteJob_JobState_Vendor_Reserved 32768 - /* "New" */ #define CIM_ConcreteJob_Set_JobState_New(SELF) \ CIM_ConcreteJob_Set_JobState(SELF, 2) Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_IPProtocolEndpoint.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_IPProtocolEndpoint.h 2008-07-09 17:06:38 UTC (rev 734) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_IPProtocolEndpoint.h 2008-07-09 18:34:10 UTC (rev 735) @@ -702,69 +702,32 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_OperationalStatus_Enum +{ + CIM_IPProtocolEndpoint_OperationalStatus_Unknown = 0, + CIM_IPProtocolEndpoint_OperationalStatus_Other = 1, + CIM_IPProtocolEndpoint_OperationalStatus_OK = 2, + CIM_IPProtocolEndpoint_OperationalStatus_Degraded = 3, + CIM_IPProtocolEndpoint_OperationalStatus_Stressed = 4, + CIM_IPProtocolEndpoint_OperationalStatus_Predictive_Failure = 5, + CIM_IPProtocolEndpoint_OperationalStatus_Error = 6, + CIM_IPProtocolEndpoint_OperationalStatus_Non_Recoverable_Error = 7, + CIM_IPProtocolEndpoint_OperationalStatus_Starting = 8, + CIM_IPProtocolEndpoint_OperationalStatus_Stopping = 9, + CIM_IPProtocolEndpoint_OperationalStatus_Stopped = 10, + CIM_IPProtocolEndpoint_OperationalStatus_In_Service = 11, + CIM_IPProtocolEndpoint_OperationalStatus_No_Contact = 12, + CIM_IPProtocolEndpoint_OperationalStatus_Lost_Communication = 13, + CIM_IPProtocolEndpoint_OperationalStatus_Aborted = 14, + CIM_IPProtocolEndpoint_OperationalStatus_Dormant = 15, + CIM_IPProtocolEndpoint_OperationalStatus_Supporting_Entity_in_Error = 16, + CIM_IPProtocolEndpoint_OperationalStatus_Completed = 17, + CIM_IPProtocolEndpoint_OperationalStatus_Power_Mode = 18, + CIM_IPProtocolEndpoint_OperationalStatus_DMTF_Reserved = 0, + CIM_IPProtocolEndpoint_OperationalStatus_Vendor_Reserved = 0, +} +CIM_IPProtocolEndpoint_OperationalStatus_Enum; -/* "Other" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Other 1 - -/* "OK" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_OK 2 - -/* "Degraded" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Degraded 3 - -/* "Stressed" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Stressed 4 - -/* "Predictive Failure" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Predictive_Failure 5 - -/* "Error" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Error 6 - -/* "Non-Recoverable Error" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Non_Recoverable_Error 7 - -/* "Starting" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Starting 8 - -/* "Stopping" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Stopping 9 - -/* "Stopped" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Stopped 10 - -/* "In Service" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_In_Service 11 - -/* "No Contact" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_No_Contact 12 - -/* "Lost Communication" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Lost_Communication 13 - -/* "Aborted" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Aborted 14 - -/* "Dormant" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Dormant 15 - -/* "Supporting Entity in Error" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Supporting_Entity_in_Error 16 - -/* "Completed" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Completed 17 - -/* "Power Mode" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Power_Mode 18 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_OperationalStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_OperationalStatus_Unknown(SELF, INDEX)\ CIM_IPProtocolEndpoint_Set_OperationalStatus(SELF, INDEX, 0) @@ -1016,30 +979,19 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_HealthState_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_HealthState_Enum +{ + CIM_IPProtocolEndpoint_HealthState_Unknown = 0, + CIM_IPProtocolEndpoint_HealthState_OK = 5, + CIM_IPProtocolEndpoint_HealthState_Degraded_Warning = 10, + CIM_IPProtocolEndpoint_HealthState_Minor_failure = 15, + CIM_IPProtocolEndpoint_HealthState_Major_failure = 20, + CIM_IPProtocolEndpoint_HealthState_Critical_failure = 25, + CIM_IPProtocolEndpoint_HealthState_Non_recoverable_error = 30, + CIM_IPProtocolEndpoint_HealthState_DMTF_Reserved = 0, +} +CIM_IPProtocolEndpoint_HealthState_Enum; -/* "OK" */ -#define CIM_IPProtocolEndpoint_HealthState_OK 5 - -/* "Degraded/Warning" */ -#define CIM_IPProtocolEndpoint_HealthState_Degraded_Warning 10 - -/* "Minor failure" */ -#define CIM_IPProtocolEndpoint_HealthState_Minor_failure 15 - -/* "Major failure" */ -#define CIM_IPProtocolEndpoint_HealthState_Major_failure 20 - -/* "Critical failure" */ -#define CIM_IPProtocolEndpoint_HealthState_Critical_failure 25 - -/* "Non-recoverable error" */ -#define CIM_IPProtocolEndpoint_HealthState_Non_recoverable_error 30 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_HealthState_DMTF_Reserved 0 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_HealthState_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_HealthState(SELF, 0) @@ -1103,24 +1055,17 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_PrimaryStatus_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_PrimaryStatus_Enum +{ + CIM_IPProtocolEndpoint_PrimaryStatus_Unknown = 0, + CIM_IPProtocolEndpoint_PrimaryStatus_OK = 1, + CIM_IPProtocolEndpoint_PrimaryStatus_Degraded = 2, + CIM_IPProtocolEndpoint_PrimaryStatus_Error = 3, + CIM_IPProtocolEndpoint_PrimaryStatus_DMTF_Reserved = 0, + CIM_IPProtocolEndpoint_PrimaryStatus_Vendor_Reserved = 0, +} +CIM_IPProtocolEndpoint_PrimaryStatus_Enum; -/* "OK" */ -#define CIM_IPProtocolEndpoint_PrimaryStatus_OK 1 - -/* "Degraded" */ -#define CIM_IPProtocolEndpoint_PrimaryStatus_Degraded 2 - -/* "Error" */ -#define CIM_IPProtocolEndpoint_PrimaryStatus_Error 3 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_PrimaryStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_PrimaryStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_PrimaryStatus_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_PrimaryStatus(SELF, 0) @@ -1176,30 +1121,19 @@ } } -/* "Not Available" */ -#define CIM_IPProtocolEndpoint_DetailedStatus_Not_Available 0 +typedef enum _CIM_IPProtocolEndpoint_DetailedStatus_Enum +{ + CIM_IPProtocolEndpoint_DetailedStatus_Not_Available = 0, + CIM_IPProtocolEndpoint_DetailedStatus_No_Additional_Information = 1, + CIM_IPProtocolEndpoint_DetailedStatus_Stressed = 2, + CIM_IPProtocolEndpoint_DetailedStatus_Predictive_Failure = 3, + CIM_IPProtocolEndpoint_DetailedStatus_Non_Recoverable_Error = 4, + CIM_IPProtocolEndpoint_DetailedStatus_Supporting_Entity_in_Error = 5, + CIM_IPProtocolEndpoint_DetailedStatus_DMTF_Reserved = 0, + CIM_IPProtocolEndpoint_DetailedStatus_Vendor_Reserved = 0, +} +CIM_IPProtocolEndpoint_DetailedStatus_Enum; -/* "No Additional Information" */ -#define CIM_IPProtocolEndpoint_DetailedStatus_No_Additional_Information 1 - -/* "Stressed" */ -#define CIM_IPProtocolEndpoint_DetailedStatus_Stressed 2 - -/* "Predictive Failure" */ -#define CIM_IPProtocolEndpoint_DetailedStatus_Predictive_Failure 3 - -/* "Non-Recoverable Error" */ -#define CIM_IPProtocolEndpoint_DetailedStatus_Non_Recoverable_Error 4 - -/* "Supporting Entity in Error" */ -#define CIM_IPProtocolEndpoint_DetailedStatus_Supporting_Entity_in_Error 5 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_DetailedStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_DetailedStatus_Vendor_Reserved 0 - /* "Not Available" */ #define CIM_IPProtocolEndpoint_Set_DetailedStatus_Not_Available(SELF) \ CIM_IPProtocolEndpoint_Set_DetailedStatus(SELF, 0) @@ -1263,63 +1197,30 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_OperatingStatus_Enum +{ + CIM_IPProtocolEndpoint_OperatingStatus_Unknown = 0, + CIM_IPProtocolEndpoint_OperatingStatus_Not_Available = 1, + CIM_IPProtocolEndpoint_OperatingStatus_Servicing = 2, + CIM_IPProtocolEndpoint_OperatingStatus_Starting = 3, + CIM_IPProtocolEndpoint_OperatingStatus_Stopping = 4, + CIM_IPProtocolEndpoint_OperatingStatus_Stopped = 5, + CIM_IPProtocolEndpoint_OperatingStatus_Aborted = 6, + CIM_IPProtocolEndpoint_OperatingStatus_Dormant = 7, + CIM_IPProtocolEndpoint_OperatingStatus_Completed = 8, + CIM_IPProtocolEndpoint_OperatingStatus_Migrating = 9, + CIM_IPProtocolEndpoint_OperatingStatus_Emigrating = 10, + CIM_IPProtocolEndpoint_OperatingStatus_Immigrating = 11, + CIM_IPProtocolEndpoint_OperatingStatus_Snapshotting = 12, + CIM_IPProtocolEndpoint_OperatingStatus_Shutting_Down = 13, + CIM_IPProtocolEndpoint_OperatingStatus_In_Test = 14, + CIM_IPProtocolEndpoint_OperatingStatus_Transitioning = 15, + CIM_IPProtocolEndpoint_OperatingStatus_In_Service = 16, + CIM_IPProtocolEndpoint_OperatingStatus_DMTF_Reserved = 0, + CIM_IPProtocolEndpoint_OperatingStatus_Vendor_Reserved = 0, +} +CIM_IPProtocolEndpoint_OperatingStatus_Enum; -/* "Not Available" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Not_Available 1 - -/* "Servicing" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Servicing 2 - -/* "Starting" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Starting 3 - -/* "Stopping" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Stopping 4 - -/* "Stopped" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Stopped 5 - -/* "Aborted" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Aborted 6 - -/* "Dormant" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Dormant 7 - -/* "Completed" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Completed 8 - -/* "Migrating" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Migrating 9 - -/* "Emigrating" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Emigrating 10 - -/* "Immigrating" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Immigrating 11 - -/* "Snapshotting" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Snapshotting 12 - -/* "Shutting Down" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Shutting_Down 13 - -/* "In Test" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_In_Test 14 - -/* "Transitioning" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Transitioning 15 - -/* "In Service" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_In_Service 16 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_OperatingStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_OperatingStatus_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_OperatingStatus(SELF, 0) @@ -1427,27 +1328,18 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_CommunicationStatus_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_CommunicationStatus_Enum +{ + CIM_IPProtocolEndpoint_CommunicationStatus_Unknown = 0, + CIM_IPProtocolEndpoint_CommunicationStatus_Not_Available = 1, + CIM_IPProtocolEndpoint_CommunicationStatus_Communication_OK = 2, + CIM_IPProtocolEndpoint_CommunicationStatus_Lost_Communication = 3, + CIM_IPProtocolEndpoint_CommunicationStatus_No_Contact = 4, + CIM_IPProtocolEndpoint_CommunicationStatus_DMTF_Reserved = 0, + CIM_IPProtocolEndpoint_CommunicationStatus_Vendor_Reserved = 0, +} +CIM_IPProtocolEndpoint_CommunicationStatus_Enum; -/* "Not Available" */ -#define CIM_IPProtocolEndpoint_CommunicationStatus_Not_Available 1 - -/* "Communication OK" */ -#define CIM_IPProtocolEndpoint_CommunicationStatus_Communication_OK 2 - -/* "Lost Communication" */ -#define CIM_IPProtocolEndpoint_CommunicationStatus_Lost_Communication 3 - -/* "No Contact" */ -#define CIM_IPProtocolEndpoint_CommunicationStatus_No_Contact 4 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_CommunicationStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_CommunicationStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_CommunicationStatus_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_CommunicationStatus(SELF, 0) @@ -1507,45 +1399,24 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_EnabledState_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_EnabledState_Enum +{ + CIM_IPProtocolEndpoint_EnabledState_Unknown = 0, + CIM_IPProtocolEndpoint_EnabledState_Other = 1, + CIM_IPProtocolEndpoint_EnabledState_Enabled = 2, + CIM_IPProtocolEndpoint_EnabledState_Disabled = 3, + CIM_IPProtocolEndpoint_EnabledState_Shutting_Down = 4, + CIM_IPProtocolEndpoint_EnabledState_Not_Applicable = 5, + CIM_IPProtocolEndpoint_EnabledState_Enabled_but_Offline = 6, + CIM_IPProtocolEndpoint_EnabledState_In_Test = 7, + CIM_IPProtocolEndpoint_EnabledState_Deferred = 8, + CIM_IPProtocolEndpoint_EnabledState_Quiesce = 9, + CIM_IPProtocolEndpoint_EnabledState_Starting = 10, + CIM_IPProtocolEndpoint_EnabledState_DMTF_Reserved = 11, + CIM_IPProtocolEndpoint_EnabledState_Vendor_Reserved = 32768, +} +CIM_IPProtocolEndpoint_EnabledState_Enum; -/* "Other" */ -#define CIM_IPProtocolEndpoint_EnabledState_Other 1 - -/* "Enabled" */ -#define CIM_IPProtocolEndpoint_EnabledState_Enabled 2 - -/* "Disabled" */ -#define CIM_IPProtocolEndpoint_EnabledState_Disabled 3 - -/* "Shutting Down" */ -#define CIM_IPProtocolEndpoint_EnabledState_Shutting_Down 4 - -/* "Not Applicable" */ -#define CIM_IPProtocolEndpoint_EnabledState_Not_Applicable 5 - -/* "Enabled but Offline" */ -#define CIM_IPProtocolEndpoint_EnabledState_Enabled_but_Offline 6 - -/* "In Test" */ -#define CIM_IPProtocolEndpoint_EnabledState_In_Test 7 - -/* "Deferred" */ -#define CIM_IPProtocolEndpoint_EnabledState_Deferred 8 - -/* "Quiesce" */ -#define CIM_IPProtocolEndpoint_EnabledState_Quiesce 9 - -/* "Starting" */ -#define CIM_IPProtocolEndpoint_EnabledState_Starting 10 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_EnabledState_DMTF_Reserved 11 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_EnabledState_Vendor_Reserved 32768 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_EnabledState_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_EnabledState(SELF, 0) @@ -1671,48 +1542,25 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_RequestedState_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_RequestedState_Enum +{ + CIM_IPProtocolEndpoint_RequestedState_Unknown = 0, + CIM_IPProtocolEndpoint_RequestedState_Enabled = 2, + CIM_IPProtocolEndpoint_RequestedState_Disabled = 3, + CIM_IPProtocolEndpoint_RequestedState_Shut_Down = 4, + CIM_IPProtocolEndpoint_RequestedState_No_Change = 5, + CIM_IPProtocolEndpoint_RequestedState_Offline = 6, + CIM_IPProtocolEndpoint_RequestedState_Test = 7, + CIM_IPProtocolEndpoint_RequestedState_Deferred = 8, + CIM_IPProtocolEndpoint_RequestedState_Quiesce = 9, + CIM_IPProtocolEndpoint_RequestedState_Reboot = 10, + CIM_IPProtocolEndpoint_RequestedState_Reset = 11, + CIM_IPProtocolEndpoint_RequestedState_Not_Applicable = 12, + CIM_IPProtocolEndpoint_RequestedState_DMTF_Reserved = 0, + CIM_IPProtocolEndpoint_RequestedState_Vendor_Reserved = 32768, +} +CIM_IPProtocolEndpoint_RequestedState_Enum; -/* "Enabled" */ -#define CIM_IPProtocolEndpoint_RequestedState_Enabled 2 - -/* "Disabled" */ -#define CIM_IPProtocolEndpoint_RequestedState_Disabled 3 - -/* "Shut Down" */ -#define CIM_IPProtocolEndpoint_RequestedState_Shut_Down 4 - -/* "No Change" */ -#define CIM_IPProtocolEndpoint_RequestedState_No_Change 5 - -/* "Offline" */ -#define CIM_IPProtocolEndpoint_RequestedState_Offline 6 - -/* "Test" */ -#define CIM_IPProtocolEndpoint_RequestedState_Test 7 - -/* "Deferred" */ -#define CIM_IPProtocolEndpoint_RequestedState_Deferred 8 - -/* "Quiesce" */ -#define CIM_IPProtocolEndpoint_RequestedState_Quiesce 9 - -/* "Reboot" */ -#define CIM_IPProtocolEndpoint_RequestedState_Reboot 10 - -/* "Reset" */ -#define CIM_IPProtocolEndpoint_RequestedState_Reset 11 - -/* "Not Applicable" */ -#define CIM_IPProtocolEndpoint_RequestedState_Not_Applicable 12 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_RequestedState_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_RequestedState_Vendor_Reserved 32768 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_RequestedState_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_RequestedState(SELF, 0) @@ -1800,30 +1648,19 @@ } } -/* "Enabled" */ -#define CIM_IPProtocolEndpoint_EnabledDefault_Enabled 2 +typedef enum _CIM_IPProtocolEndpoint_EnabledDefault_Enum +{ + CIM_IPProtocolEndpoint_EnabledDefault_Enabled = 2, + CIM_IPProtocolEndpoint_EnabledDefault_Disabled = 3, + CIM_IPProtocolEndpoint_EnabledDefault_Not_Applicable = 5, + CIM_IPProtocolEndpoint_EnabledDefault_Enabled_but_Offline = 6, + CIM_IPProtocolEndpoint_EnabledDefault_No_Default = 7, + CIM_IPProtocolEndpoint_EnabledDefault_Quiesce = 9, + CIM_IPProtocolEndpoint_EnabledDefault_DMTF_Reserved = 0, + CIM_IPProtocolEndpoint_EnabledDefault_Vendor_Reserved = 32768, +} +CIM_IPProtocolEndpoint_EnabledDefault_Enum; -/* "Disabled" */ -#define CIM_IPProtocolEndpoint_EnabledDefault_Disabled 3 - -/* "Not Applicable" */ -#define CIM_IPProtocolEndpoint_EnabledDefault_Not_Applicable 5 - -/* "Enabled but Offline" */ -#define CIM_IPProtocolEndpoint_EnabledDefault_Enabled_but_Offline 6 - -/* "No Default" */ -#define CIM_IPProtocolEndpoint_EnabledDefault_No_Default 7 - -/* "Quiesce" */ -#define CIM_IPProtocolEndpoint_EnabledDefault_Quiesce 9 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_EnabledDefault_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_EnabledDefault_Vendor_Reserved 32768 - /* "Enabled" */ #define CIM_IPProtocolEndpoint_Set_EnabledDefault_Enabled(SELF) \ CIM_IPProtocolEndpoint_Set_EnabledDefault(SELF, 2) @@ -1956,33 +1793,20 @@ } } -/* "Enabled" */ -#define CIM_IPProtocolEndpoint_AvailableRequestedStates_Enabled 2 +typedef enum _CIM_IPProtocolEndpoint_AvailableRequestedStates_Enum +{ + CIM_IPProtocolEndpoint_AvailableRequestedStates_Enabled = 2, + CIM_IPProtocolEndpoint_AvailableRequestedStates_Disabled = 3, + CIM_IPProtocolEndpoint_AvailableRequestedStates_Shut_Down = 4, + CIM_IPProtocolEndpoint_AvailableRequestedStates_Offline = 6, + CIM_IPProtocolEndpoint_AvailableRequestedStates_Test = 7, + CIM_IPProtocolEndpoint_AvailableRequestedStates_Defer = 8, + CIM_IPProtocolEndpoint_AvailableRequestedStates_Quiesce = 9, + CIM_IPProtocolEndpoint_AvailableRequestedStates_Reboot = 10, + CIM_IPProtocolEndpoint_AvailableRequestedStates_Reset = 11, +} +CIM_IPProtocolEndpoint_AvailableRequestedStates_Enum; -/* "Disabled" */ -#define CIM_IPProtocolEndpoint_AvailableRequestedStates_Disabled 3 - -/* "Shut Down" */ -#define CIM_IPProtocolEndpoint_AvailableRequestedStates_Shut_Down 4 - -/* "Offline" */ -#define CIM_IPProtocolEndpoint_AvailableRequestedStates_Offline 6 - -/* "Test" */ -#define CIM_IPProtocolEndpoint_AvailableRequestedStates_Test 7 - -/* "Defer" */ -#define CIM_IPProtocolEndpoint_AvailableRequestedStates_Defer 8 - -/* "Quiesce" */ -#define CIM_IPProtocolEndpoint_AvailableRequestedStates_Quiesce 9 - -/* "Reboot" */ -#define CIM_IPProtocolEndpoint_AvailableRequestedStates_Reboot 10 - -/* "Reset" */ -#define CIM_IPProtocolEndpoint_AvailableRequestedStates_Reset 11 - /* "Enabled" */ #define CIM_IPProtocolEndpoint_Set_AvailableRequestedStates_Enabled(SELF, INDEX)\ CIM_IPProtocolEndpoint_Set_AvailableRequestedStates(SELF, INDEX, 2) @@ -2050,42 +1874,23 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_TransitioningToState_Enum +{ + CIM_IPProtocolEndpoint_TransitioningToState_Unknown = 0, + CIM_IPProtocolEndpoint_TransitioningToState_Enabled = 2, + CIM_IPProtocolEndpoint_TransitioningToState_Disabled = 3, + CIM_IPProtocolEndpoint_TransitioningToState_Shut_Down = 4, + CIM_IPProtocolEndpoint_TransitioningToState_No_Change = 5, + CIM_IPProtocolEndpoint_TransitioningToState_Offline = 6, + CIM_IPProtocolEndpoint_TransitioningToState_Test = 7, + CIM_IPProtocolEndpoint_TransitioningToState_Defer = 8, + CIM_IPProtocolEndpoint_TransitioningToState_Quiesce = 9, + CIM_IPProtocolEndpoint_TransitioningToState_Reboot = 10, + CIM_IPProtocolEndpoint_TransitioningToState_Reset = 11, + CIM_IPProtocolEndpoint_TransitioningToState_Not_Applicable = 12, +} +CIM_IPProtocolEndpoint_TransitioningToState_Enum; -/* "Enabled" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Enabled 2 - -/* "Disabled" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Disabled 3 - -/* "Shut Down" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Shut_Down 4 - -/* "No Change" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_No_Change 5 - -/* "Offline" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Offline 6 - -/* "Test" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Test 7 - -/* "Defer" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Defer 8 - -/* "Quiesce" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Quiesce 9 - -/* "Reboot" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Reboot 10 - -/* "Reset" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Reset 11 - -/* "Not Applicable" */ -#define CIM_IPProtocolEndpoint_TransitioningToState_Not_Applicable 12 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_TransitioningToState_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_TransitioningToState(SELF, 0) @@ -2333,90 +2138,39 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_ProtocolType_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_ProtocolType_Enum +{ + CIM_IPProtocolEndpoint_ProtocolType_Unknown = 0, + CIM_IPProtocolEndpoint_ProtocolType_Other = 1, + CIM_IPProtocolEndpoint_ProtocolType_IPv4 = 2, + CIM_IPProtocolEndpoint_ProtocolType_IPv6 = 3, + CIM_IPProtocolEndpoint_ProtocolType_IPX = 4, + CIM_IPProtocolEndpoint_ProtocolType_AppleTalk = 5, + CIM_IPProtocolEndpoint_ProtocolType_DECnet = 6, + CIM_IPProtocolEndpoint_ProtocolType_SNA = 7, + CIM_IPProtocolEndpoint_ProtocolType_CONP = 8, + CIM_IPProtocolEndpoint_ProtocolType_CLNP = 9, + CIM_IPProtocolEndpoint_ProtocolType_VINES = 10, + CIM_IPProtocolEndpoint_ProtocolType_XNS = 11, + CIM_IPProtocolEndpoint_ProtocolType_ATM = 12, + CIM_IPProtocolEndpoint_ProtocolType_Frame_Relay = 13, + CIM_IPProtocolEndpoint_ProtocolType_Ethernet = 14, + CIM_IPProtocolEndpoint_ProtocolType_TokenRing = 15, + CIM_IPProtocolEndpoint_ProtocolType_FDDI = 16, + CIM_IPProtocolEndpoint_ProtocolType_Infiniband = 17, + CIM_IPProtocolEndpoint_ProtocolType_Fibre_Channel = 18, + CIM_IPProtocolEndpoint_ProtocolType_ISDN_BRI_Endpoint = 19, + CIM_IPProtocolEndpoint_ProtocolType_ISDN_B_Channel_Endpoint = 20, + CIM_IPProtocolEndpoint_ProtocolType_ISDN_D_Channel_Endpoint = 21, + CIM_IPProtocolEndpoint_ProtocolType_IPv4_v6 = 22, + CIM_IPProtocolEndpoint_ProtocolType_BGP = 23, + CIM_IPProtocolEndpoint_ProtocolType_OSPF = 24, + CIM_IPProtocolEndpoint_ProtocolType_MPLS = 25, + CIM_IPProtocolEndpoint_ProtocolType_UDP = 26, + CIM_IPProtocolEndpoint_ProtocolType_TCP = 27, +} +CIM_IPProtocolEndpoint_ProtocolType_Enum; -/* "Other" */ -#define CIM_IPProtocolEndpoint_ProtocolType_Other 1 - -/* "IPv4" */ -#define CIM_IPProtocolEndpoint_ProtocolType_IPv4 2 - -/* "IPv6" */ -#define CIM_IPProtocolEndpoint_ProtocolType_IPv6 3 - -/* "IPX" */ -#define CIM_IPProtocolEndpoint_ProtocolType_IPX 4 - -/* "AppleTalk" */ -#define CIM_IPProtocolEndpoint_ProtocolType_AppleTalk 5 - -/* "DECnet" */ -#define CIM_IPProtocolEndpoint_ProtocolType_DECnet 6 - -/* "SNA" */ -#define CIM_IPProtocolEndpoint_ProtocolType_SNA 7 - -/* "CONP" */ -#define CIM_IPProtocolEndpoint_ProtocolType_CONP 8 - -/* "CLNP" */ -#define CIM_IPProtocolEndpoint_ProtocolType_CLNP 9 - -/* "VINES" */ -#define CIM_IPProtocolEndpoint_ProtocolType_VINES 10 - -/* "XNS" */ -#define CIM_IPProtocolEndpoint_ProtocolType_XNS 11 - -/* "ATM" */ -#define CIM_IPProtocolEndpoint_ProtocolType_ATM 12 - -/* "Frame Relay" */ -#define CIM_IPProtocolEndpoint_ProtocolType_Frame_Relay 13 - -/* "Ethernet" */ -#define CIM_IPProtocolEndpoint_ProtocolType_Ethernet 14 - -/* "TokenRing" */ -#define CIM_IPProtocolEndpoint_ProtocolType_TokenRing 15 - -/* "FDDI" */ -#define CIM_IPProtocolEndpoint_ProtocolType_FDDI 16 - -/* "Infiniband" */ -#define CIM_IPProtocolEndpoint_ProtocolType_Infiniband 17 - -/* "Fibre Channel" */ -#define CIM_IPProtocolEndpoint_ProtocolType_Fibre_Channel 18 - -/* "ISDN BRI Endpoint" */ -#define CIM_IPProtocolEndpoint_ProtocolType_ISDN_BRI_Endpoint 19 - -/* "ISDN B Channel Endpoint" */ -#define CIM_IPProtocolEndpoint_ProtocolType_ISDN_B_Channel_Endpoint 20 - -/* "ISDN D Channel Endpoint" */ -#define CIM_IPProtocolEndpoint_ProtocolType_ISDN_D_Channel_Endpoint 21 - -/* "IPv4/v6" */ -#define CIM_IPProtocolEndpoint_ProtocolType_IPv4_v6 22 - -/* "BGP" */ -#define CIM_IPProtocolEndpoint_ProtocolType_BGP 23 - -/* "OSPF" */ -#define CIM_IPProtocolEndpoint_ProtocolType_OSPF 24 - -/* "MPLS" */ -#define CIM_IPProtocolEndpoint_ProtocolType_MPLS 25 - -/* "UDP" */ -#define CIM_IPProtocolEndpoint_ProtocolType_UDP 26 - -/* "TCP" */ -#define CIM_IPProtocolEndpoint_ProtocolType_TCP 27 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_ProtocolType_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_ProtocolType(SELF, 0) @@ -2560,27 +2314,18 @@ } } -/* "Other" */ -#define CIM_IPProtocolEndpoint_ProtocolIFType_Other 1 +typedef enum _CIM_IPProtocolEndpoint_ProtocolIFType_Enum +{ + CIM_IPProtocolEndpoint_ProtocolIFType_Other = 1, + CIM_IPProtocolEndpoint_ProtocolIFType_IANA_Reserved = 225, + CIM_IPProtocolEndpoint_ProtocolIFType_IPv4 = 4096, + CIM_IPProtocolEndpoint_ProtocolIFType_IPv6 = 4097, + CIM_IPProtocolEndpoint_ProtocolIFType_IPv4_v6 = 4098, + CIM_IPProtocolEndpoint_ProtocolIFType_DMTF_Reserved = 4301, + CIM_IPProtocolEndpoint_ProtocolIFType_Vendor_Reserved = 32768, +} +CIM_IPProtocolEndpoint_ProtocolIFType_Enum; -/* "IANA Reserved" */ -#define CIM_IPProtocolEndpoint_ProtocolIFType_IANA_Reserved 225 - -/* "IPv4" */ -#define CIM_IPProtocolEndpoint_ProtocolIFType_IPv4 4096 - -/* "IPv6" */ -#define CIM_IPProtocolEndpoint_ProtocolIFType_IPv6 4097 - -/* "IPv4/v6" */ -#define CIM_IPProtocolEndpoint_ProtocolIFType_IPv4_v6 4098 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_ProtocolIFType_DMTF_Reserved 4301 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_ProtocolIFType_Vendor_Reserved 32768 - /* "Other" */ #define CIM_IPProtocolEndpoint_Set_ProtocolIFType_Other(SELF) \ CIM_IPProtocolEndpoint_Set_ProtocolIFType(SELF, 1) @@ -2912,15 +2657,14 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_AddressType_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_AddressType_Enum +{ + CIM_IPProtocolEndpoint_AddressType_Unknown = 0, + CIM_IPProtocolEndpoint_AddressType_IPv4 = 1, + CIM_IPProtocolEndpoint_AddressType_IPv6 = 2, +} +CIM_IPProtocolEndpoint_AddressType_Enum; -/* "IPv4" */ -#define CIM_IPProtocolEndpoint_AddressType_IPv4 1 - -/* "IPv6" */ -#define CIM_IPProtocolEndpoint_AddressType_IPv6 2 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_AddressType_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_AddressType(SELF, 0) @@ -2964,18 +2708,15 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_IPVersionSupport_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_IPVersionSupport_Enum +{ + CIM_IPProtocolEndpoint_IPVersionSupport_Unknown = 0, + CIM_IPProtocolEndpoint_IPVersionSupport_IPv4_Only = 1, + CIM_IPProtocolEndpoint_IPVersionSupport_IPv6_Only = 2, + CIM_IPProtocolEndpoint_IPVersionSupport_Both_IPv4_and_IPv6 = 3, +} +CIM_IPProtocolEndpoint_IPVersionSupport_Enum; -/* "IPv4 Only" */ -#define CIM_IPProtocolEndpoint_IPVersionSupport_IPv4_Only 1 - -/* "IPv6 Only" */ -#define CIM_IPProtocolEndpoint_IPVersionSupport_IPv6_Only 2 - -/* "Both IPv4 and IPv6" */ -#define CIM_IPProtocolEndpoint_IPVersionSupport_Both_IPv4_and_IPv6 3 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_IPVersionSupport_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_IPVersionSupport(SELF, 0) @@ -3023,33 +2764,20 @@ } } -/* "Unknown" */ -#define CIM_IPProtocolEndpoint_AddressOrigin_Unknown 0 +typedef enum _CIM_IPProtocolEndpoint_AddressOrigin_Enum +{ + CIM_IPProtocolEndpoint_AddressOrigin_Unknown = 0, + CIM_IPProtocolEndpoint_AddressOrigin_Other = 1, + CIM_IPProtocolEndpoint_AddressOrigin_Not_Applicable = 2, + CIM_IPProtocolEndpoint_AddressOrigin_Static = 3, + CIM_IPProtocolEndpoint_AddressOrigin_DHCP = 4, + CIM_IPProtocolEndpoint_AddressOrigin_BOOTP = 5, + CIM_IPProtocolEndpoint_AddressOrigin_IPv4_Link_Local = 6, + CIM_IPProtocolEndpoint_AddressOrigin_DMTF_Reserved = 0, + CIM_IPProtocolEndpoint_AddressOrigin_Vendor_Reserved = 32768, +} +CIM_IPProtocolEndpoint_AddressOrigin_Enum; -/* "Other" */ -#define CIM_IPProtocolEndpoint_AddressOrigin_Other 1 - -/* "Not Applicable" */ -#define CIM_IPProtocolEndpoint_AddressOrigin_Not_Applicable 2 - -/* "Static" */ -#define CIM_IPProtocolEndpoint_AddressOrigin_Static 3 - -/* "DHCP" */ -#define CIM_IPProtocolEndpoint_AddressOrigin_DHCP 4 - -/* "BOOTP" */ -#define CIM_IPProtocolEndpoint_AddressOrigin_BOOTP 5 - -/* "IPv4 Link Local" */ -#define CIM_IPProtocolEndpoint_AddressOrigin_IPv4_Link_Local 6 - -/* "DMTF Reserved" */ -#define CIM_IPProtocolEndpoint_AddressOrigin_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_IPProtocolEndpoint_AddressOrigin_Vendor_Reserved 32768 - /* "Unknown" */ #define CIM_IPProtocolEndpoint_Set_AddressOrigin_Unknown(SELF) \ CIM_IPProtocolEndpoint_Set_AddressOrigin(SELF, 0) Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_TCPProtocolEndpoint.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_TCPProtocolEndpoint.h 2008-07-09 17:06:38 UTC (rev 734) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CIM_TCPProtocolEndpoint.h 2008-07-09 18:34:10 UTC (rev 735) @@ -688,69 +688,32 @@ } } -/* "Unknown" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Unknown 0 +typedef enum _CIM_TCPProtocolEndpoint_OperationalStatus_Enum +{ + CIM_TCPProtocolEndpoint_OperationalStatus_Unknown = 0, + CIM_TCPProtocolEndpoint_OperationalStatus_Other = 1, + CIM_TCPProtocolEndpoint_OperationalStatus_OK = 2, + CIM_TCPProtocolEndpoint_OperationalStatus_Degraded = 3, + CIM_TCPProtocolEndpoint_OperationalStatus_Stressed = 4, + CIM_TCPProtocolEndpoint_OperationalStatus_Predictive_Failure = 5, + CIM_TCPProtocolEndpoint_OperationalStatus_Error = 6, + CIM_TCPProtocolEndpoint_OperationalStatus_Non_Recoverable_Error = 7, + CIM_TCPProtocolEndpoint_OperationalStatus_Starting = 8, + CIM_TCPProtocolEndpoint_OperationalStatus_Stopping = 9, + CIM_TCPProtocolEndpoint_OperationalStatus_Stopped = 10, + CIM_TCPProtocolEndpoint_OperationalStatus_In_Service = 11, + CIM_TCPProtocolEndpoint_OperationalStatus_No_Contact = 12, + CIM_TCPProtocolEndpoint_OperationalStatus_Lost_Communication = 13, + CIM_TCPProtocolEndpoint_OperationalStatus_Aborted = 14, + CIM_TCPProtocolEndpoint_OperationalStatus_Dormant = 15, + CIM_TCPProtocolEndpoint_OperationalStatus_Supporting_Entity_in_Error = 16, + CIM_TCPProtocolEndpoint_OperationalStatus_Completed = 17, + CIM_TCPProtocolEndpoint_OperationalStatus_Power_Mode = 18, + CIM_TCPProtocolEndpoint_OperationalStatus_DMTF_Reserved = 0, + CIM_TCPProtocolEndpoint_OperationalStatus_Vendor_Reserved = 0, +} +CIM_TCPProtocolEndpoint_OperationalStatus_Enum; -/* "Other" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Other 1 - -/* "OK" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_OK 2 - -/* "Degraded" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Degraded 3 - -/* "Stressed" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Stressed 4 - -/* "Predictive Failure" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Predictive_Failure 5 - -/* "Error" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Error 6 - -/* "Non-Recoverable Error" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Non_Recoverable_Error 7 - -/* "Starting" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Starting 8 - -/* "Stopping" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Stopping 9 - -/* "Stopped" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Stopped 10 - -/* "In Service" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_In_Service 11 - -/* "No Contact" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_No_Contact 12 - -/* "Lost Communication" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Lost_Communication 13 - -/* "Aborted" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Aborted 14 - -/* "Dormant" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Dormant 15 - -/* "Supporting Entity in Error" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Supporting_Entity_in_Error 16 - -/* "Completed" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Completed 17 - -/* "Power Mode" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Power_Mode 18 - -/* "DMTF Reserved" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_TCPProtocolEndpoint_OperationalStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_TCPProtocolEndpoint_Set_OperationalStatus_Unknown(SELF, INDEX)\ CIM_TCPProtocolEndpoint_Set_OperationalStatus(SELF, INDEX, 0) @@ -1002,30 +965,19 @@ } } -/* "Unknown" */ -#define CIM_TCPProtocolEndpoint_HealthState_Unknown 0 +typedef enum _CIM_TCPProtocolEndpoint_HealthState_Enum +{ + CIM_TCPProtocolEndpoint_HealthState_Unknown = 0, + CIM_TCPProtocolEndpoint_HealthState_OK = 5, + CIM_TCPProtocolEndpoint_HealthState_Degraded_Warning = 10, + CIM_TCPProtocolEndpoint_HealthState_Minor_failure = 15, + CIM_TCPProtocolEndpoint_HealthState_Major_failure = 20, + CIM_TCPProtocolEndpoint_HealthState_Critical_failure = 25, + CIM_TCPProtocolEndpoint_HealthState_Non_recoverable_error = 30, + CIM_TCPProtocolEndpoint_HealthState_DMTF_Reserved = 0, +} +CIM_TCPProtocolEndpoint_HealthState_Enum; -/* "OK" */ -#define CIM_TCPProtocolEndpoint_HealthState_OK 5 - -/* "Degraded/Warning" */ -#define CIM_TCPProtocolEndpoint_HealthState_Degraded_Warning 10 - -/* "Minor failure" */ -#define CIM_TCPProtocolEndpoint_HealthState_Minor_failure 15 - -/* "Major failure" */ -#define CIM_TCPProtocolEndpoint_HealthState_Major_failure 20 - -/* "Critical failure" */ -#define CIM_TCPProtocolEndpoint_HealthState_Critical_failure 25 - -/* "Non-recoverable error" */ -#define CIM_TCPProtocolEndpoint_HealthState_Non_recoverable_error 30 - -/* "DMTF Reserved" */ -#define CIM_TCPProtocolEndpoint_HealthState_DMTF_Reserved 0 - /* "Unknown" */ #define CIM_TCPProtocolEndpoint_Set_HealthState_Unknown(SELF) \ CIM_TCPProtocolEndpoint_Set_HealthState(SELF, 0) @@ -1089,24 +1041,17 @@ } } -/* "Unknown" */ -#define CIM_TCPProtocolEndpoint_PrimaryStatus_Unknown 0 +typedef enum _CIM_TCPProtocolEndpoint_PrimaryStatus_Enum +{ + CIM_TCPProtocolEndpoint_PrimaryStatus_Unknown = 0, + CIM_TCPProtocolEndpoint_PrimaryStatus_OK = 1, + CIM_TCPProtocolEndpoint_PrimaryStatus_Degraded = 2, + CIM_TCPProtocolEndpoint_PrimaryStatus_Error = 3, + CIM_TCPProtocolEndpoint_PrimaryStatus_DMTF_Reserved = 0, + CIM_TCPProtocolEndpoint_PrimaryStatus_Vendor_Reserved = 0, +} +CIM_TCPProtocolEndpoint_PrimaryStatus_Enum; -/* "OK" */ -#define CIM_TCPProtocolEndpoint_PrimaryStatus_OK 1 - -/* "Degraded" */ -#define CIM_TCPProtocolEndpoint_PrimaryStatus_Degraded 2 - -/* "Error" */ -#define CIM_TCPProtocolEndpoint_PrimaryStatus_Error 3 - -/* "DMTF Reserved" */ -#define CIM_TCPProtocolEndpoint_PrimaryStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_TCPProtocolEndpoint_PrimaryStatus_Vendor_Reserved 0 - /* "Unknown" */ #define CIM_TCPProtocolEndpoint_Set_PrimaryStatus_Unknown(SELF) \ CIM_TCPProtocolEndpoint_Set_PrimaryStatus(SELF, 0) @@ -1162,30 +1107,19 @@ } } -/* "Not Available" */ -#define CIM_TCPProtocolEndpoint_DetailedStatus_Not_Available 0 +typedef enum _CIM_TCPProtocolEndpoint_DetailedStatus_Enum +{ + CIM_TCPProtocolEndpoint_DetailedStatus_Not_Available = 0, + CIM_TCPProtocolEndpoint_DetailedStatus_No_Additional_Information = 1, + CIM_TCPProtocolEndpoint_DetailedStatus_Stressed = 2, + CIM_TCPProtocolEndpoint_DetailedStatus_Predictive_Failure = 3, + CIM_TCPProtocolEndpoint_DetailedStatus_Non_Recoverable_Error = 4, + CIM_TCPProtocolEndpoint_DetailedStatus_Supporting_Entity_in_Error = 5, + CIM_TCPProtocolEndpoint_DetailedStatus_DMTF_Reserved = 0, + CIM_TCPProtocolEndpoint_DetailedStatus_Vendor_Reserved = 0, +} +CIM_TCPProtocolEndpoint_DetailedStatus_Enum; -/* "No Additional Information" */ -#define CIM_TCPProtocolEndpoint_DetailedStatus_No_Additional_Information 1 - -/* "Stressed" */ -#define CIM_TCPProtocolEndpoint_DetailedStatus_Stressed 2 - -/* "Predictive Failure" */ -#define CIM_TCPProtocolEndpoint_DetailedStatus_Predictive_Failure 3 - -/* "Non-Recoverable Error" */ -#define CIM_TCPProtocolEndpoint_DetailedStatus_Non_Recoverable_Error 4 - -/* "Supporting Entity in Error" */ -#define CIM_TCPProtocolEndpoint_DetailedStatus_Supporting_Entity_in_Error 5 - -/* "DMTF Reserved" */ -#define CIM_TCPProtocolEndpoint_DetailedStatus_DMTF_Reserved 0 - -/* "Vendor Reserved" */ -#define CIM_TCPProtocolEndpoint_DetailedStatus_Vendor_Reserved 0 - /* "Not Available" */ #define CIM_TCPProtocolEndpoint_Set_DetailedStatus_Not_Avail... [truncated message content] |
From: <mik...@us...> - 2008-07-09 17:06:29
|
Revision: 734 http://omc.svn.sourceforge.net/omc/?rev=734&view=rev Author: mike-brasher Date: 2008-07-09 10:06:38 -0700 (Wed, 09 Jul 2008) Log Message: ----------- Fixed potential off-by-one strncat() error. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-08 23:39:36 UTC (rev 733) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-09 17:06:38 UTC (rev 734) @@ -72,7 +72,7 @@ Str256 s; s.str = s.buf; s.buf[0] = '\0'; - strncat(s.buf, cmpiutilGetComputerSystemClassName(), sizeof(s.buf)); + strncat(s.buf, cmpiutilGetComputerSystemClassName(), sizeof(s.buf)-1); return s; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-08 23:39:27
|
Revision: 733 http://omc.svn.sourceforge.net/omc/?rev=733&view=rev Author: mike-brasher Date: 2008-07-08 16:39:36 -0700 (Tue, 08 Jul 2008) Log Message: ----------- New file to cleanup autogen files. Added Paths: ----------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/cleanup.sh Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/cleanup.sh =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/cleanup.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/cleanup.sh 2008-07-08 23:39:36 UTC (rev 733) @@ -0,0 +1,19 @@ +#!/bin/sh + +# Clean up files created by autotools. + +rm -rf \ + configure \ + Makefile.in \ + depcomp \ + config.guess \ + config.sub \ + ltmain.sh \ + config.h.in \ + autom4te.cache \ + missing \ + aclocal.m4 \ + install-sh \ + mof/Makefile.in \ + src/Makefile.in \ + config.h.in~ Property changes on: cmpiprofiles/sblim-cmpi-fan_profile/trunk/cleanup.sh ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |