c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/* The following declarations are auto-generated from responder_iface.xml */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#ifndef __RESPONDER_IFACE_XML__
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#define __RESPONDER_IFACE_XML__
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#include "sbus/sssd_dbus.h"
054900ab42a8b865a2257f94c66484e0a022a90cLukas Slebodnik#include "sbus/sssd_dbus_meta.h"
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/* ------------------------------------------------------------------------
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * DBus Constants
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek *
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * Various constants of interface and method names mostly for use by clients
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/* constants for org.freedesktop.sssd.Responder.Domain */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#define IFACE_RESPONDER_DOMAIN "org.freedesktop.sssd.Responder.Domain"
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#define IFACE_RESPONDER_DOMAIN_SETACTIVE "SetActive"
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#define IFACE_RESPONDER_DOMAIN_SETINCONSISTENT "SetInconsistent"
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek/* constants for org.freedesktop.sssd.Responder.NegativeCache */
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek#define IFACE_RESPONDER_NCACHE "org.freedesktop.sssd.Responder.NegativeCache"
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek#define IFACE_RESPONDER_NCACHE_RESETUSERS "ResetUsers"
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek#define IFACE_RESPONDER_NCACHE_RESETGROUPS "ResetGroups"
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/* ------------------------------------------------------------------------
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * DBus handlers
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek *
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * These structures are filled in by implementors of the different
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * dbus interfaces to handle method calls.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek *
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * Handler functions of type sbus_msg_handler_fn accept raw messages,
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * other handlers are typed appropriately. If a handler that is
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * set to NULL is invoked it will result in a
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * org.freedesktop.DBus.Error.NotSupported error for the caller.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek *
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * Handlers have a matching xxx_finish() function (unless the method has
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * accepts raw messages). These finish functions the
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * sbus_request_return_and_finish() with the appropriate arguments to
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * construct a valid reply. Once a finish function has been called, the
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * @dbus_req it was called with is freed and no longer valid.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/* vtable for org.freedesktop.sssd.Responder.Domain */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekstruct iface_responder_domain {
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek struct sbus_vtable vtable; /* derive from sbus_vtable */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek int (*SetActive)(struct sbus_request *req, void *data, const char *arg_name);
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek int (*SetInconsistent)(struct sbus_request *req, void *data, const char *arg_name);
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek};
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/* finish function for SetActive */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekint iface_responder_domain_SetActive_finish(struct sbus_request *req);
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/* finish function for SetInconsistent */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekint iface_responder_domain_SetInconsistent_finish(struct sbus_request *req);
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek/* vtable for org.freedesktop.sssd.Responder.NegativeCache */
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekstruct iface_responder_ncache {
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek struct sbus_vtable vtable; /* derive from sbus_vtable */
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek int (*ResetUsers)(struct sbus_request *req, void *data);
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek int (*ResetGroups)(struct sbus_request *req, void *data);
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek};
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek/* finish function for ResetUsers */
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekint iface_responder_ncache_ResetUsers_finish(struct sbus_request *req);
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek/* finish function for ResetGroups */
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekint iface_responder_ncache_ResetGroups_finish(struct sbus_request *req);
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/* ------------------------------------------------------------------------
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * DBus Interface Metadata
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek *
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * These structure definitions are filled in with the information about
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * the interfaces, methods, properties and so on.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek *
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * The actual definitions are found in the accompanying C file next
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek * to this header.
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek/* interface info for org.freedesktop.sssd.Responder.Domain */
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozekextern const struct sbus_interface_meta iface_responder_domain_meta;
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek/* interface info for org.freedesktop.sssd.Responder.NegativeCache */
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozekextern const struct sbus_interface_meta iface_responder_ncache_meta;
205a0b9e9234327730fa808be95b2e1db7ffee95Jakub Hrozek
c109f063b4469818fd335b8b509f0458e7b33b0aJakub Hrozek#endif /* __RESPONDER_IFACE_XML__ */