//============================================================================== // // PLEASE DO NOT EDIT; THIS FILE WAS AUTOMATICALLY GENERATED BY GENMOD 2.0.5 // //============================================================================== /* NOCHKSRC */ #include #include "CIMPLE_Exception_Provider.h" #include "CIMPLE_ExceptionLink_Provider.h" using namespace cimple; static int __cimple_CIMPLE_Exception_Provider_proc( const Registration* registration, int operation, void* arg0, void* arg1, void* arg2, void* arg3, void* arg4, void* arg5, void* arg6, void* arg7) { typedef CIMPLE_Exception Class; typedef CIMPLE_Exception_Provider Provider; if (operation != OPERATION_INVOKE_METHOD) return Instance_Provider_Proc_T::proc(registration, operation, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); Provider* provider = (Provider*)arg0; const Class* self = (const Class*)arg1; const char* meth_name = ((Instance*)arg2)->meta_class->name; if (strcasecmp(meth_name, "setException") == 0) { typedef CIMPLE_Exception_setException_method Method; Method* method = (Method*)arg2; return provider->setException( self, method->Exception, method->getInstanceDefault, method->associatorsDefault, method->return_value); } if (strcasecmp(meth_name, "testException") == 0) { typedef CIMPLE_Exception_testException_method Method; Method* method = (Method*)arg2; return provider->testException( self, method->return_value); } return -1; } static int __cimple_CIMPLE_ExceptionLink_Provider_proc( const Registration* registration, int operation, void* arg0, void* arg1, void* arg2, void* arg3, void* arg4, void* arg5, void* arg6, void* arg7) { typedef CIMPLE_ExceptionLink Class; typedef CIMPLE_ExceptionLink_Provider Provider; if (operation != OPERATION_INVOKE_METHOD) return Association_Provider_Proc_T::proc(registration, operation, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); Provider* provider = (Provider*)arg0; const Class* self = (const Class*)arg1; const char* meth_name = ((Instance*)arg2)->meta_class->name; if (strcasecmp(meth_name, "setException") == 0) { typedef CIMPLE_ExceptionLink_setException_method Method; Method* method = (Method*)arg2; return provider->setException( self, method->Exception, method->getInstanceDefault, method->associatorsDefault, method->return_value); } if (strcasecmp(meth_name, "testException") == 0) { typedef CIMPLE_ExceptionLink_testException_method Method; Method* method = (Method*)arg2; return provider->testException( self, method->return_value); } return -1; } CIMPLE_MODULE(CIMPLE_Exception_Module); CIMPLE_INSTANCE_PROVIDER(CIMPLE_Exception_Provider); CIMPLE_ASSOCIATION_PROVIDER(CIMPLE_ExceptionLink_Provider); #ifdef CIMPLE_PEGASUS_MODULE CIMPLE_PEGASUS_PROVIDER_ENTRY_POINT; # define __CIMPLE_FOUND_ENTRY_POINT #endif #ifdef CIMPLE_CMPI_MODULE CIMPLE_CMPI_INSTANCE_PROVIDER(CIMPLE_Exception_Provider); CIMPLE_CMPI_INSTANCE_PROVIDER2(CIMPLE_Exception_Provider, CIMPLE_Exception); CIMPLE_CMPI_ASSOCIATION_PROVIDER(CIMPLE_ExceptionLink_Provider); CIMPLE_CMPI_ASSOCIATION_PROVIDER2(CIMPLE_ExceptionLink_Provider, CIMPLE_ExceptionLink); # define __CIMPLE_FOUND_ENTRY_POINT #endif #ifdef CIMPLE_OPENWBEM_MODULE CIMPLE_OPENWBEM_PROVIDER(CIMPLE_Exception_Module); # define __CIMPLE_FOUND_ENTRY_POINT #endif #ifdef CIMPLE_WMI_MODULE # include "guid.h" CIMPLE_WMI_PROVIDER_ENTRY_POINTS(CLSID_CIMPLE_Exception_Module) # define __CIMPLE_FOUND_ENTRY_POINT #endif #ifndef __CIMPLE_FOUND_ENTRY_POINT # error "No provider entry point found. Please define one of the following: CIMPLE_PEGASUS_MODULE, CIMPLE_CMPI_MODULE, CIMPLE_OPENWBEM_MODULE, CIMPLE_WMI_MODULE" #endif