diff options
Diffstat (limited to 'src/realmd/LMI_HostedRealmdServiceProvider.c')
-rw-r--r-- | src/realmd/LMI_HostedRealmdServiceProvider.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/realmd/LMI_HostedRealmdServiceProvider.c b/src/realmd/LMI_HostedRealmdServiceProvider.c index 1c06368..37d93fc 100644 --- a/src/realmd/LMI_HostedRealmdServiceProvider.c +++ b/src/realmd/LMI_HostedRealmdServiceProvider.c @@ -6,9 +6,9 @@ static const CMPIBroker* _cb; -static void LMI_HostedRealmdServiceInitialize() +static void LMI_HostedRealmdServiceInitialize(const CMPIContext *ctx) { - lmi_init(provider_name, _cb, provider_config_defaults); + lmi_init(provider_name, _cb, ctx, provider_config_defaults); } static CMPIStatus LMI_HostedRealmdServiceCleanup( @@ -37,28 +37,19 @@ static CMPIStatus LMI_HostedRealmdServiceEnumInstances( const char** properties) { CMPIStatus status; - CIM_ComputerSystemRef computer_sys_ref; LMI_RealmdServiceRef realmd_service_ref; LMI_HostedRealmdService hosted_realmd_service; - CMPIObjectPath *computer_sys_op = NULL; const char *name_space = KNameSpace(cop); const char *host_name = get_system_name(); CMSetStatus(&status, CMPI_RC_OK); - LMI_InitComputerSystemKeys(CIM_ComputerSystemRef, &computer_sys_ref, - name_space, host_name); - LMI_InitRealmdServiceKeys(LMI_RealmdServiceRef, &realmd_service_ref, name_space, host_name); - computer_sys_op = LMI_RealmdServiceRef_ToObjectPath(&realmd_service_ref, &status); - computer_sys_op->ft->setClassName(computer_sys_op, - get_system_creation_class_name()); - LMI_HostedRealmdService_Init(&hosted_realmd_service, _cb, name_space); LMI_HostedRealmdService_SetObjectPath_Antecedent(&hosted_realmd_service, - computer_sys_op); + lmi_get_computer_system()); LMI_HostedRealmdService_Set_Dependent(&hosted_realmd_service, &realmd_service_ref); @@ -219,13 +210,13 @@ CMInstanceMIStub( LMI_HostedRealmdService, LMI_HostedRealmdService, _cb, - LMI_HostedRealmdServiceInitialize()) + LMI_HostedRealmdServiceInitialize(ctx)) CMAssociationMIStub( LMI_HostedRealmdService, LMI_HostedRealmdService, _cb, - LMI_HostedRealmdServiceInitialize()) + LMI_HostedRealmdServiceInitialize(ctx)) KONKRET_REGISTRATION( "root/cimv2", |