c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/*
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek Copyright (C) 2016 Red Hat
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek This program is free software; you can redistribute it and/or modify
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek it under the terms of the GNU General Public License as published by
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek the Free Software Foundation; either version 3 of the License, or
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek (at your option) any later version.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek This program is distributed in the hope that it will be useful,
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek GNU General Public License for more details.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek You should have received a copy of the GNU General Public License
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek*/
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#include "sbus/sssd_dbus.h"
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#include "responder/common/iface/responder_iface.h"
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#include "responder/common/responder.h"
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekstruct iface_responder_domain iface_responder_domain = {
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek { &iface_responder_domain_meta, 0 },
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek .SetActive = sss_resp_domain_active,
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek .SetInconsistent = sss_resp_domain_inconsistent,
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek};
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekstruct iface_responder_ncache iface_responder_ncache = {
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek { &iface_responder_ncache_meta, 0 },
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek .ResetUsers = sss_resp_reset_ncache_users,
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek .ResetGroups = sss_resp_reset_ncache_groups,
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek};
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekstatic struct sbus_iface_map iface_map[] = {
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek { RESPONDER_PATH, &iface_responder_domain.vtable },
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek { RESPONDER_PATH, &iface_responder_ncache.vtable },
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek { NULL, NULL }
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek};
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
d8d49ae91708a2360c5c8f7a01e531952e2f7771Fabiano Fidênciostruct sbus_iface_map *responder_get_sbus_interface(void)
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek{
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek return iface_map;
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek}