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: <mik...@us...> - 2008-07-08 23:37:46
|
Revision: 732 http://omc.svn.sourceforge.net/omc/?rev=732&view=rev Author: mike-brasher Date: 2008-07-08 16:37:55 -0700 (Tue, 08 Jul 2008) Log Message: ----------- Removed accidentally committed autogen files and added header dependencies so distcheck will pass. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am Removed Paths: ------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.h.in cmpiprofiles/sblim-cmpi-fan_profile/trunk/install-sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/ltmain.sh Deleted: cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.h.in =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.h.in 2008-07-08 23:33:40 UTC (rev 731) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.h.in 2008-07-08 23:37:55 UTC (rev 732) @@ -1,277 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to 1 if the `closedir' function returns void instead of `int'. */ -#undef CLOSEDIR_VOID - -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP - systems. This function is required for `alloca.c' support on those systems. - */ -#undef CRAY_STACKSEG_END - -/* Define to 1 if using `alloca.c'. */ -#undef C_ALLOCA - -/* Define to 1 if you have `alloca', as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). - */ -#undef HAVE_ALLOCA_H - -/* Define to 1 if you have the `btowc' function. */ -#undef HAVE_BTOWC - -/* Define to 1 if your system has a working `chown' function. */ -#undef HAVE_CHOWN - -/* Define to 1 if you have the declaration of `getenv', and to 0 if you don't. - */ -#undef HAVE_DECL_GETENV - -/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you - don't. */ -#undef HAVE_DECL_STRERROR_R - -/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. - */ -#undef HAVE_DIRENT_H - -/* Define to 1 if you have the <dlfcn.h> header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the <fcntl.h> header file. */ -#undef HAVE_FCNTL_H - -/* Define to 1 if you have the `fork' function. */ -#undef HAVE_FORK - -/* Define to 1 if you have the `gettimeofday' function. */ -#undef HAVE_GETTIMEOFDAY - -/* Define to 1 if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if `lstat' has the bug that it succeeds when given the - zero-length file name argument. */ -#undef HAVE_LSTAT_EMPTY_STRING_BUG - -/* Define to 1 if your system has a GNU libc compatible `malloc' function, and - to 0 otherwise. */ -#undef HAVE_MALLOC - -/* Define to 1 if you have the `mbsrtowcs' function. */ -#undef HAVE_MBSRTOWCS - -/* Define to 1 if <wchar.h> declares mbstate_t. */ -#undef HAVE_MBSTATE_T - -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the `mempcpy' function. */ -#undef HAVE_MEMPCPY - -/* Define to 1 if you have the `memset' function. */ -#undef HAVE_MEMSET - -/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ -#undef HAVE_NDIR_H - -/* Define to 1 if your system has a GNU libc compatible `realloc' function, - and to 0 otherwise. */ -#undef HAVE_REALLOC - -/* Define to 1 if you have the `regcomp' function. */ -#undef HAVE_REGCOMP - -/* Define to 1 if `stat' has the bug that it succeeds when given the - zero-length file name argument. */ -#undef HAVE_STAT_EMPTY_STRING_BUG - -/* Define to 1 if stdbool.h conforms to C99. */ -#undef HAVE_STDBOOL_H - -/* Define to 1 if you have the <stdint.h> header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the <stdlib.h> header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the `strchr' function. */ -#undef HAVE_STRCHR - -/* Define to 1 if you have the `strdup' function. */ -#undef HAVE_STRDUP - -/* Define to 1 if you have the `strerror' function. */ -#undef HAVE_STRERROR - -/* Define to 1 if you have the `strerror_r' function. */ -#undef HAVE_STRERROR_R - -/* Define to 1 if you have the <strings.h> header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the <string.h> header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the `strstr' function. */ -#undef HAVE_STRSTR - -/* Define to 1 if you have the `strtol' function. */ -#undef HAVE_STRTOL - -/* Define to 1 if you have the `strtoul' function. */ -#undef HAVE_STRTOUL - -/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. - */ -#undef HAVE_SYS_DIR_H - -/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. - */ -#undef HAVE_SYS_NDIR_H - -/* Define to 1 if you have the <sys/param.h> header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define to 1 if you have the <sys/stat.h> header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the <sys/time.h> header file. */ -#undef HAVE_SYS_TIME_H - -/* Define to 1 if you have the <sys/types.h> header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the <sys/vfs.h> header file. */ -#undef HAVE_SYS_VFS_H - -/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define to 1 if you have the `uname' function. */ -#undef HAVE_UNAME - -/* Define to 1 if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Define to 1 if you have the `vfork' function. */ -#undef HAVE_VFORK - -/* Define to 1 if you have the <vfork.h> header file. */ -#undef HAVE_VFORK_H - -/* Define to 1 if you have the <wchar.h> header file. */ -#undef HAVE_WCHAR_H - -/* Define to 1 if you have the <wctype.h> header file. */ -#undef HAVE_WCTYPE_H - -/* Define to 1 if you have the `wmempcpy' function. */ -#undef HAVE_WMEMPCPY - -/* Define to 1 if `fork' works. */ -#undef HAVE_WORKING_FORK - -/* Define to 1 if `vfork' works. */ -#undef HAVE_WORKING_VFORK - -/* Define to 1 if the system has the type `_Bool'. */ -#undef HAVE__BOOL - -/* Define to 1 if `lstat' dereferences a symlink specified with a trailing - slash. */ -#undef LSTAT_FOLLOWS_SLASHED_SYMLINK - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* Define to 1 if the C compiler supports function prototypes. */ -#undef PROTOTYPES - -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - -/* Define to 1 if the `setvbuf' function takes the buffering type as its - second argument and the buffer pointer as the third, as on System V before - release 3. */ -#undef SETVBUF_REVERSED - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at runtime. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown */ -#undef STACK_DIRECTION - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if strerror_r returns char *. */ -#undef STRERROR_R_CHAR_P - -/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ -#undef TIME_WITH_SYS_TIME - -/* Version number of package */ -#undef VERSION - -/* "Debugging Flag" */ -#undef XEN_VMBUILDER_DEBUG - -/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a - `char[]'. */ -#undef YYTEXT_POINTER - -/* Define like PROTOTYPES; this can be used by system headers. */ -#undef __PROTOTYPES - -/* Define to empty if `const' does not conform to ANSI C. */ -#undef const - -/* Define to rpl_fnmatch if the replacement function should be used. */ -#undef fnmatch - -/* Define to `int' if <sys/types.h> doesn't define. */ -#undef gid_t - -/* Define to rpl_malloc if the replacement function should be used. */ -#undef malloc - -/* Define to a type if <wchar.h> does not define. */ -#undef mbstate_t - -/* Define to `int' if <sys/types.h> does not define. */ -#undef mode_t - -/* Define to `int' if <sys/types.h> does not define. */ -#undef pid_t - -/* Define to rpl_realloc if the replacement function should be used. */ -#undef realloc - -/* Define to `unsigned int' if <sys/types.h> does not define. */ -#undef size_t - -/* Define to `int' if <sys/types.h> doesn't define. */ -#undef uid_t - -/* Define as `fork' if `vfork' does not work. */ -#undef vfork Deleted: cmpiprofiles/sblim-cmpi-fan_profile/trunk/install-sh =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/install-sh 2008-07-08 23:33:40 UTC (rev 731) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/install-sh 2008-07-08 23:37:55 UTC (rev 732) @@ -1,294 +0,0 @@ -#!/bin/sh -# -# install - install a program, script, or datafile -# -# This originates from X11R5 (mit/util/scripts/install.sh), which was -# later released in X11R6 (xc/config/util/install.sh) with the -# following copyright and license. -# -# Copyright (C) 1994 X Consortium -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to -# deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- -# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# -# Except as contained in this notice, the name of the X Consortium shall not -# be used in advertising or otherwise to promote the sale, use or other deal- -# ings in this Software without prior written authorization from the X Consor- -# tium. -# -# -# FSF changes to this file are in the public domain. -# -# Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it -# when there is no Makefile. -# -# This script is compatible with the BSD install script, but was written -# from scratch. It can only install one file at a time, a restriction -# shared with many OS's install programs. - - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" -mkdirprog="${MKDIRPROG-mkdir}" - -transformbasename="" -transform_arg="" -instcmd="$mvprog" -chmodcmd="$chmodprog 0755" -chowncmd="" -chgrpcmd="" -stripcmd="" -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src="" -dst="" -dir_arg="" - -while [ x"$1" != x ]; do - case $1 in - -c) instcmd=$cpprog - shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - -s) stripcmd=$stripprog - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - *) if [ x"$src" = x ] - then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; - esac -done - -if [ x"$src" = x ] -then - echo "$0: no input file specified" >&2 - exit 1 -else - : -fi - -if [ x"$dir_arg" != x ]; then - dst=$src - src="" - - if [ -d "$dst" ]; then - instcmd=: - chmodcmd="" - else - instcmd=$mkdirprog - fi -else - -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command -# might cause directories to be created, which would be especially bad -# if $src (and thus $dsttmp) contains '*'. - - if [ -f "$src" ] || [ -d "$src" ] - then - : - else - echo "$0: $src does not exist" >&2 - exit 1 - fi - - if [ x"$dst" = x ] - then - echo "$0: no destination specified" >&2 - exit 1 - else - : - fi - -# If destination is a directory, append the input filename; if your system -# does not like double slashes in filenames, you may need to add some logic - - if [ -d "$dst" ] - then - dst=$dst/`basename "$src"` - else - : - fi -fi - -## this sed command emulates the dirname command -dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` - -# Make sure that the destination directory exists. -# this part is taken from Noah Friedman's mkinstalldirs script - -# Skip lots of stat calls in the usual case. -if [ ! -d "$dstdir" ]; then -defaultIFS=' - ' -IFS="${IFS-$defaultIFS}" - -oIFS=$IFS -# Some sh's can't handle IFS=/ for some reason. -IFS='%' -set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` -IFS=$oIFS - -pathcomp='' - -while [ $# -ne 0 ] ; do - pathcomp=$pathcomp$1 - shift - - if [ ! -d "$pathcomp" ] ; - then - $mkdirprog "$pathcomp" - else - : - fi - - pathcomp=$pathcomp/ -done -fi - -if [ x"$dir_arg" != x ] -then - $doit $instcmd "$dst" && - - if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi -else - -# If we're going to rename the final executable, determine the name now. - - if [ x"$transformarg" = x ] - then - dstfile=`basename "$dst"` - else - dstfile=`basename "$dst" $transformbasename | - sed $transformarg`$transformbasename - fi - -# don't allow the sed command to completely eliminate the filename - - if [ x"$dstfile" = x ] - then - dstfile=`basename "$dst"` - else - : - fi - -# Make a couple of temp file names in the proper directory. - - dsttmp=$dstdir/_inst.$$_ - rmtmp=$dstdir/_rm.$$_ - -# Trap to clean up temp files at exit. - - trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 - trap '(exit $?); exit' 1 2 13 15 - -# Move or copy the file name to the temp name - - $doit $instcmd "$src" "$dsttmp" && - -# and set any options; do chmod last to preserve setuid bits - -# If any of these fail, we abort the whole thing. If we want to -# ignore errors from any of these, just make sure not to ignore -# errors from the above "$doit $instcmd $src $dsttmp" command. - - if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && - -# Now remove or move aside any old file at destination location. We try this -# two ways since rm can't unlink itself on some systems and the destination -# file might be busy for other reasons. In this case, the final cleanup -# might fail but the new file should still install successfully. - -{ - if [ -f "$dstdir/$dstfile" ] - then - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || - $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || - { - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 - (exit 1); exit - } - else - : - fi -} && - -# Now rename the file to the real destination. - - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" - -fi && - -# The final little trick to "correctly" pass the exit status to the exit trap. - -{ - (exit 0); exit -} Deleted: cmpiprofiles/sblim-cmpi-fan_profile/trunk/ltmain.sh =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/ltmain.sh 2008-07-08 23:33:40 UTC (rev 731) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/ltmain.sh 2008-07-08 23:37:55 UTC (rev 732) @@ -1,6930 +0,0 @@ -# ltmain.sh - Provide generalized library-building support services. -# NOTE: Changing this file will not affect anything until you rerun configure. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, -# 2007 Free Software Foundation, Inc. -# Originally by Gordon Matzigkeit <go...@gn...>, 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -basename="s,^.*/,,g" - -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh -# is ksh but when the shell is invoked as "sh" and the current value of -# the _XPG environment variable is not equal to 1 (one), the special -# positional parameter $0, within a function call, is the name of the -# function. -progpath="$0" - -# The name of this program: -progname=`echo "$progpath" | $SED $basename` -modename="$progname" - -# Global variables: -EXIT_SUCCESS=0 -EXIT_FAILURE=1 - -PROGRAM=ltmain.sh -PACKAGE=libtool -VERSION=1.5.24 -TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)" - -# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh - -# Check that we have a working $echo. -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then - # Yippee, $echo works! - : -else - # Restart under the correct shell, and then maybe $echo will work. - exec $SHELL "$progpath" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat <<EOF -$* -EOF - exit $EXIT_SUCCESS -fi - -default_mode= -help="Try \`$progname --help' for more information." -magic="%%%MAGIC variable%%%" -mkdir="mkdir" -mv="mv -f" -rm="rm -f" - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed="${SED}"' -e 1s/^X//' -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - SP2NL='tr \040 \012' - NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - SP2NL='tr \100 \n' - NL2SP='tr \r\n \100\100' - ;; -esac - -# NLS nuisances. -# Only set LANG and LC_ALL to C if already set. -# These must not be set unconditionally because not all systems understand -# e.g. LANG=C (notably SCO). -# We save the old values to restore during execute mode. -for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES -do - eval "if test \"\${$lt_var+set}\" = set; then - save_$lt_var=\$$lt_var - $lt_var=C - export $lt_var - fi" -done - -# Make sure IFS has a sensible default -lt_nl=' -' -IFS=" $lt_nl" - -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then - $echo "$modename: not configured to build any kind of library" 1>&2 - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit $EXIT_FAILURE -fi - -# Global variables. -mode=$default_mode -nonopt= -prev= -prevopt= -run= -show="$echo" -show_help= -execute_dlfiles= -duplicate_deps=no -preserve_args= -lo2o="s/\\.lo\$/.${objext}/" -o2lo="s/\\.${objext}\$/.lo/" -extracted_archives= -extracted_serial=0 - -##################################### -# Shell function definitions: -# This seems to be the best place for them - -# func_mktempdir [string] -# Make a temporary directory that won't clash with other running -# libtool processes, and avoids race conditions if possible. If -# given, STRING is the basename for that directory. -func_mktempdir () -{ - my_template="${TMPDIR-/tmp}/${1-$progname}" - - if test "$run" = ":"; then - # Return a directory name, but don't create it in dry-run mode - my_tmpdir="${my_template}-$$" - else - - # If mktemp works, use that first and foremost - my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` - - if test ! -d "$my_tmpdir"; then - # Failing that, at least try and use $RANDOM to avoid a race - my_tmpdir="${my_template}-${RANDOM-0}$$" - - save_mktempdir_umask=`umask` - umask 0077 - $mkdir "$my_tmpdir" - umask $save_mktempdir_umask - fi - - # If we're not in dry-run mode, bomb out on failure - test -d "$my_tmpdir" || { - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 - exit $EXIT_FAILURE - } - fi - - $echo "X$my_tmpdir" | $Xsed -} - - -# func_win32_libid arg -# return the library type of file 'arg' -# -# Need a lot of goo to handle *both* DLLs and import libs -# Has to be a shell function in order to 'eat' the argument -# that is supplied when $file_magic_command is called. -func_win32_libid () -{ - win32_libid_type="unknown" - win32_fileres=`file -L $1 2>/dev/null` - case $win32_fileres in - *ar\ archive\ import\ library*) # definitely import - win32_libid_type="x86 archive import" - ;; - *ar\ archive*) # could be an import, or static - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then - win32_nmres=`eval $NM -f posix -A $1 | \ - $SED -n -e '1,100{ - / I /{ - s,.*,import, - p - q - } - }'` - case $win32_nmres in - import*) win32_libid_type="x86 archive import";; - *) win32_libid_type="x86 archive static";; - esac - fi - ;; - *DLL*) - win32_libid_type="x86 DLL" - ;; - *executable*) # but shell scripts are "executable" too... - case $win32_fileres in - *MS\ Windows\ PE\ Intel*) - win32_libid_type="x86 DLL" - ;; - esac - ;; - esac - $echo $win32_libid_type -} - - -# func_infer_tag arg -# Infer tagged configuration to use if any are available and -# if one wasn't chosen via the "--tag" command line option. -# Only attempt this if the compiler in the base compile -# command doesn't match the default compiler. -# arg is usually of the form 'gcc ...' -func_infer_tag () -{ - if test -n "$available_tags" && test -z "$tagname"; then - CC_quoted= - for arg in $CC; do - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - CC_quoted="$CC_quoted $arg" - done - case $@ in - # Blanks in the command may have been stripped by the calling shell, - # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; - # Blanks at the start of $base_compile will cause this to fail - # if we don't check for them as well. - *) - for z in $available_tags; do - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" - CC_quoted= - for arg in $CC; do - # Double-quote args containing other shell metacharacters. - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - CC_quoted="$CC_quoted $arg" - done - case "$@ " in - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) - # The compiler in the base compile command matches - # the one in the tagged configuration. - # Assume this is the tagged configuration we want. - tagname=$z - break - ;; - esac - fi - done - # If $tagname still isn't set, then no tagged configuration - # was found and let the user know that the "--tag" command - # line option must be used. - if test -z "$tagname"; then - $echo "$modename: unable to infer tagged configuration" - $echo "$modename: specify a tag with \`--tag'" 1>&2 - exit $EXIT_FAILURE -# else -# $echo "$modename: using $tagname tagged configuration" - fi - ;; - esac - fi -} - - -# func_extract_an_archive dir oldlib -func_extract_an_archive () -{ - f_ex_an_ar_dir="$1"; shift - f_ex_an_ar_oldlib="$1" - - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then - : - else - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 - exit $EXIT_FAILURE - fi -} - -# func_extract_archives gentop oldlib ... -func_extract_archives () -{ - my_gentop="$1"; shift - my_oldlibs=${1+"$@"} - my_oldobjs="" - my_xlib="" - my_xabs="" - my_xdir="" - my_status="" - - $show "${rm}r $my_gentop" - $run ${rm}r "$my_gentop" - $show "$mkdir $my_gentop" - $run $mkdir "$my_gentop" - my_status=$? - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then - exit $my_status - fi - - for my_xlib in $my_oldlibs; do - # Extract the objects. - case $my_xlib in - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; - *) my_xabs=`pwd`"/$my_xlib" ;; - esac - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` - my_xlib_u=$my_xlib - while :; do - case " $extracted_archives " in - *" $my_xlib_u "*) - extracted_serial=`expr $extracted_serial + 1` - my_xlib_u=lt$extracted_serial-$my_xlib ;; - *) break ;; - esac - done - extracted_archives="$extracted_archives $my_xlib_u" - my_xdir="$my_gentop/$my_xlib_u" - - $show "${rm}r $my_xdir" - $run ${rm}r "$my_xdir" - $show "$mkdir $my_xdir" - $run $mkdir "$my_xdir" - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then - exit $exit_status - fi - case $host in - *-darwin*) - $show "Extracting $my_xabs" - # Do not bother doing anything if just a dry run - if test -z "$run"; then - darwin_orig_dir=`pwd` - cd $my_xdir || exit $? - darwin_archive=$my_xabs - darwin_curdir=`pwd` - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` - if test -n "$darwin_arches"; then - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` - darwin_arch= - $show "$darwin_base_archive has multiple architectures $darwin_arches" - for darwin_arch in $darwin_arches ; do - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" - func_extract_an_archive "`pwd`" "${darwin_base_archive}" - cd "$darwin_curdir" - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" - done # $darwin_arches - ## Okay now we have a bunch of thin objects, gotta fatten them up :) - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` - darwin_file= - darwin_files= - for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` - lipo -create -output "$darwin_file" $darwin_files - done # $darwin_filelist - ${rm}r unfat-$$ - cd "$darwin_orig_dir" - else - cd "$darwin_orig_dir" - func_extract_an_archive "$my_xdir" "$my_xabs" - fi # $darwin_arches - fi # $run - ;; - *) - func_extract_an_archive "$my_xdir" "$my_xabs" - ;; - esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` - done - func_extract_archives_result="$my_oldobjs" -} -# End of Shell function definitions -##################################### - -# Darwin sucks -eval std_shrext=\"$shrext_cmds\" - -disable_libs=no - -# Parse our command line options once, thoroughly. -while test "$#" -gt 0 -do - arg="$1" - shift - - case $arg in - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; - *) optarg= ;; - esac - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - execute_dlfiles) - execute_dlfiles="$execute_dlfiles $arg" - ;; - tag) - tagname="$arg" - preserve_args="${preserve_args}=$arg" - - # Check whether tagname contains only valid characters - case $tagname in - *[!-_A-Za-z0-9,/]*) - $echo "$progname: invalid tag name: $tagname" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - case $tagname in - CC) - # Don't test for the "default" C tag, as we know, it's there, but - # not specially marked. - ;; - *) - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then - taglist="$taglist $tagname" - # Evaluate the configuration. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" - else - $echo "$progname: ignoring unknown tag $tagname" 1>&2 - fi - ;; - esac - ;; - *) - eval "$prev=\$arg" - ;; - esac - - prev= - prevopt= - continue - fi - - # Have we seen a non-optional argument yet? - case $arg in - --help) - show_help=yes - ;; - - --version) - echo "\ -$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP - -Copyright (C) 2007 Free Software Foundation, Inc. -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - exit $? - ;; - - --config) - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath - # Now print the configurations for the tags. - for tagname in $taglist; do - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" - done - exit $? - ;; - - --debug) - $echo "$progname: enabling shell trace mode" - set -x - preserve_args="$preserve_args $arg" - ;; - - --dry-run | -n) - run=: - ;; - - --features) - $echo "host: $host" - if test "$build_libtool_libs" = yes; then - $echo "enable shared libraries" - else - $echo "disable shared libraries" - fi - if test "$build_old_libs" = yes; then - $echo "enable static libraries" - else - $echo "disable static libraries" - fi - exit $? - ;; - - --finish) mode="finish" ;; - - --mode) prevopt="--mode" prev=mode ;; - --mode=*) mode="$optarg" ;; - - --preserve-dup-deps) duplicate_deps="yes" ;; - - --quiet | --silent) - show=: - preserve_args="$preserve_args $arg" - ;; - - --tag) - prevopt="--tag" - prev=tag - preserve_args="$preserve_args --tag" - ;; - --tag=*) - set tag "$optarg" ${1+"$@"} - shift - prev=tag - preserve_args="$preserve_args --tag" - ;; - - -dlopen) - prevopt="-dlopen" - prev=execute_dlfiles - ;; - - -*) - $echo "$modename: unrecognized option \`$arg'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - ;; - - *) - nonopt="$arg" - break - ;; - esac -done - -if test -n "$prevopt"; then - $echo "$modename: option \`$prevopt' requires an argument" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE -fi - -case $disable_libs in -no) - ;; -shared) - build_libtool_libs=no - build_old_libs=yes - ;; -static) - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` - ;; -esac - -# If this variable is set in any of the actions, the command in it -# will be execed at the end. This prevents here-documents from being -# left over by shells. -exec_cmd= - -if test -z "$show_help"; then - - # Infer the operation mode. - if test -z "$mode"; then - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 - case $nonopt in - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) - mode=link - for arg - do - case $arg in - -c) - mode=compile - break - ;; - esac - done - ;; - *db | *dbx | *strace | *truss) - mode=execute - ;; - *install*|cp|mv) - mode=install - ;; - *rm) - mode=uninstall - ;; - *) - # If we have no mode, but dlfiles were specified, then do execute mode. - test -n "$execute_dlfiles" && mode=execute - - # Just use the default operation mode. - if test -z "$mode"; then - if test -n "$nonopt"; then - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 - else - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 - fi - fi - ;; - esac - fi - - # Only execute mode is allowed to have -dlopen flags. - if test -n "$execute_dlfiles" && test "$mode" != execute; then - $echo "$modename: unrecognized option \`-dlopen'" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Change the help message to a mode-specific one. - generic_help="$help" - help="Try \`$modename --help --mode=$mode' for more information." - - # These modes are in order of execution frequency so that they run quickly. - case $mode in - # libtool compile mode - compile) - modename="$modename: compile" - # Get the compilation command and the source file. - base_compile= - srcfile="$nonopt" # always keep a non-empty value in "srcfile" - suppress_opt=yes - suppress_output= - arg_mode=normal - libobj= - later= - - for arg - do - case $arg_mode in - arg ) - # do not "continue". Instead, add this to base_compile - lastarg="$arg" - arg_mode=normal - ;; - - target ) - libobj="$arg" - arg_mode=normal - continue - ;; - - normal ) - # Accept any command-line options. - case $arg in - -o) - if test -n "$libobj" ; then - $echo "$modename: you cannot specify \`-o' more than once" 1>&2 - exit $EXIT_FAILURE - fi - arg_mode=target - continue - ;; - - -static | -prefer-pic | -prefer-non-pic) - later="$later $arg" - continue - ;; - - -no-suppress) - suppress_opt=no - continue - ;; - - -Xcompiler) - arg_mode=arg # the next one goes into the "base_compile" arg list - continue # The current "srcfile" will either be retained or - ;; # replaced later. I would guess that would be a bug. - - -Wc,*) - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` - lastarg= - save_ifs="$IFS"; IFS=',' - for arg in $args; do - IFS="$save_ifs" - - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - lastarg="$lastarg $arg" - done - IFS="$save_ifs" - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` - - # Add the arguments to base_compile. - base_compile="$base_compile $lastarg" - continue - ;; - - * ) - # Accept the current argument as the source file. - # The previous "srcfile" becomes the current argument. - # - lastarg="$srcfile" - srcfile="$arg" - ;; - esac # case $arg - ;; - esac # case $arg_mode - - # Aesthetically quote the previous argument. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` - - case $lastarg in - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, and some SunOS ksh mistreat backslash-escaping - # in scan sets (worked around with variable expansion), - # and furthermore cannot handle '|' '&' '(' ')' in scan sets - # at all, so we specify them separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - lastarg="\"$lastarg\"" - ;; - esac - - base_compile="$base_compile $lastarg" - done # for arg - - case $arg_mode in - arg) - $echo "$modename: you must specify an argument for -Xcompile" - exit $EXIT_FAILURE - ;; - target) - $echo "$modename: you must specify a target with \`-o'" 1>&2 - exit $EXIT_FAILURE - ;; - *) - # Get the name of the library object. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` - ;; - esac - - # Recognize several different file suffixes. - # If the user specifies -o file.o, it is replaced with file.lo - xform='[cCFSifmso]' - case $libobj in - *.ada) xform=ada ;; - *.adb) xform=adb ;; - *.ads) xform=ads ;; - *.asm) xform=asm ;; - *.c++) xform=c++ ;; - *.cc) xform=cc ;; - *.ii) xform=ii ;; - *.class) xform=class ;; - *.cpp) xform=cpp ;; - *.cxx) xform=cxx ;; - *.[fF][09]?) xform=[fF][09]. ;; - *.for) xform=for ;; - *.java) xform=java ;; - *.obj) xform=obj ;; - esac - - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` - - case $libobj in - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; - *) - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 - exit $EXIT_FAILURE - ;; - esac - - func_infer_tag $base_compile - - for arg in $later; do - case $arg in - -static) - build_old_libs=yes - continue - ;; - - -prefer-pic) - pic_mode=yes - continue - ;; - - -prefer-non-pic) - pic_mode=no - continue - ;; - esac - done - - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` - case $qlibobj in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qlibobj="\"$qlibobj\"" ;; - esac - test "X$libobj" != "X$qlibobj" \ - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$obj"; then - xdir= - else - xdir=$xdir/ - fi - lobj=${xdir}$objdir/$objname - - if test -z "$base_compile"; then - $echo "$modename: you must specify a compilation command" 1>&2 - $echo "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Delete any leftover library objects. - if test "$build_old_libs" = yes; then - removelist="$obj $lobj $libobj ${libobj}T" - else - removelist="$lobj $libobj ${libobj}T" - fi - - $run $rm $removelist - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in - cygwin* | mingw* | pw32* | os2*) - pic_mode=default - ;; - esac - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then - # non-PIC code in shared libraries is not supported - pic_mode=default - fi - - # Calculate the filename of the output object if compiler does - # not support -o with -c - if test "$compiler_c_o" = no; then - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} - lockfile="$output_obj.lock" - removelist="$removelist $output_obj $lockfile" - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 - else - output_obj= - need_locks=no - lockfile= - fi - - # Lock this critical section if it is needed - # We use this script file to make the link, it avoids creating a new file - if test "$need_locks" = yes; then - until $run ln "$progpath" "$lockfile" 2>/dev/null; do - $show "Waiting for $lockfile to be removed" - sleep 2 - done - elif test "$need_locks" = warn; then - if test -f "$lockfile"; then - $echo "\ -*** ERROR, $lockfile exists and contains: -`cat $lockfile 2>/dev/null` - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $run $rm $removelist - exit $EXIT_FAILURE - fi - $echo "$srcfile" > "$lockfile" - fi - - if test -n "$fix_srcfile_path"; then - eval srcfile=\"$fix_srcfile_path\" - fi - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` - case $qsrcfile in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qsrcfile="\"$qsrcfile\"" ;; - esac - - $run $rm "$libobj" "${libobj}T" - - # Create a libtool object file (analogous to a ".la" file), - # but don't create it if we're doing a dry run. - test -z "$run" && cat > ${libobj}T <<EOF -# $libobj - a libtool object file -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# Name of the PIC object. -EOF - - # Only build a PIC object if we are building libtool libraries. - if test "$build_libtool_libs" = yes; then - # Without this assignment, base_compile gets emptied. - fbsd_hideous_sh_bug=$base_compile - - if test "$pic_mode" != no; then - command="$base_compile $qsrcfile $pic_flag" - else - # Don't build PIC code - command="$base_compile $qsrcfile" - fi - - if test ! -d "${xdir}$objdir"; then - $show "$mkdir ${xdir}$objdir" - $run $mkdir ${xdir}$objdir - exit_status=$? - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then - exit $exit_status - fi - fi - - if test -z "$output_obj"; then - # Place PIC objects in $objdir - command="$command -o $lobj" - fi - - $run $rm "$lobj" "$output_obj" - - $show "$command" - if $run eval "$command"; then : - else - test -n "$output_obj" && $run $rm $removelist - exit $EXIT_FAILURE - fi - - if test "$need_locks" = warn && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $echo "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $run $rm $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed, then go on to compile the next one - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then - $show "$mv $output_obj $lobj" - if $run $mv $output_obj $lobj; then : - else - error=$? - $run $rm $removelist - exit $error - fi - fi - - # Append the name of the PIC object to the libtool object file. - test -z "$run" && cat >> ${libobj}T <<EOF -pic_object='$objdir/$objname' - -EOF - - # Allow error messages only from the first compilation. - if test "$suppress_opt" = yes; then - suppress_output=' >/dev/null 2>&1' - fi - else - # No PIC object so indicate it doesn't exist in the libtool - # object file. - test -z "$run" && cat >> ${libobj}T <<EOF -pic_object=none - -EOF - fi - - # Only build a position-dependent object if we build old libraries. - if test "$build_old_libs" = yes; then - if test "$pic_mode" != yes; then - # Don't build PIC code - command="$base_compile $qsrcfile" - else - command="$base_compile $qsrcfile $pic_flag" - fi - if test "$compiler_c_o" = yes; then - command="$command -o $obj" - fi - - # Suppress compiler output if we already did a PIC compilation. - command="$command$suppress_output" - $run $rm "$obj" "$output_obj" - $show "$command" - if $run eval "$command"; then : - else - $run $rm $removelist - exit $EXIT_FAILURE - fi - - if test "$need_locks" = warn && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $echo "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support \`-c' and \`-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $run $rm $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then - $show "$mv $output_obj $obj" - if $run $mv $output_obj $obj; then : - else - error=$? - $run $rm $removelist - exit $error - fi - fi - - # Append the name of the non-PIC object the libtool object file. - # Only append if the libtool object file exists. - test -z "$run" && cat >> ${libobj}T <<EOF -# Name of the non-PIC object. -non_pic_object='$objname' - -EOF - else - # Append the name of the non-PIC object the libtool object file. - # Only append if the libtool object file exists. - test -z "$run" && cat >> ${libobj}T <<EOF -# Name of the non-PIC object. -non_pic_object=none - -EOF - fi - - $run $mv "${libobj}T" "${libobj}" - - # Unlock the critical section if it was locked - if test "$need_locks" != no; then - $run $rm "$lockfile" - fi - - exit $EXIT_SUCCESS - ;; - - # libtool link mode - link | relink) - modename="$modename: link" - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - # It is impossible to link a dll without this setting, and - # we shouldn't force the makefile maintainer to figure out - # which system we are compiling for in order to pass an extra - # flag for every libtool invocation. - # allow_undefined=no - - # FIXME: Unfortunately, there are problems with the above when trying - # to make a dll which has undefined symbols, in which case not - # even a static library is built. For now, we need to specify - # -no-undefined on the libtool link line when we can be certain - # that all symbols are satisfied, otherwise we get a static library. - allow_undefined=yes - ;; - *) - allow_undefined=yes - ;; - esac - libtool_args="$nonopt" - base_compile="$nonopt $@" - compile_command="$nonopt" - finalize_command="$nonopt" - - compile_rpath= - finalize_rpath= - compile_shlibpath= - finalize_shlibpath= - convenience= - old_convenience= - deplibs= - old_deplibs= - compiler_flags= - linker_flags= - dllsearchpath= - lib_search_path=`pwd` - inst_prefix_dir= - - avoid_version=no - dlfiles= - dlprefiles= - dlself=no - export_dynamic=no - export_symbols= - export_symbols_regex= - generated= - libobjs= - ltlibs= - module=no - no_install=no - objs= - non_pic_objects= - notinst_path= # paths that contain not-installed libtool libraries - precious_files_regex= - prefer_static_libs=no - preload=no - prev= - prevarg= - release= - rpath= - xrpath= - perm_rpath= - temp_rpath= - thread_safe=no - vinfo= - vinfo_number=no - - func_infer_tag $base_compile - - # We need to know -static, to get the right output filenames. - for arg - do - case $arg in - -all-static | -static | -static-libtool-libs) - case $arg in - -all-static) - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2 - fi - if test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - -static) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - ;; - -static-libtool-libs) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - esac - build_libtool_libs=no - build_old_libs=yes - break - ;; - esac - done - - # See if our shared archives depend on static archives. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes - - # Go through the arguments, transforming them on the way. - while test "$#" -gt 0; do - arg="$1" - shift - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test - ;; - *) qarg=$arg ;; - esac - libtool_args="$libtool_args $qarg" - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - output) - compile_command="$compile_command @OUTPUT@" - finalize_command="$finalize_command @OUTPUT@" - ;; - esac - - case $prev in - dlfiles|dlprefiles) - if test "$preload" = no; then - # Add the symbol object into the linking commands. - compile_command="$compile_command @SYMFILE@" - finalize_command="$finalize_command @SYMFILE@" - preload=yes - fi - case $arg in - *.la | *.lo) ;; # We handle these cases below. - force) - if test "$dlself" = no; then - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - self) - if test "$prev" = dlprefiles; then - dlself=yes - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then - dlself=yes - else - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - *) - if test "$prev" = dlfiles; then - dlfiles="$dlfiles $arg" - else - dlprefiles="$dlprefiles $arg" - fi - prev= - continue - ;; - esac - ;; - expsyms) - export_symbols="$arg" - if test ! -f "$arg"; then - $echo "$modename: symbol file \`$arg' does not exist" - exit $EXIT_FAILURE - fi - prev= - continue - ;; - expsyms_regex) - export_symbols_regex="$arg" - prev= - continue - ;; - inst_prefix) - inst_prefix_dir="$arg" - prev= - continue - ;; - precious_regex) - precious_files_regex="$arg" - prev= - continue - ;; - release) - release="-$arg" - prev= - continue - ;; - objectlist) - if test -f "$arg"; then - save_arg=$arg - moreargs= - for fil in `cat $save_arg` - do -# moreargs="$moreargs $fil" - arg=$fil - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - pic_object= - non_pic_object= - - # Read the .lo file - # If there is no directory component, then add one. - case $arg in - */* | *\\*) . $arg ;; - *) . ./$arg ;; - esac - - if test -z "$pic_object" || \ - test -z "$non_pic_object" || - test "$pic_object" = none && \ - test "$non_pic_object" = none; then - $echo "$modename: cannot find name of object for \`$arg'" 1>&2 - exit $EXIT_FAILURE - fi - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - if test "$pic_object" != none; then - # Prepend the subdirectory the object is found in. - pic_object="$xdir$pic_object" - - if test "$prev" = dlfiles; then - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles $pic_object" - prev= - fi - - # A PIC object. - libobjs="$libobjs $pic_object" - arg="$pic_object" - fi - - # Non-PIC object. - if test "$non_pic_object" != none; then - # Prepend the subdirectory the object is found in. - non_pic_object="$xdir$non_pic_object" - - # A standard non-PIC object - non_pic_objects="$non_pic_objects $non_pic_object" - if test -z "$pic_object" || test "$pic_object" = none ; then - arg="$non_pic_object" - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object="$pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if test -z "$run"; then - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 - exit $EXIT_FAILURE - else - # Dry-run case. - - # Extract subdirectory from the argument. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$arg"; then - xdir= - else - xdir="$xdir/" - fi - - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` - libobjs="$libobjs $pic_object" - non_pic_objects="$non_pic_objects $non_pic_object" - fi - fi - done - else - $echo "$modename: link input file \`$save_arg' does not exist" - exit $EXIT_FAILURE - fi - arg=$save_arg - prev= - continue - ;; - rpath | xrpath) - # We need an absolute path. - case $arg in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - $echo "$modename: only absolute run-paths are allowed" 1>&2 - exit $EXIT_FAILURE - ;; - esac - if test "$prev" = rpath; then - case "$rpath " in - *" $arg "*) ;; - *) rpath="$rpath $arg" ;; - esac - else - case "$xrpath " in - *" $arg "*) ;; - *) xrpath="$xrpath $arg" ;; - esac - fi - prev= - continue - ;; - xcompiler) - compiler_flags="$compiler_flags $qarg" - prev= - compile_command="$compile_command $qarg" - finalize_command="$finalize_command $qarg" - continue - ;; - xlinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $wl$qarg" - prev= - compile_command="$compile_command $wl$qarg" - finalize_command="$finalize_command $wl$qarg" - continue - ;; - xcclinker) - linker_flags="$linker_flags $qarg" - compiler_flags="$compiler_flags $qarg" - prev= - compile_command="$compile_command $qarg" - finalize_command="$finalize_command $qarg" - continue - ;; - shrext) - shrext_cmds="$arg" - prev= - continue - ;; - darwin_framework|darwin_framework_skip) - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - prev= - continue - ;; - *) - eval "$prev=\"\$arg\"" - prev= - continue - ;; - esac - fi # test -n "$prev" - - prevarg="$arg" - - case $arg in - -all-static) - if test -n "$link_static_flag"; then - compile_command="$compile_command $link_static_flag" - finalize_command="$finalize_command $link_static_flag" - fi - continue - ;; - - -allow-undefined) - # FIXME: remove this flag sometime in the future. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 - continue - ;; - - -avoid-version) - avoid_version=yes - continue - ;; - - -dlopen) - prev=dlfiles - continue - ;; - - -dlpreopen) - prev=dlprefiles - continue - ;; - - -export-dynamic) - export_dynamic=yes - continue - ;; - - -export-symbols | -export-symbols-regex) - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - $echo "$modename: more than one -exported-symbols argument is not allowed" - exit $EXIT_FAILURE - fi - if test "X$arg" = "X-export-symbols"; then - prev=expsyms - else - prev=expsyms_regex - fi - continue - ;; - - -framework|-arch|-isysroot) - case " $CC " in - *" ${arg} ${1} "* | *" ${arg} ${1} "*) - prev=darwin_framework_skip ;; - *) compiler_flags="$compiler_flags $arg" - prev=darwin_framework ;; - esac - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - continue - ;; - - -inst-prefix-dir) - prev=inst_prefix - continue - ;; - - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* - # so, if we see these flags be careful not to treat them like -L - -L[A-Z][A-Z]*:*) - case $with_gcc/$host in - no/*-*-irix* | /*-*-irix*) - compile_command="$compile_command $arg" - finalize_command="$finalize_command $arg" - ;; - esac - continue - ;; - - -L*) - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 - absdir="$dir" - notinst_path="$notinst_path $dir" - fi - dir="$absdir" - ;; - esac - case "$deplibs " in - *" -L$dir "*) ;; - *) - deplibs="$deplibs -L$dir" - lib_search_path="$lib_search_path $dir" - ;; - esac - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; - *) dllsearchpath="$dllsearchpath:$dir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - *) dllsearchpath="$dllsearchpath:$testbindir";; - esac - ;; - esac - continue - ;; - - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) - # These systems don't actually have a C or math library (as such) - continue - ;; - *-*-os2*) - # These systems don't actually have a C library (as such) - test "X$arg" = "X-lc" && continue - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) - # Do not include libc due to us having libc/libc_r. - test "X$arg" = "X-lc" && continue - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C and math libraries are in the System framework - deplibs="$deplibs -framework System" - continue - ;... [truncated message content] |
From: <mik...@us...> - 2008-07-08 23:33:31
|
Revision: 731 http://omc.svn.sourceforge.net/omc/?rev=731&view=rev Author: mike-brasher Date: 2008-07-08 16:33:40 -0700 (Tue, 08 Jul 2008) Log Message: ----------- New resource interface. Added Paths: ----------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.h Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.h (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.h 2008-07-08 23:33:40 UTC (rev 731) @@ -0,0 +1,52 @@ +#ifndef _Resource_h +#define _Resource_h + +#include <konkret/konkret.h> +#include <cmpiutil/base.h> +#include <cmpiutil/exec.h> +#include "Fan.h" + +#ifndef KONKRET_REGISTRATION +# define KONKRET_REGISTRATION(W,X,Y,Z) /* empty */ +#endif + +#define HIDDEN __attribute__((visibility("hidden"))) + +typedef struct _Str256 +{ + char buf[256]; + const char* str; +} +Str256; + +static __inline__ Str256 SysName() +{ + Str256 s; + s.str = s.buf; + s.buf[0] = '\0'; + cmpiutilGetComputerSystemName(s.buf, 256); + return s; +} + +static __inline__ Str256 SysClassName() +{ + Str256 s; + s.str = s.buf; + s.buf[0] = '\0'; + strncat(s.buf, cmpiutilGetComputerSystemClassName(), sizeof(s.buf)); + return s; +} + +struct FanInfo +{ + char deviceID[64]; + Fan_OperationalStatus_Enum operationalStatus; + Fan_HealthState_Enum healthState; + CMPIBoolean variableSpeed; + CMPIBoolean activeCooling; + Fan_EnabledState_Enum enabledState; +}; + +HIDDEN int GetFanInfo(struct FanInfo** data, size_t* size); + +#endif /* _Resource_h */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-08 23:32:49
|
Revision: 730 http://omc.svn.sourceforge.net/omc/?rev=730&view=rev Author: mike-brasher Date: 2008-07-08 16:32:58 -0700 (Tue, 08 Jul 2008) Log Message: ----------- Ongoing aspirations of a fan profile. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.h.in cmpiprofiles/sblim-cmpi-fan_profile/trunk/ltmain.sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ConcreteJob.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Makefile.am Added Paths: ----------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Fan.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/FanProvider.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Resource.c cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/install.sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/konkret.sh cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/linux-fan-profile.kon Removed Paths: ------------- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Linux_Fan.h cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Linux_FanProvider.c Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.h.in =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.h.in 2008-07-08 22:00:25 UTC (rev 729) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/config.h.in 2008-07-08 23:32:58 UTC (rev 730) @@ -215,7 +215,7 @@ /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. + automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ @@ -267,7 +267,7 @@ /* Define to rpl_realloc if the replacement function should be used. */ #undef realloc -/* Define to `unsigned' if <sys/types.h> does not define. */ +/* Define to `unsigned int' if <sys/types.h> does not define. */ #undef size_t /* Define to `int' if <sys/types.h> doesn't define. */ Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/ltmain.sh =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/ltmain.sh 2008-07-08 22:00:25 UTC (rev 729) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/ltmain.sh 2008-07-08 23:32:58 UTC (rev 730) @@ -1,8 +1,8 @@ # ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, +# 2007 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit <go...@gn...>, 1996 # # This program is free software; you can redistribute it and/or modify @@ -43,14 +43,22 @@ PROGRAM=ltmain.sh PACKAGE=libtool -VERSION=1.5.22 -TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)" +VERSION=1.5.24 +TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)" -# See if we are running on zsh, and set the options which allow our -# commands through without removal of \ escapes. -if test -n "${ZSH_VERSION+set}" ; then +# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh # Check that we have a working $echo. if test "X$1" = X--no-reexec; then @@ -105,12 +113,14 @@ # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). # We save the old values to restore during execute mode. -if test "${LC_ALL+set}" = set; then - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL -fi -if test "${LANG+set}" = set; then - save_LANG="$LANG"; LANG=C; export LANG -fi +for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test \"\${$lt_var+set}\" = set; then + save_$lt_var=\$$lt_var + $lt_var=C + export $lt_var + fi" +done # Make sure IFS has a sensible default lt_nl=' @@ -136,6 +146,8 @@ preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" +extracted_archives= +extracted_serial=0 ##################################### # Shell function definitions: @@ -196,7 +208,13 @@ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` + $SED -n -e '1,100{ + / I /{ + s,.*,import, + p + q + } + }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; @@ -327,7 +345,17 @@ *) my_xabs=`pwd`"/$my_xlib" ;; esac my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` - my_xdir="$my_gentop/$my_xlib" + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + extracted_serial=`expr $extracted_serial + 1` + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir="$my_gentop/$my_xlib_u" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" @@ -454,11 +482,12 @@ ;; --version) - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" - $echo - $echo "Copyright (C) 2005 Free Software Foundation, Inc." - $echo "This is free software; see the source for copying conditions. There is NO" - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + echo "\ +$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP + +Copyright (C) 2007 Free Software Foundation, Inc. +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." exit $? ;; @@ -755,9 +784,10 @@ *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; - *.f90) xform=f90 ;; + *.[fF][09]?) xform=[fF][09]. ;; *.for) xform=for ;; *.java) xform=java ;; + *.obj) xform=obj ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` @@ -1138,8 +1168,9 @@ for arg do case $arg in - -all-static | -static) - if test "X$arg" = "X-all-static"; then + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2 fi @@ -1147,12 +1178,20 @@ dlopen_self=$dlopen_self_static fi prefer_static_libs=yes - else + ;; + -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built - fi + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + esac build_libtool_libs=no build_old_libs=yes break @@ -1600,7 +1639,7 @@ continue ;; - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" @@ -1620,10 +1659,11 @@ # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC - # -pg pass through profiling flag for GCC + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC + # -F/path gives path to uninstalled frameworks, gcc on darwin # @file GCC response files - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ - -t[45]*|-txscale*|@*) + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. @@ -1651,9 +1691,9 @@ -no-install) case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) # The PATH hackery in wrapper scripts is required on Windows - # in order for the loader to find any dlls it needs. + # and Darwin in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 fast_install=no @@ -1712,7 +1752,7 @@ continue ;; - -static) + -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects @@ -2094,7 +2134,7 @@ lib= found=no case $deplib in - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" @@ -2490,7 +2530,9 @@ if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then + { { test "$prefer_static_libs" = no || + test "$prefer_static_libs,$installed" = "built,yes"; } || + test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. @@ -3186,7 +3228,7 @@ # which has an extra 1 added just for fun # case $version_type in - darwin|linux|osf|windows) + darwin|linux|osf|windows|none) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" @@ -3197,9 +3239,10 @@ age="0" ;; irix|nonstopux) - current=`expr $number_major + $number_minor - 1` + current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_minor" + lt_irix_increment=no ;; esac ;; @@ -3258,7 +3301,8 @@ versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) @@ -3272,8 +3316,11 @@ ;; irix | nonstopux) - major=`expr $current - $age + 1` - + if test "X$lt_irix_increment" = "Xno"; then + major=`expr $current - $age` + else + major=`expr $current - $age + 1` + fi case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; @@ -3410,11 +3457,11 @@ fi # Eliminate all temporary directories. - for path in $notinst_path; do - lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` - deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` - dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` - done + #for path in $notinst_path; do + # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` + # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` + # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"` + #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. @@ -3515,13 +3562,12 @@ int main() { return 0; } EOF $rm conftest - $LTCC $LTCFLAGS -o conftest conftest.c $deplibs - if test "$?" -eq 0 ; then + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then ldd_output=`ldd conftest` for i in $deplibs; do name=`expr $i : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. - if test "$name" != "" && test "$name" -ne "0"; then + if test "$name" != "" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) @@ -3560,9 +3606,7 @@ # If $name is empty we are operating on a -L argument. if test "$name" != "" && test "$name" != "0"; then $rm conftest - $LTCC $LTCFLAGS -o conftest conftest.c $i - # Did it work? - if test "$?" -eq 0 ; then + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then ldd_output=`ldd conftest` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in @@ -3594,7 +3638,7 @@ droppeddeps=yes $echo $echo "*** Warning! Library $i is needed by this library but I was not able to" - $echo "*** make it link in! You will probably need to install it or some" + $echo "*** make it link in! You will probably need to install it or some" $echo "*** library that it depends on before this library will be fully" $echo "*** functional. Installing it before continuing would be even better." fi @@ -3880,7 +3924,10 @@ test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" + case $archive_cmds in + *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; + *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; + esac else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi @@ -4239,12 +4286,14 @@ reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of - # -Wl from whole_archive_flag_spec + # -Wl from whole_archive_flag_spec and hope we can get by with + # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" + reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" @@ -4692,16 +4741,16 @@ case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"` + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` else - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` fi ;; * ) - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` ;; esac ;; @@ -4716,13 +4765,13 @@ # really was required. # Nullify the symbol file. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. @@ -4809,7 +4858,7 @@ if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` else # fast_install is set to needless relink_command= @@ -4846,7 +4895,7 @@ fi done relink_command="(cd `pwd`; $relink_command)" - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` fi # Quote $echo for shipping. @@ -5253,6 +5302,20 @@ Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' +# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH @@ -5395,7 +5458,7 @@ ;; esac $echo >> $output "\ - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" + \$echo \"\$0: cannot exec \$program \$*\" exit $EXIT_FAILURE fi else @@ -5581,7 +5644,7 @@ done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` if test "$hardcode_automatic" = yes ; then relink_command= fi @@ -5926,9 +5989,9 @@ if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` else - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` + relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` fi $echo "$modename: warning: relinking \`$file'" 1>&2 @@ -6137,7 +6200,7 @@ file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` + relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` $show "$relink_command" if $run eval "$relink_command"; then : @@ -6348,8 +6411,10 @@ if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 - exit $EXIT_FAILURE + if test ! -f "$dir/$dlname"; then + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 + exit $EXIT_FAILURE + fi fi ;; @@ -6413,12 +6478,12 @@ fi # Restore saved environment variables - if test "${save_LC_ALL+set}" = set; then - LC_ALL="$save_LC_ALL"; export LC_ALL - fi - if test "${save_LANG+set}" = set; then - LANG="$save_LANG"; export LANG - fi + for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var + fi" + done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" @@ -6775,9 +6840,9 @@ -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE - try to export only the symbols listed in SYMFILE + try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX - try to export only the symbols matching REGEX + try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened @@ -6791,9 +6856,11 @@ -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries - -static do not do any dynamic linking of libtool libraries + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] - specify library version info [each variable defaults to 0] + specify library version info [each variable defaults to 0] All other options (arguments beginning with \`-') are ignored. 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-08 22:00:25 UTC (rev 729) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/linux-fan-profile.registration 2008-07-08 23:32:58 UTC (rev 730) @@ -1,8 +1 @@ -# Classname Namespace ProviderName ProviderModule ProviderTypes ... -Linux_Fan root/cimv2 Linux_Fan linux_fanprovider instance method -#Linux_CPUFan root/cimv2 Linux_CPUFan linux_fanprovider instance -#Linux_FanCapabilities root/cimv2 Linux_FanCapabilities linux_fanprovider instance association -#Linux_FanRedundancySet root/cimv2 Linux_FanRedundancySet linux_fanprovider instance -#Linux_MemberOfFanRedundancySet root/cimv2 Linux_MemberOfFanRedundancySet linux_fanprovider instance association -#Linux_IsSpareFan root/cimv2 Linux_IsSpareFan linux_fanprovider instance association -#Linux_AssociatedCooling root/cimv2 Linux_AssociatedCooling linux_fanprovider instance association +Linux_Fan root/cimv2 Fan linux_fanprovider instance method Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh 2008-07-08 23:32:58 UTC (rev 730) @@ -0,0 +1,2 @@ +#!/bin/sh +provider-register.sh -r linux-fan-profile.registration -m linux-fan-profile.mof Property changes on: cmpiprofiles/sblim-cmpi-fan_profile/trunk/mof/register.sh ___________________________________________________________________ Name: svn:executable + * Modified: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ConcreteJob.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ConcreteJob.h 2008-07-08 22:00:25 UTC (rev 729) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/CIM_ConcreteJob.h 2008-07-08 23:32:58 UTC (rev 730) @@ -563,6 +563,116 @@ } } +typedef enum _CIM_ConcreteJob_OperationalStatus_Enum +{ + CIM_ConcreteJob_OperationalStatus_Unknown = 0, + CIM_ConcreteJob_OperationalStatus_Other = 1, + CIM_ConcreteJob_OperationalStatus_OK = 2, + CIM_ConcreteJob_OperationalStatus_Degraded = 3, + CIM_ConcreteJob_OperationalStatus_Stressed = 4, + CIM_ConcreteJob_OperationalStatus_Predictive_Failure = 5, + CIM_ConcreteJob_OperationalStatus_Error = 6, + CIM_ConcreteJob_OperationalStatus_Non_Recoverable_Error = 7, + CIM_ConcreteJob_OperationalStatus_Starting = 8, + CIM_ConcreteJob_OperationalStatus_Stopping = 9, + CIM_ConcreteJob_OperationalStatus_Stopped = 10, + CIM_ConcreteJob_OperationalStatus_In_Service = 11, + CIM_ConcreteJob_OperationalStatus_No_Contact = 12, + CIM_ConcreteJob_OperationalStatus_Lost_Communication = 13, + CIM_ConcreteJob_OperationalStatus_Aborted = 14, + CIM_ConcreteJob_OperationalStatus_Dormant = 15, + CIM_ConcreteJob_OperationalStatus_Supporting_Entity_in_Error = 16, + CIM_ConcreteJob_OperationalStatus_Completed = 17, + CIM_ConcreteJob_OperationalStatus_Power_Mode = 18, + CIM_ConcreteJob_OperationalStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_OperationalStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_OperationalStatus_Enum; + +/* "Unknown" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Unknown(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Other" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Other(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 1) + +/* "OK" */ +#define CIM_ConcreteJob_Set_OperationalStatus_OK(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 2) + +/* "Degraded" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Degraded(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 3) + +/* "Stressed" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Stressed(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 4) + +/* "Predictive Failure" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 5) + +/* "Error" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Error(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 6) + +/* "Non-Recoverable Error" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 7) + +/* "Starting" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Starting(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 8) + +/* "Stopping" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Stopping(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 9) + +/* "Stopped" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Stopped(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 10) + +/* "In Service" */ +#define CIM_ConcreteJob_Set_OperationalStatus_In_Service(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 11) + +/* "No Contact" */ +#define CIM_ConcreteJob_Set_OperationalStatus_No_Contact(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 12) + +/* "Lost Communication" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 13) + +/* "Aborted" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Aborted(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 14) + +/* "Dormant" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Dormant(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 15) + +/* "Supporting Entity in Error" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 16) + +/* "Completed" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Completed(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 17) + +/* "Power Mode" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Power_Mode(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 18) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\ + CIM_ConcreteJob_Set_OperationalStatus(SELF, INDEX, 0) + KINLINE CMPIBoolean CIM_ConcreteJob_Init_StatusDescriptions( CIM_ConcreteJob* self, CMPICount count) @@ -730,6 +840,51 @@ } } +typedef enum _CIM_ConcreteJob_HealthState_Enum +{ + CIM_ConcreteJob_HealthState_Unknown = 0, + CIM_ConcreteJob_HealthState_OK = 5, + CIM_ConcreteJob_HealthState_Degraded_Warning = 10, + CIM_ConcreteJob_HealthState_Minor_failure = 15, + CIM_ConcreteJob_HealthState_Major_failure = 20, + CIM_ConcreteJob_HealthState_Critical_failure = 25, + CIM_ConcreteJob_HealthState_Non_recoverable_error = 30, + CIM_ConcreteJob_HealthState_DMTF_Reserved = 0, +} +CIM_ConcreteJob_HealthState_Enum; + +/* "Unknown" */ +#define CIM_ConcreteJob_Set_HealthState_Unknown(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 0) + +/* "OK" */ +#define CIM_ConcreteJob_Set_HealthState_OK(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 5) + +/* "Degraded/Warning" */ +#define CIM_ConcreteJob_Set_HealthState_Degraded_Warning(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 10) + +/* "Minor failure" */ +#define CIM_ConcreteJob_Set_HealthState_Minor_failure(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 15) + +/* "Major failure" */ +#define CIM_ConcreteJob_Set_HealthState_Major_failure(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 20) + +/* "Critical failure" */ +#define CIM_ConcreteJob_Set_HealthState_Critical_failure(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 25) + +/* "Non-recoverable error" */ +#define CIM_ConcreteJob_Set_HealthState_Non_recoverable_error(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 30) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_HealthState_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_HealthState(SELF, 0) + KINLINE void CIM_ConcreteJob_Set_PrimaryStatus( CIM_ConcreteJob* self, CMPIUint16 x) @@ -761,6 +916,41 @@ } } +typedef enum _CIM_ConcreteJob_PrimaryStatus_Enum +{ + CIM_ConcreteJob_PrimaryStatus_Unknown = 0, + CIM_ConcreteJob_PrimaryStatus_OK = 1, + CIM_ConcreteJob_PrimaryStatus_Degraded = 2, + CIM_ConcreteJob_PrimaryStatus_Error = 3, + CIM_ConcreteJob_PrimaryStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_PrimaryStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_PrimaryStatus_Enum; + +/* "Unknown" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_Unknown(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0) + +/* "OK" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_OK(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 1) + +/* "Degraded" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_Degraded(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 2) + +/* "Error" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_Error(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 3) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_Vendor_Reserved(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0) + KINLINE void CIM_ConcreteJob_Set_DetailedStatus( CIM_ConcreteJob* self, CMPIUint16 x) @@ -792,6 +982,51 @@ } } +typedef enum _CIM_ConcreteJob_DetailedStatus_Enum +{ + CIM_ConcreteJob_DetailedStatus_Not_Available = 0, + CIM_ConcreteJob_DetailedStatus_No_Additional_Information = 1, + CIM_ConcreteJob_DetailedStatus_Stressed = 2, + CIM_ConcreteJob_DetailedStatus_Predictive_Failure = 3, + CIM_ConcreteJob_DetailedStatus_Non_Recoverable_Error = 4, + CIM_ConcreteJob_DetailedStatus_Supporting_Entity_in_Error = 5, + CIM_ConcreteJob_DetailedStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_DetailedStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_DetailedStatus_Enum; + +/* "Not Available" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Not_Available(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 0) + +/* "No Additional Information" */ +#define CIM_ConcreteJob_Set_DetailedStatus_No_Additional_Information(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 1) + +/* "Stressed" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Stressed(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 2) + +/* "Predictive Failure" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Predictive_Failure(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 3) + +/* "Non-Recoverable Error" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Non_Recoverable_Error(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 4) + +/* "Supporting Entity in Error" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 5) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_DetailedStatus_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Vendor_Reserved(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 0) + KINLINE void CIM_ConcreteJob_Set_OperatingStatus( CIM_ConcreteJob* self, CMPIUint16 x) @@ -823,6 +1058,106 @@ } } +typedef enum _CIM_ConcreteJob_OperatingStatus_Enum +{ + CIM_ConcreteJob_OperatingStatus_Unknown = 0, + CIM_ConcreteJob_OperatingStatus_Not_Available = 1, + CIM_ConcreteJob_OperatingStatus_Servicing = 2, + CIM_ConcreteJob_OperatingStatus_Starting = 3, + CIM_ConcreteJob_OperatingStatus_Stopping = 4, + CIM_ConcreteJob_OperatingStatus_Stopped = 5, + CIM_ConcreteJob_OperatingStatus_Aborted = 6, + CIM_ConcreteJob_OperatingStatus_Dormant = 7, + CIM_ConcreteJob_OperatingStatus_Completed = 8, + CIM_ConcreteJob_OperatingStatus_Migrating = 9, + CIM_ConcreteJob_OperatingStatus_Emigrating = 10, + CIM_ConcreteJob_OperatingStatus_Immigrating = 11, + CIM_ConcreteJob_OperatingStatus_Snapshotting = 12, + CIM_ConcreteJob_OperatingStatus_Shutting_Down = 13, + CIM_ConcreteJob_OperatingStatus_In_Test = 14, + CIM_ConcreteJob_OperatingStatus_Transitioning = 15, + CIM_ConcreteJob_OperatingStatus_In_Service = 16, + CIM_ConcreteJob_OperatingStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_OperatingStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_OperatingStatus_Enum; + +/* "Unknown" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Unknown(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 0) + +/* "Not Available" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Not_Available(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 1) + +/* "Servicing" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Servicing(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 2) + +/* "Starting" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Starting(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 3) + +/* "Stopping" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Stopping(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 4) + +/* "Stopped" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Stopped(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 5) + +/* "Aborted" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Aborted(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 6) + +/* "Dormant" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Dormant(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 7) + +/* "Completed" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Completed(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 8) + +/* "Migrating" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Migrating(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 9) + +/* "Emigrating" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Emigrating(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 10) + +/* "Immigrating" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Immigrating(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 11) + +/* "Snapshotting" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Snapshotting(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 12) + +/* "Shutting Down" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Shutting_Down(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 13) + +/* "In Test" */ +#define CIM_ConcreteJob_Set_OperatingStatus_In_Test(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 14) + +/* "Transitioning" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Transitioning(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 15) + +/* "In Service" */ +#define CIM_ConcreteJob_Set_OperatingStatus_In_Service(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 16) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_OperatingStatus_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Vendor_Reserved(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 0) + KINLINE void CIM_ConcreteJob_Set_CommunicationStatus( CIM_ConcreteJob* self, CMPIUint16 x) @@ -854,6 +1189,46 @@ } } +typedef enum _CIM_ConcreteJob_CommunicationStatus_Enum +{ + CIM_ConcreteJob_CommunicationStatus_Unknown = 0, + CIM_ConcreteJob_CommunicationStatus_Not_Available = 1, + CIM_ConcreteJob_CommunicationStatus_Communication_OK = 2, + CIM_ConcreteJob_CommunicationStatus_Lost_Communication = 3, + CIM_ConcreteJob_CommunicationStatus_No_Contact = 4, + CIM_ConcreteJob_CommunicationStatus_DMTF_Reserved = 0, + CIM_ConcreteJob_CommunicationStatus_Vendor_Reserved = 0, +} +CIM_ConcreteJob_CommunicationStatus_Enum; + +/* "Unknown" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_Unknown(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0) + +/* "Not Available" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_Not_Available(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 1) + +/* "Communication OK" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_Communication_OK(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 2) + +/* "Lost Communication" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_Lost_Communication(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 3) + +/* "No Contact" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_No_Contact(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 4) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_Vendor_Reserved(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0) + KINLINE void CIM_ConcreteJob_SetString_JobStatus( CIM_ConcreteJob* self, CMPIString* x) @@ -1082,6 +1457,71 @@ } } +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; + +/* "January" */ +#define CIM_ConcreteJob_Set_RunMonth_January(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 0) + +/* "February" */ +#define CIM_ConcreteJob_Set_RunMonth_February(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 1) + +/* "March" */ +#define CIM_ConcreteJob_Set_RunMonth_March(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 2) + +/* "April" */ +#define CIM_ConcreteJob_Set_RunMonth_April(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 3) + +/* "May" */ +#define CIM_ConcreteJob_Set_RunMonth_May(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 4) + +/* "June" */ +#define CIM_ConcreteJob_Set_RunMonth_June(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 5) + +/* "July" */ +#define CIM_ConcreteJob_Set_RunMonth_July(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 6) + +/* "August" */ +#define CIM_ConcreteJob_Set_RunMonth_August(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 7) + +/* "September" */ +#define CIM_ConcreteJob_Set_RunMonth_September(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 8) + +/* "October" */ +#define CIM_ConcreteJob_Set_RunMonth_October(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 9) + +/* "November" */ +#define CIM_ConcreteJob_Set_RunMonth_November(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 10) + +/* "December" */ +#define CIM_ConcreteJob_Set_RunMonth_December(SELF) \ + CIM_ConcreteJob_Set_RunMonth(SELF, 11) + KINLINE void CIM_ConcreteJob_Set_RunDay( CIM_ConcreteJob* self, CMPISint8 x) @@ -1144,6 +1584,86 @@ } } +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; + +/* "-Saturday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Saturday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -7) + +/* "-Friday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Friday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -6) + +/* "-Thursday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Thursday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -5) + +/* "-Wednesday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Wednesday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -4) + +/* "-Tuesday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Tuesday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -3) + +/* "-Monday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Monday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -2) + +/* "-Sunday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek__Sunday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, -1) + +/* "ExactDayOfMonth" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_ExactDayOfMonth(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 0) + +/* "Sunday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Sunday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 1) + +/* "Monday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Monday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 2) + +/* "Tuesday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Tuesday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 3) + +/* "Wednesday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Wednesday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 4) + +/* "Thursday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Thursday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 5) + +/* "Friday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Friday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 6) + +/* "Saturday" */ +#define CIM_ConcreteJob_Set_RunDayOfWeek_Saturday(SELF) \ + CIM_ConcreteJob_Set_RunDayOfWeek(SELF, 7) + KINLINE void CIM_ConcreteJob_Set_RunStartInterval( CIM_ConcreteJob* self, CMPIDateTime* x) @@ -1206,6 +1726,21 @@ } } +typedef enum _CIM_ConcreteJob_LocalOrUtcTime_Enum +{ + CIM_ConcreteJob_LocalOrUtcTime_Local_Time = 1, + CIM_ConcreteJob_LocalOrUtcTime_UTC_Time = 2, +} +CIM_ConcreteJob_LocalOrUtcTime_Enum; + +/* "Local Time" */ +#define CIM_ConcreteJob_Set_LocalOrUtcTime_Local_Time(SELF) \ + CIM_ConcreteJob_Set_LocalOrUtcTime(SELF, 1) + +/* "UTC Time" */ +#define CIM_ConcreteJob_Set_LocalOrUtcTime_UTC_Time(SELF) \ + CIM_ConcreteJob_Set_LocalOrUtcTime(SELF, 2) + KINLINE void CIM_ConcreteJob_Set_UntilTime( CIM_ConcreteJob* self, CMPIDateTime* x) @@ -1518,6 +2053,41 @@ } } +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; + +/* "Unknown" */ +#define CIM_ConcreteJob_Set_RecoveryAction_Unknown(SELF) \ + CIM_ConcreteJob_Set_RecoveryAction(SELF, 0) + +/* "Other" */ +#define CIM_ConcreteJob_Set_RecoveryAction_Other(SELF) \ + CIM_ConcreteJob_Set_RecoveryAction(SELF, 1) + +/* "Do Not Continue" */ +#define CIM_ConcreteJob_Set_RecoveryAction_Do_Not_Continue(SELF) \ + CIM_ConcreteJob_Set_RecoveryAction(SELF, 2) + +/* "Continue With Next Job" */ +#define CIM_ConcreteJob_Set_RecoveryAction_Continue_With_Next_Job(SELF) \ + CIM_ConcreteJob_Set_RecoveryAction(SELF, 3) + +/* "Re-run Job" */ +#define CIM_ConcreteJob_Set_RecoveryAction_Re_run_Job(SELF) \ + CIM_ConcreteJob_Set_RecoveryAction(SELF, 4) + +/* "Run Recovery Job" */ +#define CIM_ConcreteJob_Set_RecoveryAction_Run_Recovery_Job(SELF) \ + CIM_ConcreteJob_Set_RecoveryAction(SELF, 5) + KINLINE void CIM_ConcreteJob_SetString_OtherRecoveryAction( CIM_ConcreteJob* self, CMPIString* x) @@ -1633,6 +2203,76 @@ } } +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; + +/* "New" */ +#define CIM_ConcreteJob_Set_JobState_New(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 2) + +/* "Starting" */ +#define CIM_ConcreteJob_Set_JobState_Starting(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 3) + +/* "Running" */ +#define CIM_ConcreteJob_Set_JobState_Running(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 4) + +/* "Suspended" */ +#define CIM_ConcreteJob_Set_JobState_Suspended(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 5) + +/* "Shutting Down" */ +#define CIM_ConcreteJob_Set_JobState_Shutting_Down(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 6) + +/* "Completed" */ +#define CIM_ConcreteJob_Set_JobState_Completed(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 7) + +/* "Terminated" */ +#define CIM_ConcreteJob_Set_JobState_Terminated(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 8) + +/* "Killed" */ +#define CIM_ConcreteJob_Set_JobState_Killed(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 9) + +/* "Exception" */ +#define CIM_ConcreteJob_Set_JobState_Exception(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 10) + +/* "Service" */ +#define CIM_ConcreteJob_Set_JobState_Service(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 11) + +/* "Query Pending" */ +#define CIM_ConcreteJob_Set_JobState_Query_Pending(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 12) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_JobState_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 13) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_JobState_Vendor_Reserved(SELF) \ + CIM_ConcreteJob_Set_JobState(SELF, 32768) + KINLINE void CIM_ConcreteJob_Set_TimeOfLastStateChange( CIM_ConcreteJob* self, CMPIDateTime* x) Added: cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Fan.h =================================================================== --- cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Fan.h (rev 0) +++ cmpiprofiles/sblim-cmpi-fan_profile/trunk/src/Fan.h 2008-07-08 23:32:58 UTC (rev 730) @@ -0,0 +1,4313 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_Fan_h +#define _konkrete_Fan_h + +#include <konkret/konkret.h> +#include "CIM_ConcreteJob.h" + +/* +**============================================================================== +** +** struct FanRef +** +**============================================================================== +*/ + +/* classname=Linux_Fan */ +typedef struct _FanRef +{ + 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_CoolingDevice features */ + /* CIM_Fan features */ + /* Linux_Fan features */ +} +FanRef; + +static const unsigned char __FanRef_sig[] = +{ + 0x09,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,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 FanRef_Init( + FanRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __FanRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus FanRef_InitFromInstance( + FanRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + FanRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus FanRef_InitFromObjectPath( + FanRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + FanRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void FanRef_Print( + const FanRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* FanRef_ToInstance( + const FanRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* FanRef_ToObjectPath( + const FanRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* FanRef_NameSpace( + FanRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void FanRef_SetString_SystemCreationClassName( + FanRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void FanRef_Set_SystemCreationClassName( + FanRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void FanRef_Null_SystemCreationClassName( + FanRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Null(field); + } +} + +KINLINE void FanRef_Clr_SystemCreationClassName( + FanRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Clr(field); + } +} + +KINLINE void FanRef_SetString_SystemName( + FanRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_SetString(field, x); + } +} + +KINLINE void FanRef_Set_SystemName( + FanRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void FanRef_Null_SystemName( + FanRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Null(field); + } +} + +KINLINE void FanRef_Clr_SystemName( + FanRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Clr(field); + } +} + +KINLINE void FanRef_SetString_CreationClassName( + FanRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void FanRef_Set_CreationClassName( + FanRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void FanRef_Null_CreationClassName( + FanRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Null(field); + } +} + +KINLINE void FanRef_Clr_CreationClassName( + FanRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Clr(field); + } +} + +KINLINE void FanRef_SetString_DeviceID( + FanRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->DeviceID; + KString_SetString(field, x); + } +} + +KINLINE void FanRef_Set_DeviceID( + FanRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->DeviceID; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void FanRef_Null_DeviceID( + FanRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->DeviceID; + KString_Null(field); + } +} + +KINLINE void FanRef_Clr_DeviceID( + FanRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->DeviceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct Fan +** +**============================================================================== +*/ + +/* classname=Linux_Fan */ +typedef struct _Fan +{ + 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_CoolingDevice features */ + const KBoolean ActiveCooling; + /* CIM_Fan features */ + const KBoolean VariableSpeed; + const KUint64 DesiredSpeed; + const KUint16A ControlModesSupported; + const KUint16 ControlMode; + const KUint16 DesiredControlMode; + /* Linux_Fan features */ +} +Fan; + +static const unsigned char __Fan_sig[] = +{ + 0x09,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x46,0x61,0x6e,0x00,0x2c,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... [truncated message content] |
From: <mik...@us...> - 2008-07-08 22:01:11
|
Revision: 729 http://omc.svn.sourceforge.net/omc/?rev=729&view=rev Author: mike-brasher Date: 2008-07-08 15:00:25 -0700 (Tue, 08 Jul 2008) Log Message: ----------- Fixed memory leak. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-08 18:33:23 UTC (rev 728) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-08 22:00:25 UTC (rev 729) @@ -148,6 +148,7 @@ KReturnInstance(cr, x); } + free(sess); CMReturn(CMPI_RC_OK); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-08 18:33:52
|
Revision: 728 http://omc.svn.sourceforge.net/omc/?rev=728&view=rev Author: mike-brasher Date: 2008-07-08 11:33:23 -0700 (Tue, 08 Jul 2008) Log Message: ----------- Added additional properties and fixed bug with getting sessions. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpoint.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-07 22:00:23 UTC (rev 727) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-08 18:33:23 UTC (rev 728) @@ -54,6 +54,14 @@ [Description ( "Remote port")] UInt32 RemotePort; + + [Description ( + "Local host name")] + String LocalHost; + + [Description ( + "Local port")] + UInt32 LocalPort; }; Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpoint.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpoint.h 2008-07-07 22:00:23 UTC (rev 727) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpoint.h 2008-07-08 18:33:23 UTC (rev 728) @@ -337,13 +337,15 @@ const KString AuthenticatedUser; const KString RemoteHost; const KUint32 RemotePort; + const KString LocalHost; + const KUint32 LocalPort; } ProtocolEndpoint; static const unsigned char __ProtocolEndpoint_sig[] = { 0x19,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x50,0x72,0x6f,0x74,0x6f, - 0x63,0x6f,0x6c,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74,0x00,0x2b,0x0c,0x07, + 0x63,0x6f,0x6c,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74,0x00,0x2d,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, @@ -395,7 +397,9 @@ 0x0b,0x43,0x6f,0x6d,0x70,0x72,0x65,0x73,0x73,0x69,0x6f,0x6e,0x00,0x0c,0x11, 0x41,0x75,0x74,0x68,0x65,0x6e,0x74,0x69,0x63,0x61,0x74,0x65,0x64,0x55,0x73, 0x65,0x72,0x00,0x0c,0x0a,0x52,0x65,0x6d,0x6f,0x74,0x65,0x48,0x6f,0x73,0x74, - 0x00,0x05,0x0a,0x52,0x65,0x6d,0x6f,0x74,0x65,0x50,0x6f,0x72,0x74,0x00, + 0x00,0x05,0x0a,0x52,0x65,0x6d,0x6f,0x74,0x65,0x50,0x6f,0x72,0x74,0x00,0x0c, + 0x09,0x4c,0x6f,0x63,0x61,0x6c,0x48,0x6f,0x73,0x74,0x00,0x05,0x09,0x4c,0x6f, + 0x63,0x61,0x6c,0x50,0x6f,0x72,0x74,0x00, }; KINLINE void ProtocolEndpoint_Init( @@ -5276,6 +5280,79 @@ } } +KINLINE void ProtocolEndpoint_SetString_LocalHost( + ProtocolEndpoint* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->LocalHost; + KString_SetString(field, x); + } +} + +KINLINE void ProtocolEndpoint_Set_LocalHost( + ProtocolEndpoint* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->LocalHost; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ProtocolEndpoint_Null_LocalHost( + ProtocolEndpoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->LocalHost; + KString_Null(field); + } +} + +KINLINE void ProtocolEndpoint_Clr_LocalHost( + ProtocolEndpoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->LocalHost; + KString_Clr(field); + } +} + +KINLINE void ProtocolEndpoint_Set_LocalPort( + ProtocolEndpoint* self, + CMPIUint32 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->LocalPort; + KUint32_Set(field, x); + } +} + +KINLINE void ProtocolEndpoint_Null_LocalPort( + ProtocolEndpoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->LocalPort; + KUint32_Null(field); + } +} + +KINLINE void ProtocolEndpoint_Clr_LocalPort( + ProtocolEndpoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint32* field = (KUint32*)&self->LocalPort; + KUint32_Clr(field); + } +} + /* classname=Linux_SSHProtocolEndpoint */ typedef struct _ProtocolEndpoint_RequestStateChange_Args { Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-07 22:00:23 UTC (rev 727) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-08 18:33:23 UTC (rev 728) @@ -130,12 +130,21 @@ ProtocolEndpoint_Set_Compression(&x, 1); else ProtocolEndpoint_Set_Compression(&x, 0); + /* Linux_SSHProtocolEndpoint.LocalHost (Extra) */ + ProtocolEndpoint_Set_LocalHost(&x, sess[i].localAddr); + + /* Linux_SSHProtocolEndpoint.LocalPort (Extra) */ + ProtocolEndpoint_Set_LocalPort(&x, sess[i].localPort); + /* Linux_SSHProtocolEndpoint.RemoteHost (Extra) */ ProtocolEndpoint_Set_RemoteHost(&x, sess[i].foreignAddr); /* Linux_SSHProtocolEndpoint.RemotePort (Extra) */ ProtocolEndpoint_Set_RemotePort(&x, sess[i].foreignPort); + /* Linux_SSHProtocolEndpoint.AuthenticatedUser (Extra) */ + ProtocolEndpoint_Set_AuthenticatedUser(&x, sess[i].user); + KReturnInstance(cr, x); } Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c 2008-07-07 22:00:23 UTC (rev 727) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c 2008-07-08 18:33:23 UTC (rev 728) @@ -147,9 +147,9 @@ if (buf[0] != 't') continue; - /* Skip lines not ending in "/ssh" */ + /* Skip lines not containing "/sshd:" */ - if (n <= 4 || strcmp(end - 4, "/ssh") != 0) + if (strstr(buf, "/sshd:") == NULL) continue; /* Extract columns (do not split around ':' due to IPV6 addresses) */ @@ -208,6 +208,13 @@ sess.pid = atoi(p); break; } + /* Username */ + case 7: + { + *sess.user = '\0'; + strncat(sess.user, p, sizeof(sess.user) - 1); + break; + } } i++; Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-07 22:00:23 UTC (rev 727) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-08 18:33:23 UTC (rev 728) @@ -44,6 +44,7 @@ char foreignAddr[64]; unsigned short foreignPort; unsigned int pid; + char user[64]; }; HIDDEN int GetSSHSessions( This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-07 22:01:10
|
Revision: 727 http://omc.svn.sourceforge.net/omc/?rev=727&view=rev Author: mike-brasher Date: 2008-07-07 15:00:23 -0700 (Mon, 07 Jul 2008) Log Message: ----------- Added KONKRET_REGISTER macros. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedServiceProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c 2008-07-07 21:46:23 UTC (rev 726) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c 2008-07-07 22:00:23 UTC (rev 727) @@ -184,6 +184,7 @@ } KONKRET_REGISTRATION( + "root/cimv2", "Linux_SSHCapabilities", "Capabilities", "instance method") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-07 21:46:23 UTC (rev 726) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-07 22:00:23 UTC (rev 727) @@ -197,6 +197,7 @@ ElementCapabilitiesInitialize()) KONKRET_REGISTRATION( + "root/cimv2", "Linux_SSHElementCapabilities", "ElementCapabilities", "instance association") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c 2008-07-07 21:46:23 UTC (rev 726) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c 2008-07-07 22:00:23 UTC (rev 727) @@ -189,6 +189,7 @@ HostedAccessPointInitialize()) KONKRET_REGISTRATION( + "root/cimv2", "Linux_SSHHostedAccessPoint", "HostedAccessPoint", "instance association") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedServiceProvider.c 2008-07-07 21:46:23 UTC (rev 726) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedServiceProvider.c 2008-07-07 22:00:23 UTC (rev 727) @@ -190,6 +190,7 @@ HostedServiceInitialize()) KONKRET_REGISTRATION( + "root/cimv2", "Linux_SSHHostedService", "HostedService", "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-07 21:46:23 UTC (rev 726) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-07 22:00:23 UTC (rev 727) @@ -7,14 +7,27 @@ INCLUDES = -I$(top_builddir) liblinux_sshserviceprovider_la_SOURCES = \ - Resource.c \ - ProtocolServiceProvider.c \ - CapabilitiesProvider.c \ - ElementCapabilitiesProvider.c \ - ProtocolEndpointProvider.c \ - ProvidesEndpointProvider.c \ - HostedServiceProvider.c \ - HostedAccessPointProvider.c + CapabilitiesProvider.c \ + ElementCapabilitiesProvider.c \ + HostedAccessPointProvider.c \ + HostedServiceProvider.c \ + ProtocolEndpointProvider.c \ + ProtocolServiceProvider.c \ + ProvidesEndpointProvider.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 \ + Resource.h liblinux_sshserviceprovider_la_LDFLAGS = \ -lkonkret \ Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-07 21:46:23 UTC (rev 726) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-07 22:00:23 UTC (rev 727) @@ -253,6 +253,7 @@ } KONKRET_REGISTRATION( + "root/cimv2", "Linux_SSHProtocolEndpoint", "ProtocolEndpoint", "instance method") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-07 21:46:23 UTC (rev 726) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-07 22:00:23 UTC (rev 727) @@ -254,6 +254,7 @@ } KONKRET_REGISTRATION( + "root/cimv2", "Linux_SSHProtocolService", "ProtocolService", "instance method") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c 2008-07-07 21:46:23 UTC (rev 726) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c 2008-07-07 22:00:23 UTC (rev 727) @@ -194,6 +194,7 @@ ProvidesEndpointInitialize()) KONKRET_REGISTRATION( + "root/cimv2", "Linux_SSHProvidesEndpoint", "ProvidesEndpoint", "instance association") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-07 21:46:23 UTC (rev 726) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-07 22:00:23 UTC (rev 727) @@ -6,7 +6,7 @@ #include <cmpiutil/exec.h> #ifndef KONKRET_REGISTRATION -# define KONKRET_REGISTRATION(X,Y,Z) /* empty */ +# define KONKRET_REGISTRATION(W,X,Y,Z) /* empty */ #endif #define HIDDEN __attribute__((visibility("hidden"))) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-07 21:46:57
|
Revision: 726 http://omc.svn.sourceforge.net/omc/?rev=726&view=rev Author: mike-brasher Date: 2008-07-07 14:46:23 -0700 (Mon, 07 Jul 2008) Log Message: ----------- Fixeds to make distcheck work and to add argument to KONKRET_REGISTRATION macro. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -221,6 +221,7 @@ DeviceSAPImplementationInitialize()) KONKRET_REGISTRATION( + "root/cimv2", "Linux_DeviceSAPImplementationEthernetPort", "DeviceSAPImplementation", "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpointProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpointProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -190,6 +190,7 @@ ElementCapabilitiesLANEndpointInitialize()) KONKRET_REGISTRATION( + "root/cimv2", "Linux_ElementCapabilitiesLANEndpoint", "ElementCapabilitiesLANEndpoint", "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -190,6 +190,7 @@ ElementCapabilitiesInitialize()) KONKRET_REGISTRATION( + "root/cimv2", "Linux_ElementCapabilitiesEthernetPort", "ElementCapabilities", "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -192,6 +192,7 @@ ElementConformsToProfileInitialize()) KONKRET_REGISTRATION( + "root/interop", "Linux_ElementConformsToProfileEthernetPort", "ElementConformsToProfile", "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -150,6 +150,7 @@ return result; } KONKRET_REGISTRATION( + "root/cimv2", "Linux_EnabledLogicalElementCapabilitiesLANEndpoint", "EnabledLogicalElementCapabilitiesLANEndpoint", "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -144,7 +144,9 @@ KSetStatus(status, ERR_NOT_SUPPORTED); return result; } + KONKRET_REGISTRATION( + "root/cimv2", "Linux_EnabledLogicalElementCapabilitiesEthernetPort", "EnabledLogicalElementCapabilities", "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -314,6 +314,7 @@ } KONKRET_REGISTRATION( + "root/cimv2", "Linux_EthernetPort", "EthernetPort", "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -186,6 +186,7 @@ HostedAccessPointInitialize()) KONKRET_REGISTRATION( + "root/cimv2", "Linux_HostedAccessPointEthernetPort", "HostedAccessPoint", "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -205,6 +205,7 @@ } KONKRET_REGISTRATION( + "root/cimv2", "Linux_LANEndpoint", "LANEndpoint", "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-07 21:46:23 UTC (rev 726) @@ -31,12 +31,12 @@ EnabledLogicalElementCapabilities.h \ EnabledLogicalElementCapabilitiesLANEndpoint.h \ EthernetPort.h \ - EthernetPortResource.h \ HostedAccessPoint.h \ LANEndpoint.h \ ReferencedProfile.h \ RegisteredProfileComputerSystem.h \ RegisteredProfile.h \ + Resource.h \ SystemDevice.h liblinux_ethportprovider_la_LIBADD = \ Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -198,6 +198,7 @@ ReferencedProfileInitialize()) KONKRET_REGISTRATION( + "root/interop", "Linux_ReferencedProfileEthernetPort", "ReferencedProfile", "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -132,6 +132,7 @@ RegisteredProfileInitialize()) KONKRET_REGISTRATION( + "root/interop", "Linux_RegisteredProfileEthernetPort", "RegisteredProfile", "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h 2008-07-07 21:46:23 UTC (rev 726) @@ -5,7 +5,7 @@ #include "common.h" #ifndef KONKRET_REGISTRATION -# define KONKRET_REGISTRATION(X,Y,Z) /* empty */ +# define KONKRET_REGISTRATION(W,X,Y,Z) /* empty */ #endif struct EthernetPortResource Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c 2008-07-07 21:06:17 UTC (rev 725) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c 2008-07-07 21:46:23 UTC (rev 726) @@ -187,6 +187,7 @@ SystemDeviceInitialize()) KONKRET_REGISTRATION( + "root/cimv2", "Linux_SystemDeviceEthernetPort", "SystemDevice", "instance association") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-07 21:06:35
|
Revision: 725 http://omc.svn.sourceforge.net/omc/?rev=725&view=rev Author: mike-brasher Date: 2008-07-07 14:06:17 -0700 (Mon, 07 Jul 2008) Log Message: ----------- Fixed compiler breakage with KONKRET_REGISTER. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c 2008-07-05 02:50:44 UTC (rev 724) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c 2008-07-07 21:06:17 UTC (rev 725) @@ -1,5 +1,6 @@ #include <konkret/konkret.h> #include "EnabledLogicalElementCapabilities.h" +#include "Resource.h" static const CMPIBroker* _cb = NULL; Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c 2008-07-05 02:50:44 UTC (rev 724) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c 2008-07-07 21:06:17 UTC (rev 725) @@ -3,6 +3,7 @@ #include "ComputerSystem.h" #include "common.h" #include "LANEndpoint.h" +#include "Resource.h" static const CMPIBroker* _cb; Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c 2008-07-05 02:50:44 UTC (rev 724) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c 2008-07-07 21:06:17 UTC (rev 725) @@ -2,6 +2,7 @@ #include "ReferencedProfile.h" #include "RegisteredProfileComputerSystem.h" #include "RegisteredProfile.h" +#include "Resource.h" static const CMPIBroker* _cb; Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c 2008-07-05 02:50:44 UTC (rev 724) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c 2008-07-07 21:06:17 UTC (rev 725) @@ -1,5 +1,6 @@ #include <konkret/konkret.h> #include "RegisteredProfile.h" +#include "Resource.h" static const CMPIBroker* _cb = NULL; Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c 2008-07-05 02:50:44 UTC (rev 724) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c 2008-07-07 21:06:17 UTC (rev 725) @@ -1,6 +1,7 @@ #include <konkret/konkret.h> #include "SystemDevice.h" #include "common.h" +#include "Resource.h" static const CMPIBroker* _cb; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-05 02:50:35
|
Revision: 724 http://omc.svn.sourceforge.net/omc/?rev=724&view=rev Author: mike-brasher Date: 2008-07-04 19:50:44 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Fixed broken schema. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c 2008-07-05 02:31:48 UTC (rev 723) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c 2008-07-05 02:50:44 UTC (rev 724) @@ -135,6 +135,20 @@ _cb, EnabledLogicalElementCapabilitiesLANEndpointInitialize()) +KUint16 EnabledLogicalElementCapabilitiesLANEndpoint_CreateGoalSettings( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const EnabledLogicalElementCapabilitiesLANEndpointRef* self, + const KStringA* TemplateGoalSettings, + KStringA* SupportedGoalSettings, + CMPIStatus* status) +{ + KUint16 result = KUINT16_INIT; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} KONKRET_REGISTRATION( "Linux_EnabledLogicalElementCapabilitiesLANEndpoint", "EnabledLogicalElementCapabilitiesLANEndpoint", Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c 2008-07-05 02:31:48 UTC (rev 723) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c 2008-07-05 02:50:44 UTC (rev 724) @@ -129,6 +129,20 @@ _cb, EnabledLogicalElementCapabilitiesInitialize()) +KUint16 EnabledLogicalElementCapabilities_CreateGoalSettings( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const EnabledLogicalElementCapabilitiesRef* self, + const KStringA* TemplateGoalSettings, + KStringA* SupportedGoalSettings, + CMPIStatus* status) +{ + KUint16 result = KUINT16_INIT; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} KONKRET_REGISTRATION( "Linux_EnabledLogicalElementCapabilitiesEthernetPort", "EnabledLogicalElementCapabilities", Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c 2008-07-05 02:31:48 UTC (rev 723) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c 2008-07-05 02:50:44 UTC (rev 724) @@ -63,16 +63,16 @@ LANEndpoint_Set_ProtocolIFType_Ethernet_CSMA_CD(&x); break; case 100: - LANEndpoint_Set_ProtocolIFType_Fast_Ethernet_100BaseT(&x); + LANEndpoint_Set_ProtocolIFType_Ethernet_CSMA_CD(&x); break; case 1000: - LANEndpoint_Set_ProtocolIFType_Gigabit_Ethernet(&x); + LANEndpoint_Set_ProtocolIFType_Other(&x); break; case 2500: - LANEndpoint_Set_ProtocolIFType_Ethernet_3Mbit(&x); + LANEndpoint_Set_ProtocolIFType_Other(&x); break; default: - LANEndpoint_Set_ProtocolIFType_Unknown(&x); + LANEndpoint_Set_ProtocolIFType_Other(&x); break; } @@ -191,6 +191,19 @@ return result; } +KUint32 LANEndpoint_BroadcastReset( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const LANEndpointRef* self, + CMPIStatus* status) +{ + KUint32 result = KUINT32_INIT; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} + KONKRET_REGISTRATION( "Linux_LANEndpoint", "LANEndpoint", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-05 02:31:38
|
Revision: 723 http://omc.svn.sourceforge.net/omc/?rev=723&view=rev Author: mike-brasher Date: 2008-07-04 19:31:48 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Reworked registration. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration 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/EthernetPort.kon cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpoint.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfile.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileComputerSystem.h Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration 2008-07-05 02:12:32 UTC (rev 722) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration 2008-07-05 02:31:48 UTC (rev 723) @@ -1,12 +1,13 @@ -Linux_DeviceSAPImplementationEthernetPort root/cimv2 DeviceSAPImplementation linux_ethportprovider instance association -Linux_ElementCapabilitiesLANEndpoint root/cimv2 ElementCapabilitiesLANEndpoint linux_ethportprovider instance association -Linux_ElementCapabilitiesEthernetPort root/cimv2 ElementCapabilities linux_ethportprovider instance association -Linux_ElementConformsToProfileEthernetPort root/cimv2 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 +# 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_LANEndpoint root/cimv2 LANEndpoint linux_ethportprovider instance method -Linux_ReferencedProfileEthernetPort root/cimv2 ReferencedProfile linux_ethportprovider instance association -Linux_RegisteredProfileEthernetPort root/cimv2 RegisteredProfile linux_ethportprovider instance method 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 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-05 02:12:32 UTC (rev 722) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ConcreteJob.h 2008-07-05 02:31:48 UTC (rev 723) @@ -160,6 +160,10 @@ const KStringA StatusDescriptions; const KString Status; const KUint16 HealthState; + const KUint16 PrimaryStatus; + const KUint16 DetailedStatus; + const KUint16 OperatingStatus; + const KUint16 CommunicationStatus; /* CIM_LogicalElement features */ /* CIM_Job features */ const KString JobStatus; @@ -194,7 +198,7 @@ static const unsigned char __CIM_ConcreteJob_sig[] = { 0x0f,0x43,0x49,0x4d,0x5f,0x43,0x6f,0x6e,0x63,0x72,0x65,0x74,0x65,0x4a,0x6f, - 0x62,0x00,0x22,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b, + 0x62,0x00,0x26,0x0c,0x07,0x43,0x61,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b, 0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x0b,0x45, 0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x00,0x0d,0x0b,0x49,0x6e, 0x73,0x74,0x61,0x6c,0x6c,0x44,0x61,0x74,0x65,0x00,0x0c,0x04,0x4e,0x61,0x6d, @@ -202,32 +206,37 @@ 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,0x0c,0x09,0x4a,0x6f,0x62,0x53,0x74,0x61,0x74, - 0x75,0x73,0x00,0x0d,0x0d,0x54,0x69,0x6d,0x65,0x53,0x75,0x62,0x6d,0x69,0x74, - 0x74,0x65,0x64,0x00,0x0d,0x12,0x53,0x63,0x68,0x65,0x64,0x75,0x6c,0x65,0x64, - 0x53,0x74,0x61,0x72,0x74,0x54,0x69,0x6d,0x65,0x00,0x0d,0x09,0x53,0x74,0x61, - 0x72,0x74,0x54,0x69,0x6d,0x65,0x00,0x0d,0x0b,0x45,0x6c,0x61,0x70,0x73,0x65, - 0x64,0x54,0x69,0x6d,0x65,0x00,0x05,0x0b,0x4a,0x6f,0x62,0x52,0x75,0x6e,0x54, - 0x69,0x6d,0x65,0x73,0x00,0x01,0x08,0x52,0x75,0x6e,0x4d,0x6f,0x6e,0x74,0x68, - 0x00,0x02,0x06,0x52,0x75,0x6e,0x44,0x61,0x79,0x00,0x02,0x0c,0x52,0x75,0x6e, - 0x44,0x61,0x79,0x4f,0x66,0x57,0x65,0x65,0x6b,0x00,0x0d,0x10,0x52,0x75,0x6e, - 0x53,0x74,0x61,0x72,0x74,0x49,0x6e,0x74,0x65,0x72,0x76,0x61,0x6c,0x00,0x03, - 0x0e,0x4c,0x6f,0x63,0x61,0x6c,0x4f,0x72,0x55,0x74,0x63,0x54,0x69,0x6d,0x65, - 0x00,0x0d,0x09,0x55,0x6e,0x74,0x69,0x6c,0x54,0x69,0x6d,0x65,0x00,0x0c,0x06, - 0x4e,0x6f,0x74,0x69,0x66,0x79,0x00,0x0c,0x05,0x4f,0x77,0x6e,0x65,0x72,0x00, - 0x05,0x08,0x50,0x72,0x69,0x6f,0x72,0x69,0x74,0x79,0x00,0x03,0x0f,0x50,0x65, - 0x72,0x63,0x65,0x6e,0x74,0x43,0x6f,0x6d,0x70,0x6c,0x65,0x74,0x65,0x00,0x00, - 0x12,0x44,0x65,0x6c,0x65,0x74,0x65,0x4f,0x6e,0x43,0x6f,0x6d,0x70,0x6c,0x65, - 0x74,0x69,0x6f,0x6e,0x00,0x03,0x09,0x45,0x72,0x72,0x6f,0x72,0x43,0x6f,0x64, - 0x65,0x00,0x0c,0x10,0x45,0x72,0x72,0x6f,0x72,0x44,0x65,0x73,0x63,0x72,0x69, - 0x70,0x74,0x69,0x6f,0x6e,0x00,0x03,0x0e,0x52,0x65,0x63,0x6f,0x76,0x65,0x72, - 0x79,0x41,0x63,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x13,0x4f,0x74,0x68,0x65,0x72, - 0x52,0x65,0x63,0x6f,0x76,0x65,0x72,0x79,0x41,0x63,0x74,0x69,0x6f,0x6e,0x00, - 0x4c,0x0a,0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00,0x03,0x08, - 0x4a,0x6f,0x62,0x53,0x74,0x61,0x74,0x65,0x00,0x0d,0x15,0x54,0x69,0x6d,0x65, - 0x4f,0x66,0x4c,0x61,0x73,0x74,0x53,0x74,0x61,0x74,0x65,0x43,0x68,0x61,0x6e, - 0x67,0x65,0x00,0x0d,0x11,0x54,0x69,0x6d,0x65,0x42,0x65,0x66,0x6f,0x72,0x65, - 0x52,0x65,0x6d,0x6f,0x76,0x61,0x6c,0x00, + 0x53,0x74,0x61,0x74,0x65,0x00,0x03,0x0d,0x50,0x72,0x69,0x6d,0x61,0x72,0x79, + 0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0e,0x44,0x65,0x74,0x61,0x69,0x6c, + 0x65,0x64,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0f,0x4f,0x70,0x65,0x72, + 0x61,0x74,0x69,0x6e,0x67,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x13,0x43, + 0x6f,0x6d,0x6d,0x75,0x6e,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e,0x53,0x74,0x61, + 0x74,0x75,0x73,0x00,0x0c,0x09,0x4a,0x6f,0x62,0x53,0x74,0x61,0x74,0x75,0x73, + 0x00,0x0d,0x0d,0x54,0x69,0x6d,0x65,0x53,0x75,0x62,0x6d,0x69,0x74,0x74,0x65, + 0x64,0x00,0x0d,0x12,0x53,0x63,0x68,0x65,0x64,0x75,0x6c,0x65,0x64,0x53,0x74, + 0x61,0x72,0x74,0x54,0x69,0x6d,0x65,0x00,0x0d,0x09,0x53,0x74,0x61,0x72,0x74, + 0x54,0x69,0x6d,0x65,0x00,0x0d,0x0b,0x45,0x6c,0x61,0x70,0x73,0x65,0x64,0x54, + 0x69,0x6d,0x65,0x00,0x05,0x0b,0x4a,0x6f,0x62,0x52,0x75,0x6e,0x54,0x69,0x6d, + 0x65,0x73,0x00,0x01,0x08,0x52,0x75,0x6e,0x4d,0x6f,0x6e,0x74,0x68,0x00,0x02, + 0x06,0x52,0x75,0x6e,0x44,0x61,0x79,0x00,0x02,0x0c,0x52,0x75,0x6e,0x44,0x61, + 0x79,0x4f,0x66,0x57,0x65,0x65,0x6b,0x00,0x0d,0x10,0x52,0x75,0x6e,0x53,0x74, + 0x61,0x72,0x74,0x49,0x6e,0x74,0x65,0x72,0x76,0x61,0x6c,0x00,0x03,0x0e,0x4c, + 0x6f,0x63,0x61,0x6c,0x4f,0x72,0x55,0x74,0x63,0x54,0x69,0x6d,0x65,0x00,0x0d, + 0x09,0x55,0x6e,0x74,0x69,0x6c,0x54,0x69,0x6d,0x65,0x00,0x0c,0x06,0x4e,0x6f, + 0x74,0x69,0x66,0x79,0x00,0x0c,0x05,0x4f,0x77,0x6e,0x65,0x72,0x00,0x05,0x08, + 0x50,0x72,0x69,0x6f,0x72,0x69,0x74,0x79,0x00,0x03,0x0f,0x50,0x65,0x72,0x63, + 0x65,0x6e,0x74,0x43,0x6f,0x6d,0x70,0x6c,0x65,0x74,0x65,0x00,0x00,0x12,0x44, + 0x65,0x6c,0x65,0x74,0x65,0x4f,0x6e,0x43,0x6f,0x6d,0x70,0x6c,0x65,0x74,0x69, + 0x6f,0x6e,0x00,0x03,0x09,0x45,0x72,0x72,0x6f,0x72,0x43,0x6f,0x64,0x65,0x00, + 0x0c,0x10,0x45,0x72,0x72,0x6f,0x72,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74, + 0x69,0x6f,0x6e,0x00,0x03,0x0e,0x52,0x65,0x63,0x6f,0x76,0x65,0x72,0x79,0x41, + 0x63,0x74,0x69,0x6f,0x6e,0x00,0x0c,0x13,0x4f,0x74,0x68,0x65,0x72,0x52,0x65, + 0x63,0x6f,0x76,0x65,0x72,0x79,0x41,0x63,0x74,0x69,0x6f,0x6e,0x00,0x4c,0x0a, + 0x49,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x49,0x44,0x00,0x03,0x08,0x4a,0x6f, + 0x62,0x53,0x74,0x61,0x74,0x65,0x00,0x0d,0x15,0x54,0x69,0x6d,0x65,0x4f,0x66, + 0x4c,0x61,0x73,0x74,0x53,0x74,0x61,0x74,0x65,0x43,0x68,0x61,0x6e,0x67,0x65, + 0x00,0x0d,0x11,0x54,0x69,0x6d,0x65,0x42,0x65,0x66,0x6f,0x72,0x65,0x52,0x65, + 0x6d,0x6f,0x76,0x61,0x6c,0x00, }; KINLINE void CIM_ConcreteJob_Init( @@ -924,6 +933,410 @@ #define CIM_ConcreteJob_Set_HealthState_DMTF_Reserved(SELF) \ CIM_ConcreteJob_Set_HealthState(SELF, 0) +KINLINE void CIM_ConcreteJob_Set_PrimaryStatus( + CIM_ConcreteJob* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_PrimaryStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_PrimaryStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_ConcreteJob_PrimaryStatus_Unknown 0 + +/* "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) + +/* "OK" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_OK(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 1) + +/* "Degraded" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_Degraded(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 2) + +/* "Error" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_Error(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 3) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_PrimaryStatus_Vendor_Reserved(SELF) \ + CIM_ConcreteJob_Set_PrimaryStatus(SELF, 0) + +KINLINE void CIM_ConcreteJob_Set_DetailedStatus( + CIM_ConcreteJob* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_DetailedStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_DetailedStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Clr(field); + } +} + +/* "Not Available" */ +#define CIM_ConcreteJob_DetailedStatus_Not_Available 0 + +/* "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) + +/* "No Additional Information" */ +#define CIM_ConcreteJob_Set_DetailedStatus_No_Additional_Information(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 1) + +/* "Stressed" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Stressed(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 2) + +/* "Predictive Failure" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Predictive_Failure(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 3) + +/* "Non-Recoverable Error" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Non_Recoverable_Error(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 4) + +/* "Supporting Entity in Error" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 5) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_DetailedStatus_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_DetailedStatus_Vendor_Reserved(SELF) \ + CIM_ConcreteJob_Set_DetailedStatus(SELF, 0) + +KINLINE void CIM_ConcreteJob_Set_OperatingStatus( + CIM_ConcreteJob* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_OperatingStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_OperatingStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_ConcreteJob_OperatingStatus_Unknown 0 + +/* "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) + +/* "Not Available" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Not_Available(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 1) + +/* "Servicing" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Servicing(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 2) + +/* "Starting" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Starting(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 3) + +/* "Stopping" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Stopping(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 4) + +/* "Stopped" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Stopped(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 5) + +/* "Aborted" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Aborted(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 6) + +/* "Dormant" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Dormant(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 7) + +/* "Completed" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Completed(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 8) + +/* "Migrating" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Migrating(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 9) + +/* "Emigrating" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Emigrating(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 10) + +/* "Immigrating" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Immigrating(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 11) + +/* "Snapshotting" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Snapshotting(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 12) + +/* "Shutting Down" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Shutting_Down(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 13) + +/* "In Test" */ +#define CIM_ConcreteJob_Set_OperatingStatus_In_Test(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 14) + +/* "Transitioning" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Transitioning(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 15) + +/* "In Service" */ +#define CIM_ConcreteJob_Set_OperatingStatus_In_Service(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 16) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_OperatingStatus_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_OperatingStatus_Vendor_Reserved(SELF) \ + CIM_ConcreteJob_Set_OperatingStatus(SELF, 0) + +KINLINE void CIM_ConcreteJob_Set_CommunicationStatus( + CIM_ConcreteJob* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ConcreteJob_Null_CommunicationStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_ConcreteJob_Clr_CommunicationStatus( + CIM_ConcreteJob* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_ConcreteJob_CommunicationStatus_Unknown 0 + +/* "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) + +/* "Not Available" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_Not_Available(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 1) + +/* "Communication OK" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_Communication_OK(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 2) + +/* "Lost Communication" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_Lost_Communication(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 3) + +/* "No Contact" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_No_Contact(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 4) + +/* "DMTF Reserved" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_DMTF_Reserved(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ConcreteJob_Set_CommunicationStatus_Vendor_Reserved(SELF) \ + CIM_ConcreteJob_Set_CommunicationStatus(SELF, 0) + KINLINE void CIM_ConcreteJob_SetString_JobStatus( CIM_ConcreteJob* self, CMPIString* x) @@ -2223,6 +2636,65 @@ KBase_Print(os, &self->__base, 'a'); } +/* classname=CIM_ConcreteJob */ +typedef struct _CIM_ConcreteJob_GetError_Args +{ + KBase __base; + /* IN OUT */ + KString Error; +} +CIM_ConcreteJob_GetError_Args; + +static const unsigned char __CIM_ConcreteJob_GetError_Args_sig[] = +{ + 0x08,0x47,0x65,0x74,0x45,0x72,0x72,0x6f,0x72,0x00,0x01,0x3c,0x05,0x45,0x72, + 0x72,0x6f,0x72,0x00, +}; + +KINLINE void CIM_ConcreteJob_GetError_Args_Init( + CIM_ConcreteJob_GetError_Args* self, + const CMPIBroker* cb) +{ + const unsigned char* sig = __CIM_ConcreteJob_GetError_Args_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, NULL); +} + +KINLINE CMPIStatus CIM_ConcreteJob_GetError_Args_InitFromArgs( + CIM_ConcreteJob_GetError_Args* self, + const CMPIBroker* cb, + const CMPIArgs* x, + CMPIBoolean in, + CMPIBoolean out) +{ + CIM_ConcreteJob_GetError_Args_Init(self, cb); + return KBase_FromArgs(&self->__base, x, in, out); +} + +KINLINE CMPIArgs* CIM_ConcreteJob_GetError_Args_ToArgs( + const CIM_ConcreteJob_GetError_Args* self, + CMPIBoolean in, + CMPIBoolean out, + CMPIStatus* status) +{ + return KBase_ToArgs(&self->__base, in, out, status); +} + +KINLINE CMPIStatus CIM_ConcreteJob_GetError_Args_SetArgs( + const CIM_ConcreteJob_GetError_Args* self, + CMPIBoolean in, + CMPIBoolean out, + CMPIArgs* ca) +{ + return KBase_SetToArgs(&self->__base, in, out, ca); +} + +KINLINE void CIM_ConcreteJob_GetError_Args_Print( + const CIM_ConcreteJob_GetError_Args* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'a'); +} + /* **============================================================================== ** @@ -2248,6 +2720,14 @@ const KDateTime* TimeoutPeriod, CMPIStatus* status); +KEXTERN KUint32 CIM_ConcreteJob_GetError( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const CIM_ConcreteJobRef* self, + KString* Error, + CMPIStatus* status); + KINLINE CMPIStatus CIM_ConcreteJob_DispatchMethod( const CMPIBroker* cb, CMPIMethodMI* mi, @@ -2323,7 +2803,37 @@ KReturn(OK); } + if (strcasecmp(meth, "GetError") == 0) + { + CMPIStatus st = KSTATUS_INIT; + CIM_ConcreteJob_GetError_Args args; + KUint32 r; + KReturnIf(CIM_ConcreteJob_GetError_Args_InitFromArgs( + &args, cb, in, 1, 0)); + + r = CIM_ConcreteJob_GetError( + cb, + mi, + cc, + &self, + &args.Error, + &st); + + if (!KOkay(st)) + return st; + + if (!r.exists) + KReturn(ERR_FAILED); + + KReturnIf(CIM_ConcreteJob_GetError_Args_SetArgs( + &args, 0, 1, out)); + KReturnUint32Data(cr, &r); + CMReturnDone(cr); + + KReturn(OK); + } + KReturn(ERR_METHOD_NOT_FOUND); } 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-05 02:12:32 UTC (rev 722) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_ServiceAccessPoint.h 2008-07-05 02:31:48 UTC (rev 723) @@ -294,6 +294,10 @@ 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; @@ -301,6 +305,8 @@ const KUint16 RequestedState; const KUint16 EnabledDefault; const KDateTime TimeOfLastStateChange; + const KUint16A AvailableRequestedStates; + const KUint16 TransitioningToState; /* CIM_ServiceAccessPoint features */ const KString SystemCreationClassName; const KString SystemName; @@ -311,7 +317,7 @@ static const unsigned char __CIM_ServiceAccessPoint_sig[] = { 0x16,0x43,0x49,0x4d,0x5f,0x53,0x65,0x72,0x76,0x69,0x63,0x65,0x41,0x63,0x63, - 0x65,0x73,0x73,0x50,0x6f,0x69,0x6e,0x74,0x00,0x11,0x0c,0x07,0x43,0x61,0x70, + 0x65,0x73,0x73,0x50,0x6f,0x69,0x6e,0x74,0x00,0x17,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, @@ -319,17 +325,26 @@ 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, + 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, }; KINLINE void CIM_ServiceAccessPoint_Init( @@ -1026,6 +1041,410 @@ #define CIM_ServiceAccessPoint_Set_HealthState_DMTF_Reserved(SELF) \ CIM_ServiceAccessPoint_Set_HealthState(SELF, 0) +KINLINE void CIM_ServiceAccessPoint_Set_PrimaryStatus( + CIM_ServiceAccessPoint* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ServiceAccessPoint_Null_PrimaryStatus( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_ServiceAccessPoint_Clr_PrimaryStatus( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_ServiceAccessPoint_PrimaryStatus_Unknown 0 + +/* "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) + +/* "OK" */ +#define CIM_ServiceAccessPoint_Set_PrimaryStatus_OK(SELF) \ + CIM_ServiceAccessPoint_Set_PrimaryStatus(SELF, 1) + +/* "Degraded" */ +#define CIM_ServiceAccessPoint_Set_PrimaryStatus_Degraded(SELF) \ + CIM_ServiceAccessPoint_Set_PrimaryStatus(SELF, 2) + +/* "Error" */ +#define CIM_ServiceAccessPoint_Set_PrimaryStatus_Error(SELF) \ + CIM_ServiceAccessPoint_Set_PrimaryStatus(SELF, 3) + +/* "DMTF Reserved" */ +#define CIM_ServiceAccessPoint_Set_PrimaryStatus_DMTF_Reserved(SELF) \ + CIM_ServiceAccessPoint_Set_PrimaryStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ServiceAccessPoint_Set_PrimaryStatus_Vendor_Reserved(SELF) \ + CIM_ServiceAccessPoint_Set_PrimaryStatus(SELF, 0) + +KINLINE void CIM_ServiceAccessPoint_Set_DetailedStatus( + CIM_ServiceAccessPoint* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ServiceAccessPoint_Null_DetailedStatus( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_ServiceAccessPoint_Clr_DetailedStatus( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Clr(field); + } +} + +/* "Not Available" */ +#define CIM_ServiceAccessPoint_DetailedStatus_Not_Available 0 + +/* "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) + +/* "No Additional Information" */ +#define CIM_ServiceAccessPoint_Set_DetailedStatus_No_Additional_Information(SELF) \ + CIM_ServiceAccessPoint_Set_DetailedStatus(SELF, 1) + +/* "Stressed" */ +#define CIM_ServiceAccessPoint_Set_DetailedStatus_Stressed(SELF) \ + CIM_ServiceAccessPoint_Set_DetailedStatus(SELF, 2) + +/* "Predictive Failure" */ +#define CIM_ServiceAccessPoint_Set_DetailedStatus_Predictive_Failure(SELF) \ + CIM_ServiceAccessPoint_Set_DetailedStatus(SELF, 3) + +/* "Non-Recoverable Error" */ +#define CIM_ServiceAccessPoint_Set_DetailedStatus_Non_Recoverable_Error(SELF) \ + CIM_ServiceAccessPoint_Set_DetailedStatus(SELF, 4) + +/* "Supporting Entity in Error" */ +#define CIM_ServiceAccessPoint_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \ + CIM_ServiceAccessPoint_Set_DetailedStatus(SELF, 5) + +/* "DMTF Reserved" */ +#define CIM_ServiceAccessPoint_Set_DetailedStatus_DMTF_Reserved(SELF) \ + CIM_ServiceAccessPoint_Set_DetailedStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ServiceAccessPoint_Set_DetailedStatus_Vendor_Reserved(SELF) \ + CIM_ServiceAccessPoint_Set_DetailedStatus(SELF, 0) + +KINLINE void CIM_ServiceAccessPoint_Set_OperatingStatus( + CIM_ServiceAccessPoint* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ServiceAccessPoint_Null_OperatingStatus( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_ServiceAccessPoint_Clr_OperatingStatus( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_ServiceAccessPoint_OperatingStatus_Unknown 0 + +/* "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) + +/* "Not Available" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Not_Available(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 1) + +/* "Servicing" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Servicing(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 2) + +/* "Starting" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Starting(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 3) + +/* "Stopping" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Stopping(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 4) + +/* "Stopped" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Stopped(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 5) + +/* "Aborted" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Aborted(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 6) + +/* "Dormant" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Dormant(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 7) + +/* "Completed" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Completed(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 8) + +/* "Migrating" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Migrating(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 9) + +/* "Emigrating" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Emigrating(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 10) + +/* "Immigrating" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Immigrating(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 11) + +/* "Snapshotting" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Snapshotting(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 12) + +/* "Shutting Down" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Shutting_Down(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 13) + +/* "In Test" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_In_Test(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 14) + +/* "Transitioning" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Transitioning(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 15) + +/* "In Service" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_In_Service(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 16) + +/* "DMTF Reserved" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_DMTF_Reserved(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ServiceAccessPoint_Set_OperatingStatus_Vendor_Reserved(SELF) \ + CIM_ServiceAccessPoint_Set_OperatingStatus(SELF, 0) + +KINLINE void CIM_ServiceAccessPoint_Set_CommunicationStatus( + CIM_ServiceAccessPoint* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ServiceAccessPoint_Null_CommunicationStatus( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_ServiceAccessPoint_Clr_CommunicationStatus( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_ServiceAccessPoint_CommunicationStatus_Unknown 0 + +/* "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) + +/* "Not Available" */ +#define CIM_ServiceAccessPoint_Set_CommunicationStatus_Not_Available(SELF) \ + CIM_ServiceAccessPoint_Set_CommunicationStatus(SELF, 1) + +/* "Communication OK" */ +#define CIM_ServiceAccessPoint_Set_CommunicationStatus_Communication_OK(SELF) \ + CIM_ServiceAccessPoint_Set_CommunicationStatus(SELF, 2) + +/* "Lost Communication" */ +#define CIM_ServiceAccessPoint_Set_CommunicationStatus_Lost_Communication(SELF) \ + CIM_ServiceAccessPoint_Set_CommunicationStatus(SELF, 3) + +/* "No Contact" */ +#define CIM_ServiceAccessPoint_Set_CommunicationStatus_No_Contact(SELF) \ + CIM_ServiceAccessPoint_Set_CommunicationStatus(SELF, 4) + +/* "DMTF Reserved" */ +#define CIM_ServiceAccessPoint_Set_CommunicationStatus_DMTF_Reserved(SELF) \ + CIM_ServiceAccessPoint_Set_CommunicationStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_ServiceAccessPoint_Set_CommunicationStatus_Vendor_Reserved(SELF) \ + CIM_ServiceAccessPoint_Set_CommunicationStatus(SELF, 0) + KINLINE void CIM_ServiceAccessPoint_Set_EnabledState( CIM_ServiceAccessPoint* self, CMPIUint16 x) @@ -1221,6 +1640,9 @@ } } +/* "Unknown" */ +#define CIM_ServiceAccessPoint_RequestedState_Unknown 0 + /* "Enabled" */ #define CIM_ServiceAccessPoint_RequestedState_Enabled 2 @@ -1260,6 +1682,10 @@ /* "Vendor Reserved" */ #define CIM_ServiceAccessPoint_RequestedState_Vendor_Reserved 32768 +/* "Unknown" */ +#define CIM_ServiceAccessPoint_Set_RequestedState_Unknown(SELF) \ + CIM_ServiceAccessPoint_Set_RequestedState(SELF, 0) + /* "Enabled" */ #define CIM_ServiceAccessPoint_Set_RequestedState_Enabled(SELF) \ CIM_ServiceAccessPoint_Set_RequestedState(SELF, 2) @@ -1430,6 +1856,253 @@ } } +KINLINE CMPIBoolean CIM_ServiceAccessPoint_Init_AvailableRequestedStates( + CIM_ServiceAccessPoint* 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_ServiceAccessPoint_InitNull_AvailableRequestedStates( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean CIM_ServiceAccessPoint_Set_AvailableRequestedStates( + CIM_ServiceAccessPoint* 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_ServiceAccessPoint_Get_AvailableRequestedStates( + CIM_ServiceAccessPoint* 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_ServiceAccessPoint_Null_AvailableRequestedStates( + CIM_ServiceAccessPoint* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void CIM_ServiceAccessPoint_Clr_AvailableRequestedStates( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + KUint16A_Clr(field); + } +} + +/* "Enabled" */ +#define CIM_ServiceAccessPoint_AvailableRequestedStates_Enabled 2 + +/* "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) + +/* "Disabled" */ +#define CIM_ServiceAccessPoint_Set_AvailableRequestedStates_Disabled(SELF, INDEX)\ + CIM_ServiceAccessPoint_Set_AvailableRequestedStates(SELF, INDEX, 3) + +/* "Shut Down" */ +#define CIM_ServiceAccessPoint_Set_AvailableRequestedStates_Shut_Down(SELF, INDEX)\ + CIM_ServiceAccessPoint_Set_AvailableRequestedStates(SELF, INDEX, 4) + +/* "Offline" */ +#define CIM_ServiceAccessPoint_Set_AvailableRequestedStates_Offline(SELF, INDEX)\ + CIM_ServiceAccessPoint_Set_AvailableRequestedStates(SELF, INDEX, 6) + +/* "Test" */ +#define CIM_ServiceAccessPoint_Set_AvailableRequestedStates_Test(SELF, INDEX)\ + CIM_ServiceAccessPoint_Set_AvailableRequestedStates(SELF, INDEX, 7) + +/* "Defer" */ +#define CIM_ServiceAccessPoint_Set_AvailableRequestedStates_Defer(SELF, INDEX)\ + CIM_ServiceAccessPoint_Set_AvailableRequestedStates(SELF, INDEX, 8) + +/* "Quiesce" */ +#define CIM_ServiceAccessPoint_Set_AvailableRequestedStates_Quiesce(SELF, INDEX)\ + CIM_ServiceAccessPoint_Set_AvailableRequestedStates(SELF, INDEX, 9) + +/* "Reboot" */ +#define CIM_ServiceAccessPoint_Set_AvailableRequestedStates_Reboot(SELF, INDEX)\ + CIM_ServiceAccessPoint_Set_AvailableRequestedStates(SELF, INDEX, 10) + +/* "Reset" */ +#define CIM_ServiceAccessPoint_Set_AvailableRequestedStates_Reset(SELF, INDEX)\ + CIM_ServiceAccessPoint_Set_AvailableRequestedStates(SELF, INDEX, 11) + +KINLINE void CIM_ServiceAccessPoint_Set_TransitioningToState( + CIM_ServiceAccessPoint* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->TransitioningToState; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_ServiceAccessPoint_Null_TransitioningToState( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->TransitioningToState; + KUint16_Null(field); + } +} + +KINLINE void CIM_ServiceAccessPoint_Clr_TransitioningToState( + CIM_ServiceAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->TransitioningToState; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Unknown 0 + +/* "Enabled" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Enabled 2 + +/* "Disabled" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Disabled 3 + +/* "Shut Down" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Shut_Down 4 + +/* "No Change" */ +#define CIM_ServiceAccessPoint_TransitioningToState_No_Change 5 + +/* "Offline" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Offline 6 + +/* "Test" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Test 7 + +/* "Defer" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Defer 8 + +/* "Quiesce" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Quiesce 9 + +/* "Reboot" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Reboot 10 + +/* "Reset" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Reset 11 + +/* "Not Applicable" */ +#define CIM_ServiceAccessPoint_TransitioningToState_Not_Applicable 12 + +/* "Unknown" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Unknown(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 0) + +/* "Enabled" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Enabled(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 2) + +/* "Disabled" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Disabled(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 3) + +/* "Shut Down" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Shut_Down(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 4) + +/* "No Change" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_No_Change(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 5) + +/* "Offline" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Offline(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 6) + +/* "Test" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Test(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 7) + +/* "Defer" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Defer(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 8) + +/* "Quiesce" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Quiesce(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 9) + +/* "Reboot" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Reboot(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 10) + +/* "Reset" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Reset(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 11) + +/* "Not Applicable" */ +#define CIM_ServiceAccessPoint_Set_TransitioningToState_Not_Applicable(SELF) \ + CIM_ServiceAccessPoint_Set_TransitioningToState(SELF, 12) + KINLINE void CIM_ServiceAccessPoint_SetString_SystemCreationClassName( CIM_ServiceAccessPoint* self, CMPIString* x) Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_System.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_System.h 2008-07-05 02:12:32 UTC (rev 722) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/CIM_System.h 2008-07-05 02:31:48 UTC (rev 723) @@ -204,6 +204,10 @@ 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; @@ -211,18 +215,22 @@ const KUint16 RequestedState; const KUint16 EnabledDefault; const KDateTime TimeOfLastStateChange; + const KUint16A AvailableRequestedStates; + const KUint16 TransitioningToState; /* CIM_System features */ const KString CreationClassName; const KString NameFormat; const KString PrimaryOwnerName; const KString PrimaryOwnerContact; const KStringA Roles; + const KStringA OtherIdentifyingInfo; + const KStringA IdentifyingDescriptions; } CIM_System; static const unsigned char __CIM_System_sig[] = { - 0x0a,0x43,0x49,0x4d,0x5f,0x53,0x79,0x73,0x74,0x65,0x6d,0x00,0x13,0x0c,0x07, + 0x0a,0x43,0x49,0x4d,0x5f,0x53,0x79,0x73,0x74,0x65,0x6d,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, @@ -231,18 +239,30 @@ 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,0x11,0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e,0x43, - 0x6c,0x61,0x73,0x73,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x0a,0x4e,0x61,0x6d,0x65, - 0x46,0x6f,0x72,0x6d,0x61,0x74,0x00,0x0c,0x10,0x50,0x72,0x69,0x6d,0x61,0x72, - 0x79,0x4f,0x77,0x6e,0x65,0x72,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x13,0x50,0x72, - 0x69,0x6d,0x61,0x72,0x79,0x4f,0x77,0x6e,0x65,0x72,0x43,0x6f,0x6e,0x74,0x61, - 0x63,0x74,0x00,0x8c,0x05,0x52,0x6f,0x6c,0x65,0x73,0x00, + 0x00,0x03,0x0d,0x50,0x72,0x69,0x6d,0x61,0x72,0x79,0x53,0x74,0x61,0x74,0x75, + 0x73,0x00,0x03,0x0e,0x44,0x65,0x74,0x61,0x69,0x6c,0x65,0x64,0x53,0x74,0x61, + 0x74,0x75,0x73,0x00,0x03,0x0f,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6e,0x67, + 0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x13,0x43,0x6f,0x6d,0x6d,0x75,0x6e, + 0x69,0x63,0x61,0x74,0x69,0x6f,0x6e,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03, + 0x0c,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64,0x53,0x74,0x61,0x74,0x65,0x00,0x0c, + 0x11,0x4f,0x74,0x68,0x65,0x72,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64,0x53,0x74, + 0x61,0x74,0x65,0x00,0x03,0x0e,0x52,0x65,0x71,0x75,0x65,0x73,0x74,0x65,0x64, + 0x53,0x74,0x61,0x74,0x65,0x00,0x03,0x0e,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64, + 0x44,0x65,0x66,0x61,0x75,0x6c,0x74,0x00,0x0d,0x15,0x54,0x69,0x6d,0x65,0x4f, + 0x66,0x4c,0x61,0x73,0x74,0x53,0x74,0x61,0x74,0x65,0x43,0x68,0x61,0x6e,0x67, + 0x65,0x00,0x83,0x18,0x41,0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x52,0x65, + 0x71,0x75,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x74,0x65,0x73,0x00,0x03, + 0x14,0x54,0x72,0x61,0x6e,0x73,0x69,0x74,0x69,0x6f,0x6e,0x69,0x6e,0x67,0x54, + 0x6f,0x53,0x74,0x61,0x74,0x65,0x00,0x4c,0x11,0x43,0x72,0x65,0x61,0x74,0x69, + 0x6f,0x6e,0x43,0x6c,0x61,0x73,0x73,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x0a,0x4e, + 0x61,0x6d,0x65,0x46,0x6f,0x72,0x6d,0x61,0x74,0x00,0x0c,0x10,0x50,0x72,0x69, + 0x6d,0x61,0x72,0x79,0x4f,0x77,0x6e,0x65,0x72,0x4e,0x61,0x6d,0x65,0x00,0x0c, + 0x13,0x50,0x72,0x69,0x6d,0x61,0x72,0x79,0x4f,0x77,0x6e,0x65,0x72,0x43,0x6f, + 0x6e,0x74,0x61,0x63,0x74,0x00,0x8c,0x05,0x52,0x6f,0x6c,0x65,0x73,0x00,0x8c, + 0x14,0x4f,0x74,0x68,0x65,0x72,0x49,0x64,0x65,0x6e,0x74,0x69,0x66,0x79,0x69, + 0x6e,0x67,0x49,0x6e,0x66,0x6f,0x00,0x8c,0x17,0x49,0x64,0x65,0x6e,0x74,0x69, + 0x66,0x79,0x69,0x6e,0x67,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f, + 0x6e,0x73,0x00, }; KINLINE void CIM_System_Init( @@ -939,6 +959,410 @@ #define CIM_System_Set_HealthState_DMTF_Reserved(SELF) \ CIM_System_Set_HealthState(SELF, 0) +KINLINE void CIM_System_Set_PrimaryStatus( + CIM_System* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_System_Null_PrimaryStatus( + CIM_System* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_System_Clr_PrimaryStatus( + CIM_System* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define CIM_System_PrimaryStatus_Unknown 0 + +/* "OK" */ +#define CIM_System_PrimaryStatus_OK 1 + +/* "Degraded" */ +#define CIM_System_PrimaryStatus_Degraded 2 + +/* "Error" */ +#define CIM_System_PrimaryStatus_Error 3 + +/* "DMTF Reserved" */ +#define CIM_System_PrimaryStatus_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define CIM_System_PrimaryStatus_Vendor_Reserved 0 + +/* "Unknown" */ +#define CIM_System_Set_PrimaryStatus_Unknown(SELF) \ + CIM_System_Set_PrimaryStatus(SELF, 0) + +/* "OK" */ +#define CIM_System_Set_PrimaryStatus_OK(SELF) \ + CIM_System_Set_PrimaryStatus(SELF, 1) + +/* "Degraded" */ +#define CIM_System_Set_PrimaryStatus_Degraded(SELF) \ + CIM_System_Set_PrimaryStatus(SELF, 2) + +/* "Error" */ +#define CIM_System_Set_PrimaryStatus_Error(SELF) \ + CIM_System_Set_PrimaryStatus(SELF, 3) + +/* "DMTF Reserved" */ +#define CIM_System_Set_PrimaryStatus_DMTF_Reserved(SELF) \ + CIM_System_Set_PrimaryStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_System_Set_PrimaryStatus_Vendor_Reserved(SELF) \ + CIM_System_Set_PrimaryStatus(SELF, 0) + +KINLINE void CIM_System_Set_DetailedStatus( + CIM_System* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Set(field, x); + } +} + +KINLINE void CIM_System_Null_DetailedStatus( + CIM_System* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Null(field); + } +} + +KINLINE void CIM_System_Clr_DetailedStatus( + CIM_System* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Clr(field); + } +} + +/* "Not Available" */ +#define CIM_System_DetailedStatus_Not_Available 0 + +/* "No Additional Information" */ +#define CIM_System_DetailedStatus_No_Additional_Information 1 + +/* "Stressed" */ +#define CIM_System_DetailedStatus_Stressed 2 + +/* "Predictive Failure" */ +#define CIM_System_DetailedStatus_Predictive_Failure 3 + +/* "Non-Recoverable Error" */ +#define CIM_System_DetailedStatus_Non_Recoverable_Error 4 + +/* "Supporting Entity in Error" */ +#define CIM_System_DetailedStatus_Supporting_Entity_in_Error 5 + +/* "DMTF Reserved" */ +#define CIM_System_DetailedStatus_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define CIM_System_DetailedStatus_Vendor_Reserved 0 + +/* "Not Available" */ +#define CIM_System_Set_DetailedStatus_Not_Available(SELF) \ + CIM_System_Set_DetailedStatus(SELF, 0) + +/* "No Additional Information" */ +#define CIM_System_Set_DetailedStatus_No_Additional_Information(SELF) \ + CIM_System_Set_DetailedStatus(SELF, 1) + +/* "Stressed" */ +#define CIM_System_Set_DetailedStatus_Stressed(SELF) \ + CIM_System_Set_DetailedStatus(SELF, 2) + +/* "Predictive Failure" */ +#define CIM_System_Set_DetailedStatus_Predictive_Failure(SELF) \ + CIM_System_Set_DetailedStatus(SELF, 3) + +/* "Non-Recoverable Error" */ +#define CIM_System_Set_DetailedStatus_Non_Recoverable_Error(SELF) \ + CIM_System_Set_DetailedStatus(SELF, 4) + +/* "Supporting Entity in Error" */ +#define CIM_System_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \ + CIM_System_Set_DetailedStatus(SELF, 5) + +/* "DMTF Reserved" */ +#define CIM_System_Set_DetailedStatus_DMTF_Reserved(SELF) \ + CIM_System_Set_DetailedStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define CIM_System_Set_DetailedStatus_Vendor_Reserved(SELF) \ + CIM_System_Set_DetailedStatus(SELF, 0) + +KI... [truncated message content] |
From: <mik...@us...> - 2008-07-05 02:12:23
|
Revision: 722 http://omc.svn.sourceforge.net/omc/?rev=722&view=rev Author: mike-brasher Date: 2008-07-04 19:12:32 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Added KONKRET_REGISTRATION macros. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/mof/EthernetPort.registration 2008-07-05 02:12:32 UTC (rev 722) @@ -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_DeviceSAPImplementationEthernetPort root/cimv2 DeviceSAPImplementation linux_ethportprovider instance association +Linux_ElementCapabilitiesLANEndpoint root/cimv2 ElementCapabilitiesLANEndpoint linux_ethportprovider instance association +Linux_ElementCapabilitiesEthernetPort root/cimv2 ElementCapabilities linux_ethportprovider instance association +Linux_ElementConformsToProfileEthernetPort root/cimv2 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/cimv2 ReferencedProfile linux_ethportprovider instance association +Linux_RegisteredProfileEthernetPort root/cimv2 RegisteredProfile linux_ethportprovider instance method 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 Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -219,3 +219,8 @@ DeviceSAPImplementation, _cb, DeviceSAPImplementationInitialize()) + +KONKRET_REGISTRATION( + "Linux_DeviceSAPImplementationEthernetPort", + "DeviceSAPImplementation", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpointProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesLANEndpointProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -1,5 +1,6 @@ #include <konkret/konkret.h> #include "ElementCapabilitiesLANEndpoint.h" +#include "Resource.h" static const CMPIBroker* _cb; @@ -188,3 +189,7 @@ _cb, ElementCapabilitiesLANEndpointInitialize()) +KONKRET_REGISTRATION( + "Linux_ElementCapabilitiesLANEndpoint", + "ElementCapabilitiesLANEndpoint", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -1,5 +1,6 @@ #include <konkret/konkret.h> #include "ElementCapabilities.h" +#include "Resource.h" static const CMPIBroker* _cb; @@ -188,3 +189,7 @@ _cb, ElementCapabilitiesInitialize()) +KONKRET_REGISTRATION( + "Linux_ElementCapabilitiesEthernetPort", + "ElementCapabilities", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -191,3 +191,7 @@ _cb, ElementConformsToProfileInitialize()) +KONKRET_REGISTRATION( + "Linux_ElementConformsToProfileEthernetPort", + "ElementConformsToProfile", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesLANEndpointProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -1,5 +1,6 @@ #include <konkret/konkret.h> #include "EnabledLogicalElementCapabilitiesLANEndpoint.h" +#include "Resource.h" static const CMPIBroker* _cb = NULL; @@ -101,7 +102,11 @@ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); } -CMInstanceMIStub(EnabledLogicalElementCapabilitiesLANEndpoint, EnabledLogicalElementCapabilitiesLANEndpoint, _cb, EnabledLogicalElementCapabilitiesLANEndpointInitialize()) +CMInstanceMIStub( + EnabledLogicalElementCapabilitiesLANEndpoint, + EnabledLogicalElementCapabilitiesLANEndpoint, + _cb, + EnabledLogicalElementCapabilitiesLANEndpointInitialize()) static CMPIStatus EnabledLogicalElementCapabilitiesLANEndpointMethodCleanup( CMPIMethodMI* mi, @@ -130,3 +135,7 @@ _cb, EnabledLogicalElementCapabilitiesLANEndpointInitialize()) +KONKRET_REGISTRATION( + "Linux_EnabledLogicalElementCapabilitiesLANEndpoint", + "EnabledLogicalElementCapabilitiesLANEndpoint", + "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EnabledLogicalElementCapabilitiesProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -96,7 +96,11 @@ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); } -CMInstanceMIStub(EnabledLogicalElementCapabilities, EnabledLogicalElementCapabilities, _cb, EnabledLogicalElementCapabilitiesInitialize()) +CMInstanceMIStub( + EnabledLogicalElementCapabilities, + EnabledLogicalElementCapabilities, + _cb, + EnabledLogicalElementCapabilitiesInitialize()) static CMPIStatus EnabledLogicalElementCapabilitiesMethodCleanup( CMPIMethodMI* mi, @@ -125,3 +129,7 @@ _cb, EnabledLogicalElementCapabilitiesInitialize()) +KONKRET_REGISTRATION( + "Linux_EnabledLogicalElementCapabilitiesEthernetPort", + "EnabledLogicalElementCapabilities", + "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -168,7 +168,11 @@ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); } -CMInstanceMIStub(EthernetPort, EthernetPort, _cb, EthernetPortInitialize()) +CMInstanceMIStub( + EthernetPort, + EthernetPort, + _cb, + EthernetPortInitialize()) static CMPIStatus EthernetPortMethodCleanup( CMPIMethodMI* mi, @@ -309,3 +313,7 @@ return result; } +KONKRET_REGISTRATION( + "Linux_EthernetPort", + "EthernetPort", + "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/HostedAccessPointProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -184,3 +184,7 @@ _cb, HostedAccessPointInitialize()) +KONKRET_REGISTRATION( + "Linux_HostedAccessPointEthernetPort", + "HostedAccessPoint", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -190,3 +190,8 @@ KSetStatus(status, ERR_NOT_SUPPORTED); return result; } + +KONKRET_REGISTRATION( + "Linux_LANEndpoint", + "LANEndpoint", + "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ReferencedProfileProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -196,3 +196,7 @@ _cb, ReferencedProfileInitialize()) +KONKRET_REGISTRATION( + "Linux_ReferencedProfileEthernetPort", + "ReferencedProfile", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/RegisteredProfileProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -97,7 +97,11 @@ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); } -CMInstanceMIStub(RegisteredProfile, RegisteredProfile, _cb, RegisteredProfileInitialize()) +CMInstanceMIStub( + RegisteredProfile, + RegisteredProfile, + _cb, + RegisteredProfileInitialize()) static CMPIStatus RegisteredProfileMethodCleanup( CMPIMethodMI* mi, @@ -126,3 +130,7 @@ _cb, RegisteredProfileInitialize()) +KONKRET_REGISTRATION( + "Linux_RegisteredProfileEthernetPort", + "RegisteredProfile", + "instance method") Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h 2008-07-05 02:12:32 UTC (rev 722) @@ -1,8 +1,13 @@ -#ifndef _EthernetPortResoure_h -#define _EthernetPortResoure_h +#ifndef _Resource_h +#define _Resource_h +#include <konkret/konkret.h> #include "common.h" +#ifndef KONKRET_REGISTRATION +# define KONKRET_REGISTRATION(X,Y,Z) /* empty */ +#endif + struct EthernetPortResource { /* Pointer to next structure */ @@ -63,4 +68,4 @@ HIDDEN extern void PrintEtherPortResources(const struct EthernetPortResource* info); -#endif /* _EthernetPortResoure_h */ +#endif /* _Resource_h */ Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c 2008-07-05 01:55:41 UTC (rev 721) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/SystemDeviceProvider.c 2008-07-05 02:12:32 UTC (rev 722) @@ -185,3 +185,7 @@ _cb, SystemDeviceInitialize()) +KONKRET_REGISTRATION( + "Linux_SystemDeviceEthernetPort", + "SystemDevice", + "instance association") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-05 01:55:31
|
Revision: 721 http://omc.svn.sourceforge.net/omc/?rev=721&view=rev Author: mike-brasher Date: 2008-07-04 18:55:41 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Added KONKRET_REGISTRATION() macro usage to automatically generate register file. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedServiceProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 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-04 23:09:34 UTC (rev 720) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-05 01:55:41 UTC (rev 721) @@ -1,4 +1,3 @@ -# Classname Namespace ProviderName ProviderModule ProviderTypes ... 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 Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c 2008-07-04 23:09:34 UTC (rev 720) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c 2008-07-05 01:55:41 UTC (rev 721) @@ -183,3 +183,7 @@ return result; } +KONKRET_REGISTRATION( + "Linux_SSHCapabilities", + "Capabilities", + "instance method") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-04 23:09:34 UTC (rev 720) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-05 01:55:41 UTC (rev 721) @@ -196,3 +196,7 @@ _cb, ElementCapabilitiesInitialize()) +KONKRET_REGISTRATION( + "Linux_SSHElementCapabilities", + "ElementCapabilities", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c 2008-07-04 23:09:34 UTC (rev 720) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c 2008-07-05 01:55:41 UTC (rev 721) @@ -188,3 +188,7 @@ _cb, HostedAccessPointInitialize()) +KONKRET_REGISTRATION( + "Linux_SSHHostedAccessPoint", + "HostedAccessPoint", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedServiceProvider.c 2008-07-04 23:09:34 UTC (rev 720) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedServiceProvider.c 2008-07-05 01:55:41 UTC (rev 721) @@ -189,3 +189,7 @@ _cb, HostedServiceInitialize()) +KONKRET_REGISTRATION( + "Linux_SSHHostedService", + "HostedService", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-04 23:09:34 UTC (rev 720) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-05 01:55:41 UTC (rev 721) @@ -251,3 +251,8 @@ KSetStatus(status, ERR_NOT_SUPPORTED); return result; } + +KONKRET_REGISTRATION( + "Linux_SSHProtocolEndpoint", + "ProtocolEndpoint", + "instance method") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-04 23:09:34 UTC (rev 720) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-05 01:55:41 UTC (rev 721) @@ -252,3 +252,8 @@ KSetStatus(status, ERR_NOT_SUPPORTED); return result; } + +KONKRET_REGISTRATION( + "Linux_SSHProtocolService", + "ProtocolService", + "instance method") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c 2008-07-04 23:09:34 UTC (rev 720) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c 2008-07-05 01:55:41 UTC (rev 721) @@ -193,3 +193,7 @@ _cb, ProvidesEndpointInitialize()) +KONKRET_REGISTRATION( + "Linux_SSHProvidesEndpoint", + "ProvidesEndpoint", + "instance association") Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-04 23:09:34 UTC (rev 720) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-05 01:55:41 UTC (rev 721) @@ -1,9 +1,14 @@ #ifndef _Resource_h #define _Resource_h +#include <konkret/konkret.h> #include <cmpiutil/base.h> #include <cmpiutil/exec.h> +#ifndef KONKRET_REGISTRATION +# define KONKRET_REGISTRATION(X,Y,Z) /* empty */ +#endif + #define HIDDEN __attribute__((visibility("hidden"))) /* Returns 0 if sshd service is running */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-04 23:09:25
|
Revision: 720 http://omc.svn.sourceforge.net/omc/?rev=720&view=rev Author: mike-brasher Date: 2008-07-04 16:09:34 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Implemented Linux_SSHHostedAccessPoint Provider. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPoint.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 22:55:10 UTC (rev 719) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 23:09:34 UTC (rev 720) @@ -156,11 +156,11 @@ // ================================================================== -// Linux_SSHHostedSSHProtocolEndpoint : CIM_HostedAccessPoint +// Linux_SSHHostedAccessPoint : CIM_HostedAccessPoint // ================================================================== [Association, Version ( "0.0.1" ), Description ( "Linux instrumentation of SMASH's ssh service")] -class Linux_SSHHostedSSHProtocolEndpoint : CIM_HostedAccessPoint { +class Linux_SSHHostedAccessPoint : CIM_HostedAccessPoint { [Override ( "Antecedent" ), Key, Description ( "The hosting Computer System")] 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-04 22:55:10 UTC (rev 719) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-04 23:09:34 UTC (rev 720) @@ -5,3 +5,4 @@ Linux_SSHProtocolEndpoint root/cimv2 ProtocolEndpoint 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 Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPoint.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPoint.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPoint.h 2008-07-04 23:09:34 UTC (rev 720) @@ -0,0 +1,388 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_HostedAccessPoint_h +#define _konkrete_HostedAccessPoint_h + +#include <konkret/konkret.h> +#include "ComputerSystem.h" +#include "ProtocolEndpoint.h" + +/* +**============================================================================== +** +** struct HostedAccessPointRef +** +**============================================================================== +*/ + +/* classname=Linux_SSHHostedAccessPoint */ +typedef struct _HostedAccessPointRef +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* ComputerSystem */ + const KRef Dependent; /* ProtocolEndpoint */ + /* CIM_HostedDependency features */ + /* CIM_HostedAccessPoint features */ + /* Linux_SSHHostedAccessPoint features */ +} +HostedAccessPointRef; + +static const unsigned char __HostedAccessPointRef_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x48,0x6f,0x73,0x74,0x65, + 0x64,0x41,0x63,0x63,0x65,0x73,0x73,0x50,0x6f,0x69,0x6e,0x74,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 HostedAccessPointRef_Init( + HostedAccessPointRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __HostedAccessPointRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __ComputerSystem_sig; + ((KRef*)&self->Dependent)->__sig = __ProtocolEndpoint_sig; +} + +KINLINE CMPIStatus HostedAccessPointRef_InitFromInstance( + HostedAccessPointRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + HostedAccessPointRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus HostedAccessPointRef_InitFromObjectPath( + HostedAccessPointRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + HostedAccessPointRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void HostedAccessPointRef_Print( + const HostedAccessPointRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* HostedAccessPointRef_ToInstance( + const HostedAccessPointRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* HostedAccessPointRef_ToObjectPath( + const HostedAccessPointRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* HostedAccessPointRef_NameSpace( + HostedAccessPointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void HostedAccessPointRef_SetObjectPath_Antecedent( + HostedAccessPointRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus HostedAccessPointRef_Set_Antecedent( + HostedAccessPointRef* self, + const ComputerSystemRef* 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 HostedAccessPointRef_Null_Antecedent( + HostedAccessPointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void HostedAccessPointRef_Clr_Antecedent( + HostedAccessPointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void HostedAccessPointRef_SetObjectPath_Dependent( + HostedAccessPointRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus HostedAccessPointRef_Set_Dependent( + HostedAccessPointRef* self, + const ProtocolEndpointRef* 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 HostedAccessPointRef_Null_Dependent( + HostedAccessPointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void HostedAccessPointRef_Clr_Dependent( + HostedAccessPointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct HostedAccessPoint +** +**============================================================================== +*/ + +/* classname=Linux_SSHHostedAccessPoint */ +typedef struct _HostedAccessPoint +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* ComputerSystem */ + const KRef Dependent; /* ProtocolEndpoint */ + /* CIM_HostedDependency features */ + /* CIM_HostedAccessPoint features */ + /* Linux_SSHHostedAccessPoint features */ +} +HostedAccessPoint; + +static const unsigned char __HostedAccessPoint_sig[] = +{ + 0x1a,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x48,0x6f,0x73,0x74,0x65, + 0x64,0x41,0x63,0x63,0x65,0x73,0x73,0x50,0x6f,0x69,0x6e,0x74,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 HostedAccessPoint_Init( + HostedAccessPoint* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __HostedAccessPoint_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __ComputerSystem_sig; + ((KRef*)&self->Dependent)->__sig = __ProtocolEndpoint_sig; +} + +KINLINE CMPIStatus HostedAccessPoint_InitFromInstance( + HostedAccessPoint* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + HostedAccessPoint_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus HostedAccessPoint_InitFromObjectPath( + HostedAccessPoint* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + HostedAccessPoint_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void HostedAccessPoint_Print( + const HostedAccessPoint* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* HostedAccessPoint_ToInstance( + const HostedAccessPoint* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* HostedAccessPoint_ToObjectPath( + const HostedAccessPoint* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* HostedAccessPoint_NameSpace( + HostedAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void HostedAccessPoint_SetObjectPath_Antecedent( + HostedAccessPoint* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus HostedAccessPoint_Set_Antecedent( + HostedAccessPoint* self, + const ComputerSystemRef* 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 HostedAccessPoint_Null_Antecedent( + HostedAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void HostedAccessPoint_Clr_Antecedent( + HostedAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void HostedAccessPoint_SetObjectPath_Dependent( + HostedAccessPoint* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus HostedAccessPoint_Set_Dependent( + HostedAccessPoint* self, + const ProtocolEndpointRef* 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 HostedAccessPoint_Null_Dependent( + HostedAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void HostedAccessPoint_Clr_Dependent( + HostedAccessPoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** HostedAccessPoint methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus HostedAccessPoint_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + HostedAccessPointRef self; + + KReturnIf(HostedAccessPointRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_HostedAccessPoint_h */ Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedAccessPointProvider.c 2008-07-04 23:09:34 UTC (rev 720) @@ -0,0 +1,190 @@ +#include <konkret/konkret.h> +#include "HostedAccessPoint.h" +#include "Resource.h" + +static const CMPIBroker* _cb; + +static void HostedAccessPointInitialize() +{ +} + +static CMPIStatus HostedAccessPointCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus HostedAccessPointEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus HostedAccessPointEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + ComputerSystemRef a; /* Antecedent */ + + ComputerSystemRef_Init(&a, _cb, KNameSpace(cop)); + ComputerSystemRef_Set_CreationClassName(&a, "Linux_ComputerSystem"); + ComputerSystemRef_Set_Name(&a, SysName().str); + + return KDefaultEnumerateInstancesOneToAll( + _cb, + cc, + cr, + cop, + ComputerSystemRef_ToObjectPath(&a, NULL), + "Antecedent", + CMNewObjectPath(_cb, KNameSpace(cop), "Linux_SSHProtocolEndpoint",NULL), + "Dependent"); +} + +static CMPIStatus HostedAccessPointGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus HostedAccessPointCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus HostedAccessPointModifyInstance( + 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 HostedAccessPointDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus HostedAccessPointExecQuery( + 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 HostedAccessPointAssociationCleanup( + CMPIAssociationMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus HostedAccessPointAssociators( + 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_SSHHostedAccessPoint"; + + return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, + resultClass, role, resultRole, properties); +} + +static CMPIStatus HostedAccessPointAssociatorNames( + 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_SSHHostedAccessPoint"; + + return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, + assocClass, resultClass, role, resultRole); +} + +static CMPIStatus HostedAccessPointReferences( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_SSHHostedAccessPoint"; + + return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, + role, properties); +} + +static CMPIStatus HostedAccessPointReferenceNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role) +{ + if (!assocClass) + assocClass = "Linux_SSHHostedAccessPoint"; + + return KDefaultReferenceNames( + _cb, mi, cc, cr, cop, assocClass, role); +} + +CMInstanceMIStub( + HostedAccessPoint, + HostedAccessPoint, + _cb, + HostedAccessPointInitialize()) + +CMAssociationMIStub( + HostedAccessPoint, + HostedAccessPoint, + _cb, + HostedAccessPointInitialize()) + Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 22:55:10 UTC (rev 719) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 23:09:34 UTC (rev 720) @@ -13,7 +13,8 @@ ElementCapabilitiesProvider.c \ ProtocolEndpointProvider.c \ ProvidesEndpointProvider.c \ - HostedServiceProvider.c + HostedServiceProvider.c \ + HostedAccessPointProvider.c liblinux_sshserviceprovider_la_LDFLAGS = \ -lkonkret \ Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 22:55:10 UTC (rev 719) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 23:09:34 UTC (rev 720) @@ -4,4 +4,5 @@ Linux_SSHProtocolEndpoint=ProtocolEndpoint! Linux_SSHProvidesEndpoint=ProvidesEndpoint! Linux_SSHHostedService=HostedService! +Linux_SSHHostedAccessPoint=HostedAccessPoint! Linux_ComputerSystem=ComputerSystem This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-04 22:55:07
|
Revision: 719 http://omc.svn.sourceforge.net/omc/?rev=719&view=rev Author: mike-brasher Date: 2008-07-04 15:55:10 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Implemented Linux_SSHHostedService Provider. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ComputerSystem.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedService.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/HostedServiceProvider.c Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 22:23:46 UTC (rev 718) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 22:55:10 UTC (rev 719) @@ -67,11 +67,11 @@ // ================================================================== -// Linux_HostedSSHService : CIM_HostedService +// Linux_SSHHostedService : CIM_HostedService // ================================================================== [Association, Version ( "0.0.1" ), Description ( "Linux instrumentation of SMASH's ssh service")] -class Linux_HostedSSHService : CIM_HostedService { +class Linux_SSHHostedService : CIM_HostedService { [Override ( "Antecedent" ), Key, Description ( "The computer system that hosts the SSHProtocolService")] @@ -420,9 +420,3 @@ "Protocol Endpoint (for the address).")] Linux_TCPProtocolEndpoint REF Dependent; }; - - - -// ================================================================== -// end of file -// ================================================================== 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-04 22:23:46 UTC (rev 718) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-04 22:55:10 UTC (rev 719) @@ -4,3 +4,4 @@ Linux_SSHElementCapabilities root/cimv2 ElementCapabilities linux_sshserviceprovider instance association Linux_SSHProtocolEndpoint root/cimv2 ProtocolEndpoint linux_sshserviceprovider instance method Linux_SSHProvidesEndpoint root/cimv2 ProvidesEndpoint linux_sshserviceprovider instance association +Linux_SSHHostedService root/cimv2 HostedService linux_sshserviceprovider instance association Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ComputerSystem.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ComputerSystem.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ComputerSystem.h 2008-07-04 22:55:10 UTC (rev 719) @@ -0,0 +1,3389 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_ComputerSystem_h +#define _konkrete_ComputerSystem_h + +#include <konkret/konkret.h> +#include "CIM_ConcreteJob.h" + +/* +**============================================================================== +** +** struct ComputerSystemRef +** +**============================================================================== +*/ + +/* classname=Linux_ComputerSystem */ +typedef struct _ComputerSystemRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_ManagedSystemElement features */ + const KString Name; + /* CIM_LogicalElement features */ + /* CIM_EnabledLogicalElement features */ + /* CIM_System features */ + const KString CreationClassName; + /* CIM_ComputerSystem features */ + /* Linux_ComputerSystem features */ +} +ComputerSystemRef; + +static const unsigned char __ComputerSystemRef_sig[] = +{ + 0x14,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x43,0x6f,0x6d,0x70,0x75,0x74,0x65,0x72, + 0x53,0x79,0x73,0x74,0x65,0x6d,0x00,0x02,0x4c,0x04,0x4e,0x61,0x6d,0x65,0x00, + 0x4c,0x11,0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c,0x61,0x73,0x73, + 0x4e,0x61,0x6d,0x65,0x00, +}; + +KINLINE void ComputerSystemRef_Init( + ComputerSystemRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ComputerSystemRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus ComputerSystemRef_InitFromInstance( + ComputerSystemRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ComputerSystemRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ComputerSystemRef_InitFromObjectPath( + ComputerSystemRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ComputerSystemRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ComputerSystemRef_Print( + const ComputerSystemRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* ComputerSystemRef_ToInstance( + const ComputerSystemRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ComputerSystemRef_ToObjectPath( + const ComputerSystemRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ComputerSystemRef_NameSpace( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ComputerSystemRef_SetString_Name( + ComputerSystemRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystemRef_Set_Name( + ComputerSystemRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ComputerSystemRef_Null_Name( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Null(field); + } +} + +KINLINE void ComputerSystemRef_Clr_Name( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Clr(field); + } +} + +KINLINE void ComputerSystemRef_SetString_CreationClassName( + ComputerSystemRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystemRef_Set_CreationClassName( + ComputerSystemRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ComputerSystemRef_Null_CreationClassName( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Null(field); + } +} + +KINLINE void ComputerSystemRef_Clr_CreationClassName( + ComputerSystemRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct ComputerSystem +** +**============================================================================== +*/ + +/* classname=Linux_ComputerSystem */ +typedef struct _ComputerSystem +{ + KBase __base; + /* CIM_ManagedElement features */ + const KString Caption; + const KString Description; + const KString ElementName; + /* CIM_ManagedSystemElement features */ + const KDateTime InstallDate; + const KString Name; + const KUint16A OperationalStatus; + const KStringA StatusDescriptions; + const KString Status; + const KUint16 HealthState; + const KUint16 PrimaryStatus; + const KUint16 DetailedStatus; + const KUint16 OperatingStatus; + const KUint16 CommunicationStatus; + /* CIM_LogicalElement features */ + /* CIM_EnabledLogicalElement features */ + const KUint16 EnabledState; + const KString OtherEnabledState; + const KUint16 RequestedState; + const KUint16 EnabledDefault; + const KDateTime TimeOfLastStateChange; + const KUint16A AvailableRequestedStates; + const KUint16 TransitioningToState; + /* CIM_System features */ + const KString CreationClassName; + const KString NameFormat; + const KString PrimaryOwnerName; + const KString PrimaryOwnerContact; + const KStringA Roles; + const KStringA OtherIdentifyingInfo; + const KStringA IdentifyingDescriptions; + /* CIM_ComputerSystem features */ + const KUint16A Dedicated; + const KStringA OtherDedicatedDescriptions; + const KUint16 ResetCapability; + const KUint16A PowerManagementCapabilities; + /* Linux_ComputerSystem features */ + const KString LPARID; +} +ComputerSystem; + +static const unsigned char __ComputerSystem_sig[] = +{ + 0x14,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x43,0x6f,0x6d,0x70,0x75,0x74,0x65,0x72, + 0x53,0x79,0x73,0x74,0x65,0x6d,0x00,0x20,0x0c,0x07,0x43,0x61,0x70,0x74,0x69, + 0x6f,0x6e,0x00,0x0c,0x0b,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f, + 0x6e,0x00,0x0c,0x0b,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65, + 0x00,0x0d,0x0b,0x49,0x6e,0x73,0x74,0x61,0x6c,0x6c,0x44,0x61,0x74,0x65,0x00, + 0x4c,0x04,0x4e,0x61,0x6d,0x65,0x00,0x83,0x11,0x4f,0x70,0x65,0x72,0x61,0x74, + 0x69,0x6f,0x6e,0x61,0x6c,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x8c,0x12,0x53, + 0x74,0x61,0x74,0x75,0x73,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f, + 0x6e,0x73,0x00,0x0c,0x06,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0b,0x48, + 0x65,0x61,0x6c,0x74,0x68,0x53,0x74,0x61,0x74,0x65,0x00,0x03,0x0d,0x50,0x72, + 0x69,0x6d,0x61,0x72,0x79,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0e,0x44, + 0x65,0x74,0x61,0x69,0x6c,0x65,0x64,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03, + 0x0f,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6e,0x67,0x53,0x74,0x61,0x74,0x75, + 0x73,0x00,0x03,0x13,0x43,0x6f,0x6d,0x6d,0x75,0x6e,0x69,0x63,0x61,0x74,0x69, + 0x6f,0x6e,0x53,0x74,0x61,0x74,0x75,0x73,0x00,0x03,0x0c,0x45,0x6e,0x61,0x62, + 0x6c,0x65,0x64,0x53,0x74,0x61,0x74,0x65,0x00,0x0c,0x11,0x4f,0x74,0x68,0x65, + 0x72,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64,0x53,0x74,0x61,0x74,0x65,0x00,0x03, + 0x0e,0x52,0x65,0x71,0x75,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x74,0x65, + 0x00,0x03,0x0e,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64,0x44,0x65,0x66,0x61,0x75, + 0x6c,0x74,0x00,0x0d,0x15,0x54,0x69,0x6d,0x65,0x4f,0x66,0x4c,0x61,0x73,0x74, + 0x53,0x74,0x61,0x74,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x00,0x83,0x18,0x41, + 0x76,0x61,0x69,0x6c,0x61,0x62,0x6c,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74, + 0x65,0x64,0x53,0x74,0x61,0x74,0x65,0x73,0x00,0x03,0x14,0x54,0x72,0x61,0x6e, + 0x73,0x69,0x74,0x69,0x6f,0x6e,0x69,0x6e,0x67,0x54,0x6f,0x53,0x74,0x61,0x74, + 0x65,0x00,0x4c,0x11,0x43,0x72,0x65,0x61,0x74,0x69,0x6f,0x6e,0x43,0x6c,0x61, + 0x73,0x73,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x0a,0x4e,0x61,0x6d,0x65,0x46,0x6f, + 0x72,0x6d,0x61,0x74,0x00,0x0c,0x10,0x50,0x72,0x69,0x6d,0x61,0x72,0x79,0x4f, + 0x77,0x6e,0x65,0x72,0x4e,0x61,0x6d,0x65,0x00,0x0c,0x13,0x50,0x72,0x69,0x6d, + 0x61,0x72,0x79,0x4f,0x77,0x6e,0x65,0x72,0x43,0x6f,0x6e,0x74,0x61,0x63,0x74, + 0x00,0x8c,0x05,0x52,0x6f,0x6c,0x65,0x73,0x00,0x8c,0x14,0x4f,0x74,0x68,0x65, + 0x72,0x49,0x64,0x65,0x6e,0x74,0x69,0x66,0x79,0x69,0x6e,0x67,0x49,0x6e,0x66, + 0x6f,0x00,0x8c,0x17,0x49,0x64,0x65,0x6e,0x74,0x69,0x66,0x79,0x69,0x6e,0x67, + 0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x83,0x09, + 0x44,0x65,0x64,0x69,0x63,0x61,0x74,0x65,0x64,0x00,0x8c,0x1a,0x4f,0x74,0x68, + 0x65,0x72,0x44,0x65,0x64,0x69,0x63,0x61,0x74,0x65,0x64,0x44,0x65,0x73,0x63, + 0x72,0x69,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x03,0x0f,0x52,0x65,0x73,0x65, + 0x74,0x43,0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x79,0x00,0x83,0x1b,0x50, + 0x6f,0x77,0x65,0x72,0x4d,0x61,0x6e,0x61,0x67,0x65,0x6d,0x65,0x6e,0x74,0x43, + 0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x69,0x65,0x73,0x00,0x0c,0x06,0x4c, + 0x50,0x41,0x52,0x49,0x44,0x00, +}; + +KINLINE void ComputerSystem_Init( + ComputerSystem* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ComputerSystem_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus ComputerSystem_InitFromInstance( + ComputerSystem* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ComputerSystem_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ComputerSystem_InitFromObjectPath( + ComputerSystem* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ComputerSystem_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ComputerSystem_Print( + const ComputerSystem* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* ComputerSystem_ToInstance( + const ComputerSystem* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ComputerSystem_ToObjectPath( + const ComputerSystem* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ComputerSystem_NameSpace( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ComputerSystem_SetString_Caption( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_Caption( + ComputerSystem* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ComputerSystem_Null_Caption( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_Caption( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void ComputerSystem_SetString_Description( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_Description( + ComputerSystem* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ComputerSystem_Null_Description( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_Description( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void ComputerSystem_SetString_ElementName( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_ElementName( + ComputerSystem* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ComputerSystem_Null_ElementName( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_ElementName( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void ComputerSystem_Set_InstallDate( + ComputerSystem* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_InstallDate( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_InstallDate( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->InstallDate; + KDateTime_Clr(field); + } +} + +KINLINE void ComputerSystem_SetString_Name( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_Name( + ComputerSystem* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ComputerSystem_Null_Name( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_Name( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean ComputerSystem_Init_OperationalStatus( + ComputerSystem* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void ComputerSystem_InitNull_OperationalStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean ComputerSystem_Set_OperationalStatus( + ComputerSystem* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 ComputerSystem_Get_OperationalStatus( + ComputerSystem* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean ComputerSystem_Null_OperationalStatus( + ComputerSystem* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void ComputerSystem_Clr_OperationalStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->OperationalStatus; + KUint16A_Clr(field); + } +} + +/* "Unknown" */ +#define ComputerSystem_OperationalStatus_Unknown 0 + +/* "Other" */ +#define ComputerSystem_OperationalStatus_Other 1 + +/* "OK" */ +#define ComputerSystem_OperationalStatus_OK 2 + +/* "Degraded" */ +#define ComputerSystem_OperationalStatus_Degraded 3 + +/* "Stressed" */ +#define ComputerSystem_OperationalStatus_Stressed 4 + +/* "Predictive Failure" */ +#define ComputerSystem_OperationalStatus_Predictive_Failure 5 + +/* "Error" */ +#define ComputerSystem_OperationalStatus_Error 6 + +/* "Non-Recoverable Error" */ +#define ComputerSystem_OperationalStatus_Non_Recoverable_Error 7 + +/* "Starting" */ +#define ComputerSystem_OperationalStatus_Starting 8 + +/* "Stopping" */ +#define ComputerSystem_OperationalStatus_Stopping 9 + +/* "Stopped" */ +#define ComputerSystem_OperationalStatus_Stopped 10 + +/* "In Service" */ +#define ComputerSystem_OperationalStatus_In_Service 11 + +/* "No Contact" */ +#define ComputerSystem_OperationalStatus_No_Contact 12 + +/* "Lost Communication" */ +#define ComputerSystem_OperationalStatus_Lost_Communication 13 + +/* "Aborted" */ +#define ComputerSystem_OperationalStatus_Aborted 14 + +/* "Dormant" */ +#define ComputerSystem_OperationalStatus_Dormant 15 + +/* "Supporting Entity in Error" */ +#define ComputerSystem_OperationalStatus_Supporting_Entity_in_Error 16 + +/* "Completed" */ +#define ComputerSystem_OperationalStatus_Completed 17 + +/* "Power Mode" */ +#define ComputerSystem_OperationalStatus_Power_Mode 18 + +/* "DMTF Reserved" */ +#define ComputerSystem_OperationalStatus_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define ComputerSystem_OperationalStatus_Vendor_Reserved 0 + +/* "Unknown" */ +#define ComputerSystem_Set_OperationalStatus_Unknown(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Other" */ +#define ComputerSystem_Set_OperationalStatus_Other(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 1) + +/* "OK" */ +#define ComputerSystem_Set_OperationalStatus_OK(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 2) + +/* "Degraded" */ +#define ComputerSystem_Set_OperationalStatus_Degraded(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 3) + +/* "Stressed" */ +#define ComputerSystem_Set_OperationalStatus_Stressed(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 4) + +/* "Predictive Failure" */ +#define ComputerSystem_Set_OperationalStatus_Predictive_Failure(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 5) + +/* "Error" */ +#define ComputerSystem_Set_OperationalStatus_Error(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 6) + +/* "Non-Recoverable Error" */ +#define ComputerSystem_Set_OperationalStatus_Non_Recoverable_Error(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 7) + +/* "Starting" */ +#define ComputerSystem_Set_OperationalStatus_Starting(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 8) + +/* "Stopping" */ +#define ComputerSystem_Set_OperationalStatus_Stopping(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 9) + +/* "Stopped" */ +#define ComputerSystem_Set_OperationalStatus_Stopped(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 10) + +/* "In Service" */ +#define ComputerSystem_Set_OperationalStatus_In_Service(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 11) + +/* "No Contact" */ +#define ComputerSystem_Set_OperationalStatus_No_Contact(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 12) + +/* "Lost Communication" */ +#define ComputerSystem_Set_OperationalStatus_Lost_Communication(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 13) + +/* "Aborted" */ +#define ComputerSystem_Set_OperationalStatus_Aborted(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 14) + +/* "Dormant" */ +#define ComputerSystem_Set_OperationalStatus_Dormant(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 15) + +/* "Supporting Entity in Error" */ +#define ComputerSystem_Set_OperationalStatus_Supporting_Entity_in_Error(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 16) + +/* "Completed" */ +#define ComputerSystem_Set_OperationalStatus_Completed(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 17) + +/* "Power Mode" */ +#define ComputerSystem_Set_OperationalStatus_Power_Mode(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 18) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_OperationalStatus_DMTF_Reserved(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0) + +/* "Vendor Reserved" */ +#define ComputerSystem_Set_OperationalStatus_Vendor_Reserved(SELF, INDEX)\ + ComputerSystem_Set_OperationalStatus(SELF, INDEX, 0) + +KINLINE CMPIBoolean ComputerSystem_Init_StatusDescriptions( + ComputerSystem* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void ComputerSystem_InitNull_StatusDescriptions( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_InitNull(field); + } +} + +KINLINE CMPIBoolean ComputerSystem_SetString_StatusDescriptions( + ComputerSystem* self, + CMPICount i, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_SetString(field, i, x); + } + return 0; +} + +KINLINE CMPIBoolean ComputerSystem_Set_StatusDescriptions( + ComputerSystem* self, + CMPICount i, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Set(field, self->__base.cb, i, s); + } + return 0; +} + +KINLINE KString ComputerSystem_GetString_StatusDescriptions( + ComputerSystem* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_GetString(field, i); + } + return KStringA_GetString(NULL, 0); +} + +KINLINE const char* ComputerSystem_Get_StatusDescriptions( + ComputerSystem* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Get(field, i); + } + return NULL; +} + +KINLINE CMPIBoolean ComputerSystem_Null_StatusDescriptions( + ComputerSystem* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + return KStringA_Null(field, i); + } + return 0; +} + +KINLINE void ComputerSystem_Clr_StatusDescriptions( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KStringA* field = (KStringA*)&self->StatusDescriptions; + KStringA_Clr(field); + } +} + +KINLINE void ComputerSystem_SetString_Status( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_Status( + ComputerSystem* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ComputerSystem_Null_Status( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_Status( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Status; + KString_Clr(field); + } +} + +KINLINE void ComputerSystem_Set_HealthState( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_HealthState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_HealthState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->HealthState; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define ComputerSystem_HealthState_Unknown 0 + +/* "OK" */ +#define ComputerSystem_HealthState_OK 5 + +/* "Degraded/Warning" */ +#define ComputerSystem_HealthState_Degraded_Warning 10 + +/* "Minor failure" */ +#define ComputerSystem_HealthState_Minor_failure 15 + +/* "Major failure" */ +#define ComputerSystem_HealthState_Major_failure 20 + +/* "Critical failure" */ +#define ComputerSystem_HealthState_Critical_failure 25 + +/* "Non-recoverable error" */ +#define ComputerSystem_HealthState_Non_recoverable_error 30 + +/* "DMTF Reserved" */ +#define ComputerSystem_HealthState_DMTF_Reserved 0 + +/* "Unknown" */ +#define ComputerSystem_Set_HealthState_Unknown(SELF) \ + ComputerSystem_Set_HealthState(SELF, 0) + +/* "OK" */ +#define ComputerSystem_Set_HealthState_OK(SELF) \ + ComputerSystem_Set_HealthState(SELF, 5) + +/* "Degraded/Warning" */ +#define ComputerSystem_Set_HealthState_Degraded_Warning(SELF) \ + ComputerSystem_Set_HealthState(SELF, 10) + +/* "Minor failure" */ +#define ComputerSystem_Set_HealthState_Minor_failure(SELF) \ + ComputerSystem_Set_HealthState(SELF, 15) + +/* "Major failure" */ +#define ComputerSystem_Set_HealthState_Major_failure(SELF) \ + ComputerSystem_Set_HealthState(SELF, 20) + +/* "Critical failure" */ +#define ComputerSystem_Set_HealthState_Critical_failure(SELF) \ + ComputerSystem_Set_HealthState(SELF, 25) + +/* "Non-recoverable error" */ +#define ComputerSystem_Set_HealthState_Non_recoverable_error(SELF) \ + ComputerSystem_Set_HealthState(SELF, 30) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_HealthState_DMTF_Reserved(SELF) \ + ComputerSystem_Set_HealthState(SELF, 0) + +KINLINE void ComputerSystem_Set_PrimaryStatus( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_PrimaryStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_PrimaryStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->PrimaryStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define ComputerSystem_PrimaryStatus_Unknown 0 + +/* "OK" */ +#define ComputerSystem_PrimaryStatus_OK 1 + +/* "Degraded" */ +#define ComputerSystem_PrimaryStatus_Degraded 2 + +/* "Error" */ +#define ComputerSystem_PrimaryStatus_Error 3 + +/* "DMTF Reserved" */ +#define ComputerSystem_PrimaryStatus_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define ComputerSystem_PrimaryStatus_Vendor_Reserved 0 + +/* "Unknown" */ +#define ComputerSystem_Set_PrimaryStatus_Unknown(SELF) \ + ComputerSystem_Set_PrimaryStatus(SELF, 0) + +/* "OK" */ +#define ComputerSystem_Set_PrimaryStatus_OK(SELF) \ + ComputerSystem_Set_PrimaryStatus(SELF, 1) + +/* "Degraded" */ +#define ComputerSystem_Set_PrimaryStatus_Degraded(SELF) \ + ComputerSystem_Set_PrimaryStatus(SELF, 2) + +/* "Error" */ +#define ComputerSystem_Set_PrimaryStatus_Error(SELF) \ + ComputerSystem_Set_PrimaryStatus(SELF, 3) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_PrimaryStatus_DMTF_Reserved(SELF) \ + ComputerSystem_Set_PrimaryStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define ComputerSystem_Set_PrimaryStatus_Vendor_Reserved(SELF) \ + ComputerSystem_Set_PrimaryStatus(SELF, 0) + +KINLINE void ComputerSystem_Set_DetailedStatus( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_DetailedStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_DetailedStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->DetailedStatus; + KUint16_Clr(field); + } +} + +/* "Not Available" */ +#define ComputerSystem_DetailedStatus_Not_Available 0 + +/* "No Additional Information" */ +#define ComputerSystem_DetailedStatus_No_Additional_Information 1 + +/* "Stressed" */ +#define ComputerSystem_DetailedStatus_Stressed 2 + +/* "Predictive Failure" */ +#define ComputerSystem_DetailedStatus_Predictive_Failure 3 + +/* "Non-Recoverable Error" */ +#define ComputerSystem_DetailedStatus_Non_Recoverable_Error 4 + +/* "Supporting Entity in Error" */ +#define ComputerSystem_DetailedStatus_Supporting_Entity_in_Error 5 + +/* "DMTF Reserved" */ +#define ComputerSystem_DetailedStatus_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define ComputerSystem_DetailedStatus_Vendor_Reserved 0 + +/* "Not Available" */ +#define ComputerSystem_Set_DetailedStatus_Not_Available(SELF) \ + ComputerSystem_Set_DetailedStatus(SELF, 0) + +/* "No Additional Information" */ +#define ComputerSystem_Set_DetailedStatus_No_Additional_Information(SELF) \ + ComputerSystem_Set_DetailedStatus(SELF, 1) + +/* "Stressed" */ +#define ComputerSystem_Set_DetailedStatus_Stressed(SELF) \ + ComputerSystem_Set_DetailedStatus(SELF, 2) + +/* "Predictive Failure" */ +#define ComputerSystem_Set_DetailedStatus_Predictive_Failure(SELF) \ + ComputerSystem_Set_DetailedStatus(SELF, 3) + +/* "Non-Recoverable Error" */ +#define ComputerSystem_Set_DetailedStatus_Non_Recoverable_Error(SELF) \ + ComputerSystem_Set_DetailedStatus(SELF, 4) + +/* "Supporting Entity in Error" */ +#define ComputerSystem_Set_DetailedStatus_Supporting_Entity_in_Error(SELF) \ + ComputerSystem_Set_DetailedStatus(SELF, 5) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_DetailedStatus_DMTF_Reserved(SELF) \ + ComputerSystem_Set_DetailedStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define ComputerSystem_Set_DetailedStatus_Vendor_Reserved(SELF) \ + ComputerSystem_Set_DetailedStatus(SELF, 0) + +KINLINE void ComputerSystem_Set_OperatingStatus( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_OperatingStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_OperatingStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->OperatingStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define ComputerSystem_OperatingStatus_Unknown 0 + +/* "Not Available" */ +#define ComputerSystem_OperatingStatus_Not_Available 1 + +/* "Servicing" */ +#define ComputerSystem_OperatingStatus_Servicing 2 + +/* "Starting" */ +#define ComputerSystem_OperatingStatus_Starting 3 + +/* "Stopping" */ +#define ComputerSystem_OperatingStatus_Stopping 4 + +/* "Stopped" */ +#define ComputerSystem_OperatingStatus_Stopped 5 + +/* "Aborted" */ +#define ComputerSystem_OperatingStatus_Aborted 6 + +/* "Dormant" */ +#define ComputerSystem_OperatingStatus_Dormant 7 + +/* "Completed" */ +#define ComputerSystem_OperatingStatus_Completed 8 + +/* "Migrating" */ +#define ComputerSystem_OperatingStatus_Migrating 9 + +/* "Emigrating" */ +#define ComputerSystem_OperatingStatus_Emigrating 10 + +/* "Immigrating" */ +#define ComputerSystem_OperatingStatus_Immigrating 11 + +/* "Snapshotting" */ +#define ComputerSystem_OperatingStatus_Snapshotting 12 + +/* "Shutting Down" */ +#define ComputerSystem_OperatingStatus_Shutting_Down 13 + +/* "In Test" */ +#define ComputerSystem_OperatingStatus_In_Test 14 + +/* "Transitioning" */ +#define ComputerSystem_OperatingStatus_Transitioning 15 + +/* "In Service" */ +#define ComputerSystem_OperatingStatus_In_Service 16 + +/* "DMTF Reserved" */ +#define ComputerSystem_OperatingStatus_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define ComputerSystem_OperatingStatus_Vendor_Reserved 0 + +/* "Unknown" */ +#define ComputerSystem_Set_OperatingStatus_Unknown(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 0) + +/* "Not Available" */ +#define ComputerSystem_Set_OperatingStatus_Not_Available(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 1) + +/* "Servicing" */ +#define ComputerSystem_Set_OperatingStatus_Servicing(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 2) + +/* "Starting" */ +#define ComputerSystem_Set_OperatingStatus_Starting(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 3) + +/* "Stopping" */ +#define ComputerSystem_Set_OperatingStatus_Stopping(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 4) + +/* "Stopped" */ +#define ComputerSystem_Set_OperatingStatus_Stopped(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 5) + +/* "Aborted" */ +#define ComputerSystem_Set_OperatingStatus_Aborted(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 6) + +/* "Dormant" */ +#define ComputerSystem_Set_OperatingStatus_Dormant(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 7) + +/* "Completed" */ +#define ComputerSystem_Set_OperatingStatus_Completed(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 8) + +/* "Migrating" */ +#define ComputerSystem_Set_OperatingStatus_Migrating(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 9) + +/* "Emigrating" */ +#define ComputerSystem_Set_OperatingStatus_Emigrating(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 10) + +/* "Immigrating" */ +#define ComputerSystem_Set_OperatingStatus_Immigrating(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 11) + +/* "Snapshotting" */ +#define ComputerSystem_Set_OperatingStatus_Snapshotting(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 12) + +/* "Shutting Down" */ +#define ComputerSystem_Set_OperatingStatus_Shutting_Down(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 13) + +/* "In Test" */ +#define ComputerSystem_Set_OperatingStatus_In_Test(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 14) + +/* "Transitioning" */ +#define ComputerSystem_Set_OperatingStatus_Transitioning(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 15) + +/* "In Service" */ +#define ComputerSystem_Set_OperatingStatus_In_Service(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 16) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_OperatingStatus_DMTF_Reserved(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define ComputerSystem_Set_OperatingStatus_Vendor_Reserved(SELF) \ + ComputerSystem_Set_OperatingStatus(SELF, 0) + +KINLINE void ComputerSystem_Set_CommunicationStatus( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_CommunicationStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_CommunicationStatus( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->CommunicationStatus; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define ComputerSystem_CommunicationStatus_Unknown 0 + +/* "Not Available" */ +#define ComputerSystem_CommunicationStatus_Not_Available 1 + +/* "Communication OK" */ +#define ComputerSystem_CommunicationStatus_Communication_OK 2 + +/* "Lost Communication" */ +#define ComputerSystem_CommunicationStatus_Lost_Communication 3 + +/* "No Contact" */ +#define ComputerSystem_CommunicationStatus_No_Contact 4 + +/* "DMTF Reserved" */ +#define ComputerSystem_CommunicationStatus_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define ComputerSystem_CommunicationStatus_Vendor_Reserved 0 + +/* "Unknown" */ +#define ComputerSystem_Set_CommunicationStatus_Unknown(SELF) \ + ComputerSystem_Set_CommunicationStatus(SELF, 0) + +/* "Not Available" */ +#define ComputerSystem_Set_CommunicationStatus_Not_Available(SELF) \ + ComputerSystem_Set_CommunicationStatus(SELF, 1) + +/* "Communication OK" */ +#define ComputerSystem_Set_CommunicationStatus_Communication_OK(SELF) \ + ComputerSystem_Set_CommunicationStatus(SELF, 2) + +/* "Lost Communication" */ +#define ComputerSystem_Set_CommunicationStatus_Lost_Communication(SELF) \ + ComputerSystem_Set_CommunicationStatus(SELF, 3) + +/* "No Contact" */ +#define ComputerSystem_Set_CommunicationStatus_No_Contact(SELF) \ + ComputerSystem_Set_CommunicationStatus(SELF, 4) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_CommunicationStatus_DMTF_Reserved(SELF) \ + ComputerSystem_Set_CommunicationStatus(SELF, 0) + +/* "Vendor Reserved" */ +#define ComputerSystem_Set_CommunicationStatus_Vendor_Reserved(SELF) \ + ComputerSystem_Set_CommunicationStatus(SELF, 0) + +KINLINE void ComputerSystem_Set_EnabledState( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledState; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_EnabledState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledState; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_EnabledState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledState; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define ComputerSystem_EnabledState_Unknown 0 + +/* "Other" */ +#define ComputerSystem_EnabledState_Other 1 + +/* "Enabled" */ +#define ComputerSystem_EnabledState_Enabled 2 + +/* "Disabled" */ +#define ComputerSystem_EnabledState_Disabled 3 + +/* "Shutting Down" */ +#define ComputerSystem_EnabledState_Shutting_Down 4 + +/* "Not Applicable" */ +#define ComputerSystem_EnabledState_Not_Applicable 5 + +/* "Enabled but Offline" */ +#define ComputerSystem_EnabledState_Enabled_but_Offline 6 + +/* "In Test" */ +#define ComputerSystem_EnabledState_In_Test 7 + +/* "Deferred" */ +#define ComputerSystem_EnabledState_Deferred 8 + +/* "Quiesce" */ +#define ComputerSystem_EnabledState_Quiesce 9 + +/* "Starting" */ +#define ComputerSystem_EnabledState_Starting 10 + +/* "DMTF Reserved" */ +#define ComputerSystem_EnabledState_DMTF_Reserved 11 + +/* "Vendor Reserved" */ +#define ComputerSystem_EnabledState_Vendor_Reserved 32768 + +/* "Unknown" */ +#define ComputerSystem_Set_EnabledState_Unknown(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 0) + +/* "Other" */ +#define ComputerSystem_Set_EnabledState_Other(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 1) + +/* "Enabled" */ +#define ComputerSystem_Set_EnabledState_Enabled(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 2) + +/* "Disabled" */ +#define ComputerSystem_Set_EnabledState_Disabled(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 3) + +/* "Shutting Down" */ +#define ComputerSystem_Set_EnabledState_Shutting_Down(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 4) + +/* "Not Applicable" */ +#define ComputerSystem_Set_EnabledState_Not_Applicable(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 5) + +/* "Enabled but Offline" */ +#define ComputerSystem_Set_EnabledState_Enabled_but_Offline(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 6) + +/* "In Test" */ +#define ComputerSystem_Set_EnabledState_In_Test(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 7) + +/* "Deferred" */ +#define ComputerSystem_Set_EnabledState_Deferred(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 8) + +/* "Quiesce" */ +#define ComputerSystem_Set_EnabledState_Quiesce(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 9) + +/* "Starting" */ +#define ComputerSystem_Set_EnabledState_Starting(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 10) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_EnabledState_DMTF_Reserved(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 11) + +/* "Vendor Reserved" */ +#define ComputerSystem_Set_EnabledState_Vendor_Reserved(SELF) \ + ComputerSystem_Set_EnabledState(SELF, 32768) + +KINLINE void ComputerSystem_SetString_OtherEnabledState( + ComputerSystem* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherEnabledState; + KString_SetString(field, x); + } +} + +KINLINE void ComputerSystem_Set_OtherEnabledState( + ComputerSystem* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherEnabledState; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ComputerSystem_Null_OtherEnabledState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherEnabledState; + KString_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_OtherEnabledState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherEnabledState; + KString_Clr(field); + } +} + +KINLINE void ComputerSystem_Set_RequestedState( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RequestedState; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_RequestedState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RequestedState; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_RequestedState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->RequestedState; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define ComputerSystem_RequestedState_Unknown 0 + +/* "Enabled" */ +#define ComputerSystem_RequestedState_Enabled 2 + +/* "Disabled" */ +#define ComputerSystem_RequestedState_Disabled 3 + +/* "Shut Down" */ +#define ComputerSystem_RequestedState_Shut_Down 4 + +/* "No Change" */ +#define ComputerSystem_RequestedState_No_Change 5 + +/* "Offline" */ +#define ComputerSystem_RequestedState_Offline 6 + +/* "Test" */ +#define ComputerSystem_RequestedState_Test 7 + +/* "Deferred" */ +#define ComputerSystem_RequestedState_Deferred 8 + +/* "Quiesce" */ +#define ComputerSystem_RequestedState_Quiesce 9 + +/* "Reboot" */ +#define ComputerSystem_RequestedState_Reboot 10 + +/* "Reset" */ +#define ComputerSystem_RequestedState_Reset 11 + +/* "Not Applicable" */ +#define ComputerSystem_RequestedState_Not_Applicable 12 + +/* "DMTF Reserved" */ +#define ComputerSystem_RequestedState_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define ComputerSystem_RequestedState_Vendor_Reserved 32768 + +/* "Unknown" */ +#define ComputerSystem_Set_RequestedState_Unknown(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 0) + +/* "Enabled" */ +#define ComputerSystem_Set_RequestedState_Enabled(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 2) + +/* "Disabled" */ +#define ComputerSystem_Set_RequestedState_Disabled(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 3) + +/* "Shut Down" */ +#define ComputerSystem_Set_RequestedState_Shut_Down(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 4) + +/* "No Change" */ +#define ComputerSystem_Set_RequestedState_No_Change(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 5) + +/* "Offline" */ +#define ComputerSystem_Set_RequestedState_Offline(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 6) + +/* "Test" */ +#define ComputerSystem_Set_RequestedState_Test(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 7) + +/* "Deferred" */ +#define ComputerSystem_Set_RequestedState_Deferred(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 8) + +/* "Quiesce" */ +#define ComputerSystem_Set_RequestedState_Quiesce(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 9) + +/* "Reboot" */ +#define ComputerSystem_Set_RequestedState_Reboot(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 10) + +/* "Reset" */ +#define ComputerSystem_Set_RequestedState_Reset(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 11) + +/* "Not Applicable" */ +#define ComputerSystem_Set_RequestedState_Not_Applicable(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 12) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_RequestedState_DMTF_Reserved(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 0) + +/* "Vendor Reserved" */ +#define ComputerSystem_Set_RequestedState_Vendor_Reserved(SELF) \ + ComputerSystem_Set_RequestedState(SELF, 32768) + +KINLINE void ComputerSystem_Set_EnabledDefault( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledDefault; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_EnabledDefault( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledDefault; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_EnabledDefault( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->EnabledDefault; + KUint16_Clr(field); + } +} + +/* "Enabled" */ +#define ComputerSystem_EnabledDefault_Enabled 2 + +/* "Disabled" */ +#define ComputerSystem_EnabledDefault_Disabled 3 + +/* "Not Applicable" */ +#define ComputerSystem_EnabledDefault_Not_Applicable 5 + +/* "Enabled but Offline" */ +#define ComputerSystem_EnabledDefault_Enabled_but_Offline 6 + +/* "No Default" */ +#define ComputerSystem_EnabledDefault_No_Default 7 + +/* "Quiesce" */ +#define ComputerSystem_EnabledDefault_Quiesce 9 + +/* "DMTF Reserved" */ +#define ComputerSystem_EnabledDefault_DMTF_Reserved 0 + +/* "Vendor Reserved" */ +#define ComputerSystem_EnabledDefault_Vendor_Reserved 32768 + +/* "Enabled" */ +#define ComputerSystem_Set_EnabledDefault_Enabled(SELF) \ + ComputerSystem_Set_EnabledDefault(SELF, 2) + +/* "Disabled" */ +#define ComputerSystem_Set_EnabledDefault_Disabled(SELF) \ + ComputerSystem_Set_EnabledDefault(SELF, 3) + +/* "Not Applicable" */ +#define ComputerSystem_Set_EnabledDefault_Not_Applicable(SELF) \ + ComputerSystem_Set_EnabledDefault(SELF, 5) + +/* "Enabled but Offline" */ +#define ComputerSystem_Set_EnabledDefault_Enabled_but_Offline(SELF) \ + ComputerSystem_Set_EnabledDefault(SELF, 6) + +/* "No Default" */ +#define ComputerSystem_Set_EnabledDefault_No_Default(SELF) \ + ComputerSystem_Set_EnabledDefault(SELF, 7) + +/* "Quiesce" */ +#define ComputerSystem_Set_EnabledDefault_Quiesce(SELF) \ + ComputerSystem_Set_EnabledDefault(SELF, 9) + +/* "DMTF Reserved" */ +#define ComputerSystem_Set_EnabledDefault_DMTF_Reserved(SELF) \ + ComputerSystem_Set_EnabledDefault(SELF, 0) + +/* "Vendor Reserved" */ +#define ComputerSystem_Set_EnabledDefault_Vendor_Reserved(SELF) \ + ComputerSystem_Set_EnabledDefault(SELF, 32768) + +KINLINE void ComputerSystem_Set_TimeOfLastStateChange( + ComputerSystem* self, + CMPIDateTime* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->TimeOfLastStateChange; + KDateTime_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_TimeOfLastStateChange( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->TimeOfLastStateChange; + KDateTime_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_TimeOfLastStateChange( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KDateTime* field = (KDateTime*)&self->TimeOfLastStateChange; + KDateTime_Clr(field); + } +} + +KINLINE CMPIBoolean ComputerSystem_Init_AvailableRequestedStates( + ComputerSystem* 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 ComputerSystem_InitNull_AvailableRequestedStates( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean ComputerSystem_Set_AvailableRequestedStates( + ComputerSystem* 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 ComputerSystem_Get_AvailableRequestedStates( + ComputerSystem* 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 ComputerSystem_Null_AvailableRequestedStates( + ComputerSystem* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void ComputerSystem_Clr_AvailableRequestedStates( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->AvailableRequestedStates; + KUint16A_Clr(field); + } +} + +/* "Enabled" */ +#define ComputerSystem_AvailableRequestedStates_Enabled 2 + +/* "Disabled" */ +#define ComputerSystem_AvailableRequestedStates_Disabled 3 + +/* "Shut Down" */ +#define ComputerSystem_AvailableRequestedStates_Shut_Down 4 + +/* "Offline" */ +#define ComputerSystem_AvailableRequestedStates_Offline 6 + +/* "Test" */ +#define ComputerSystem_AvailableRequestedStates_Test 7 + +/* "Defer" */ +#define ComputerSystem_AvailableRequestedStates_Defer 8 + +/* "Quiesce" */ +#define ComputerSystem_AvailableRequestedStates_Quiesce 9 + +/* "Reboot" */ +#define ComputerSystem_AvailableRequestedStates_Reboot 10 + +/* "Reset" */ +#define ComputerSystem_AvailableRequestedStates_Reset 11 + +/* "Enabled" */ +#define ComputerSystem_Set_AvailableRequestedStates_Enabled(SELF, INDEX)\ + ComputerSystem_Set_AvailableRequestedStates(SELF, INDEX, 2) + +/* "Disabled" */ +#define ComputerSystem_Set_AvailableRequestedStates_Disabled(SELF, INDEX)\ + ComputerSystem_Set_AvailableRequestedStates(SELF, INDEX, 3) + +/* "Shut Down" */ +#define ComputerSystem_Set_AvailableRequestedStates_Shut_Down(SELF, INDEX)\ + ComputerSystem_Set_AvailableRequestedStates(SELF, INDEX, 4) + +/* "Offline" */ +#define ComputerSystem_Set_AvailableRequestedStates_Offline(SELF, INDEX)\ + ComputerSystem_Set_AvailableRequestedStates(SELF, INDEX, 6) + +/* "Test" */ +#define ComputerSystem_Set_AvailableRequestedStates_Test(SELF, INDEX)\ + ComputerSystem_Set_AvailableRequestedStates(SELF, INDEX, 7) + +/* "Defer" */ +#define ComputerSystem_Set_AvailableRequestedStates_Defer(SELF, INDEX)\ + ComputerSystem_Set_AvailableRequestedStates(SELF, INDEX, 8) + +/* "Quiesce" */ +#define ComputerSystem_Set_AvailableRequestedStates_Quiesce(SELF, INDEX)\ + ComputerSystem_Set_AvailableRequestedStates(SELF, INDEX, 9) + +/* "Reboot" */ +#define ComputerSystem_Set_AvailableRequestedStates_Reboot(SELF, INDEX)\ + ComputerSystem_Set_AvailableRequestedStates(SELF, INDEX, 10) + +/* "Reset" */ +#define ComputerSystem_Set_AvailableRequestedStates_Reset(SELF, INDEX)\ + ComputerSystem_Set_AvailableRequestedStates(SELF, INDEX, 11) + +KINLINE void ComputerSystem_Set_TransitioningToState( + ComputerSystem* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->TransitioningToState; + KUint16_Set(field, x); + } +} + +KINLINE void ComputerSystem_Null_TransitioningToState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->TransitioningToState; + KUint16_Null(field); + } +} + +KINLINE void ComputerSystem_Clr_TransitioningToState( + ComputerSystem* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->TransitioningToState; + KUint16_Clr(field); + } +} + +/* "Unknown" */ +#define ComputerSystem_TransitioningToState_Unknown 0 + +/* "Enabled" */ +#define ComputerSystem_TransitioningToState_Enabled 2 + +/* "Disabled" */ +#define ComputerSystem_TransitioningToState_Disabled 3 + +/* "Shut Down" */ +#define ComputerSystem_TransitioningToState_Shut_Down 4 + +/* "No Change" */ +#define ComputerSystem_TransitioningToState_No_Change 5 + +/* "Offline" */ +#define ComputerSystem_TransitioningToState_Offline 6 + +/* "Test" */ +#define ComputerSystem_TransitioningToState_Test 7 + +/* "Defer" */ +#define ComputerSystem_TransitioningToState_Defer 8 + +/* "Quiesce" */ +#define ComputerSystem_TransitioningToState_Quiesce 9 + +/* "Reboot" */ +#define ComputerSystem_TransitioningToState_Reboot 10 + +/* "Reset" */ +#define ComputerSystem_TransitioningToState_Reset 11 + +/* "Not Applicable" */ +#define ComputerSystem_TransitioningToState_Not_Applicable 12 + +/* "Unknown" */ +#define ComputerSystem_Set_TransitioningToState_Unknown(SELF) \ + ComputerSystem_Set_TransitioningToState(SELF, 0) + +/* "Enabled" */ +#define ComputerSystem_Set_TransitioningToState_Enabled(SELF) \ + ComputerSystem_Set_TransitioningToState(SELF, 2) + +/* "Disabled" */ +#define ComputerSystem_Set_TransitioningToState_Disabled(SELF) \ + ComputerSystem_Set_TransitioningToState(SELF, 3) + +/* "Shut Down" */ +#define ComputerSystem_Set_TransitioningToState_Shut_Down(SELF) \ + ComputerSystem_Set_TransitioningToState(SELF, 4) + +/* "No Change" */ +#define ComputerSystem_Set_TransitioningToState_No_Change(SELF) \ + ComputerSystem_Set_TransitioningToState(SELF, 5) + +/* "Offline" */ +#define ComputerSystem_Set_TransitioningToState_Offline(SELF) \ + ComputerSystem_Set_TransitioningToState(SELF, 6) + +/* "Test" */ +#define ComputerSystem_Set_Transit... [truncated message content] |
From: <mik...@us...> - 2008-07-04 22:23:38
|
Revision: 718 http://omc.svn.sourceforge.net/omc/?rev=718&view=rev Author: mike-brasher Date: 2008-07-04 15:23:46 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Implemented Linux_SSHProvidesEndpoint Provider Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.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/ProvidesEndpoint.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 20:38:09 UTC (rev 717) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 22:23:46 UTC (rev 718) @@ -173,15 +173,17 @@ // ================================================================== -// Linux_SSHServiceProvidesSSHEndpoint : CIM_ProvidesEndpoint +// Linux_SSHProvidesEndpoint : CIM_ProvidesEndpoint // ================================================================== [Association, Version ( "0.0.1" ), Description ( "Linux instrumentation of SMASH's ssh service")] -class Linux_SSHServiceProvidesSSHEndpoint : CIM_ProvidesEndpoint { +class Linux_SSHProvidesEndpoint : CIM_ProvidesEndpoint +{ + [Key] Linux_SSHProtocolService REF Antecedent; + [Key] Linux_SSHProtocolEndpoint REF Dependent; }; - // ================================================================== // Linux_SSHSettingData : CIM_SSHSettingData // ================================================================== 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-04 20:38:09 UTC (rev 717) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-04 22:23:46 UTC (rev 718) @@ -3,3 +3,4 @@ Linux_SSHCapabilities root/cimv2 Capabilities linux_sshserviceprovider instance method Linux_SSHElementCapabilities root/cimv2 ElementCapabilities linux_sshserviceprovider instance association Linux_SSHProtocolEndpoint root/cimv2 ProtocolEndpoint linux_sshserviceprovider instance method +Linux_SSHProvidesEndpoint root/cimv2 ProvidesEndpoint linux_sshserviceprovider 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-04 20:38:09 UTC (rev 717) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 22:23:46 UTC (rev 718) @@ -11,7 +11,8 @@ ProtocolServiceProvider.c \ CapabilitiesProvider.c \ ElementCapabilitiesProvider.c \ - ProtocolEndpointProvider.c + ProtocolEndpointProvider.c \ + ProvidesEndpointProvider.c liblinux_sshserviceprovider_la_LDFLAGS = \ -lkonkret \ Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-04 20:38:09 UTC (rev 717) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c 2008-07-04 22:23:46 UTC (rev 718) @@ -56,51 +56,42 @@ for (i = 0; i < size; i++) { ProtocolEndpoint x; + struct SSHDConfig conf; + if (GetSSHDConfig(&conf) != 0) + KReturn2(_cb, ERR_FAILED, "failed to access sshd_config"); + ProtocolEndpoint_Init(&x, _cb, ns); - /* Linux_SSHProtocolEndpoint.Name */ - ProtocolEndpoint_Set_Name(&x, _NameOf(&sess[i]).str); - /* Linux_SSHProtocolEndpoint.SystemCreationClassName */ ProtocolEndpoint_Set_SystemCreationClassName(&x, SysClassName().str); + /* Linux_SSHProtocolEndpoint.CreationClassName */ + ProtocolEndpoint_Set_CreationClassName(&x, "Linux_SSHProtocolEndpoint"); + /* Linux_SSHProtocolEndpoint.SystemName */ ProtocolEndpoint_Set_SystemName(&x, SysName().str); - /* Linux_SSHProtocolEndpoint.CreationClassName */ - ProtocolEndpoint_Set_CreationClassName(&x, "Linux_SSHProtocolEndpoint"); + /* Linux_SSHProtocolEndpoint.Name */ + ProtocolEndpoint_Set_Name(&x, _NameOf(&sess[i]).str); /* Linux_SSHProtocolEndpoint.NameFormat */ ProtocolEndpoint_Set_NameFormat(&x, - "'SBLIM' + 'CreationClassName' + ':' + port"); + "'SBLIM:' + <CreationClassName> + ':' + <Port>"); - /* Linux_SSHProtocolEndpoint.RemoteHost */ - ProtocolEndpoint_Set_RemoteHost(&x, sess[i].foreignAddr); - - /* Linux_SSHProtocolEndpoint.RemotePort */ - ProtocolEndpoint_Set_RemotePort(&x, sess[i].foreignPort); - - /* Linux_SSHProtocolEndpoint.ElementName */ - ProtocolEndpoint_Set_ElementName(&x, "Linux_SSHProtocolEndpoint"); - /* Linux_SSHProtocolEndpoint.ProtocolIFType */ ProtocolEndpoint_Set_ProtocolIFType_SSH(&x); /* Linux_SSHProtocolEndpoint.OtherTypeDescription */ ProtocolEndpoint_Set_OtherTypeDescription(&x, "SSH"); + /* Linux_SSHProtocolEndpoint.ElementName */ + ProtocolEndpoint_Set_ElementName(&x, "Linux_SSHProtocolEndpoint"); + /* Linux_SSHProtocolEndpoint.EnabledSSHVersions */ - /* Linux_SSHProtocolEndpoint.SSHVersion */ { - struct SSHDConfig conf; CMPICount index = 0; - if (GetSSHDConfig(&conf) != 0) - KReturn2(_cb, ERR_FAILED, "failed to access sshd_config"); - - /* Linux_SSHProtocolEndpoint.EnabledSSHVersions */ - ProtocolEndpoint_Init_EnabledSSHVersions(&x, conf.v1 + conf.v2); if (conf.v1) @@ -108,22 +99,43 @@ if (conf.v2) ProtocolEndpoint_Set_EnabledSSHVersions_SSHv2(&x, index++); + } - /* Linux_SSHProtocolEndpoint.SSHVersion */ + /* Linux_SSHProtocolEndpoint.SSHVersion */ + if (conf.v1 && conf.v2) + ProtocolEndpoint_Set_SSHVersion_Unknown(&x); + else if (conf.v1) + ProtocolEndpoint_Set_SSHVersion_SSHv1(&x); + else if (conf.v2) + ProtocolEndpoint_Set_SSHVersion_SSHv2(&x); - if (conf.v1 && conf.v2) - ProtocolEndpoint_Set_SSHVersion_Unknown(&x); - else if (conf.v1) - ProtocolEndpoint_Set_SSHVersion_SSHv1(&x); - else if (conf.v2) - ProtocolEndpoint_Set_SSHVersion_SSHv2(&x); - } - - /* Linux_SSHProtocolEndpoint.EnabledEncryptionAlgorithms */ - /* ATTN: how do you get this? */ + /* Linux_SSHProtocolEndpoint.EnabledEncryptionAlgorithms (ATTN) */ ProtocolEndpoint_Init_EnabledEncryptionAlgorithms(&x, 1); ProtocolEndpoint_Set_EnabledEncryptionAlgorithms_Unknown(&x, 0); + /* Linux_SSHProtocolEndpoint.EncryptionAlgorithm (ATTN) */ + ProtocolEndpoint_Set_EncryptionAlgorithm_Unknown(&x); + + /* Linux_SSHProtocolEndpoint.IdleTimeout (ATTN) */ + ProtocolEndpoint_Set_IdleTimeout(&x, 0); + + /* Linux_SSHProtocolEndpoint.KeepAlive */ + ProtocolEndpoint_Set_KeepAlive(&x, conf.tcpKeepAlive); + + /* Linux_SSHProtocolEndpoint.x11Forwarding */ + ProtocolEndpoint_Set_ForwardX11(&x, conf.x11Forwarding); + + /* Linux_SSHProtocolEndpoint.Compression */ + if (conf.compression == 'y' || conf.compression == 'd') + ProtocolEndpoint_Set_Compression(&x, 1); + else ProtocolEndpoint_Set_Compression(&x, 0); + + /* Linux_SSHProtocolEndpoint.RemoteHost (Extra) */ + ProtocolEndpoint_Set_RemoteHost(&x, sess[i].foreignAddr); + + /* Linux_SSHProtocolEndpoint.RemotePort (Extra) */ + ProtocolEndpoint_Set_RemotePort(&x, sess[i].foreignPort); + KReturnInstance(cr, x); } @@ -239,4 +251,3 @@ KSetStatus(status, ERR_NOT_SUPPORTED); return result; } - Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-04 20:38:09 UTC (rev 717) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-04 22:23:46 UTC (rev 718) @@ -146,7 +146,11 @@ CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); } -CMInstanceMIStub(ProtocolService, ProtocolService, _cb, ProtocolServiceInitialize()) +CMInstanceMIStub( + ProtocolService, + ProtocolService, + _cb, + ProtocolServiceInitialize()) static CMPIStatus ProtocolServiceMethodCleanup( CMPIMethodMI* mi, Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpoint.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpoint.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpoint.h 2008-07-04 22:23:46 UTC (rev 718) @@ -0,0 +1,388 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_ProvidesEndpoint_h +#define _konkrete_ProvidesEndpoint_h + +#include <konkret/konkret.h> +#include "ProtocolService.h" +#include "ProtocolEndpoint.h" + +/* +**============================================================================== +** +** struct ProvidesEndpointRef +** +**============================================================================== +*/ + +/* classname=Linux_SSHProvidesEndpoint */ +typedef struct _ProvidesEndpointRef +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* ProtocolService */ + const KRef Dependent; /* ProtocolEndpoint */ + /* CIM_ServiceAccessBySAP features */ + /* CIM_ProvidesEndpoint features */ + /* Linux_SSHProvidesEndpoint features */ +} +ProvidesEndpointRef; + +static const unsigned char __ProvidesEndpointRef_sig[] = +{ + 0x19,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x50,0x72,0x6f,0x76,0x69, + 0x64,0x65,0x73,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74,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 ProvidesEndpointRef_Init( + ProvidesEndpointRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ProvidesEndpointRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __ProtocolService_sig; + ((KRef*)&self->Dependent)->__sig = __ProtocolEndpoint_sig; +} + +KINLINE CMPIStatus ProvidesEndpointRef_InitFromInstance( + ProvidesEndpointRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ProvidesEndpointRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ProvidesEndpointRef_InitFromObjectPath( + ProvidesEndpointRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ProvidesEndpointRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ProvidesEndpointRef_Print( + const ProvidesEndpointRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* ProvidesEndpointRef_ToInstance( + const ProvidesEndpointRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ProvidesEndpointRef_ToObjectPath( + const ProvidesEndpointRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ProvidesEndpointRef_NameSpace( + ProvidesEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ProvidesEndpointRef_SetObjectPath_Antecedent( + ProvidesEndpointRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ProvidesEndpointRef_Set_Antecedent( + ProvidesEndpointRef* self, + const ProtocolServiceRef* 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 ProvidesEndpointRef_Null_Antecedent( + ProvidesEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void ProvidesEndpointRef_Clr_Antecedent( + ProvidesEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void ProvidesEndpointRef_SetObjectPath_Dependent( + ProvidesEndpointRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ProvidesEndpointRef_Set_Dependent( + ProvidesEndpointRef* self, + const ProtocolEndpointRef* 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 ProvidesEndpointRef_Null_Dependent( + ProvidesEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void ProvidesEndpointRef_Clr_Dependent( + ProvidesEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct ProvidesEndpoint +** +**============================================================================== +*/ + +/* classname=Linux_SSHProvidesEndpoint */ +typedef struct _ProvidesEndpoint +{ + KBase __base; + /* CIM_Dependency features */ + const KRef Antecedent; /* ProtocolService */ + const KRef Dependent; /* ProtocolEndpoint */ + /* CIM_ServiceAccessBySAP features */ + /* CIM_ProvidesEndpoint features */ + /* Linux_SSHProvidesEndpoint features */ +} +ProvidesEndpoint; + +static const unsigned char __ProvidesEndpoint_sig[] = +{ + 0x19,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x50,0x72,0x6f,0x76,0x69, + 0x64,0x65,0x73,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74,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 ProvidesEndpoint_Init( + ProvidesEndpoint* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ProvidesEndpoint_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->Antecedent)->__sig = __ProtocolService_sig; + ((KRef*)&self->Dependent)->__sig = __ProtocolEndpoint_sig; +} + +KINLINE CMPIStatus ProvidesEndpoint_InitFromInstance( + ProvidesEndpoint* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ProvidesEndpoint_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ProvidesEndpoint_InitFromObjectPath( + ProvidesEndpoint* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ProvidesEndpoint_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ProvidesEndpoint_Print( + const ProvidesEndpoint* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* ProvidesEndpoint_ToInstance( + const ProvidesEndpoint* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ProvidesEndpoint_ToObjectPath( + const ProvidesEndpoint* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ProvidesEndpoint_NameSpace( + ProvidesEndpoint* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ProvidesEndpoint_SetObjectPath_Antecedent( + ProvidesEndpoint* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ProvidesEndpoint_Set_Antecedent( + ProvidesEndpoint* self, + const ProtocolServiceRef* 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 ProvidesEndpoint_Null_Antecedent( + ProvidesEndpoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Null(field); + } +} + +KINLINE void ProvidesEndpoint_Clr_Antecedent( + ProvidesEndpoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Antecedent; + KRef_Clr(field); + } +} + +KINLINE void ProvidesEndpoint_SetObjectPath_Dependent( + ProvidesEndpoint* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ProvidesEndpoint_Set_Dependent( + ProvidesEndpoint* self, + const ProtocolEndpointRef* 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 ProvidesEndpoint_Null_Dependent( + ProvidesEndpoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Null(field); + } +} + +KINLINE void ProvidesEndpoint_Clr_Dependent( + ProvidesEndpoint* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Dependent; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** ProvidesEndpoint methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus ProvidesEndpoint_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + ProvidesEndpointRef self; + + KReturnIf(ProvidesEndpointRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_ProvidesEndpoint_h */ Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProvidesEndpointProvider.c 2008-07-04 22:23:46 UTC (rev 718) @@ -0,0 +1,195 @@ +#include <konkret/konkret.h> +#include "ProvidesEndpoint.h" +#include "Resource.h" + +static const CMPIBroker* _cb; + +static void ProvidesEndpointInitialize() +{ +} + +static CMPIStatus ProvidesEndpointCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ProvidesEndpointEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus ProvidesEndpointEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + const char* ns = KNameSpace(cop); + ProtocolServiceRef a; /* Antecedent */ + + /* Linux_SSHProtocolService.Antecedent */ + ProtocolServiceRef_Init(&a, _cb, ns); + ProtocolServiceRef_Set_SystemCreationClassName(&a, SysClassName().str); + ProtocolServiceRef_Set_CreationClassName(&a, "Linux_SSHProtocolService"); + ProtocolServiceRef_Set_SystemName(&a, SysName().str); + ProtocolServiceRef_Set_Name(&a, "SBLIM:Linux_SSHProtocolService"); + + /* Associate with every instance of Linux_SSHProtocolEndpoint */ + return KDefaultEnumerateInstancesOneToAll( + _cb, + cc, + cr, + cop, + ProtocolServiceRef_ToObjectPath(&a, NULL), + "Antecedent", + CMNewObjectPath(_cb, ns, "Linux_SSHProtocolEndpoint", NULL), + "Dependent"); +} + +static CMPIStatus ProvidesEndpointGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus ProvidesEndpointCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ProvidesEndpointModifyInstance( + 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 ProvidesEndpointDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ProvidesEndpointExecQuery( + 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 ProvidesEndpointAssociationCleanup( + CMPIAssociationMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ProvidesEndpointAssociators( + 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_SSHProvidesEndpoint"; + + return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, + resultClass, role, resultRole, properties); +} + +static CMPIStatus ProvidesEndpointAssociatorNames( + 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_SSHProvidesEndpoint"; + + return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, + assocClass, resultClass, role, resultRole); +} + +static CMPIStatus ProvidesEndpointReferences( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_SSHProvidesEndpoint"; + + return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, + role, properties); +} + +static CMPIStatus ProvidesEndpointReferenceNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role) +{ + if (!assocClass) + assocClass = "Linux_SSHProvidesEndpoint"; + + return KDefaultReferenceNames( + _cb, mi, cc, cr, cop, assocClass, role); +} + +CMInstanceMIStub( + ProvidesEndpoint, + ProvidesEndpoint, + _cb, + ProvidesEndpointInitialize()) + +CMAssociationMIStub( + ProvidesEndpoint, + ProvidesEndpoint, + _cb, + ProvidesEndpointInitialize()) + Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c 2008-07-04 20:38:09 UTC (rev 717) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c 2008-07-04 22:23:46 UTC (rev 718) @@ -2,12 +2,16 @@ #include <string.h> #include <ctype.h> #include <stdlib.h> +#include <string.h> #include <ctype.h> #include <unistd.h> #include <cmpiutil/base.h> #include <cmpiutil/exec.h> #include "Resource.h" +/* ATTN: Figure out why this is not visible from <strings.h> */ +extern char *strcasestr(const char *haystack, const char *needle); + int GetSSHDStatus() { char* cmd[] = { "/etc/init.d/sshd", "status", NULL }; @@ -21,29 +25,64 @@ memset(conf, 0, sizeof(struct SSHDConfig)); + /* Open sshd_config */ + if (!conf || !(is = fopen("/etc/ssh/sshd_config", "r"))) return -1; + /* Set defaults */ + conf->v1 = 1; + conf->v2 = 1; + conf->tcpKeepAlive = 1; + conf->compression = 'd'; + conf->x11Forwarding = 0; + conf->clientAliveInterval = 0; + + /* For each line of configuration file */ + while (fgets(buf, sizeof(buf), is) != NULL) { - /* Check "Protocol" option */ if (strncmp(buf, "Protocol", 8) == 0 && isspace(buf[8])) { + conf->v1 = 0; + conf->v2 = 0; + if (strchr(buf, '1')) conf->v1 = 1; if (strchr(buf, '2')) conf->v2 = 1; } - } + else if (strncmp(buf, "TCPKeepAlive", 12) == 0 && isspace(buf[12])) + { + conf->tcpKeepAlive = strcasestr(buf, "yes") ? 1 : 0; + } + else if (strncmp(buf, "X11Forwarding", 10) == 0 && isspace(buf[10])) + { + conf->x11Forwarding = strcasestr(buf, "yes") ? 1 : 0; + } + else if (strncmp(buf, "Compression", 11) == 0 && isspace(buf[11])) + { + if (strcasestr(buf, "yes")) + conf->compression = 'y'; + else if (strcasestr(buf, "no")) + conf->compression = 'n'; + else if (strcasestr(buf, "delayed")) + conf->compression = 'd'; + } + else if (strncmp(buf, "ClientAliveInterval", 19) == 0 && + isspace(buf[19])) + { + const char* p = &buf[19]; - /* If Protocol option not encountered, then default is 1,2 */ - if (!conf->v1 && !conf->v2) - { - conf->v1 = 1; - conf->v2 = 1; + while (isspace(*p)) + p++; + + conf->clientAliveInterval = atoi(p); + } } + /* Close file */ fclose(is); return 0; @@ -110,7 +149,7 @@ /* Skip lines not ending in "/ssh" */ - if (n <= 4 || strcmp(end -4, "/ssh") != 0) + if (n <= 4 || strcmp(end - 4, "/ssh") != 0) continue; /* Extract columns (do not split around ':' due to IPV6 addresses) */ @@ -156,7 +195,9 @@ } /* State */ case 5: + { break; + } /* PID/Program name */ case 6: { Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-04 20:38:09 UTC (rev 717) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-04 22:23:46 UTC (rev 718) @@ -16,6 +16,18 @@ /* non-zero (1) if sshd supports protocol version 2 */ int v2; + + /* non-zero (1) if sshd TCPKeepAlive option is yes */ + int tcpKeepAlive; + + /* non-zero (1) if sshd ForwardX11 option is yes */ + int x11Forwarding; + + /* Compression option: 'y' (yes), 'n' (no), or 'd' (delayed) */ + char compression; + + /* ClientAliveInterval option: seconds between sends (0 = never send) */ + int clientAliveInterval; }; HIDDEN int GetSSHDConfig(struct SSHDConfig* conf); Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 20:38:09 UTC (rev 717) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 22:23:46 UTC (rev 718) @@ -2,3 +2,4 @@ Linux_SSHCapabilities=Capabilities! Linux_SSHElementCapabilities=ElementCapabilities! Linux_SSHProtocolEndpoint=ProtocolEndpoint! +Linux_SSHProvidesEndpoint=ProvidesEndpoint! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-04 20:38:00
|
Revision: 717 http://omc.svn.sourceforge.net/omc/?rev=717&view=rev Author: mike-brasher Date: 2008-07-04 13:38:09 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Ongoing profile development. Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Capabilities.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilities.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpoint.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpointProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolService.h Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilities.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilities.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolService.h Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Capabilities.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Capabilities.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Capabilities.h 2008-07-04 20:38:09 UTC (rev 717) @@ -0,0 +1,1300 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_Capabilities_h +#define _konkrete_Capabilities_h + +#include <konkret/konkret.h> + +/* +**============================================================================== +** +** struct CapabilitiesRef +** +**============================================================================== +*/ + +/* classname=Linux_SSHCapabilities */ +typedef struct _CapabilitiesRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_Capabilities features */ + const KString InstanceID; + /* CIM_EnabledLogicalElementCapabilities features */ + /* CIM_ProtocolServiceCapabilities features */ + /* CIM_SSHCapabilities features */ + /* Linux_SSHCapabilities features */ +} +CapabilitiesRef; + +static const unsigned char __CapabilitiesRef_sig[] = +{ + 0x15,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,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 CapabilitiesRef_Init( + CapabilitiesRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __CapabilitiesRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus CapabilitiesRef_InitFromInstance( + CapabilitiesRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + CapabilitiesRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus CapabilitiesRef_InitFromObjectPath( + CapabilitiesRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + CapabilitiesRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void CapabilitiesRef_Print( + const CapabilitiesRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* CapabilitiesRef_ToInstance( + const CapabilitiesRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* CapabilitiesRef_ToObjectPath( + const CapabilitiesRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* CapabilitiesRef_NameSpace( + CapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void CapabilitiesRef_SetString_InstanceID( + CapabilitiesRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void CapabilitiesRef_Set_InstanceID( + 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 CapabilitiesRef_Null_InstanceID( + CapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void CapabilitiesRef_Clr_InstanceID( + CapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct Capabilities +** +**============================================================================== +*/ + +/* classname=Linux_SSHCapabilities */ +typedef struct _Capabilities +{ + KBase __base; + /* CIM_ManagedElement features */ + const KString Caption; + const KString Description; + const KString ElementName; + /* CIM_Capabilities features */ + const KString InstanceID; + /* CIM_EnabledLogicalElementCapabilities features */ + const KBoolean ElementNameEditSupported; + const KUint16 MaxElementNameLen; + const KUint16A RequestedStatesSupported; + const KString ElementNameMask; + const KUint16A StateAwareness; + /* CIM_ProtocolServiceCapabilities features */ + const KUint16 MaxConnections; + const KUint16 MaxListeningPorts; + const KBoolean ListeningPortManagementSupported; + /* CIM_SSHCapabilities features */ + const KUint16A SupportedSSHVersions; + const KString OtherSupportedSSHVersion; + const KUint16A SupportedEncryptionAlgorithms; + const KString OtherSupportedEncryptionAlgorithm; + /* Linux_SSHCapabilities features */ +} +Capabilities; + +static const unsigned char __Capabilities_sig[] = +{ + 0x15,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x43,0x61,0x70,0x61,0x62, + 0x69,0x6c,0x69,0x74,0x69,0x65,0x73,0x00,0x10,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, + 0x00,0x18,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x45,0x64, + 0x69,0x74,0x53,0x75,0x70,0x70,0x6f,0x72,0x74,0x65,0x64,0x00,0x03,0x11,0x4d, + 0x61,0x78,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x4c,0x65, + 0x6e,0x00,0x83,0x18,0x52,0x65,0x71,0x75,0x65,0x73,0x74,0x65,0x64,0x53,0x74, + 0x61,0x74,0x65,0x73,0x53,0x75,0x70,0x70,0x6f,0x72,0x74,0x65,0x64,0x00,0x0c, + 0x0f,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x4e,0x61,0x6d,0x65,0x4d,0x61,0x73, + 0x6b,0x00,0x83,0x0e,0x53,0x74,0x61,0x74,0x65,0x41,0x77,0x61,0x72,0x65,0x6e, + 0x65,0x73,0x73,0x00,0x03,0x0e,0x4d,0x61,0x78,0x43,0x6f,0x6e,0x6e,0x65,0x63, + 0x74,0x69,0x6f,0x6e,0x73,0x00,0x03,0x11,0x4d,0x61,0x78,0x4c,0x69,0x73,0x74, + 0x65,0x6e,0x69,0x6e,0x67,0x50,0x6f,0x72,0x74,0x73,0x00,0x00,0x20,0x4c,0x69, + 0x73,0x74,0x65,0x6e,0x69,0x6e,0x67,0x50,0x6f,0x72,0x74,0x4d,0x61,0x6e,0x61, + 0x67,0x65,0x6d,0x65,0x6e,0x74,0x53,0x75,0x70,0x70,0x6f,0x72,0x74,0x65,0x64, + 0x00,0x83,0x14,0x53,0x75,0x70,0x70,0x6f,0x72,0x74,0x65,0x64,0x53,0x53,0x48, + 0x56,0x65,0x72,0x73,0x69,0x6f,0x6e,0x73,0x00,0x0c,0x18,0x4f,0x74,0x68,0x65, + 0x72,0x53,0x75,0x70,0x70,0x6f,0x72,0x74,0x65,0x64,0x53,0x53,0x48,0x56,0x65, + 0x72,0x73,0x69,0x6f,0x6e,0x00,0x83,0x1d,0x53,0x75,0x70,0x70,0x6f,0x72,0x74, + 0x65,0x64,0x45,0x6e,0x63,0x72,0x79,0x70,0x74,0x69,0x6f,0x6e,0x41,0x6c,0x67, + 0x6f,0x72,0x69,0x74,0x68,0x6d,0x73,0x00,0x0c,0x21,0x4f,0x74,0x68,0x65,0x72, + 0x53,0x75,0x70,0x70,0x6f,0x72,0x74,0x65,0x64,0x45,0x6e,0x63,0x72,0x79,0x70, + 0x74,0x69,0x6f,0x6e,0x41,0x6c,0x67,0x6f,0x72,0x69,0x74,0x68,0x6d,0x00, +}; + +KINLINE void Capabilities_Init( + Capabilities* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __Capabilities_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus Capabilities_InitFromInstance( + Capabilities* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + Capabilities_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus Capabilities_InitFromObjectPath( + Capabilities* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + Capabilities_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void Capabilities_Print( + const Capabilities* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* Capabilities_ToInstance( + const Capabilities* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* Capabilities_ToObjectPath( + const Capabilities* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* Capabilities_NameSpace( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void Capabilities_SetString_Caption( + Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_SetString(field, x); + } +} + +KINLINE void Capabilities_Set_Caption( + 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 Capabilities_Null_Caption( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Null(field); + } +} + +KINLINE void Capabilities_Clr_Caption( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Caption; + KString_Clr(field); + } +} + +KINLINE void Capabilities_SetString_Description( + Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_SetString(field, x); + } +} + +KINLINE void Capabilities_Set_Description( + 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 Capabilities_Null_Description( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Null(field); + } +} + +KINLINE void Capabilities_Clr_Description( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Description; + KString_Clr(field); + } +} + +KINLINE void Capabilities_SetString_ElementName( + Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_SetString(field, x); + } +} + +KINLINE void Capabilities_Set_ElementName( + 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 Capabilities_Null_ElementName( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Null(field); + } +} + +KINLINE void Capabilities_Clr_ElementName( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementName; + KString_Clr(field); + } +} + +KINLINE void Capabilities_SetString_InstanceID( + Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_SetString(field, x); + } +} + +KINLINE void Capabilities_Set_InstanceID( + 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 Capabilities_Null_InstanceID( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Null(field); + } +} + +KINLINE void Capabilities_Clr_InstanceID( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->InstanceID; + KString_Clr(field); + } +} + +KINLINE void Capabilities_Set_ElementNameEditSupported( + Capabilities* self, + CMPIBoolean x) +{ + if (self && self->__base.magic == KMAGIC) + { + KBoolean* field = (KBoolean*)&self->ElementNameEditSupported; + KBoolean_Set(field, x); + } +} + +KINLINE void Capabilities_Null_ElementNameEditSupported( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KBoolean* field = (KBoolean*)&self->ElementNameEditSupported; + KBoolean_Null(field); + } +} + +KINLINE void Capabilities_Clr_ElementNameEditSupported( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KBoolean* field = (KBoolean*)&self->ElementNameEditSupported; + KBoolean_Clr(field); + } +} + +KINLINE void Capabilities_Set_MaxElementNameLen( + Capabilities* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->MaxElementNameLen; + KUint16_Set(field, x); + } +} + +KINLINE void Capabilities_Null_MaxElementNameLen( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->MaxElementNameLen; + KUint16_Null(field); + } +} + +KINLINE void Capabilities_Clr_MaxElementNameLen( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->MaxElementNameLen; + KUint16_Clr(field); + } +} + +KINLINE CMPIBoolean Capabilities_Init_RequestedStatesSupported( + Capabilities* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->RequestedStatesSupported; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void Capabilities_InitNull_RequestedStatesSupported( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->RequestedStatesSupported; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean Capabilities_Set_RequestedStatesSupported( + Capabilities* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->RequestedStatesSupported; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 Capabilities_Get_RequestedStatesSupported( + Capabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->RequestedStatesSupported; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean Capabilities_Null_RequestedStatesSupported( + Capabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->RequestedStatesSupported; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void Capabilities_Clr_RequestedStatesSupported( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->RequestedStatesSupported; + KUint16A_Clr(field); + } +} + +/* "Enabled" */ +#define Capabilities_RequestedStatesSupported_Enabled 2 + +/* "Disabled" */ +#define Capabilities_RequestedStatesSupported_Disabled 3 + +/* "Shut Down" */ +#define Capabilities_RequestedStatesSupported_Shut_Down 4 + +/* "Offline" */ +#define Capabilities_RequestedStatesSupported_Offline 6 + +/* "Test" */ +#define Capabilities_RequestedStatesSupported_Test 7 + +/* "Defer" */ +#define Capabilities_RequestedStatesSupported_Defer 8 + +/* "Quiesce" */ +#define Capabilities_RequestedStatesSupported_Quiesce 9 + +/* "Reboot" */ +#define Capabilities_RequestedStatesSupported_Reboot 10 + +/* "Reset" */ +#define Capabilities_RequestedStatesSupported_Reset 11 + +/* "Enabled" */ +#define Capabilities_Set_RequestedStatesSupported_Enabled(SELF, INDEX)\ + Capabilities_Set_RequestedStatesSupported(SELF, INDEX, 2) + +/* "Disabled" */ +#define Capabilities_Set_RequestedStatesSupported_Disabled(SELF, INDEX)\ + Capabilities_Set_RequestedStatesSupported(SELF, INDEX, 3) + +/* "Shut Down" */ +#define Capabilities_Set_RequestedStatesSupported_Shut_Down(SELF, INDEX)\ + Capabilities_Set_RequestedStatesSupported(SELF, INDEX, 4) + +/* "Offline" */ +#define Capabilities_Set_RequestedStatesSupported_Offline(SELF, INDEX)\ + Capabilities_Set_RequestedStatesSupported(SELF, INDEX, 6) + +/* "Test" */ +#define Capabilities_Set_RequestedStatesSupported_Test(SELF, INDEX)\ + Capabilities_Set_RequestedStatesSupported(SELF, INDEX, 7) + +/* "Defer" */ +#define Capabilities_Set_RequestedStatesSupported_Defer(SELF, INDEX)\ + Capabilities_Set_RequestedStatesSupported(SELF, INDEX, 8) + +/* "Quiesce" */ +#define Capabilities_Set_RequestedStatesSupported_Quiesce(SELF, INDEX)\ + Capabilities_Set_RequestedStatesSupported(SELF, INDEX, 9) + +/* "Reboot" */ +#define Capabilities_Set_RequestedStatesSupported_Reboot(SELF, INDEX)\ + Capabilities_Set_RequestedStatesSupported(SELF, INDEX, 10) + +/* "Reset" */ +#define Capabilities_Set_RequestedStatesSupported_Reset(SELF, INDEX)\ + Capabilities_Set_RequestedStatesSupported(SELF, INDEX, 11) + +KINLINE void Capabilities_SetString_ElementNameMask( + Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementNameMask; + KString_SetString(field, x); + } +} + +KINLINE void Capabilities_Set_ElementNameMask( + Capabilities* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementNameMask; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void Capabilities_Null_ElementNameMask( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementNameMask; + KString_Null(field); + } +} + +KINLINE void Capabilities_Clr_ElementNameMask( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->ElementNameMask; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean Capabilities_Init_StateAwareness( + Capabilities* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->StateAwareness; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void Capabilities_InitNull_StateAwareness( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->StateAwareness; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean Capabilities_Set_StateAwareness( + Capabilities* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->StateAwareness; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 Capabilities_Get_StateAwareness( + Capabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->StateAwareness; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean Capabilities_Null_StateAwareness( + Capabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->StateAwareness; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void Capabilities_Clr_StateAwareness( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->StateAwareness; + KUint16A_Clr(field); + } +} + +/* "Implicit" */ +#define Capabilities_StateAwareness_Implicit 2 + +/* "RequestStateChange" */ +#define Capabilities_StateAwareness_RequestStateChange 3 + +/* "Implicit" */ +#define Capabilities_Set_StateAwareness_Implicit(SELF, INDEX)\ + Capabilities_Set_StateAwareness(SELF, INDEX, 2) + +/* "RequestStateChange" */ +#define Capabilities_Set_StateAwareness_RequestStateChange(SELF, INDEX)\ + Capabilities_Set_StateAwareness(SELF, INDEX, 3) + +KINLINE void Capabilities_Set_MaxConnections( + Capabilities* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->MaxConnections; + KUint16_Set(field, x); + } +} + +KINLINE void Capabilities_Null_MaxConnections( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->MaxConnections; + KUint16_Null(field); + } +} + +KINLINE void Capabilities_Clr_MaxConnections( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->MaxConnections; + KUint16_Clr(field); + } +} + +KINLINE void Capabilities_Set_MaxListeningPorts( + Capabilities* self, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->MaxListeningPorts; + KUint16_Set(field, x); + } +} + +KINLINE void Capabilities_Null_MaxListeningPorts( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->MaxListeningPorts; + KUint16_Null(field); + } +} + +KINLINE void Capabilities_Clr_MaxListeningPorts( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16* field = (KUint16*)&self->MaxListeningPorts; + KUint16_Clr(field); + } +} + +KINLINE void Capabilities_Set_ListeningPortManagementSupported( + Capabilities* self, + CMPIBoolean x) +{ + if (self && self->__base.magic == KMAGIC) + { + KBoolean* field = (KBoolean*)&self->ListeningPortManagementSupported; + KBoolean_Set(field, x); + } +} + +KINLINE void Capabilities_Null_ListeningPortManagementSupported( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KBoolean* field = (KBoolean*)&self->ListeningPortManagementSupported; + KBoolean_Null(field); + } +} + +KINLINE void Capabilities_Clr_ListeningPortManagementSupported( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KBoolean* field = (KBoolean*)&self->ListeningPortManagementSupported; + KBoolean_Clr(field); + } +} + +KINLINE CMPIBoolean Capabilities_Init_SupportedSSHVersions( + Capabilities* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedSSHVersions; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void Capabilities_InitNull_SupportedSSHVersions( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedSSHVersions; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean Capabilities_Set_SupportedSSHVersions( + Capabilities* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedSSHVersions; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 Capabilities_Get_SupportedSSHVersions( + Capabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedSSHVersions; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean Capabilities_Null_SupportedSSHVersions( + Capabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedSSHVersions; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void Capabilities_Clr_SupportedSSHVersions( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedSSHVersions; + KUint16A_Clr(field); + } +} + +/* "Unknown" */ +#define Capabilities_SupportedSSHVersions_Unknown 0 + +/* "Other" */ +#define Capabilities_SupportedSSHVersions_Other 1 + +/* "SSHv1" */ +#define Capabilities_SupportedSSHVersions_SSHv1 2 + +/* "SSHv2" */ +#define Capabilities_SupportedSSHVersions_SSHv2 3 + +/* "DMTF Reserved" */ +#define Capabilities_SupportedSSHVersions_DMTF_Reserved 4 + +/* "Vendor Reserved" */ +#define Capabilities_SupportedSSHVersions_Vendor_Reserved 32768 + +/* "Unknown" */ +#define Capabilities_Set_SupportedSSHVersions_Unknown(SELF, INDEX)\ + Capabilities_Set_SupportedSSHVersions(SELF, INDEX, 0) + +/* "Other" */ +#define Capabilities_Set_SupportedSSHVersions_Other(SELF, INDEX)\ + Capabilities_Set_SupportedSSHVersions(SELF, INDEX, 1) + +/* "SSHv1" */ +#define Capabilities_Set_SupportedSSHVersions_SSHv1(SELF, INDEX)\ + Capabilities_Set_SupportedSSHVersions(SELF, INDEX, 2) + +/* "SSHv2" */ +#define Capabilities_Set_SupportedSSHVersions_SSHv2(SELF, INDEX)\ + Capabilities_Set_SupportedSSHVersions(SELF, INDEX, 3) + +/* "DMTF Reserved" */ +#define Capabilities_Set_SupportedSSHVersions_DMTF_Reserved(SELF, INDEX)\ + Capabilities_Set_SupportedSSHVersions(SELF, INDEX, 4) + +/* "Vendor Reserved" */ +#define Capabilities_Set_SupportedSSHVersions_Vendor_Reserved(SELF, INDEX)\ + Capabilities_Set_SupportedSSHVersions(SELF, INDEX, 32768) + +KINLINE void Capabilities_SetString_OtherSupportedSSHVersion( + Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherSupportedSSHVersion; + KString_SetString(field, x); + } +} + +KINLINE void Capabilities_Set_OtherSupportedSSHVersion( + Capabilities* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherSupportedSSHVersion; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void Capabilities_Null_OtherSupportedSSHVersion( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherSupportedSSHVersion; + KString_Null(field); + } +} + +KINLINE void Capabilities_Clr_OtherSupportedSSHVersion( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherSupportedSSHVersion; + KString_Clr(field); + } +} + +KINLINE CMPIBoolean Capabilities_Init_SupportedEncryptionAlgorithms( + Capabilities* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedEncryptionAlgorithms; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void Capabilities_InitNull_SupportedEncryptionAlgorithms( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedEncryptionAlgorithms; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean Capabilities_Set_SupportedEncryptionAlgorithms( + Capabilities* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedEncryptionAlgorithms; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 Capabilities_Get_SupportedEncryptionAlgorithms( + Capabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedEncryptionAlgorithms; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean Capabilities_Null_SupportedEncryptionAlgorithms( + Capabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedEncryptionAlgorithms; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void Capabilities_Clr_SupportedEncryptionAlgorithms( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->SupportedEncryptionAlgorithms; + KUint16A_Clr(field); + } +} + +/* "Unknown" */ +#define Capabilities_SupportedEncryptionAlgorithms_Unknown 0 + +/* "Other" */ +#define Capabilities_SupportedEncryptionAlgorithms_Other 1 + +/* "DES" */ +#define Capabilities_SupportedEncryptionAlgorithms_DES 2 + +/* "DES3" */ +#define Capabilities_SupportedEncryptionAlgorithms_DES3 3 + +/* "RC4" */ +#define Capabilities_SupportedEncryptionAlgorithms_RC4 4 + +/* "IDEA" */ +#define Capabilities_SupportedEncryptionAlgorithms_IDEA 5 + +/* "SKIPJACK" */ +#define Capabilities_SupportedEncryptionAlgorithms_SKIPJACK 6 + +/* "DMTF Reserved" */ +#define Capabilities_SupportedEncryptionAlgorithms_DMTF_Reserved 7 + +/* "Vendor Reserved" */ +#define Capabilities_SupportedEncryptionAlgorithms_Vendor_Reserved 32768 + +/* "Unknown" */ +#define Capabilities_Set_SupportedEncryptionAlgorithms_Unknown(SELF, INDEX)\ + Capabilities_Set_SupportedEncryptionAlgorithms(SELF, INDEX, 0) + +/* "Other" */ +#define Capabilities_Set_SupportedEncryptionAlgorithms_Other(SELF, INDEX)\ + Capabilities_Set_SupportedEncryptionAlgorithms(SELF, INDEX, 1) + +/* "DES" */ +#define Capabilities_Set_SupportedEncryptionAlgorithms_DES(SELF, INDEX)\ + Capabilities_Set_SupportedEncryptionAlgorithms(SELF, INDEX, 2) + +/* "DES3" */ +#define Capabilities_Set_SupportedEncryptionAlgorithms_DES3(SELF, INDEX)\ + Capabilities_Set_SupportedEncryptionAlgorithms(SELF, INDEX, 3) + +/* "RC4" */ +#define Capabilities_Set_SupportedEncryptionAlgorithms_RC4(SELF, INDEX)\ + Capabilities_Set_SupportedEncryptionAlgorithms(SELF, INDEX, 4) + +/* "IDEA" */ +#define Capabilities_Set_SupportedEncryptionAlgorithms_IDEA(SELF, INDEX)\ + Capabilities_Set_SupportedEncryptionAlgorithms(SELF, INDEX, 5) + +/* "SKIPJACK" */ +#define Capabilities_Set_SupportedEncryptionAlgorithms_SKIPJACK(SELF, INDEX)\ + Capabilities_Set_SupportedEncryptionAlgorithms(SELF, INDEX, 6) + +/* "DMTF Reserved" */ +#define Capabilities_Set_SupportedEncryptionAlgorithms_DMTF_Reserved(SELF, INDEX)\ + Capabilities_Set_SupportedEncryptionAlgorithms(SELF, INDEX, 7) + +/* "Vendor Reserved" */ +#define Capabilities_Set_SupportedEncryptionAlgorithms_Vendor_Reserved(SELF, INDEX)\ + Capabilities_Set_SupportedEncryptionAlgorithms(SELF, INDEX, 32768) + +KINLINE void Capabilities_SetString_OtherSupportedEncryptionAlgorithm( + Capabilities* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherSupportedEncryptionAlgorithm; + KString_SetString(field, x); + } +} + +KINLINE void Capabilities_Set_OtherSupportedEncryptionAlgorithm( + Capabilities* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherSupportedEncryptionAlgorithm; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void Capabilities_Null_OtherSupportedEncryptionAlgorithm( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherSupportedEncryptionAlgorithm; + KString_Null(field); + } +} + +KINLINE void Capabilities_Clr_OtherSupportedEncryptionAlgorithm( + Capabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->OtherSupportedEncryptionAlgorithm; + KString_Clr(field); + } +} + +/* classname=Linux_SSHCapabilities */ +typedef struct _Capabilities_CreateGoalSettings_Args +{ + KBase __base; + /* IN */ + KStringA TemplateGoalSettings; + /* IN OUT */ + KStringA SupportedGoalSettings; +} +Capabilities_CreateGoalSettings_Args; + +static const unsigned char __Capabilities_CreateGoalSettings_Args_sig[] = +{ + 0x12,0x43,0x72,0x65,0x61,0x74,0x65,0x47,0x6f,0x61,0x6c,0x53,0x65,0x74,0x74, + 0x69,0x6e,0x67,0x73,0x00,0x02,0xac,0x14,0x54,0x65,0x6d,0x70,0x6c,0x61,0x74, + 0x65,0x47,0x6f,0x61,0x6c,0x53,0x65,0x74,0x74,0x69,0x6e,0x67,0x73,0x00,0xbc, + 0x15,0x53,0x75,0x70,0x70,0x6f,0x72,0x74,0x65,0x64,0x47,0x6f,0x61,0x6c,0x53, + 0x65,0x74,0x74,0x69,0x6e,0x67,0x73,0x00, +}; + +KINLINE void Capabilities_CreateGoalSettings_Args_Init( + Capabilities_CreateGoalSettings_Args* self, + const CMPIBroker* cb) +{ + const unsigned char* sig = __Capabilities_CreateGoalSettings_Args_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, NULL); +} + +KINLINE CMPIStatus Capabilities_CreateGoalSettings_Args_InitFromArgs( + Capabilities_CreateGoalSettings_Args* self, + const CMPIBroker* cb, + const CMPIArgs* x, + CMPIBoolean in, + CMPIBoolean out) +{ + Capabilities_CreateGoalSettings_Args_Init(self, cb); + return KBase_FromArgs(&self->__base, x, in, out); +} + +KINLINE CMPIArgs* Capabilities_CreateGoalSettings_Args_ToArgs( + const Capabilities_CreateGoalSettings_Args* self, + CMPIBoolean in, + CMPIBoolean out, + CMPIStatus* status) +{ + return KBase_ToArgs(&self->__base, in, out, status); +} + +KINLINE CMPIStatus Capabilities_CreateGoalSettings_Args_SetArgs( + const Capabilities_CreateGoalSettings_Args* self, + CMPIBoolean in, + CMPIBoolean out, + CMPIArgs* ca) +{ + return KBase_SetToArgs(&self->__base, in, out, ca); +} + +KINLINE void Capabilities_CreateGoalSettings_Args_Print( + const Capabilities_CreateGoalSettings_Args* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'a'); +} + +/* +**============================================================================== +** +** Capabilities methods +** +**============================================================================== +*/ + +KEXTERN KUint16 Capabilities_CreateGoalSettings( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const CapabilitiesRef* self, + const KStringA* TemplateGoalSettings, + KStringA* SupportedGoalSettings, + CMPIStatus* status); + +KINLINE CMPIStatus Capabilities_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + CapabilitiesRef self; + + KReturnIf(CapabilitiesRef_InitFromObjectPath(&self, cb, cop)); + + if (strcasecmp(meth, "CreateGoalSettings") == 0) + { + CMPIStatus st = KSTATUS_INIT; + Capabilities_CreateGoalSettings_Args args; + KUint16 r; + + KReturnIf(Capabilities_CreateGoalSettings_Args_InitFromArgs( + &args, cb, in, 1, 0)); + + r = Capabilities_CreateGoalSettings( + cb, + mi, + cc, + &self, + &args.TemplateGoalSettings, + &args.SupportedGoalSettings, + &st); + + if (!KOkay(st)) + return st; + + if (!r.exists) + KReturn(ERR_FAILED); + + KReturnIf(Capabilities_CreateGoalSettings_Args_SetArgs( + &args, 0, 1, out)); + KReturnUint16Data(cr, &r); + CMReturnDone(cr); + + KReturn(OK); + } + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_Capabilities_h */ Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilities.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilities.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilities.h 2008-07-04 20:38:09 UTC (rev 717) @@ -0,0 +1,485 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_ElementCapabilities_h +#define _konkrete_ElementCapabilities_h + +#include <konkret/konkret.h> +#include "ProtocolService.h" +#include "Capabilities.h" + +/* +**============================================================================== +** +** struct ElementCapabilitiesRef +** +**============================================================================== +*/ + +/* classname=Linux_SSHElementCapabilities */ +typedef struct _ElementCapabilitiesRef +{ + KBase __base; + /* CIM_ElementCapabilities features */ + const KRef ManagedElement; /* ProtocolService */ + const KRef Capabilities; /* Capabilities */ + /* Linux_SSHElementCapabilities features */ +} +ElementCapabilitiesRef; + +static const unsigned char __ElementCapabilitiesRef_sig[] = +{ + 0x1c,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x45,0x6c,0x65,0x6d,0x65, + 0x6e,0x74,0x43,0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x69,0x65,0x73,0x00, + 0x02,0x4e,0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65, + 0x6e,0x74,0x00,0x4e,0x0c,0x43,0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x69, + 0x65,0x73,0x00, +}; + +KINLINE void ElementCapabilitiesRef_Init( + ElementCapabilitiesRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ElementCapabilitiesRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->ManagedElement)->__sig = __ProtocolService_sig; + ((KRef*)&self->Capabilities)->__sig = __Capabilities_sig; +} + +KINLINE CMPIStatus ElementCapabilitiesRef_InitFromInstance( + ElementCapabilitiesRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ElementCapabilitiesRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ElementCapabilitiesRef_InitFromObjectPath( + ElementCapabilitiesRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ElementCapabilitiesRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ElementCapabilitiesRef_Print( + const ElementCapabilitiesRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* ElementCapabilitiesRef_ToInstance( + const ElementCapabilitiesRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ElementCapabilitiesRef_ToObjectPath( + const ElementCapabilitiesRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ElementCapabilitiesRef_NameSpace( + ElementCapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ElementCapabilitiesRef_SetObjectPath_ManagedElement( + ElementCapabilitiesRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ElementCapabilitiesRef_Set_ManagedElement( + ElementCapabilitiesRef* 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 ElementCapabilitiesRef_Null_ManagedElement( + ElementCapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_Null(field); + } +} + +KINLINE void ElementCapabilitiesRef_Clr_ManagedElement( + ElementCapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_Clr(field); + } +} + +KINLINE void ElementCapabilitiesRef_SetObjectPath_Capabilities( + ElementCapabilitiesRef* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Capabilities; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ElementCapabilitiesRef_Set_Capabilities( + ElementCapabilitiesRef* self, + const CapabilitiesRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Capabilities; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ElementCapabilitiesRef_Null_Capabilities( + ElementCapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Capabilities; + KRef_Null(field); + } +} + +KINLINE void ElementCapabilitiesRef_Clr_Capabilities( + ElementCapabilitiesRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Capabilities; + KRef_Clr(field); + } +} + +/* +**============================================================================== +** +** struct ElementCapabilities +** +**============================================================================== +*/ + +/* classname=Linux_SSHElementCapabilities */ +typedef struct _ElementCapabilities +{ + KBase __base; + /* CIM_ElementCapabilities features */ + const KRef ManagedElement; /* ProtocolService */ + const KRef Capabilities; /* Capabilities */ + const KUint16A Characteristics; + /* Linux_SSHElementCapabilities features */ +} +ElementCapabilities; + +static const unsigned char __ElementCapabilities_sig[] = +{ + 0x1c,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x45,0x6c,0x65,0x6d,0x65, + 0x6e,0x74,0x43,0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x69,0x65,0x73,0x00, + 0x03,0x4e,0x0e,0x4d,0x61,0x6e,0x61,0x67,0x65,0x64,0x45,0x6c,0x65,0x6d,0x65, + 0x6e,0x74,0x00,0x4e,0x0c,0x43,0x61,0x70,0x61,0x62,0x69,0x6c,0x69,0x74,0x69, + 0x65,0x73,0x00,0x83,0x0f,0x43,0x68,0x61,0x72,0x61,0x63,0x74,0x65,0x72,0x69, + 0x73,0x74,0x69,0x63,0x73,0x00, +}; + +KINLINE void ElementCapabilities_Init( + ElementCapabilities* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ElementCapabilities_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); + ((KRef*)&self->ManagedElement)->__sig = __ProtocolService_sig; + ((KRef*)&self->Capabilities)->__sig = __Capabilities_sig; +} + +KINLINE CMPIStatus ElementCapabilities_InitFromInstance( + ElementCapabilities* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ElementCapabilities_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ElementCapabilities_InitFromObjectPath( + ElementCapabilities* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ElementCapabilities_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ElementCapabilities_Print( + const ElementCapabilities* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'i'); +} + +KINLINE CMPIInstance* ElementCapabilities_ToInstance( + const ElementCapabilities* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ElementCapabilities_ToObjectPath( + const ElementCapabilities* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ElementCapabilities_NameSpace( + ElementCapabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ElementCapabilities_SetObjectPath_ManagedElement( + ElementCapabilities* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ElementCapabilities_Set_ManagedElement( + ElementCapabilities* 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 ElementCapabilities_Null_ManagedElement( + ElementCapabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_Null(field); + } +} + +KINLINE void ElementCapabilities_Clr_ManagedElement( + ElementCapabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->ManagedElement; + KRef_Clr(field); + } +} + +KINLINE void ElementCapabilities_SetObjectPath_Capabilities( + ElementCapabilities* self, + const CMPIObjectPath* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Capabilities; + KRef_SetObjectPath(field, x); + } +} + +KINLINE CMPIStatus ElementCapabilities_Set_Capabilities( + ElementCapabilities* self, + const CapabilitiesRef* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Capabilities; + return KRef_Set(field, &x->__base); + } + CMReturn(CMPI_RC_ERR_FAILED); +} + +KINLINE void ElementCapabilities_Null_Capabilities( + ElementCapabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Capabilities; + KRef_Null(field); + } +} + +KINLINE void ElementCapabilities_Clr_Capabilities( + ElementCapabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KRef* field = (KRef*)&self->Capabilities; + KRef_Clr(field); + } +} + +KINLINE CMPIBoolean ElementCapabilities_Init_Characteristics( + ElementCapabilities* self, + CMPICount count) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->Characteristics; + return KUint16A_Init(field, self->__base.cb, count); + } + return 0; +} + +KINLINE void ElementCapabilities_InitNull_Characteristics( + ElementCapabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->Characteristics; + KUint16A_InitNull(field); + } +} + +KINLINE CMPIBoolean ElementCapabilities_Set_Characteristics( + ElementCapabilities* self, + CMPICount i, + CMPIUint16 x) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->Characteristics; + return KUint16A_Set(field, i, x); + } + return 0; +} + +KINLINE KUint16 ElementCapabilities_Get_Characteristics( + ElementCapabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->Characteristics; + return KUint16A_Get(field, i); + } + return KUint16A_Get(NULL, 0); +} + +KINLINE CMPIBoolean ElementCapabilities_Null_Characteristics( + ElementCapabilities* self, + CMPICount i) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->Characteristics; + return KUint16A_Null(field, i); + } + return 0; +} + +KINLINE void ElementCapabilities_Clr_Characteristics( + ElementCapabilities* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KUint16A* field = (KUint16A*)&self->Characteristics; + KUint16A_Clr(field); + } +} + +/* "Default" */ +#define ElementCapabilities_Characteristics_Default 2 + +/* "Current" */ +#define ElementCapabilities_Characteristics_Current 3 + +/* "DMTF Reserved" */ +#define ElementCapabilities_Characteristics_DMTF_Reserved 0 + +/* "Vendor Specific" */ +#define ElementCapabilities_Characteristics_Vendor_Specific 32768 + +/* "Default" */ +#define ElementCapabilities_Set_Characteristics_Default(SELF, INDEX)\ + ElementCapabilities_Set_Characteristics(SELF, INDEX, 2) + +/* "Current" */ +#define ElementCapabilities_Set_Characteristics_Current(SELF, INDEX)\ + ElementCapabilities_Set_Characteristics(SELF, INDEX, 3) + +/* "DMTF Reserved" */ +#define ElementCapabilities_Set_Characteristics_DMTF_Reserved(SELF, INDEX)\ + ElementCapabilities_Set_Characteristics(SELF, INDEX, 0) + +/* "Vendor Specific" */ +#define ElementCapabilities_Set_Characteristics_Vendor_Specific(SELF, INDEX)\ + ElementCapabilities_Set_Characteristics(SELF, INDEX, 32768) + +/* +**============================================================================== +** +** ElementCapabilities methods +** +**============================================================================== +*/ + +KINLINE CMPIStatus ElementCapabilities_DispatchMethod( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + ElementCapabilitiesRef self; + + KReturnIf(ElementCapabilitiesRef_InitFromObjectPath(&self, cb, cop)); + + + KReturn(ERR_METHOD_NOT_FOUND); +} + +#endif /* _konkrete_ElementCapabilities_h */ Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpoint.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpoint.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolEndpoint.h 2008-07-04 20:38:09 UTC (rev 717) @@ -0,0 +1,5506 @@ +/* +**============================================================================== +** +** CAUTION: This file generated by KonkretCMPI. Please do not edit. +** +**============================================================================== +*/ + +#ifndef _konkrete_ProtocolEndpoint_h +#define _konkrete_ProtocolEndpoint_h + +#include <konkret/konkret.h> +#include "CIM_ConcreteJob.h" + +/* +**============================================================================== +** +** struct ProtocolEndpointRef +** +**============================================================================== +*/ + +/* classname=Linux_SSHProtocolEndpoint */ +typedef struct _ProtocolEndpointRef +{ + KBase __base; + /* CIM_ManagedElement features */ + /* CIM_ManagedSystemElement features */ + const KString Name; + /* CIM_LogicalElement features */ + /* CIM_EnabledLogicalElement features */ + /* CIM_ServiceAccessPoint features */ + const KString SystemCreationClassName; + const KString SystemName; + const KString CreationClassName; + /* CIM_ProtocolEndpoint features */ + /* CIM_SSHProtocolEndpoint features */ + /* Linux_SSHProtocolEndpoint features */ +} +ProtocolEndpointRef; + +static const unsigned char __ProtocolEndpointRef_sig[] = +{ + 0x19,0x4c,0x69,0x6e,0x75,0x78,0x5f,0x53,0x53,0x48,0x50,0x72,0x6f,0x74,0x6f, + 0x63,0x6f,0x6c,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74,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 ProtocolEndpointRef_Init( + ProtocolEndpointRef* self, + const CMPIBroker* cb, + const char* ns) +{ + const unsigned char* sig = __ProtocolEndpointRef_sig; + KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); +} + +KINLINE CMPIStatus ProtocolEndpointRef_InitFromInstance( + ProtocolEndpointRef* self, + const CMPIBroker* cb, + const CMPIInstance* x) +{ + ProtocolEndpointRef_Init(self, cb, NULL); + return KBase_FromInstance(&self->__base, x); +} + +KINLINE CMPIStatus ProtocolEndpointRef_InitFromObjectPath( + ProtocolEndpointRef* self, + const CMPIBroker* cb, + const CMPIObjectPath* x) +{ + ProtocolEndpointRef_Init(self, cb, NULL); + return KBase_FromObjectPath(&self->__base, x); +} + +KINLINE void ProtocolEndpointRef_Print( + const ProtocolEndpointRef* self, + FILE* os) +{ + KBase_Print(os, &self->__base, 'r'); +} + +KINLINE CMPIInstance* ProtocolEndpointRef_ToInstance( + const ProtocolEndpointRef* self, + CMPIStatus* status) +{ + return KBase_ToInstance(&self->__base, status); +} + +KINLINE CMPIObjectPath* ProtocolEndpointRef_ToObjectPath( + const ProtocolEndpointRef* self, + CMPIStatus* status) +{ + return KBase_ToObjectPath(&self->__base, status); +} + +KINLINE const char* ProtocolEndpointRef_NameSpace( + ProtocolEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + return self->__base.ns ? KChars(self->__base.ns) : NULL; + return NULL; +} + +KINLINE void ProtocolEndpointRef_SetString_Name( + ProtocolEndpointRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_SetString(field, x); + } +} + +KINLINE void ProtocolEndpointRef_Set_Name( + ProtocolEndpointRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ProtocolEndpointRef_Null_Name( + ProtocolEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Null(field); + } +} + +KINLINE void ProtocolEndpointRef_Clr_Name( + ProtocolEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->Name; + KString_Clr(field); + } +} + +KINLINE void ProtocolEndpointRef_SetString_SystemCreationClassName( + ProtocolEndpointRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void ProtocolEndpointRef_Set_SystemCreationClassName( + ProtocolEndpointRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ProtocolEndpointRef_Null_SystemCreationClassName( + ProtocolEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Null(field); + } +} + +KINLINE void ProtocolEndpointRef_Clr_SystemCreationClassName( + ProtocolEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemCreationClassName; + KString_Clr(field); + } +} + +KINLINE void ProtocolEndpointRef_SetString_SystemName( + ProtocolEndpointRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_SetString(field, x); + } +} + +KINLINE void ProtocolEndpointRef_Set_SystemName( + ProtocolEndpointRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ProtocolEndpointRef_Null_SystemName( + ProtocolEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Null(field); + } +} + +KINLINE void ProtocolEndpointRef_Clr_SystemName( + ProtocolEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->SystemName; + KString_Clr(field); + } +} + +KINLINE void ProtocolEndpointRef_SetString_CreationClassName( + ProtocolEndpointRef* self, + CMPIString* x) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_SetString(field, x); + } +} + +KINLINE void ProtocolEndpointRef_Set_CreationClassName( + ProtocolEndpointRef* self, + const char* s) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Set(field, self->__base.cb, s); + } +} + +KINLINE void ProtocolEndpointRef_Null_CreationClassName( + ProtocolEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Null(field); + } +} + +KINLINE void ProtocolEndpointRef_Clr_CreationClassName( + ProtocolEndpointRef* self) +{ + if (self && self->__base.magic == KMAGIC) + { + KString* field = (KString*)&self->CreationClassName; + KString_Clr(field); + } +} + +/* +**============================================================================== +** +** struct ProtocolEndpoint +** +**============================================================================== +*/ + +/* classname=Linux_SSHProtocolEndpoint */ +typedef struct _ProtocolEndpoint +{ + 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_ServiceAccessPoint features */ + const KString SystemCreationClassName; + const KString SystemName; + const KString CreationClassName; + /* CIM_ProtocolEndpoint features */ + const KString NameFormat; + const KUint16 ProtocolType; + const KUint16 ProtocolIFType; + const KString OtherTypeDescription; + const KBoolean BroadcastResetSupported; + /* CIM_SSHProtocolEndpoint features */ + const KUint16A EnabledSSHVersions; + const KS... [truncated message content] |
From: <mik...@us...> - 2008-07-04 20:36:42
|
Revision: 716 http://omc.svn.sourceforge.net/omc/?rev=716&view=rev Author: mike-brasher Date: 2008-07-04 13:36:33 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Ongoing ssh service profile development. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 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/ProtocolServiceProvider.c Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolServiceProvider.c Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 19:32:55 UTC (rev 715) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 20:36:33 UTC (rev 716) @@ -38,11 +38,11 @@ // ================================================================== -// Linux_SSH_SSHProtocolEndpoint : CIM_SSHProtocolEndpoint +// Linux_SSHProtocolEndpoint : CIM_SSHProtocolEndpoint // ================================================================== [Version ( "0.0.1" ), Description ( "Linux instrumentation of SMASH's SSH protocol endpoint")] -class Linux_SSH_SSHProtocolEndpoint : CIM_SSHProtocolEndpoint { +class Linux_SSHProtocolEndpoint : CIM_SSHProtocolEndpoint { [Description ( "LogonId of the authenticated user")] String AuthenticatedUser; @@ -58,11 +58,11 @@ // ================================================================== -// Linux_SSH_TCPProtocolEndpoint : CIM_TCPProtocolEndpoint +// Linux_TCPProtocolEndpoint : CIM_TCPProtocolEndpoint // ================================================================== [Version ( "0.0.1" ), Description ( "Linux instrumentation of SMASH's TCP protocol endpoint for ssh")] -class Linux_SSH_TCPProtocolEndpoint : CIM_TCPProtocolEndpoint { +class Linux_TCPProtocolEndpoint : CIM_TCPProtocolEndpoint { }; @@ -132,7 +132,7 @@ [Override ( "Dependent" ), Key, Description ( "The TCPProtocolEndpoint access point for the SSH Service")] - Linux_SSH_TCPProtocolEndpoint REF Dependent; + Linux_TCPProtocolEndpoint REF Dependent; }; @@ -150,7 +150,7 @@ [Override ( "Dependent" ), Key, Description ( "The TCPProtocolEndpoint access point hosted on the system")] - Linux_SSH_TCPProtocolEndpoint REF Dependent; + Linux_TCPProtocolEndpoint REF Dependent; }; @@ -168,7 +168,7 @@ [Override ( "Dependent" ), Key, Description ( "The SSHProtocolEndpoint access point hosted on the system")] - Linux_SSH_SSHProtocolEndpoint REF Dependent; + Linux_SSHProtocolEndpoint REF Dependent; }; @@ -327,7 +327,7 @@ [Override ( "ManagedElement" ), Key, Description ( "The Managed SSHProtocolEndpoint")] - Linux_SSH_SSHProtocolEndpoint REF ManagedElement; + Linux_SSHProtocolEndpoint REF ManagedElement; [Override ( "SettingData" ), Key, Description ( "The SSHSettingData for the service")] @@ -370,7 +370,7 @@ [Override ( "Endpoint" ), Key, Description ( "The SSHProtocolEndpoint that owns the process")] - Linux_SSH_SSHProtocolEndpoint REF Endpoint; + Linux_SSHProtocolEndpoint REF Endpoint; [Override ( "Process" ), Key, Description ( "The Linux_UnixProcess owned by the ssh session")] @@ -380,33 +380,33 @@ // ================================================================== -// Linux_SSH_SSHEndpointBindsToTCPEndpoint +// Linux_SSHEndpointBindsToTCPEndpoint // ================================================================== [Association, Version ( "0.0.1" ), Description ( "This association indicates that an SSH Protocol Endpoint is " "dependent on a TCP Protocol Endpoint for the port number.")] -class Linux_SSH_SSHEndpointBindsToTCPEndpoint : CIM_BindsTo { +class Linux_SSHEndpointBindsToTCPEndpoint : CIM_BindsTo { [Override ( "Antecedent" ), Description ( "The TCP Protocol Endpoint that is accessed by the SSH " "Protocol Endpoint.")] - Linux_SSH_TCPProtocolEndpoint REF Antecedent; + Linux_TCPProtocolEndpoint REF Antecedent; [Override ( "Dependent" ), Description ( "The SSH Protocol Endpoint that is dependent on the TCP " "Protocol Endpoint (for the port number).")] - Linux_SSH_SSHProtocolEndpoint REF Dependent; + Linux_SSHProtocolEndpoint REF Dependent; }; // ================================================================== -// Linux_SSH_TCPEndpointBindsToIPEndpoint +// Linux_TCPEndpointBindsToIPEndpoint // ================================================================== [Association, Version ( "0.0.1" ), Description ( "This association indicates that a TCP Protocol Endpoint is " "dependent on an IP Protocol Endpoint for the address.")] -class Linux_SSH_TCPEndpointBindsToIPEndpoint : CIM_BindsTo { +class Linux_TCPEndpointBindsToIPEndpoint : CIM_BindsTo { [Override ( "Antecedent" ), Description ( "The IP Protocol Endpoint that is accessed by the TCP " @@ -416,7 +416,7 @@ [Override ( "Dependent" ), Description ( "The TCP Protocol Endpoint that is dependent on the IP " "Protocol Endpoint (for the address).")] - Linux_SSH_TCPProtocolEndpoint REF Dependent; + Linux_TCPProtocolEndpoint 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-04 19:32:55 UTC (rev 715) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-04 20:36:33 UTC (rev 716) @@ -1,4 +1,5 @@ # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Linux_SSHProtocolService root/cimv2 SSHProtocolService linux_sshserviceprovider instance method -Linux_SSHCapabilities root/cimv2 SSHCapabilities linux_sshserviceprovider instance method -Linux_SSHElementCapabilities root/cimv2 SSHElementCapabilities linux_sshserviceprovider instance association +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_SSHProtocolEndpoint root/cimv2 ProtocolEndpoint linux_sshserviceprovider instance method Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-04 19:32:55 UTC (rev 715) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-04 20:36:33 UTC (rev 716) @@ -34,17 +34,16 @@ const char** properties) { const char* ns = KNameSpace(cop); - SSHProtocolServiceRef m; /* ManagedElement */ + ProtocolServiceRef m; /* ManagedElement */ CapabilitiesRef c; /* Capabilities */ ElementCapabilities x; /* Create ElementCapabilities.ManagedElement */ - SSHProtocolServiceRef_Init(&m, _cb, ns); - SSHProtocolServiceRef_Set_SystemCreationClassName( - &m, CompSysClassName().str); - SSHProtocolServiceRef_Set_CreationClassName(&m, "Linux_SSHProtocolService"); - SSHProtocolServiceRef_Set_SystemName(&m, SysName().str); - SSHProtocolServiceRef_Set_Name(&m, "SBLIM:Linux_SSHProtocolService"); + ProtocolServiceRef_Init(&m, _cb, ns); + ProtocolServiceRef_Set_SystemCreationClassName(&m, SysClassName().str); + ProtocolServiceRef_Set_CreationClassName(&m, "Linux_SSHProtocolService"); + ProtocolServiceRef_Set_SystemName(&m, SysName().str); + ProtocolServiceRef_Set_Name(&m, "SBLIM:Linux_SSHProtocolService"); /* Create ElementCapabilities.Capabilities */ CapabilitiesRef_Init(&c, _cb, ns); Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 19:32:55 UTC (rev 715) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 20:36:33 UTC (rev 716) @@ -8,7 +8,7 @@ liblinux_sshserviceprovider_la_SOURCES = \ Resource.c \ - SSHProtocolServiceProvider.c \ + ProtocolServiceProvider.c \ CapabilitiesProvider.c \ ElementCapabilitiesProvider.c \ ProtocolEndpointProvider.c Copied: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c (from rev 713, cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolServiceProvider.c) =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-04 20:36:33 UTC (rev 716) @@ -0,0 +1,250 @@ +#include <konkret/konkret.h> +#include <cmpiutil/base.h> +#include <cmpiutil/exec.h> +#include "ProtocolService.h" +#include "Resource.h" + +static const CMPIBroker* _cb = NULL; + +static void ProtocolServiceInitialize() +{ +} + +static CMPIStatus ProtocolServiceCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ProtocolServiceEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +Str256 Get() +{ + Str256 x; + return x; +} + +static CMPIStatus ProtocolServiceEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + ProtocolService x; + int sshd_status; + + /* Get status of sshd */ + sshd_status = GetSSHDStatus(); + + ProtocolService_Init(&x, _cb, KNameSpace(cop)); + + /* SystemCreationClassName */ + ProtocolService_Set_SystemCreationClassName(&x, SysClassName().str); + + /* CreationClassName */ + ProtocolService_Set_CreationClassName(&x, "Linux_SSHProtocolService"); + + /* SystemName */ + ProtocolService_Set_SystemName(&x, SysName().str); + + /* Name */ + ProtocolService_Set_Name(&x, "SBLIM:Linux_SSHProtocolService"); + + /* Protocol */ + ProtocolService_Set_Protocol_SSH(&x); + + /* MaxConnections */ + ProtocolService_Set_MaxConnections(&x, 65535); + + /* EnabledState */ + if (sshd_status == 0) + ProtocolService_Set_EnabledState_Enabled(&x); + else + ProtocolService_Set_EnabledState_Disabled(&x); + + /* ElementName */ + ProtocolService_Set_ElementName(&x, "Linux_SSHProtocolService"); + + /* OperationalStatus */ + ProtocolService_Init_OperationalStatus(&x, 1); + + if (sshd_status == 0) + ProtocolService_Set_OperationalStatus_OK(&x, 0); + else + ProtocolService_Set_OperationalStatus_Unknown(&x, 0); + + /* HealthState */ + if (sshd_status == 0) + ProtocolService_Set_HealthState_OK(&x); + else + ProtocolService_Set_HealthState_Unknown(&x); + + KReturnInstance(cr, x); + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ProtocolServiceGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus ProtocolServiceCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ProtocolServiceModifyInstance( + 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 ProtocolServiceDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ProtocolServiceExecQuery( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* lang, + const char* query) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +CMInstanceMIStub(ProtocolService, ProtocolService, _cb, ProtocolServiceInitialize()) + +static CMPIStatus ProtocolServiceMethodCleanup( + CMPIMethodMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ProtocolServiceInvokeMethod( + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + return ProtocolService_DispatchMethod( + _cb, mi, cc, cr, cop, meth, in, out); +} + +CMMethodMIStub( + ProtocolService, + ProtocolService, + _cb, + ProtocolServiceInitialize()) + +KUint32 ProtocolService_RequestStateChange( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const ProtocolServiceRef* self, + const KUint16* RequestedState, + KRef* Job, + const KDateTime* TimeoutPeriod, + CMPIStatus* status) +{ + KUint32 result = KUINT32_INIT; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} + +KUint32 ProtocolService_StartService( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const ProtocolServiceRef* self, + CMPIStatus* status) +{ + KUint32 result = KUINT32_INIT; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} + +KUint32 ProtocolService_StopService( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const ProtocolServiceRef* self, + CMPIStatus* status) +{ + KUint32 result = KUINT32_INIT; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} + +KUint32 ProtocolService_ChangeAffectedElementsAssignedSequence( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const ProtocolServiceRef* self, + const KRefA* ManagedElements, + const KUint16A* AssignedSequence, + KRef* Job, + CMPIStatus* status) +{ + KUint32 result = KUINT32_INIT; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} + +KUint32 ProtocolService_ListenOnPort( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const ProtocolServiceRef* self, + const KUint32* PortNumber, + const KRef* IPEndpoint, + KRef* TCPEndpoint, + CMPIStatus* status) +{ + KUint32 result = KUINT32_INIT; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-04 19:32:55 UTC (rev 715) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-04 20:36:33 UTC (rev 716) @@ -49,7 +49,7 @@ return s; } -static __inline__ Str256 CompSysClassName() +static __inline__ Str256 SysClassName() { Str256 s; s.str = s.buf; Deleted: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolServiceProvider.c 2008-07-04 19:32:55 UTC (rev 715) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolServiceProvider.c 2008-07-04 20:36:33 UTC (rev 716) @@ -1,250 +0,0 @@ -#include <konkret/konkret.h> -#include <cmpiutil/base.h> -#include <cmpiutil/exec.h> -#include "SSHProtocolService.h" -#include "Resource.h" - -static const CMPIBroker* _cb = NULL; - -static void SSHProtocolServiceInitialize() -{ -} - -static CMPIStatus SSHProtocolServiceCleanup( - CMPIInstanceMI* mi, - const CMPIContext* cc, - CMPIBoolean term) -{ - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus SSHProtocolServiceEnumInstanceNames( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop) -{ - return KDefaultEnumerateInstanceNames( - _cb, mi, cc, cr, cop); -} - -Str256 Get() -{ - Str256 x; - return x; -} - -static CMPIStatus SSHProtocolServiceEnumInstances( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char** properties) -{ - SSHProtocolService x; - int sshd_status; - - /* Get status of sshd */ - sshd_status = GetSSHDStatus(); - - SSHProtocolService_Init(&x, _cb, KNameSpace(cop)); - - /* SystemCreationClassName */ - SSHProtocolService_Set_SystemCreationClassName(&x, CompSysClassName().str); - - /* CreationClassName */ - SSHProtocolService_Set_CreationClassName(&x, "Linux_SSHProtocolService"); - - /* SystemName */ - SSHProtocolService_Set_SystemName(&x, SysName().str); - - /* Name */ - SSHProtocolService_Set_Name(&x, "SBLIM:Linux_SSHProtocolService"); - - /* Protocol */ - SSHProtocolService_Set_Protocol_SSH(&x); - - /* MaxConnections */ - SSHProtocolService_Set_MaxConnections(&x, 65535); - - /* EnabledState */ - if (sshd_status == 0) - SSHProtocolService_Set_EnabledState_Enabled(&x); - else - SSHProtocolService_Set_EnabledState_Disabled(&x); - - /* ElementName */ - SSHProtocolService_Set_ElementName(&x, "Linux_SSHProtocolService"); - - /* OperationalStatus */ - SSHProtocolService_Init_OperationalStatus(&x, 1); - - if (sshd_status == 0) - SSHProtocolService_Set_OperationalStatus_OK(&x, 0); - else - SSHProtocolService_Set_OperationalStatus_Unknown(&x, 0); - - /* HealthState */ - if (sshd_status == 0) - SSHProtocolService_Set_HealthState_OK(&x); - else - SSHProtocolService_Set_HealthState_Unknown(&x); - - KReturnInstance(cr, x); - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus SSHProtocolServiceGetInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char** properties) -{ - return KDefaultGetInstance( - _cb, mi, cc, cr, cop, properties); -} - -static CMPIStatus SSHProtocolServiceCreateInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const CMPIInstance* ci) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -static CMPIStatus SSHProtocolServiceModifyInstance( - 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 SSHProtocolServiceDeleteInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -static CMPIStatus SSHProtocolServiceExecQuery( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char* lang, - const char* query) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -CMInstanceMIStub(SSHProtocolService, SSHProtocolService, _cb, SSHProtocolServiceInitialize()) - -static CMPIStatus SSHProtocolServiceMethodCleanup( - CMPIMethodMI* mi, - const CMPIContext* cc, - CMPIBoolean term) -{ - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus SSHProtocolServiceInvokeMethod( - CMPIMethodMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char* meth, - const CMPIArgs* in, - CMPIArgs* out) -{ - return SSHProtocolService_DispatchMethod( - _cb, mi, cc, cr, cop, meth, in, out); -} - -CMMethodMIStub( - SSHProtocolService, - SSHProtocolService, - _cb, - SSHProtocolServiceInitialize()) - -KUint32 SSHProtocolService_RequestStateChange( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const SSHProtocolServiceRef* self, - const KUint16* RequestedState, - KRef* Job, - const KDateTime* TimeoutPeriod, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} - -KUint32 SSHProtocolService_StartService( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const SSHProtocolServiceRef* self, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} - -KUint32 SSHProtocolService_StopService( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const SSHProtocolServiceRef* self, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} - -KUint32 SSHProtocolService_ChangeAffectedElementsAssignedSequence( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const SSHProtocolServiceRef* self, - const KRefA* ManagedElements, - const KUint16A* AssignedSequence, - KRef* Job, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} - -KUint32 SSHProtocolService_ListenOnPort( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const SSHProtocolServiceRef* self, - const KUint32* PortNumber, - const KRef* IPEndpoint, - KRef* TCPEndpoint, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 19:32:55 UTC (rev 715) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 20:36:33 UTC (rev 716) @@ -1,4 +1,4 @@ -Linux_SSHProtocolService=SSHProtocolService! +Linux_SSHProtocolService=ProtocolService! Linux_SSHCapabilities=Capabilities! Linux_SSHElementCapabilities=ElementCapabilities! Linux_SSHProtocolEndpoint=ProtocolEndpoint! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-04 19:32:53
|
Revision: 715 http://omc.svn.sourceforge.net/omc/?rev=715&view=rev Author: mike-brasher Date: 2008-07-04 12:32:55 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Shorteneded CIM class names Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c Copied: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c (from rev 714, cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c) =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ElementCapabilitiesProvider.c 2008-07-04 19:32:55 UTC (rev 715) @@ -0,0 +1,199 @@ +#include <konkret/konkret.h> +#include "ElementCapabilities.h" +#include "Resource.h" + +static const CMPIBroker* _cb; + +static void ElementCapabilitiesInitialize() +{ +} + +static CMPIStatus ElementCapabilitiesCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ElementCapabilitiesEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus ElementCapabilitiesEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + const char* ns = KNameSpace(cop); + SSHProtocolServiceRef m; /* ManagedElement */ + CapabilitiesRef c; /* Capabilities */ + ElementCapabilities x; + + /* Create ElementCapabilities.ManagedElement */ + SSHProtocolServiceRef_Init(&m, _cb, ns); + SSHProtocolServiceRef_Set_SystemCreationClassName( + &m, CompSysClassName().str); + SSHProtocolServiceRef_Set_CreationClassName(&m, "Linux_SSHProtocolService"); + SSHProtocolServiceRef_Set_SystemName(&m, SysName().str); + SSHProtocolServiceRef_Set_Name(&m, "SBLIM:Linux_SSHProtocolService"); + + /* Create ElementCapabilities.Capabilities */ + CapabilitiesRef_Init(&c, _cb, ns); + CapabilitiesRef_Set_InstanceID(&c, "SBLIM:Linux_SSHCapabilities"); + + /* Create ElementCapabilities */ + ElementCapabilities_Init(&x, _cb, ns); + ElementCapabilities_Set_ManagedElement(&x, &m); + ElementCapabilities_Set_Capabilities(&x, &c); + KReturnInstance(cr, x); + + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ElementCapabilitiesGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus ElementCapabilitiesCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ElementCapabilitiesModifyInstance( + 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 ElementCapabilitiesDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus ElementCapabilitiesExecQuery( + 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 ElementCapabilitiesAssociationCleanup( + CMPIAssociationMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus ElementCapabilitiesAssociators( + 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_SSHElementCapabilities"; + + return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, + resultClass, role, resultRole, properties); +} + +static CMPIStatus ElementCapabilitiesAssociatorNames( + 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_SSHElementCapabilities"; + + return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, + assocClass, resultClass, role, resultRole); +} + +static CMPIStatus ElementCapabilitiesReferences( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role, + const char** properties) +{ + if (!assocClass) + assocClass = "Linux_SSHElementCapabilities"; + + return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, + role, properties); +} + +static CMPIStatus ElementCapabilitiesReferenceNames( + CMPIAssociationMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* assocClass, + const char* role) +{ + if (!assocClass) + assocClass = "Linux_SSHElementCapabilities"; + + return KDefaultReferenceNames( + _cb, mi, cc, cr, cop, assocClass, role); +} + +CMInstanceMIStub( + ElementCapabilities, + ElementCapabilities, + _cb, + ElementCapabilitiesInitialize()) + +CMAssociationMIStub( + ElementCapabilities, + ElementCapabilities, + _cb, + ElementCapabilitiesInitialize()) + Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 19:30:24 UTC (rev 714) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 19:32:55 UTC (rev 715) @@ -10,7 +10,7 @@ Resource.c \ SSHProtocolServiceProvider.c \ CapabilitiesProvider.c \ - SSHElementCapabilitiesProvider.c \ + ElementCapabilitiesProvider.c \ ProtocolEndpointProvider.c liblinux_sshserviceprovider_la_LDFLAGS = \ Deleted: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c 2008-07-04 19:30:24 UTC (rev 714) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c 2008-07-04 19:32:55 UTC (rev 715) @@ -1,199 +0,0 @@ -#include <konkret/konkret.h> -#include "SSHElementCapabilities.h" -#include "Resource.h" - -static const CMPIBroker* _cb; - -static void SSHElementCapabilitiesInitialize() -{ -} - -static CMPIStatus SSHElementCapabilitiesCleanup( - CMPIInstanceMI* mi, - const CMPIContext* cc, - CMPIBoolean term) -{ - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus SSHElementCapabilitiesEnumInstanceNames( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop) -{ - return KDefaultEnumerateInstanceNames( - _cb, mi, cc, cr, cop); -} - -static CMPIStatus SSHElementCapabilitiesEnumInstances( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char** properties) -{ - const char* ns = KNameSpace(cop); - SSHProtocolServiceRef m; /* ManagedElement */ - CapabilitiesRef c; /* Capabilities */ - SSHElementCapabilities x; - - /* Create SSHElementCapabilities.ManagedElement */ - SSHProtocolServiceRef_Init(&m, _cb, ns); - SSHProtocolServiceRef_Set_SystemCreationClassName( - &m, CompSysClassName().str); - SSHProtocolServiceRef_Set_CreationClassName(&m, "Linux_SSHProtocolService"); - SSHProtocolServiceRef_Set_SystemName(&m, SysName().str); - SSHProtocolServiceRef_Set_Name(&m, "SBLIM:Linux_SSHProtocolService"); - - /* Create SSHElementCapabilities.Capabilities */ - CapabilitiesRef_Init(&c, _cb, ns); - CapabilitiesRef_Set_InstanceID(&c, "SBLIM:Linux_SSHCapabilities"); - - /* Create SSHElementCapabilities */ - SSHElementCapabilities_Init(&x, _cb, ns); - SSHElementCapabilities_Set_ManagedElement(&x, &m); - SSHElementCapabilities_Set_Capabilities(&x, &c); - KReturnInstance(cr, x); - - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus SSHElementCapabilitiesGetInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char** properties) -{ - return KDefaultGetInstance( - _cb, mi, cc, cr, cop, properties); -} - -static CMPIStatus SSHElementCapabilitiesCreateInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const CMPIInstance* ci) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -static CMPIStatus SSHElementCapabilitiesModifyInstance( - 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 SSHElementCapabilitiesDeleteInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -static CMPIStatus SSHElementCapabilitiesExecQuery( - 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 SSHElementCapabilitiesAssociationCleanup( - CMPIAssociationMI* mi, - const CMPIContext* cc, - CMPIBoolean term) -{ - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus SSHElementCapabilitiesAssociators( - 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_SSHElementCapabilities"; - - return KDefaultAssociators(_cb, mi, cc, cr, cop, assocClass, - resultClass, role, resultRole, properties); -} - -static CMPIStatus SSHElementCapabilitiesAssociatorNames( - 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_SSHElementCapabilities"; - - return KDefaultAssociatorNames(_cb, mi, cc, cr, cop, - assocClass, resultClass, role, resultRole); -} - -static CMPIStatus SSHElementCapabilitiesReferences( - CMPIAssociationMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char* assocClass, - const char* role, - const char** properties) -{ - if (!assocClass) - assocClass = "Linux_SSHElementCapabilities"; - - return KDefaultReferences(_cb, mi, cc, cr, cop, assocClass, - role, properties); -} - -static CMPIStatus SSHElementCapabilitiesReferenceNames( - CMPIAssociationMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char* assocClass, - const char* role) -{ - if (!assocClass) - assocClass = "Linux_SSHElementCapabilities"; - - return KDefaultReferenceNames( - _cb, mi, cc, cr, cop, assocClass, role); -} - -CMInstanceMIStub( - SSHElementCapabilities, - SSHElementCapabilities, - _cb, - SSHElementCapabilitiesInitialize()) - -CMAssociationMIStub( - SSHElementCapabilities, - SSHElementCapabilities, - _cb, - SSHElementCapabilitiesInitialize()) - Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 19:30:24 UTC (rev 714) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 19:32:55 UTC (rev 715) @@ -1,4 +1,4 @@ Linux_SSHProtocolService=SSHProtocolService! Linux_SSHCapabilities=Capabilities! -Linux_SSHElementCapabilities=SSHElementCapabilities! +Linux_SSHElementCapabilities=ElementCapabilities! Linux_SSHProtocolEndpoint=ProtocolEndpoint! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-04 19:30:20
|
Revision: 714 http://omc.svn.sourceforge.net/omc/?rev=714&view=rev Author: mike-brasher Date: 2008-07-04 12:30:24 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Ongoing profile work. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilities.h cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilitiesProvider.c Copied: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c (from rev 713, cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilitiesProvider.c) =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/CapabilitiesProvider.c 2008-07-04 19:30:24 UTC (rev 714) @@ -0,0 +1,185 @@ +#include <konkret/konkret.h> +#include "Capabilities.h" +#include "Resource.h" + +static const CMPIBroker* _cb = NULL; + +static void CapabilitiesInitialize() +{ +} + +static CMPIStatus CapabilitiesCleanup( + CMPIInstanceMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus CapabilitiesEnumInstanceNames( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + return KDefaultEnumerateInstanceNames( + _cb, mi, cc, cr, cop); +} + +static CMPIStatus CapabilitiesEnumInstances( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + Capabilities x; + + Capabilities_Init(&x, _cb, KNameSpace(cop)); + + /* InstanceID */ + Capabilities_Set_InstanceID(&x, "SBLIM:Linux_SSHCapabilities"); + + /* ElementName */ + Capabilities_Set_ElementName(&x, "Linux_SSHCapabilities"); + + /* RequestedStatesSupported */ + Capabilities_Init_RequestedStatesSupported(&x, 0); + + /* ElementNameEditSupported */ + Capabilities_Set_ElementNameEditSupported(&x, 0); + + /* MaxElementNameLen */ + Capabilities_Set_MaxElementNameLen(&x, 65535); + + /* MaxConnections */ + Capabilities_Set_MaxConnections(&x, 65535); + + /* SupportedSSHVersions */ + { + struct SSHDConfig conf; + CMPICount index = 0; + + if (GetSSHDConfig(&conf) != 0) + KReturn2(_cb, ERR_FAILED, "failed to access sshd_config"); + + Capabilities_Init_SupportedSSHVersions(&x, conf.v1 + conf.v2); + + if (conf.v1) + Capabilities_Set_SupportedSSHVersions_SSHv1(&x, index++); + + if (conf.v2) + Capabilities_Set_SupportedSSHVersions_SSHv2(&x, index++); + } + + /* SupportedEncryptionAlgorithms */ + Capabilities_Init_SupportedEncryptionAlgorithms(&x, 1); + Capabilities_Set_SupportedEncryptionAlgorithms_DES3(&x, 0); + + /* ListeningPortManagementSupported */ + Capabilities_Set_ListeningPortManagementSupported(&x, 0); + + /* MaxListeningPorts */ + Capabilities_Set_MaxListeningPorts(&x, 65535); + + KReturnInstance(cr, x); + + KReturn(OK); +} + +static CMPIStatus CapabilitiesGetInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char** properties) +{ + return KDefaultGetInstance( + _cb, mi, cc, cr, cop, properties); +} + +static CMPIStatus CapabilitiesCreateInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const CMPIInstance* ci) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus CapabilitiesModifyInstance( + 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 CapabilitiesDeleteInstance( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +static CMPIStatus CapabilitiesExecQuery( + CMPIInstanceMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* lang, + const char* query) +{ + CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); +} + +CMInstanceMIStub(Capabilities, Capabilities, _cb, CapabilitiesInitialize()) + +static CMPIStatus CapabilitiesMethodCleanup( + CMPIMethodMI* mi, + const CMPIContext* cc, + CMPIBoolean term) +{ + CMReturn(CMPI_RC_OK); +} + +static CMPIStatus CapabilitiesInvokeMethod( + CMPIMethodMI* mi, + const CMPIContext* cc, + const CMPIResult* cr, + const CMPIObjectPath* cop, + const char* meth, + const CMPIArgs* in, + CMPIArgs* out) +{ + return Capabilities_DispatchMethod( + _cb, mi, cc, cr, cop, meth, in, out); +} + +CMMethodMIStub( + Capabilities, + Capabilities, + _cb, + CapabilitiesInitialize()) + +KUint16 Capabilities_CreateGoalSettings( + const CMPIBroker* cb, + CMPIMethodMI* mi, + const CMPIContext* context, + const CapabilitiesRef* self, + const KStringA* TemplateGoalSettings, + KStringA* SupportedGoalSettings, + CMPIStatus* status) +{ + KUint16 result = KUINT16_INIT; + + KSetStatus(status, ERR_NOT_SUPPORTED); + return result; +} + Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 19:27:52 UTC (rev 713) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 19:30:24 UTC (rev 714) @@ -9,7 +9,7 @@ liblinux_sshserviceprovider_la_SOURCES = \ Resource.c \ SSHProtocolServiceProvider.c \ - SSHCapabilitiesProvider.c \ + CapabilitiesProvider.c \ SSHElementCapabilitiesProvider.c \ ProtocolEndpointProvider.c Deleted: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilitiesProvider.c 2008-07-04 19:27:52 UTC (rev 713) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilitiesProvider.c 2008-07-04 19:30:24 UTC (rev 714) @@ -1,185 +0,0 @@ -#include <konkret/konkret.h> -#include "SSHCapabilities.h" -#include "Resource.h" - -static const CMPIBroker* _cb = NULL; - -static void SSHCapabilitiesInitialize() -{ -} - -static CMPIStatus SSHCapabilitiesCleanup( - CMPIInstanceMI* mi, - const CMPIContext* cc, - CMPIBoolean term) -{ - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus SSHCapabilitiesEnumInstanceNames( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop) -{ - return KDefaultEnumerateInstanceNames( - _cb, mi, cc, cr, cop); -} - -static CMPIStatus SSHCapabilitiesEnumInstances( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char** properties) -{ - SSHCapabilities x; - - SSHCapabilities_Init(&x, _cb, KNameSpace(cop)); - - /* InstanceID */ - SSHCapabilities_Set_InstanceID(&x, "SBLIM:Linux_SSHCapabilities"); - - /* ElementName */ - SSHCapabilities_Set_ElementName(&x, "Linux_SSHCapabilities"); - - /* RequestedStatesSupported */ - SSHCapabilities_Init_RequestedStatesSupported(&x, 0); - - /* ElementNameEditSupported */ - SSHCapabilities_Set_ElementNameEditSupported(&x, 0); - - /* MaxElementNameLen */ - SSHCapabilities_Set_MaxElementNameLen(&x, 65535); - - /* MaxConnections */ - SSHCapabilities_Set_MaxConnections(&x, 65535); - - /* SupportedSSHVersions */ - { - struct SSHDConfig conf; - CMPICount index = 0; - - if (GetSSHDConfig(&conf) != 0) - KReturn2(_cb, ERR_FAILED, "failed to access sshd_config"); - - SSHCapabilities_Init_SupportedSSHVersions(&x, conf.v1 + conf.v2); - - if (conf.v1) - SSHCapabilities_Set_SupportedSSHVersions_SSHv1(&x, index++); - - if (conf.v2) - SSHCapabilities_Set_SupportedSSHVersions_SSHv2(&x, index++); - } - - /* SupportedEncryptionAlgorithms */ - SSHCapabilities_Init_SupportedEncryptionAlgorithms(&x, 1); - SSHCapabilities_Set_SupportedEncryptionAlgorithms_DES3(&x, 0); - - /* ListeningPortManagementSupported */ - SSHCapabilities_Set_ListeningPortManagementSupported(&x, 0); - - /* MaxListeningPorts */ - SSHCapabilities_Set_MaxListeningPorts(&x, 65535); - - KReturnInstance(cr, x); - - KReturn(OK); -} - -static CMPIStatus SSHCapabilitiesGetInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char** properties) -{ - return KDefaultGetInstance( - _cb, mi, cc, cr, cop, properties); -} - -static CMPIStatus SSHCapabilitiesCreateInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const CMPIInstance* ci) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -static CMPIStatus SSHCapabilitiesModifyInstance( - 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 SSHCapabilitiesDeleteInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -static CMPIStatus SSHCapabilitiesExecQuery( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char* lang, - const char* query) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -CMInstanceMIStub(SSHCapabilities, SSHCapabilities, _cb, SSHCapabilitiesInitialize()) - -static CMPIStatus SSHCapabilitiesMethodCleanup( - CMPIMethodMI* mi, - const CMPIContext* cc, - CMPIBoolean term) -{ - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus SSHCapabilitiesInvokeMethod( - CMPIMethodMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char* meth, - const CMPIArgs* in, - CMPIArgs* out) -{ - return SSHCapabilities_DispatchMethod( - _cb, mi, cc, cr, cop, meth, in, out); -} - -CMMethodMIStub( - SSHCapabilities, - SSHCapabilities, - _cb, - SSHCapabilitiesInitialize()) - -KUint16 SSHCapabilities_CreateGoalSettings( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const SSHCapabilitiesRef* self, - const KStringA* TemplateGoalSettings, - KStringA* SupportedGoalSettings, - CMPIStatus* status) -{ - KUint16 result = KUINT16_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} - Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilities.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilities.h 2008-07-04 19:27:52 UTC (rev 713) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilities.h 2008-07-04 19:30:24 UTC (rev 714) @@ -11,7 +11,7 @@ #include <konkret/konkret.h> #include "SSHProtocolService.h" -#include "SSHCapabilities.h" +#include "Capabilities.h" /* **============================================================================== @@ -27,7 +27,7 @@ KBase __base; /* CIM_ElementCapabilities features */ const KRef ManagedElement; /* SSHProtocolService */ - const KRef Capabilities; /* SSHCapabilities */ + const KRef Capabilities; /* Capabilities */ /* Linux_SSHElementCapabilities features */ } SSHElementCapabilitiesRef; @@ -49,7 +49,7 @@ const unsigned char* sig = __SSHElementCapabilitiesRef_sig; KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); ((KRef*)&self->ManagedElement)->__sig = __SSHProtocolService_sig; - ((KRef*)&self->Capabilities)->__sig = __SSHCapabilities_sig; + ((KRef*)&self->Capabilities)->__sig = __Capabilities_sig; } KINLINE CMPIStatus SSHElementCapabilitiesRef_InitFromInstance( @@ -155,7 +155,7 @@ KINLINE CMPIStatus SSHElementCapabilitiesRef_Set_Capabilities( SSHElementCapabilitiesRef* self, - const SSHCapabilitiesRef* x) + const CapabilitiesRef* x) { if (self && self->__base.magic == KMAGIC) { @@ -199,7 +199,7 @@ KBase __base; /* CIM_ElementCapabilities features */ const KRef ManagedElement; /* SSHProtocolService */ - const KRef Capabilities; /* SSHCapabilities */ + const KRef Capabilities; /* Capabilities */ const KUint16A Characteristics; /* Linux_SSHElementCapabilities features */ } @@ -223,7 +223,7 @@ const unsigned char* sig = __SSHElementCapabilities_sig; KBase_Init(&self->__base, cb, sizeof(*self), sig, ns); ((KRef*)&self->ManagedElement)->__sig = __SSHProtocolService_sig; - ((KRef*)&self->Capabilities)->__sig = __SSHCapabilities_sig; + ((KRef*)&self->Capabilities)->__sig = __Capabilities_sig; } KINLINE CMPIStatus SSHElementCapabilities_InitFromInstance( @@ -329,7 +329,7 @@ KINLINE CMPIStatus SSHElementCapabilities_Set_Capabilities( SSHElementCapabilities* self, - const SSHCapabilitiesRef* x) + const CapabilitiesRef* x) { if (self && self->__base.magic == KMAGIC) { Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c 2008-07-04 19:27:52 UTC (rev 713) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c 2008-07-04 19:30:24 UTC (rev 714) @@ -35,7 +35,7 @@ { const char* ns = KNameSpace(cop); SSHProtocolServiceRef m; /* ManagedElement */ - SSHCapabilitiesRef c; /* Capabilities */ + CapabilitiesRef c; /* Capabilities */ SSHElementCapabilities x; /* Create SSHElementCapabilities.ManagedElement */ @@ -47,8 +47,8 @@ SSHProtocolServiceRef_Set_Name(&m, "SBLIM:Linux_SSHProtocolService"); /* Create SSHElementCapabilities.Capabilities */ - SSHCapabilitiesRef_Init(&c, _cb, ns); - SSHCapabilitiesRef_Set_InstanceID(&c, "SBLIM:Linux_SSHCapabilities"); + CapabilitiesRef_Init(&c, _cb, ns); + CapabilitiesRef_Set_InstanceID(&c, "SBLIM:Linux_SSHCapabilities"); /* Create SSHElementCapabilities */ SSHElementCapabilities_Init(&x, _cb, ns); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-04 19:27:48
|
Revision: 713 http://omc.svn.sourceforge.net/omc/?rev=713&view=rev Author: mike-brasher Date: 2008-07-04 12:27:52 -0700 (Fri, 04 Jul 2008) Log Message: ----------- New provider. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolServiceProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.c cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.h Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 18:50:03 UTC (rev 712) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Makefile.am 2008-07-04 19:27:52 UTC (rev 713) @@ -7,10 +7,11 @@ INCLUDES = -I$(top_builddir) liblinux_sshserviceprovider_la_SOURCES = \ - SSHDResource.c \ + Resource.c \ SSHProtocolServiceProvider.c \ SSHCapabilitiesProvider.c \ - SSHElementCapabilitiesProvider.c + SSHElementCapabilitiesProvider.c \ + ProtocolEndpointProvider.c liblinux_sshserviceprovider_la_LDFLAGS = \ -lkonkret \ Deleted: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-04 18:50:03 UTC (rev 712) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ProtocolServiceProvider.c 2008-07-04 19:27:52 UTC (rev 713) @@ -1,258 +0,0 @@ -#include <assert.h> -#include <konkret/konkret.h> -#include <cmpiutil/base.h> -#include <cmpiutil/exec.h> -#include "ProtocolService.h" -#include "SSHDResource.h" - -static const CMPIBroker* _cb = NULL; - -static void ProtocolServiceInitialize() -{ -} - -static CMPIStatus ProtocolServiceCleanup( - CMPIInstanceMI* mi, - const CMPIContext* cc, - CMPIBoolean term) -{ - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus ProtocolServiceEnumInstanceNames( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop) -{ - return KDefaultEnumerateInstanceNames( - _cb, mi, cc, cr, cop); -} - -static CMPIStatus ProtocolServiceEnumInstances( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char** properties) -{ - ProtocolService x; - char buf[256]; - int sshd_status; - - /* Get computer system name */ - cmpiutilGetComputerSystemName(buf, sizeof(buf)); - - /* Get status of sshd */ - sshd_status = GetSSHDStatus(); - - ProtocolService_Init(&x, _cb, KNameSpace(cop)); - - /* SystemCreationClassName */ - ProtocolService_Set_SystemCreationClassName( - &x, cmpiutilGetComputerSystemClassName()); - - /* CreationClassName */ - ProtocolService_Set_CreationClassName(&x, "Linux_ProtocolServiceSSH"); - - /* SystemName */ - ProtocolService_Set_SystemName(&x, buf); - - /* Name */ - ProtocolService_Set_Name(&x, "SBLIM:Linux_ProtocolServiceSSH"); - - /* Protocol */ - ProtocolService_Set_Protocol_SSH(&x); - - /* MaxConnections */ - ProtocolService_Set_MaxConnections(&x, 65535); - - /* EnabledState */ - if (sshd_status == 0) - ProtocolService_Set_EnabledState_Enabled(&x); - else - ProtocolService_Set_EnabledState_Disabled(&x); - - /* ElementName */ - ProtocolService_Set_ElementName(&x, "Linux_ProtocolServiceSSH"); - - /* OperationalStatus */ - ProtocolService_Init_OperationalStatus(&x, 1); - - if (sshd_status == 0) - ProtocolService_Set_OperationalStatus_OK(&x, 0); - else - ProtocolService_Set_OperationalStatus_Unknown(&x, 0); - - /* HealthState */ - if (sshd_status == 0) - ProtocolService_Set_HealthState_OK(&x); - else - ProtocolService_Set_HealthState_Unknown(&x); - - KReturnInstance(cr, x); - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus ProtocolServiceGetInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char** properties) -{ - return KDefaultGetInstance( - _cb, mi, cc, cr, cop, properties); -} - -static CMPIStatus ProtocolServiceCreateInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const CMPIInstance* ci) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -static CMPIStatus ProtocolServiceModifyInstance( - 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 ProtocolServiceDeleteInstance( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -static CMPIStatus ProtocolServiceExecQuery( - CMPIInstanceMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char* lang, - const char* query) -{ - CMReturn(CMPI_RC_ERR_NOT_SUPPORTED); -} - -CMInstanceMIStub( - ProtocolService, - ProtocolService, - _cb, - ProtocolServiceInitialize()) - -static CMPIStatus ProtocolServiceMethodCleanup( - CMPIMethodMI* mi, - const CMPIContext* cc, - CMPIBoolean term) -{ - CMReturn(CMPI_RC_OK); -} - -static CMPIStatus ProtocolServiceInvokeMethod( - CMPIMethodMI* mi, - const CMPIContext* cc, - const CMPIResult* cr, - const CMPIObjectPath* cop, - const char* meth, - const CMPIArgs* in, - CMPIArgs* out) -{ - return ProtocolService_DispatchMethod( - _cb, mi, cc, cr, cop, meth, in, out); -} - -CMMethodMIStub( - ProtocolService, - ProtocolService, - _cb, - ProtocolServiceInitialize()) - -KUint32 ProtocolService_RequestStateChange( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const ProtocolServiceRef* self, - const KUint16* RequestedState, - KRef* Job, - const KDateTime* TimeoutPeriod, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - - /* Not supported */ - KUint32_Set(&result, 1); - - return result; -} - -KUint32 ProtocolService_StartService( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const ProtocolServiceRef* self, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} - -KUint32 ProtocolService_StopService( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const ProtocolServiceRef* self, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} - -KUint32 ProtocolService_ChangeAffectedElementsAssignedSequence( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const ProtocolServiceRef* self, - const KRefA* ManagedElements, - const KUint16A* AssignedSequence, - KRef* Job, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} - -KUint32 ProtocolService_ListenOnPort( - const CMPIBroker* cb, - CMPIMethodMI* mi, - const CMPIContext* context, - const ProtocolServiceRef* self, - const KUint32* PortNumber, - const KRef* IPEndpoint, - KRef* TCPEndpoint, - CMPIStatus* status) -{ - KUint32 result = KUINT32_INIT; - - KSetStatus(status, ERR_NOT_SUPPORTED); - return result; -} Copied: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c (from rev 711, cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.c) =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.c 2008-07-04 19:27:52 UTC (rev 713) @@ -0,0 +1,194 @@ +#include <stdio.h> +#include <string.h> +#include <ctype.h> +#include <stdlib.h> +#include <ctype.h> +#include <unistd.h> +#include <cmpiutil/base.h> +#include <cmpiutil/exec.h> +#include "Resource.h" + +int GetSSHDStatus() +{ + char* cmd[] = { "/etc/init.d/sshd", "status", NULL }; + return cmpiutilSafeSystem(cmd, NULL) == 0 ? 0 : -1; +} + +int GetSSHDConfig(struct SSHDConfig* conf) +{ + FILE* is; + char buf[256]; + + memset(conf, 0, sizeof(struct SSHDConfig)); + + if (!conf || !(is = fopen("/etc/ssh/sshd_config", "r"))) + return -1; + + + while (fgets(buf, sizeof(buf), is) != NULL) + { + /* Check "Protocol" option */ + if (strncmp(buf, "Protocol", 8) == 0 && isspace(buf[8])) + { + if (strchr(buf, '1')) + conf->v1 = 1; + if (strchr(buf, '2')) + conf->v2 = 1; + } + } + + /* If Protocol option not encountered, then default is 1,2 */ + if (!conf->v1 && !conf->v2) + { + conf->v1 = 1; + conf->v2 = 1; + } + + fclose(is); + + return 0; +} + +#if 0 +static void _dumpSSHSession(const struct SSHSession* sess) +{ + printf("==== SSHSession\n"); + printf("localAddr{%s}\n", sess->localAddr); + printf("localPort{%u}\n", sess->localPort); + printf("foreignAddr{%s}\n", sess->foreignAddr); + printf("foreignPort{%u}\n", sess->foreignPort); + printf("pid{%u}\n", sess->pid); + printf("program{%s}\n", sess->program); +} +#endif + +int GetSSHSessions( + struct SSHSession** sessions, + size_t* num_sessions) +{ + FILE* is; + char buf[256]; + struct SSHSession* data = NULL; + size_t size = 0; + + if (!sessions || !num_sessions) + return -1; + + *sessions = NULL; + *num_sessions = 0; + + /* + * Run netstat + * -t -- tcp + * -n -- show numerical addresses + * -p show pid and nameo of program + */ + + if (!(is = popen("/bin/netstat -tnp 2> /dev/null", "r"))) + return -1; + + /* For each line of netstat output */ + + while (fgets(buf, sizeof(buf), is) != NULL) + { + size_t n = strlen(buf); + char* end = buf + n; + struct SSHSession sess; + struct SSHSession* ptr; + + memset(&sess, 0, sizeof(sess)); + + /* Remove trailing space */ + + while (end != buf && isspace(end[-1])) + *--end = '\0'; + + /* Skip first line (title header). Ordinary lines start with "tcp" */ + + if (buf[0] != 't') + continue; + + /* Skip lines not ending in "/ssh" */ + + if (n <= 4 || strcmp(end -4, "/ssh") != 0) + continue; + + /* Extract columns (do not split around ':' due to IPV6 addresses) */ + { + char* s; + char* p; + size_t i = 0; + + for (p = strtok_r(buf, " \t", &s); p; p = strtok_r(NULL, " \t", &s)) + { + char* q; + + switch (i) + { + /* Proto */ + case 0: + /* Recv-Q */ + case 1: + /* Send-Q */ + case 2: + break; + /* Local Address */ + case 3: + { + if (!(q = strrchr(p, ':'))) + continue; + + *q = '\0'; + strncat(sess.localAddr, p, sizeof(sess.localAddr)-1); + sess.localPort = atoi(q + 1); + break; + } + /* Foreign Address */ + case 4: + { + if (!(q = strrchr(p, ':'))) + continue; + + *q = '\0'; + strncat(sess.foreignAddr, p,sizeof(sess.foreignAddr)-1); + sess.foreignPort = atoi(q + 1); + break; + } + /* State */ + case 5: + break; + /* PID/Program name */ + case 6: + { + if (!(q = strrchr(p, '/'))) + continue; + + *q = '\0'; + sess.pid = atoi(p); + break; + } + } + + i++; + } + } + + /* Append session to array */ + + ptr = (struct SSHSession*)realloc(data, (size + 1) * sizeof(sess)); + + if (!ptr) + { + free(data); + fclose(is); + return -1; + } + + data = ptr; + memcpy(&data[size++], &sess, sizeof(sess)); + } + + *sessions = data; + *num_sessions = size; + return 0; +} Copied: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h (from rev 711, cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.h) =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/Resource.h 2008-07-04 19:27:52 UTC (rev 713) @@ -0,0 +1,61 @@ +#ifndef _Resource_h +#define _Resource_h + +#include <cmpiutil/base.h> +#include <cmpiutil/exec.h> + +#define HIDDEN __attribute__((visibility("hidden"))) + +/* Returns 0 if sshd service is running */ +HIDDEN int GetSSHDStatus(); + +struct SSHDConfig +{ + /* non-zero (1) if sshd supports protocol version 1 */ + int v1; + + /* non-zero (1) if sshd supports protocol version 2 */ + int v2; +}; + +HIDDEN int GetSSHDConfig(struct SSHDConfig* conf); + +struct SSHSession +{ + char localAddr[64]; + unsigned short localPort; + char foreignAddr[64]; + unsigned short foreignPort; + unsigned int pid; +}; + +HIDDEN int GetSSHSessions( + struct SSHSession** sessions, + size_t* num_sessions); + +typedef struct _Str256 +{ + char buf[256]; + const char* str; +} +Str256; + +static __inline__ Str256 SysName() +{ + Str256 s; + s.str = s.buf; + s.buf[0] = '\0'; + cmpiutilGetComputerSystemName(s.buf, 256); + return s; +} + +static __inline__ Str256 CompSysClassName() +{ + Str256 s; + s.str = s.buf; + s.buf[0] = '\0'; + strncat(s.buf, cmpiutilGetComputerSystemClassName(), sizeof(s.buf)); + return s; +} + +#endif /* _Resource_h */ Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilitiesProvider.c 2008-07-04 18:50:03 UTC (rev 712) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHCapabilitiesProvider.c 2008-07-04 19:27:52 UTC (rev 713) @@ -1,6 +1,6 @@ #include <konkret/konkret.h> #include "SSHCapabilities.h" -#include "SSHDResource.h" +#include "Resource.h" static const CMPIBroker* _cb = NULL; Deleted: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.c 2008-07-04 18:50:03 UTC (rev 712) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.c 2008-07-04 19:27:52 UTC (rev 713) @@ -1,195 +0,0 @@ -#include <stdio.h> -#include <string.h> -#include <ctype.h> -#include <stdlib.h> -#include <ctype.h> -#include <unistd.h> -#include <cmpiutil/base.h> -#include <cmpiutil/exec.h> -#include "SSHDResource.h" - -int GetSSHDStatus() -{ - char* cmd[] = { "/etc/init.d/sshd", "status", NULL }; - return cmpiutilSafeSystem(cmd, NULL) == 0 ? 0 : -1; -} - -int GetSSHDConfig(struct SSHDConfig* conf) -{ - FILE* is; - char buf[256]; - - memset(conf, 0, sizeof(struct SSHDConfig)); - - if (!conf || !(is = fopen("/etc/ssh/sshd_config", "r"))) - return -1; - - - while (fgets(buf, sizeof(buf), is) != NULL) - { - /* Check "Protocol" option */ - if (strncmp(buf, "Protocol", 8) == 0 && isspace(buf[8])) - { - if (strchr(buf, '1')) - conf->v1 = 1; - if (strchr(buf, '2')) - conf->v2 = 1; - } - } - - /* If Protocol option not encountered, then default is 1,2 */ - if (!conf->v1 && !conf->v2) - { - conf->v1 = 1; - conf->v2 = 1; - } - - fclose(is); - - return 0; -} - -#if 0 -static void _dumpSSHSession(const struct SSHSession* sess) -{ - printf("==== SSHSession\n"); - printf("localAddr{%s}\n", sess->localAddr); - printf("localPort{%u}\n", sess->localPort); - printf("foreignAddr{%s}\n", sess->foreignAddr); - printf("foreignPort{%u}\n", sess->foreignPort); - printf("pid{%u}\n", sess->pid); - printf("program{%s}\n", sess->program); -} -#endif - -int GetSSHSessions( - struct SSHSession** sessions, - size_t* num_sessions) -{ - FILE* is; - char buf[256]; - struct SSHSession* data = NULL; - size_t size = 0; - - if (!sessions || !num_sessions) - return -1; - - *sessions = NULL; - *num_sessions = 0; - - /* - * Run netstat - * -t -- tcp - * -n -- show numerical addresses - * -p show pid and nameo of program - */ - - if (!(is = popen("/bin/netstat -tnp 2> /dev/null", "r"))) - return -1; - - /* For each line of netstat output */ - - while (fgets(buf, sizeof(buf), is) != NULL) - { - size_t n = strlen(buf); - char* end = buf + n; - struct SSHSession sess; - struct SSHSession* ptr; - - memset(&sess, 0, sizeof(sess)); - - /* Remove trailing space */ - - while (end != buf && isspace(end[-1])) - *--end = '\0'; - - /* Skip first line (title header). Ordinary lines start with "tcp" */ - - if (buf[0] != 't') - continue; - - /* Skip lines not ending in "/ssh" */ - - if (n <= 4 || strcmp(end -4, "/ssh") != 0) - continue; - - /* Extract columns (do not split around ':' due to IPV6 addresses) */ - { - char* s; - char* p; - size_t i = 0; - - for (p = strtok_r(buf, " \t", &s); p; p = strtok_r(NULL, " \t", &s)) - { - char* q; - - switch (i) - { - /* Proto */ - case 0: - /* Recv-Q */ - case 1: - /* Send-Q */ - case 2: - break; - /* Local Address */ - case 3: - { - if (!(q = strrchr(p, ':'))) - continue; - - *q = '\0'; - strncat(sess.localAddr, p, sizeof(sess.localAddr)-1); - sess.localPort = atoi(q + 1); - break; - } - /* Foreign Address */ - case 4: - { - if (!(q = strrchr(p, ':'))) - continue; - - *q = '\0'; - strncat(sess.foreignAddr, p,sizeof(sess.foreignAddr)-1); - sess.foreignPort = atoi(q + 1); - break; - } - /* State */ - case 5: - break; - /* PID/Program name */ - case 6: - { - if (!(q = strrchr(p, '/'))) - continue; - - *q = '\0'; - sess.pid = atoi(p); - strncat(sess.program, q + 1, sizeof(sess.program)-1); - break; - } - } - - i++; - } - } - - /* Append session to array */ - - ptr = (struct SSHSession*)realloc(data, (size + 1) * sizeof(sess)); - - if (!ptr) - { - free(data); - fclose(is); - return -1; - } - - data = ptr; - memcpy(&data[size++], &sess, sizeof(sess)); - } - - *sessions = data; - *num_sessions = size; - return 0; -} Deleted: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.h 2008-07-04 18:50:03 UTC (rev 712) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHDResource.h 2008-07-04 19:27:52 UTC (rev 713) @@ -1,34 +0,0 @@ -#ifndef _SSHServiceResource_h -#define _SSHServiceResource_h - -#define HIDDEN __attribute__((visibility("hidden"))) - -/* Returns 0 if sshd service is running */ -HIDDEN int GetSSHDStatus(); - -struct SSHDConfig -{ - /* non-zero (1) if sshd supports protocol version 1 */ - int v1; - - /* non-zero (1) if sshd supports protocol version 2 */ - int v2; -}; - -HIDDEN int GetSSHDConfig(struct SSHDConfig* conf); - -struct SSHSession -{ - char localAddr[64]; - unsigned short localPort; - char foreignAddr[64]; - unsigned short foreignPort; - unsigned int pid; - char program[64]; -}; - -HIDDEN int GetSSHSessions( - struct SSHSession** sessions, - size_t* num_sessions); - -#endif /* _SSHServiceResource_h */ Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c 2008-07-04 18:50:03 UTC (rev 712) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHElementCapabilitiesProvider.c 2008-07-04 19:27:52 UTC (rev 713) @@ -1,7 +1,6 @@ #include <konkret/konkret.h> #include "SSHElementCapabilities.h" -#include <cmpiutil/base.h> -#include <cmpiutil/exec.h> +#include "Resource.h" static const CMPIBroker* _cb; @@ -38,15 +37,13 @@ SSHProtocolServiceRef m; /* ManagedElement */ SSHCapabilitiesRef c; /* Capabilities */ SSHElementCapabilities x; - char buf[256]; /* Create SSHElementCapabilities.ManagedElement */ - cmpiutilGetComputerSystemName(buf, sizeof(buf)); SSHProtocolServiceRef_Init(&m, _cb, ns); SSHProtocolServiceRef_Set_SystemCreationClassName( - &m, cmpiutilGetComputerSystemClassName()); + &m, CompSysClassName().str); SSHProtocolServiceRef_Set_CreationClassName(&m, "Linux_SSHProtocolService"); - SSHProtocolServiceRef_Set_SystemName(&m, buf); + SSHProtocolServiceRef_Set_SystemName(&m, SysName().str); SSHProtocolServiceRef_Set_Name(&m, "SBLIM:Linux_SSHProtocolService"); /* Create SSHElementCapabilities.Capabilities */ Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolServiceProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolServiceProvider.c 2008-07-04 18:50:03 UTC (rev 712) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/SSHProtocolServiceProvider.c 2008-07-04 19:27:52 UTC (rev 713) @@ -2,7 +2,7 @@ #include <cmpiutil/base.h> #include <cmpiutil/exec.h> #include "SSHProtocolService.h" -#include "SSHDResource.h" +#include "Resource.h" static const CMPIBroker* _cb = NULL; @@ -28,6 +28,12 @@ _cb, mi, cc, cr, cop); } +Str256 Get() +{ + Str256 x; + return x; +} + static CMPIStatus SSHProtocolServiceEnumInstances( CMPIInstanceMI* mi, const CMPIContext* cc, @@ -36,26 +42,21 @@ const char** properties) { SSHProtocolService x; - char buf[256]; int sshd_status; - /* Get computer system name */ - cmpiutilGetComputerSystemName(buf, sizeof(buf)); - /* Get status of sshd */ sshd_status = GetSSHDStatus(); SSHProtocolService_Init(&x, _cb, KNameSpace(cop)); /* SystemCreationClassName */ - SSHProtocolService_Set_SystemCreationClassName( - &x, cmpiutilGetComputerSystemClassName()); + SSHProtocolService_Set_SystemCreationClassName(&x, CompSysClassName().str); /* CreationClassName */ SSHProtocolService_Set_CreationClassName(&x, "Linux_SSHProtocolService"); /* SystemName */ - SSHProtocolService_Set_SystemName(&x, buf); + SSHProtocolService_Set_SystemName(&x, SysName().str); /* Name */ SSHProtocolService_Set_Name(&x, "SBLIM:Linux_SSHProtocolService"); Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 18:50:03 UTC (rev 712) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/src/ssh-service-profile.kon 2008-07-04 19:27:52 UTC (rev 713) @@ -1,3 +1,4 @@ Linux_SSHProtocolService=SSHProtocolService! -Linux_SSHCapabilities=SSHCapabilities! +Linux_SSHCapabilities=Capabilities! Linux_SSHElementCapabilities=SSHElementCapabilities! +Linux_SSHProtocolEndpoint=ProtocolEndpoint! This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-04 18:50:03
|
Revision: 712 http://omc.svn.sourceforge.net/omc/?rev=712&view=rev Author: mike-brasher Date: 2008-07-04 11:50:03 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Shortened name of resource source file. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am Added Paths: ----------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h Removed Paths: ------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.c cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.h Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c 2008-07-04 18:45:50 UTC (rev 711) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/DeviceSAPImplementationProvider.c 2008-07-04 18:50:03 UTC (rev 712) @@ -2,7 +2,7 @@ #include "DeviceSAPImplementation.h" #include "EthernetPort.h" #include "LANEndpoint.h" -#include "EthernetPortResource.h" +#include "Resource.h" #include "common.h" static const CMPIBroker* _cb; Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-04 18:45:50 UTC (rev 711) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/ElementConformsToProfileProvider.c 2008-07-04 18:50:03 UTC (rev 712) @@ -1,6 +1,6 @@ #include <konkret/konkret.h> #include "ElementConformsToProfile.h" -#include "EthernetPortResource.h" +#include "Resource.h" #include "common.h" static const CMPIBroker* _cb; Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c 2008-07-04 18:45:50 UTC (rev 711) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortProvider.c 2008-07-04 18:50:03 UTC (rev 712) @@ -1,7 +1,7 @@ #include <konkret/konkret.h> #include "EthernetPort.h" #include "common.h" -#include "EthernetPortResource.h" +#include "Resource.h" /* **============================================================================== Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.c 2008-07-04 18:45:50 UTC (rev 711) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.c 2008-07-04 18:50:03 UTC (rev 712) @@ -1,449 +0,0 @@ -#include <sys/socket.h> -#include <unistd.h> -#include <sys/ioctl.h> -#include <netinet/in.h> -#include <ctype.h> -#include <net/if.h> -#include <string.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <arpa/inet.h> -#include <errno.h> -#include "EthernetPortResource.h" -#include "common.h" - -struct EthtoolInfo -{ - /* Non-zero if full duplex */ - int full_duplex; - - /* Speed in bits-per-seconds */ - unsigned long long speed_mbps; - - /* Whether device supports "wake on" */ - int supports_wake_on; - - /* Non-zero if wake on */ - int wake_on; -}; - -static int _ethtool(struct EthtoolInfo* info, const char* name) -{ - const char ETHTOOL[] = "/usr/sbin/ethtool"; - char buf[64]; - char line[128]; - FILE* os; - - /* Clear info structure */ - - memset(info, 0, sizeof(*info)); - - /* Check whether ethtool found */ - - if (access(ETHTOOL, X_OK) != 0) - return -1; - - /* Execute command */ - - strlcpy(buf, ETHTOOL, sizeof(buf)); - strlcat(buf, " ", sizeof(buf)); - strlcat(buf, name, sizeof(buf)); - strlcat(buf, " 2> /dev/null", sizeof(buf)); - - if ((os = popen(buf, "r")) == NULL) - return -1; - - /* Extract selected fields */ - - while (fgets(line, sizeof(line), os) != NULL) - { - char* p = line; - char* q = p + strlen(line); - - /* Remove trailing whitespace */ - - while (q != p && isspace(q[-1])) - *--q = '\0'; - - /* Skip leading whitespace */ - - while (isspace(*p)) - p++; - - /* Extract seleted fields */ - - if (strncmp(p, "Duplex: ", 8) == 0) - { - if (strncmp(p + 8, "Full", 4) == 0) - info->full_duplex = 1; - } - else if (strncmp(p, "Speed: ", 7) == 0) - { - info->speed_mbps = atoi(p + 7); - } - else if (strncmp(p, "Supports Wake-on: ", 18) == 0) - { - if (strchr(p + 9, 'p') || strchr(p + 9, 'g')) - info->supports_wake_on = 1; - } - else if (strncmp(p, "Wake-on: ", 9) == 0) - { - if (strchr(p + 9, 'p') || strchr(p + 9, 'g')) - info->wake_on = 1; - } - } - - /* Close stream */ - pclose(os); - - return 0; -} - -struct EthernetPortResource* GetEthernetPortResources() -{ - int sock; - char* buf; - int len; - int prev_len; - struct ifconf ifc; - char* p; - int flags; - struct EthernetPortResource* head = NULL; - struct EthernetPortResource* tail = NULL; - - /* Create datagram socket to use in ioctl() request below */ - - if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) - return NULL; - - /* Create buffer large enough to hold all interfaces. Increase buffer - * size until the resulting size quits growing. - */ - - len = 1 * sizeof(struct ifreq); - prev_len = 0; - - for (;;) - { - if (!(buf = malloc(len))) - return NULL; - - ifc.ifc_buf = buf; - ifc.ifc_len = len; - - if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) - { - if (errno != EINVAL || prev_len) - { - close(sock); - free(buf); - return NULL; - } - - continue; - } - else - { - if (ifc.ifc_len == prev_len) - break; - prev_len = ifc.ifc_len; - } - - len += 1 * sizeof(struct ifreq); - free(buf); - } - - /* For each interface */ - - for (p = buf; p < buf + ifc.ifc_len; ) - { - struct ifreq* ifr; - struct EthernetPortResource info; - struct EthernetPortResource* node; - int addr_len; - int family; - struct EthtoolInfo eti; - - ifr = (struct ifreq*)p; - - memset(&info, 0, sizeof(info)); - - /* Get socket address length */ - - family = ifr->ifr_addr.sa_family; - - if (family == AF_INET) - { - addr_len = sizeof(struct sockaddr); - } - else if (family == AF_INET6) - { - addr_len = sizeof(struct sockaddr_in6); - } - else - { - addr_len = sizeof(struct sockaddr); - } - - /* Skip pointer to next interface */ - - p += sizeof(struct ifreq); - - /* Skip non-eth? ports */ - -#if defined(ETHERNET_INTERFACES_ONLY) - if (strncmp(ifr->ifr_name, "eth", 3) != 0) - continue; -#endif - - /* Get EthernetPortResource.name */ - - strlcpy(info.name, ifr->ifr_name, sizeof(info.name)); - - /* Get EthernetPortResource.family_name */ - - if (family == AF_INET) - { - strlcpy(info.family, "inet", sizeof(info.family)); - } - else if (family == AF_INET6) - { - strlcpy(info.family, "inet6", sizeof(info.family)); - } - else - { - strlcpy(info.family, "unknown", sizeof(info.family)); - } - - /* Get EthernetPortResource.index */ - - info.index = if_nametoindex(info.name); - - /* Get EthernetPortResource.mac */ - { - struct ifreq tmp; - unsigned char mac[6]; - - strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); - - if (ioctl(sock, SIOCGIFHWADDR, &tmp) != 0) - { - close(sock); - free(buf); - return NULL; - } - - memcpy(mac, (char*)tmp.ifr_addr.sa_data, 6); - - sprintf(info.mac, "%02X%02X%02X%02X%02X%02X", mac[0], - mac[1], mac[2], mac[3], mac[4], mac[5]); - } - - /* Get the flags */ - { - struct ifreq tmp; - - strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); - - if (ioctl(sock, SIOCGIFFLAGS, &tmp) != 0) - { - close(sock); - free(buf); - return NULL; - } - - flags = tmp.ifr_flags; - - /* Set the flags */ - - info.is_up = flags & IFF_UP ? 1 : 0; - info.is_broadcast = flags & IFF_BROADCAST ? 1 : 0; - info.is_multicast = flags & IFF_MULTICAST ? 1 : 0; - info.is_loopback = flags & IFF_LOOPBACK ? 1 : 0; - info.is_loopback = flags & IFF_LOOPBACK ? 1 : 0; - info.is_p2p = flags & IFF_POINTOPOINT ? 1 : 0; - } - - /* Get EthernetPortResource.inet_addr */ - - if (family == AF_INET) - { - struct ifreq tmp; - char str[128]; - struct sockaddr_in* in; - - strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); - - if (ioctl(sock, SIOCGIFADDR, &tmp) != 0) - { - close(sock); - free(buf); - return NULL; - } - - in = (struct sockaddr_in*)&tmp.ifr_addr; - inet_ntop(tmp.ifr_addr.sa_family, &in->sin_addr, str, sizeof(str)); - strlcpy(info.inet_addr, str, sizeof(info.inet_addr)); - } - else if (family == AF_INET6) - { - struct ifreq tmp; - char str[128]; - struct sockaddr_in6* in; - - strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); - - if (ioctl(sock, SIOCGIFADDR, &tmp) != 0) - { - close(sock); - free(buf); - return NULL; - } - - in = (struct sockaddr_in6*)&tmp.ifr_addr; - - inet_ntop( - tmp.ifr_addr.sa_family, &in->sin6_addr, str, sizeof(str)); - strlcpy(info.inet_addr, str, sizeof(info.inet_addr)); - } - - /* Get EthernetPortResource.broadcast */ - - if (flags & IFF_BROADCAST) - { - struct ifreq tmp; - char str[128]; - struct sockaddr_in* in; - - strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); - - if (ioctl(sock, SIOCGIFBRDADDR, &tmp) != 0) - { - close(sock); - free(buf); - return NULL; - } - - in = (struct sockaddr_in*)&tmp.ifr_addr; - - inet_ntop(tmp.ifr_addr.sa_family, &in->sin_addr, str, sizeof(str)); - strlcpy(info.broadcast, str, sizeof(info.broadcast)); - } - - /* Get EthernetPortResource.netmask */ - { - struct ifreq tmp; - char str[128]; - struct sockaddr_in* in; - - strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); - - if (ioctl(sock, SIOCGIFNETMASK, &tmp) != 0) - { - close(sock); - free(buf); - return NULL; - } - - in = (struct sockaddr_in*)&tmp.ifr_addr; - - inet_ntop(tmp.ifr_addr.sa_family, &in->sin_addr, str, sizeof(str)); - strlcpy(info.netmask, str, sizeof(info.netmask)); - } - - /* Get additional information using the ethtool program */ - - if (_ethtool(&eti, info.name) == 0) - { - info.speed_mbps = eti.speed_mbps; - info.full_duplex = eti.full_duplex; - info.supports_wake_on = eti.supports_wake_on; - info.wake_on = eti.wake_on; - } - - /* Create new node and insert at end of list */ - - node = (struct EthernetPortResource*)malloc(sizeof(struct EthernetPortResource)); - - if (!node) - { - close(sock); - free(buf); - return NULL; - } - - memcpy(node, &info, sizeof(info)); - - if (tail) - { - tail->next = node; - tail = node; - } - else - { - tail = node; - head = node; - } - } - - free(buf); - close(sock); - return head; -} - -void FreeEthernetPortResources(struct EthernetPortResource* head) -{ - struct EthernetPortResource* p; - - for (p = head; p; ) - { - struct EthernetPortResource* next = p->next; - free(p); - p = next; - } -} - -#if 0 -void PrintEtherPortResources(const struct EthernetPortResource* head) -{ - const struct EthernetPortResource* p; - - for (p = head; p; p = p->next) - { - printf("EthernetPortResource\n"); - printf("{\n"); - printf(" name{%s}\n", p->name); - printf(" index{%d}\n", p->index); - printf(" mac{%s}\n", p->mac); - printf(" family{%s}\n", p->family); - printf(" is_up{%d}\n", p->is_up); - printf(" is_broadcast{%d}\n", p->is_broadcast); - printf(" is_multicast{%d}\n", p->is_multicast); - printf(" is_loopback{%d}\n", p->is_loopback); - printf(" is_p2p{%d}\n", p->is_p2p); - printf(" inet_addr{%s}\n", p->inet_addr); - printf(" broadcast{%s}\n", p->broadcast); - printf(" netmask{%s}\n", p->netmask); - printf(" full_duplex{%d}\n", p->full_duplex); - printf(" speed_mbps{%d}\n", p->speed_mbps); - printf(" supports_wake_on{%d}\n", p->supports_wake_on); - printf(" wake_on{%d}\n", p->wake_on); - printf("}\n"); - } -} - -int main() -{ - struct EthernetPortResource* info; - - info = GetEthernetPortResources(); - - if (info) - { - PrintEtherPortResources(info); - FreeEthernetPortResources(info); - } - - return 0; -} -#endif Deleted: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.h =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.h 2008-07-04 18:45:50 UTC (rev 711) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.h 2008-07-04 18:50:03 UTC (rev 712) @@ -1,66 +0,0 @@ -#ifndef _EthernetPortResoure_h -#define _EthernetPortResoure_h - -#include "common.h" - -struct EthernetPortResource -{ - /* Pointer to next structure */ - struct EthernetPortResource* next; - - /* Name of interface (e.g., "eth0"). */ - char name[64]; - - /* Index */ - int index; - - /* MAC address in display format (e.g., "00:50:56:C0:00:01") */ - char mac[18]; - - /* Address family name in display format (e.g., "inet", "inet6") */ - char family[16]; - - /* Non-zero if interface is up */ - int is_up; - - /* Non-zero if broadcast */ - int is_broadcast; - - /* Non-zero if multicast */ - int is_multicast ; - - /* Non-zero if loopback */ - int is_loopback; - - /* Non-zero if p2p */ - int is_p2p; - - /* ASCII internet address */ - char inet_addr[64]; - - /* ASCII broadcast address */ - char broadcast[64]; - - /* ASCII Netmask */ - char netmask[64]; - - /* Non-zero if full duplex */ - int full_duplex; - - /* Speed in bits-per-second */ - int speed_mbps; - - /* Whether device supports "wake on" */ - int supports_wake_on; - - /* Non-zero if wake on */ - int wake_on; -}; - -HIDDEN extern struct EthernetPortResource* GetEthernetPortResources(); - -HIDDEN extern void FreeEthernetPortResources(struct EthernetPortResource* head); - -HIDDEN extern void PrintEtherPortResources(const struct EthernetPortResource* info); - -#endif /* _EthernetPortResoure_h */ Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c 2008-07-04 18:45:50 UTC (rev 711) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/LANEndpointProvider.c 2008-07-04 18:50:03 UTC (rev 712) @@ -1,6 +1,6 @@ #include <konkret/konkret.h> #include "LANEndpoint.h" -#include "EthernetPortResource.h" +#include "Resource.h" #include "common.h" static const CMPIBroker* _cb = NULL; Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-04 18:45:50 UTC (rev 711) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Makefile.am 2008-07-04 18:50:03 UTC (rev 712) @@ -10,7 +10,7 @@ EnabledLogicalElementCapabilitiesLANEndpointProvider.c \ EnabledLogicalElementCapabilitiesProvider.c \ EthernetPortProvider.c \ - EthernetPortResource.c \ + Resource.c \ HostedAccessPointProvider.c \ LANEndpointProvider.c \ ReferencedProfileProvider.c \ Copied: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c (from rev 703, cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.c) =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.c 2008-07-04 18:50:03 UTC (rev 712) @@ -0,0 +1,449 @@ +#include <sys/socket.h> +#include <unistd.h> +#include <sys/ioctl.h> +#include <netinet/in.h> +#include <ctype.h> +#include <net/if.h> +#include <string.h> +#include <sys/types.h> +#include <sys/socket.h> +#include <arpa/inet.h> +#include <errno.h> +#include "Resource.h" +#include "common.h" + +struct EthtoolInfo +{ + /* Non-zero if full duplex */ + int full_duplex; + + /* Speed in bits-per-seconds */ + unsigned long long speed_mbps; + + /* Whether device supports "wake on" */ + int supports_wake_on; + + /* Non-zero if wake on */ + int wake_on; +}; + +static int _ethtool(struct EthtoolInfo* info, const char* name) +{ + const char ETHTOOL[] = "/usr/sbin/ethtool"; + char buf[64]; + char line[128]; + FILE* os; + + /* Clear info structure */ + + memset(info, 0, sizeof(*info)); + + /* Check whether ethtool found */ + + if (access(ETHTOOL, X_OK) != 0) + return -1; + + /* Execute command */ + + strlcpy(buf, ETHTOOL, sizeof(buf)); + strlcat(buf, " ", sizeof(buf)); + strlcat(buf, name, sizeof(buf)); + strlcat(buf, " 2> /dev/null", sizeof(buf)); + + if ((os = popen(buf, "r")) == NULL) + return -1; + + /* Extract selected fields */ + + while (fgets(line, sizeof(line), os) != NULL) + { + char* p = line; + char* q = p + strlen(line); + + /* Remove trailing whitespace */ + + while (q != p && isspace(q[-1])) + *--q = '\0'; + + /* Skip leading whitespace */ + + while (isspace(*p)) + p++; + + /* Extract seleted fields */ + + if (strncmp(p, "Duplex: ", 8) == 0) + { + if (strncmp(p + 8, "Full", 4) == 0) + info->full_duplex = 1; + } + else if (strncmp(p, "Speed: ", 7) == 0) + { + info->speed_mbps = atoi(p + 7); + } + else if (strncmp(p, "Supports Wake-on: ", 18) == 0) + { + if (strchr(p + 9, 'p') || strchr(p + 9, 'g')) + info->supports_wake_on = 1; + } + else if (strncmp(p, "Wake-on: ", 9) == 0) + { + if (strchr(p + 9, 'p') || strchr(p + 9, 'g')) + info->wake_on = 1; + } + } + + /* Close stream */ + pclose(os); + + return 0; +} + +struct EthernetPortResource* GetEthernetPortResources() +{ + int sock; + char* buf; + int len; + int prev_len; + struct ifconf ifc; + char* p; + int flags; + struct EthernetPortResource* head = NULL; + struct EthernetPortResource* tail = NULL; + + /* Create datagram socket to use in ioctl() request below */ + + if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) + return NULL; + + /* Create buffer large enough to hold all interfaces. Increase buffer + * size until the resulting size quits growing. + */ + + len = 1 * sizeof(struct ifreq); + prev_len = 0; + + for (;;) + { + if (!(buf = malloc(len))) + return NULL; + + ifc.ifc_buf = buf; + ifc.ifc_len = len; + + if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) + { + if (errno != EINVAL || prev_len) + { + close(sock); + free(buf); + return NULL; + } + + continue; + } + else + { + if (ifc.ifc_len == prev_len) + break; + prev_len = ifc.ifc_len; + } + + len += 1 * sizeof(struct ifreq); + free(buf); + } + + /* For each interface */ + + for (p = buf; p < buf + ifc.ifc_len; ) + { + struct ifreq* ifr; + struct EthernetPortResource info; + struct EthernetPortResource* node; + int addr_len; + int family; + struct EthtoolInfo eti; + + ifr = (struct ifreq*)p; + + memset(&info, 0, sizeof(info)); + + /* Get socket address length */ + + family = ifr->ifr_addr.sa_family; + + if (family == AF_INET) + { + addr_len = sizeof(struct sockaddr); + } + else if (family == AF_INET6) + { + addr_len = sizeof(struct sockaddr_in6); + } + else + { + addr_len = sizeof(struct sockaddr); + } + + /* Skip pointer to next interface */ + + p += sizeof(struct ifreq); + + /* Skip non-eth? ports */ + +#if defined(ETHERNET_INTERFACES_ONLY) + if (strncmp(ifr->ifr_name, "eth", 3) != 0) + continue; +#endif + + /* Get EthernetPortResource.name */ + + strlcpy(info.name, ifr->ifr_name, sizeof(info.name)); + + /* Get EthernetPortResource.family_name */ + + if (family == AF_INET) + { + strlcpy(info.family, "inet", sizeof(info.family)); + } + else if (family == AF_INET6) + { + strlcpy(info.family, "inet6", sizeof(info.family)); + } + else + { + strlcpy(info.family, "unknown", sizeof(info.family)); + } + + /* Get EthernetPortResource.index */ + + info.index = if_nametoindex(info.name); + + /* Get EthernetPortResource.mac */ + { + struct ifreq tmp; + unsigned char mac[6]; + + strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); + + if (ioctl(sock, SIOCGIFHWADDR, &tmp) != 0) + { + close(sock); + free(buf); + return NULL; + } + + memcpy(mac, (char*)tmp.ifr_addr.sa_data, 6); + + sprintf(info.mac, "%02X%02X%02X%02X%02X%02X", mac[0], + mac[1], mac[2], mac[3], mac[4], mac[5]); + } + + /* Get the flags */ + { + struct ifreq tmp; + + strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); + + if (ioctl(sock, SIOCGIFFLAGS, &tmp) != 0) + { + close(sock); + free(buf); + return NULL; + } + + flags = tmp.ifr_flags; + + /* Set the flags */ + + info.is_up = flags & IFF_UP ? 1 : 0; + info.is_broadcast = flags & IFF_BROADCAST ? 1 : 0; + info.is_multicast = flags & IFF_MULTICAST ? 1 : 0; + info.is_loopback = flags & IFF_LOOPBACK ? 1 : 0; + info.is_loopback = flags & IFF_LOOPBACK ? 1 : 0; + info.is_p2p = flags & IFF_POINTOPOINT ? 1 : 0; + } + + /* Get EthernetPortResource.inet_addr */ + + if (family == AF_INET) + { + struct ifreq tmp; + char str[128]; + struct sockaddr_in* in; + + strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); + + if (ioctl(sock, SIOCGIFADDR, &tmp) != 0) + { + close(sock); + free(buf); + return NULL; + } + + in = (struct sockaddr_in*)&tmp.ifr_addr; + inet_ntop(tmp.ifr_addr.sa_family, &in->sin_addr, str, sizeof(str)); + strlcpy(info.inet_addr, str, sizeof(info.inet_addr)); + } + else if (family == AF_INET6) + { + struct ifreq tmp; + char str[128]; + struct sockaddr_in6* in; + + strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); + + if (ioctl(sock, SIOCGIFADDR, &tmp) != 0) + { + close(sock); + free(buf); + return NULL; + } + + in = (struct sockaddr_in6*)&tmp.ifr_addr; + + inet_ntop( + tmp.ifr_addr.sa_family, &in->sin6_addr, str, sizeof(str)); + strlcpy(info.inet_addr, str, sizeof(info.inet_addr)); + } + + /* Get EthernetPortResource.broadcast */ + + if (flags & IFF_BROADCAST) + { + struct ifreq tmp; + char str[128]; + struct sockaddr_in* in; + + strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); + + if (ioctl(sock, SIOCGIFBRDADDR, &tmp) != 0) + { + close(sock); + free(buf); + return NULL; + } + + in = (struct sockaddr_in*)&tmp.ifr_addr; + + inet_ntop(tmp.ifr_addr.sa_family, &in->sin_addr, str, sizeof(str)); + strlcpy(info.broadcast, str, sizeof(info.broadcast)); + } + + /* Get EthernetPortResource.netmask */ + { + struct ifreq tmp; + char str[128]; + struct sockaddr_in* in; + + strncpy(tmp.ifr_name, ifr->ifr_name, IFNAMSIZ); + + if (ioctl(sock, SIOCGIFNETMASK, &tmp) != 0) + { + close(sock); + free(buf); + return NULL; + } + + in = (struct sockaddr_in*)&tmp.ifr_addr; + + inet_ntop(tmp.ifr_addr.sa_family, &in->sin_addr, str, sizeof(str)); + strlcpy(info.netmask, str, sizeof(info.netmask)); + } + + /* Get additional information using the ethtool program */ + + if (_ethtool(&eti, info.name) == 0) + { + info.speed_mbps = eti.speed_mbps; + info.full_duplex = eti.full_duplex; + info.supports_wake_on = eti.supports_wake_on; + info.wake_on = eti.wake_on; + } + + /* Create new node and insert at end of list */ + + node = (struct EthernetPortResource*)malloc(sizeof(struct EthernetPortResource)); + + if (!node) + { + close(sock); + free(buf); + return NULL; + } + + memcpy(node, &info, sizeof(info)); + + if (tail) + { + tail->next = node; + tail = node; + } + else + { + tail = node; + head = node; + } + } + + free(buf); + close(sock); + return head; +} + +void FreeEthernetPortResources(struct EthernetPortResource* head) +{ + struct EthernetPortResource* p; + + for (p = head; p; ) + { + struct EthernetPortResource* next = p->next; + free(p); + p = next; + } +} + +#if 0 +void PrintEtherPortResources(const struct EthernetPortResource* head) +{ + const struct EthernetPortResource* p; + + for (p = head; p; p = p->next) + { + printf("EthernetPortResource\n"); + printf("{\n"); + printf(" name{%s}\n", p->name); + printf(" index{%d}\n", p->index); + printf(" mac{%s}\n", p->mac); + printf(" family{%s}\n", p->family); + printf(" is_up{%d}\n", p->is_up); + printf(" is_broadcast{%d}\n", p->is_broadcast); + printf(" is_multicast{%d}\n", p->is_multicast); + printf(" is_loopback{%d}\n", p->is_loopback); + printf(" is_p2p{%d}\n", p->is_p2p); + printf(" inet_addr{%s}\n", p->inet_addr); + printf(" broadcast{%s}\n", p->broadcast); + printf(" netmask{%s}\n", p->netmask); + printf(" full_duplex{%d}\n", p->full_duplex); + printf(" speed_mbps{%d}\n", p->speed_mbps); + printf(" supports_wake_on{%d}\n", p->supports_wake_on); + printf(" wake_on{%d}\n", p->wake_on); + printf("}\n"); + } +} + +int main() +{ + struct EthernetPortResource* info; + + info = GetEthernetPortResources(); + + if (info) + { + PrintEtherPortResources(info); + FreeEthernetPortResources(info); + } + + return 0; +} +#endif Copied: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h (from rev 703, cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/EthernetPortResource.h) =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/Resource.h 2008-07-04 18:50:03 UTC (rev 712) @@ -0,0 +1,66 @@ +#ifndef _EthernetPortResoure_h +#define _EthernetPortResoure_h + +#include "common.h" + +struct EthernetPortResource +{ + /* Pointer to next structure */ + struct EthernetPortResource* next; + + /* Name of interface (e.g., "eth0"). */ + char name[64]; + + /* Index */ + int index; + + /* MAC address in display format (e.g., "00:50:56:C0:00:01") */ + char mac[18]; + + /* Address family name in display format (e.g., "inet", "inet6") */ + char family[16]; + + /* Non-zero if interface is up */ + int is_up; + + /* Non-zero if broadcast */ + int is_broadcast; + + /* Non-zero if multicast */ + int is_multicast ; + + /* Non-zero if loopback */ + int is_loopback; + + /* Non-zero if p2p */ + int is_p2p; + + /* ASCII internet address */ + char inet_addr[64]; + + /* ASCII broadcast address */ + char broadcast[64]; + + /* ASCII Netmask */ + char netmask[64]; + + /* Non-zero if full duplex */ + int full_duplex; + + /* Speed in bits-per-second */ + int speed_mbps; + + /* Whether device supports "wake on" */ + int supports_wake_on; + + /* Non-zero if wake on */ + int wake_on; +}; + +HIDDEN extern struct EthernetPortResource* GetEthernetPortResources(); + +HIDDEN extern void FreeEthernetPortResources(struct EthernetPortResource* head); + +HIDDEN extern void PrintEtherPortResources(const struct EthernetPortResource* info); + +#endif /* _EthernetPortResoure_h */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-04 18:45:41
|
Revision: 711 http://omc.svn.sourceforge.net/omc/?rev=711&view=rev Author: mike-brasher Date: 2008-07-04 11:45:50 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Added cleanup.sh script to remove bootstrap autoconf files. Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/cleanup.sh Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/cleanup.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/cleanup.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/cleanup.sh 2008-07-04 18:45:50 UTC (rev 711) @@ -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-ssh_service_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. |
From: <mik...@us...> - 2008-07-04 18:44:48
|
Revision: 710 http://omc.svn.sourceforge.net/omc/?rev=710&view=rev Author: mike-brasher Date: 2008-07-04 11:44:57 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Added COPYING script Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/install.sh Added Paths: ----------- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/INSTALL Added: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/COPYING 2008-07-04 18:44:57 UTC (rev 710) @@ -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-ethernet_port_profile/trunk/INSTALL =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/INSTALL (rev 0) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/INSTALL 2008-07-04 18:44:57 UTC (rev 710) @@ -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. + Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh 2008-07-04 18:42:06 UTC (rev 709) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/cleanup.sh 2008-07-04 18:44:57 UTC (rev 710) @@ -16,6 +16,4 @@ install-sh \ mof/Makefile.in \ src/Makefile.in \ - INSTALL \ - COPYING \ config.h.in~ Modified: cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/install.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/install.sh 2008-07-04 18:42:06 UTC (rev 709) +++ cmpiprofiles/sblim-cmpi-ethernet_port_profile/trunk/src/install.sh 2008-07-04 18:44:57 UTC (rev 710) @@ -1,10 +1,11 @@ #!/bin/sh TARGET=liblinux_ethportprovider.so -PREFIX=/usr/local +PREFIX=/usr MOFSDIR=$PREFIX/var/lib/sfcb/stage/mofs REGSDIR=$PREFIX/var/lib/sfcb/stage/regs -cp .libs/$TARGET.0.0.0 $PREFIX/lib/$TARGET +echo "cp .libs/$TARGET.0.0.0 $PREFIX/lib64/$TARGET" +cp .libs/$TARGET.0.0.0 $PREFIX/lib64/$TARGET mkdir -p $MOFSDIR/root/cimv2 cp ../mof/EthernetPort.mof $MOFSDIR/root/cimv2 mkdir -p $MOFSDIR/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-04 18:41:58
|
Revision: 709 http://omc.svn.sourceforge.net/omc/?rev=709&view=rev Author: mike-brasher Date: 2008-07-04 11:42:06 -0700 (Fri, 04 Jul 2008) Log Message: ----------- First cut. Added Paths: ----------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh Added: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh (rev 0) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh 2008-07-04 18:42:06 UTC (rev 709) @@ -0,0 +1,2 @@ +#!/bin/sh +provider-register.sh -r linux-ssh-service-profile.registration -m linux-ssh-service-profile.mof Property changes on: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/register.sh ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mik...@us...> - 2008-07-04 18:41:05
|
Revision: 708 http://omc.svn.sourceforge.net/omc/?rev=708&view=rev Author: mike-brasher Date: 2008-07-04 11:41:14 -0700 (Fri, 04 Jul 2008) Log Message: ----------- First cut. Modified Paths: -------------- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration Modified: cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof =================================================================== --- cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 18:40:32 UTC (rev 707) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.mof 2008-07-04 18:41:14 UTC (rev 708) @@ -75,7 +75,7 @@ [Override ( "Antecedent" ), Key, Description ( "The computer system that hosts the SSHProtocolService")] - Linux_UnitaryComputerSystem REF Antecedent; + Linux_ComputerSystem REF Antecedent; [Override ( "Dependent" ), Key, Description ( "The SSHProtocolService that is hosted on the computer system.")] @@ -146,7 +146,7 @@ [Override ( "Antecedent" ), Key, Description ( "The hosting Computer System")] - Linux_UnitaryComputerSystem REF Antecedent; + Linux_ComputerSystem REF Antecedent; [Override ( "Dependent" ), Key, Description ( "The TCPProtocolEndpoint access point hosted on the system")] @@ -164,7 +164,7 @@ [Override ( "Antecedent" ), Key, Description ( "The hosting Computer System")] - Linux_UnitaryComputerSystem REF Antecedent; + Linux_ComputerSystem REF Antecedent; [Override ( "Dependent" ), Key, Description ( "The SSHProtocolEndpoint access point hosted on the system")] 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-04 18:40:32 UTC (rev 707) +++ cmpiprofiles/sblim-cmpi-ssh_service_profile/trunk/mof/linux-ssh-service-profile.registration 2008-07-04 18:41:14 UTC (rev 708) @@ -1,4 +1,4 @@ # Classname Namespace ProviderName ProviderModule ProviderTypes ... -Linux_SSHService root/cimv2 Linux_SSHService linux_sshserviceprovider instance method -Linux_SSHCapabilities root/cimv2 Linux_SSHCapabilities linux_sshserviceprovider instance -Linux_SSHElementCapabilities root/cimv2 Linux_SSHElementCapabilities linux_sshserviceprovider instance association +Linux_SSHProtocolService root/cimv2 SSHProtocolService linux_sshserviceprovider instance method +Linux_SSHCapabilities root/cimv2 SSHCapabilities linux_sshserviceprovider instance method +Linux_SSHElementCapabilities root/cimv2 SSHElementCapabilities linux_sshserviceprovider instance association This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |