diff options
author | Pavel Březina <pbrezina@redhat.com> | 2014-05-08 12:58:06 +0200 |
---|---|---|
committer | Pavel Březina <pbrezina@redhat.com> | 2014-05-14 09:37:52 +0200 |
commit | adb98a993104ac3e5922d5fad99bd00867233944 (patch) | |
tree | 1f1db6230e1a4ec9cc32cf4c49c3ad40197b89c6 /src/sssd/LMI_HostedSSSDServiceProvider.c | |
parent | ee6c9177f161239f4420f5679001330e477061ec (diff) | |
download | openlmi_sssd-wip.tar.gz openlmi_sssd-wip.tar.xz openlmi_sssd-wip.zip |
Implement the schemawip
Diffstat (limited to 'src/sssd/LMI_HostedSSSDServiceProvider.c')
-rw-r--r-- | src/sssd/LMI_HostedSSSDServiceProvider.c | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/sssd/LMI_HostedSSSDServiceProvider.c b/src/sssd/LMI_HostedSSSDServiceProvider.c index 918a226..23284d3 100644 --- a/src/sssd/LMI_HostedSSSDServiceProvider.c +++ b/src/sssd/LMI_HostedSSSDServiceProvider.c @@ -1,10 +1,12 @@ #include <konkret/konkret.h> #include "LMI_HostedSSSDService.h" +#include "utils.h" static const CMPIBroker* _cb; -static void LMI_HostedSSSDServiceInitialize() +static void LMI_HostedSSSDServiceInitialize(const CMPIContext *ctx) { + lmi_init(PROVIDER_NAME, _cb, ctx, NULL); } static CMPIStatus LMI_HostedSSSDServiceCleanup( @@ -32,6 +34,19 @@ static CMPIStatus LMI_HostedSSSDServiceEnumInstances( const CMPIObjectPath* cop, const char** properties) { + LMI_SSSDServiceRef ref; + LMI_HostedSSSDService association; + const char *namespace = KNameSpace(cop); + + LMI_SSSDService_Get_Ref(_cb, namespace, &ref); + + LMI_HostedSSSDService_Init(&association, _cb, namespace); + LMI_HostedSSSDService_Set_Dependent(&association, &ref); + LMI_HostedSSSDService_SetObjectPath_Antecedent(&association, + lmi_get_computer_system()); + + KReturnInstance(cr, association); + CMReturn(CMPI_RC_OK); } @@ -187,13 +202,13 @@ CMInstanceMIStub( LMI_HostedSSSDService, LMI_HostedSSSDService, _cb, - LMI_HostedSSSDServiceInitialize()) + LMI_HostedSSSDServiceInitialize(ctx)) CMAssociationMIStub( LMI_HostedSSSDService, LMI_HostedSSSDService, _cb, - LMI_HostedSSSDServiceInitialize()) + LMI_HostedSSSDServiceInitialize(ctx)) KONKRET_REGISTRATION( "root/cimv2", |