diff options
Diffstat (limited to 'src/sssd/LMI_HostedSSSDServiceProvider.c')
-rw-r--r-- | src/sssd/LMI_HostedSSSDServiceProvider.c | 42 |
1 files changed, 3 insertions, 39 deletions
diff --git a/src/sssd/LMI_HostedSSSDServiceProvider.c b/src/sssd/LMI_HostedSSSDServiceProvider.c index 8db231a..918a226 100644 --- a/src/sssd/LMI_HostedSSSDServiceProvider.c +++ b/src/sssd/LMI_HostedSSSDServiceProvider.c @@ -1,33 +1,10 @@ -/* - Authors: - Pavel Březina <pbrezina@redhat.com> - - Copyright (C) 2014 Red Hat - - 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 3 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, see <http://www.gnu.org/licenses/>. -*/ - #include <konkret/konkret.h> -#include <openlmi/openlmi.h> #include "LMI_HostedSSSDService.h" -#include "LMI_SSSD_utils.h" static const CMPIBroker* _cb; -static void LMI_HostedSSSDServiceInitialize(const CMPIContext *ctx) +static void LMI_HostedSSSDServiceInitialize() { - lmi_init(PROVIDER_NAME, _cb, ctx, NULL); } static CMPIStatus LMI_HostedSSSDServiceCleanup( @@ -55,19 +32,6 @@ static CMPIStatus LMI_HostedSSSDServiceEnumInstances( const CMPIObjectPath* cop, const char** properties) { - LMI_SSSDServiceRef lmi_sssd; - LMI_HostedSSSDService association; - const char *namespace = KNameSpace(cop); - - LMI_SSSDService_Get_Ref(_cb, namespace, &lmi_sssd); - - LMI_HostedSSSDService_Init(&association, _cb, namespace); - LMI_HostedSSSDService_Set_Dependent(&association, &lmi_sssd); - LMI_HostedSSSDService_SetObjectPath_Antecedent(&association, - lmi_get_computer_system()); - - KReturnInstance(cr, association); - CMReturn(CMPI_RC_OK); } @@ -223,13 +187,13 @@ CMInstanceMIStub( LMI_HostedSSSDService, LMI_HostedSSSDService, _cb, - LMI_HostedSSSDServiceInitialize(ctx)) + LMI_HostedSSSDServiceInitialize()) CMAssociationMIStub( LMI_HostedSSSDService, LMI_HostedSSSDService, _cb, - LMI_HostedSSSDServiceInitialize(ctx)) + LMI_HostedSSSDServiceInitialize()) KONKRET_REGISTRATION( "root/cimv2", |