NPIExternal.hpp

Go to the documentation of this file.
00001 /*
00002  * NPIExternal.h
00003  *
00004  * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE
00005  * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
00006  * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
00007  *
00008  * You can obtain a current copy of the Common Public License from
00009  * http://oss.software.ibm.com/developerworks/opensource/license-cpl.html
00010  *
00011  * Author: Markus Mueller <markus_mueller@de.ibm.com>
00012  * Contributors:
00013  *
00014  * Description: <Some descriptive text>
00015  */
00016 // administrative functions
00017 #ifndef NPIExternal_h
00018 #define NPIExternal_h
00019 #include "OW_FTABLERef.hpp"
00020 
00021 namespace OW_NAMESPACE
00022 {
00023 
00024 extern "C" 
00025 void _NPIGarbageCan(NPIHandle * nh, void * object, NPIGarbageType type);
00026 extern "C"  CIMClass NPI_getmyClass(
00027    NPIHandle* npiHandle,
00028    const String& nameSpace, const String& className);
00029 extern "C" CIMObjectPathEnumeration
00030    NPI_enumeratemyInstanceNames(
00031    NPIHandle* npiHandle,
00032    const String& nameSpace, const String& className);
00033 extern "C" CIMInstanceEnumeration
00034    NPI_enumeratemyInstances(
00035    NPIHandle* npiHandle,
00036    const String& nameSpace, const String& className);
00037 extern "C" CIMInstance
00038    NPI_getmyInstance(
00039    NPIHandle* npiHandle,
00040    const CIMObjectPath & owcop, const int localOnly);
00041 }
00042 
00043 //Vector functions
00044 extern "C"  Vector VectorNew ( NPIHandle* npiHandle);
00045 extern "C"
00046    void _VectorAddTo ( NPIHandle* npiHandle,Vector v, void* obj);
00047 extern "C"
00048    int VectorSize( NPIHandle* npiHandle, Vector v);
00049 extern "C"
00050    void* _VectorGet( NPIHandle* npiHandle, Vector v, int pos);
00051 //CIMValue functions
00052 extern "C"
00053 	::CIMType CIMValueGetType (NPIHandle* npiHandle, ::CIMValue cv);
00054 extern "C"
00055    ::CIMValue CIMValueNewString (NPIHandle* npiHandle, const char* val);
00056 extern "C"
00057    ::CIMValue CIMValueNewInteger (NPIHandle* npiHandle, int val);
00058 extern "C"
00059    ::CIMValue CIMValueNewRef (NPIHandle* npiHandle, ::CIMObjectPath cop);
00060 extern "C"
00061    char* CIMValueGetString (NPIHandle* npiHandle, ::CIMValue cv);
00062 extern "C"
00063    int CIMValueGetInteger(NPIHandle* npiHandle, ::CIMValue cv);
00064 extern "C"
00065    ::CIMObjectPath CIMValueGetRef(NPIHandle* npiHandle, ::CIMValue cv);
00066 //CIMParameter functions
00067 extern "C"
00068 	::CIMType CIMParameterGetType( NPIHandle* npiHandle, ::CIMParameter cp);
00069 extern "C"
00070    char* CIMParameterGetName( NPIHandle* npiHandle, ::CIMParameter cp);
00071 extern "C"
00072    ::CIMParameter CIMParameterNewString (NPIHandle* npiHandle,
00073          const char* name, const char* value);
00074 extern "C"
00075    ::CIMParameter CIMParameterNewInteger ( NPIHandle* npiHandle,
00076          const char* name, int value);
00077 extern "C"
00078    ::CIMParameter CIMParameterNewRef ( NPIHandle* npiHandle,
00079          const char* name, CIMObjectPath value);
00080 extern "C"
00081    char* CIMParameterGetString ( NPIHandle* npiHandle,
00082            ::CIMParameter cp);
00083 extern "C"
00084    int CIMParameterGetIntegerValue ( NPIHandle* npiHandle,
00085            ::CIMParameter cp);
00086 extern "C"
00087    CIMObjectPath CIMParameterGetRefValue ( NPIHandle* npiHandle,
00088            ::CIMParameter cp);
00089 //CIMInstance functions
00090 extern "C"
00091    ::CIMInstance CIMClassNewInstance ( NPIHandle* npiHandle, ::CIMClass cc );
00092 extern "C"
00093    void CIMInstanceSetStringProperty( NPIHandle* npiHandle, ::CIMInstance ci,
00094                               const char* name, const char* value );
00095 extern "C"
00096    void CIMInstanceSetIntegerProperty( NPIHandle* npiHandle,::CIMInstance ci,
00097                               const char* name, const int value);
00098 extern "C"
00099   void CIMInstanceSetLongProperty ( NPIHandle*, ::CIMInstance , const char*,
00100                            const long long );
00101 extern "C"
00102   void CIMInstanceSetBooleanProperty ( NPIHandle*, ::CIMInstance,
00103                              const char*, const unsigned char );
00104 extern "C"
00105    void CIMInstanceSetRefProperty( NPIHandle* npiHandle, ::CIMInstance ci,
00106                             const char* name, ::CIMObjectPath value);
00107 
00108 extern "C" 
00109    void CIMInstanceAddStringArrayPropertyValue(NPIHandle* npiHandle, ::CIMInstance ci,
00110                            const char* name, const char* value);
00111 
00112 extern "C" char*
00113 CIMInstanceGetStringArrayPropertyValue(NPIHandle* npiHandle, ::CIMInstance ci,
00114    const char* name, const int pos);
00115 
00116 extern "C" void
00117 CIMInstanceAddStringArrayPropertyValue(NPIHandle* npiHandle, ::CIMInstance ci,
00118    const char* name, const char* value);
00119 
00120                          
00121 extern "C"
00122 char* CIMInstanceGetStringValue(NPIHandle* npiHandle,
00123                          ::CIMInstance ci, const char* name);
00124 extern "C"
00125 int CIMInstanceGetIntegerValue(NPIHandle* npiHandle,
00126                          ::CIMInstance ci, const char* name);
00127 extern "C"
00128 ::CIMObjectPath CIMInstanceGetRefValue(NPIHandle* npiHandle,
00129                               CIMInstance ci, const char* name);
00130 // Object path functions
00131 extern "C"
00132    ::CIMObjectPath CIMObjectPathNew ( NPIHandle* npiHandle,
00133                               const char* classname );
00134 extern "C"
00135    void CIMObjectPathDel ( NPIHandle* npiHandle,
00136                               ::CIMObjectPath cop);
00137 //extern "C"
00138 //    ::CIMObjectPath CIMObjectPathNew ( NPIHandle* npiHandle,
00139 //                                       ::CIMInstance ci);
00140 extern "C"
00141    ::CIMObjectPath CIMObjectPathFromCIMInstance
00142                       ( NPIHandle* npiHandle, ::CIMInstance ci);
00143 extern "C"
00144    char* CIMObjectPathGetClassName( NPIHandle* npiHandle,
00145                               ::CIMObjectPath cop);
00146 extern "C"
00147    char* CIMObjectPathGetNameSpace( NPIHandle* npiHandle,
00148                               ::CIMObjectPath cop);
00149 extern "C"
00150    void CIMObjectPathSetNameSpace( NPIHandle* npiHandle,
00151                            ::CIMObjectPath cop, const char* str);
00152 extern "C"
00153    void CIMObjectPathSetNameSpaceFromCIMObjectPath ( NPIHandle* npiHandle,
00154                            ::CIMObjectPath cop, ::CIMObjectPath src);
00155 extern "C"
00156    char* CIMObjectPathGetStringKeyValue (NPIHandle* npiHandle,
00157                               ::CIMObjectPath cop, const char* key);
00158 extern "C"
00159    void CIMObjectPathAddStringKeyValue (NPIHandle* npiHandle,
00160                                ::CIMObjectPath cop,
00161                                const char* key, const char* value);
00162 extern "C"
00163    int CIMObjectPathGetIntegerKeyValue( NPIHandle* npiHandle,
00164                               ::CIMObjectPath cop, const char* key);
00165 extern "C"
00166    void CIMObjectPathAddIntegerKeyValue (NPIHandle* npiHandle,
00167                                ::CIMObjectPath cop,
00168                                const char* key, const int value);
00169 extern "C"
00170    ::CIMObjectPath CIMObjectPathGetRefKeyValue( NPIHandle* npiHandle,
00171                               ::CIMObjectPath cop, const char* key);
00172 extern "C"
00173    void CIMObjectPathAddRefKeyValue (NPIHandle* npiHandle,
00174                              ::CIMObjectPath cop,
00175                              const char* key, ::CIMObjectPath cop2);
00176 // CIMOM functions
00177 extern "C"
00178    ::CIMClass CIMOMGetClass( NPIHandle* npiHandle,
00179                       ::CIMObjectPath cop, int localOnly );
00180 extern "C"
00181    ::Vector CIMOMEnumInstanceNames(NPIHandle* npiHandle,
00182                            ::CIMObjectPath cop, int i);
00183 extern "C"
00184    ::Vector CIMOMEnumInstances(NPIHandle* npiHandle,
00185                            ::CIMObjectPath cop, int i, int j);
00186 extern "C"
00187    ::CIMInstance CIMOMGetInstance(NPIHandle* npiHandle,
00188                        ::CIMObjectPath cop, int i);
00189 extern "C" void
00190 CIMOMDeliverProcessEvent(NPIHandle* npiHandle, char* ns,
00191             ::CIMInstance indication);
00192 extern "C" void
00193 CIMOMDeliverInstanceEvent(NPIHandle* npiHandle, char* ns,
00194             ::CIMInstance indication,
00195             ::CIMInstance source, ::CIMInstance previous);
00196 // Error handling classes
00197 extern "C" int errorCheck(NPIHandle* npiHandle );
00198 extern "C" void raiseError(NPIHandle* npiHandle, const char* msg );
00199 extern "C"
00200 char* _ObjectToString(NPIHandle* npiHandle, void* co);
00201 
00202 #endif /* NPIExternal_Provider_h*/

Generated on Thu Feb 9 08:47:49 2006 for openwbem by  doxygen 1.4.6