monitor_iface_generated.h revision b76419cf8830440b46c20a15585562343c7b1924
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx/* The following declarations are auto-generated from monitor_iface.xml */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#ifndef __MONITOR_IFACE_XML__
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define __MONITOR_IFACE_XML__
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#include "sbus/sssd_dbus.h"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx/* ------------------------------------------------------------------------
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * DBus Constants
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx *
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * Various constants of interface and method names mostly for use by clients
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx/* constants for org.freedesktop.sssd.monitor */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_SRV_IFACE "org.freedesktop.sssd.monitor"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_SRV_IFACE_GETVERSION "getVersion"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_SRV_IFACE_REGISTERSERVICE "RegisterService"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx/* constants for org.freedesktop.sssd.service */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE "org.freedesktop.sssd.service"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE_PING "ping"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE_RESINIT "resInit"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE_SHUTDOWN "shutDown"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE_GOOFFLINE "goOffline"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE_RESETOFFLINE "resetOffline"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE_ROTATELOGS "rotateLogs"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE_CLEARMEMCACHE "clearMemcache"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE_CLEARENUMCACHE "clearEnumCache"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#define MON_CLI_IFACE_SYSBUSRECONNECT "sysbusReconnect"
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
cf3b56dc9c3033d7b20a3198b11865c1b311b6b4dirkx/* ------------------------------------------------------------------------
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * DBus handlers
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx *
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * These structures are filled in by implementors of the different
cf3b56dc9c3033d7b20a3198b11865c1b311b6b4dirkx * dbus interfaces to handle method calls.
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx *
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * Handler functions of type sbus_msg_handler_fn accept raw messages,
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * other handlers are typed appropriately. If a handler that is
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * set to NULL is invoked it will result in a
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * org.freedesktop.DBus.Error.NotSupported error for the caller.
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx *
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * Handlers have a matching xxx_finish() function (unless the method has
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * accepts raw messages). These finish functions the
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * sbus_request_return_and_finish() with the appropriate arguments to
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * construct a valid reply. Once a finish function has been called, the
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * @dbus_req it was called with is freed and no longer valid.
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx/* vtable for org.freedesktop.sssd.monitor */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkxstruct mon_srv_iface {
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx struct sbus_vtable vtable; /* derive from sbus_vtable */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn getVersion;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn RegisterService;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx};
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx/* vtable for org.freedesktop.sssd.service */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkxstruct mon_cli_iface {
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx struct sbus_vtable vtable; /* derive from sbus_vtable */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn ping;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn resInit;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn shutDown;
cf3b56dc9c3033d7b20a3198b11865c1b311b6b4dirkx sbus_msg_handler_fn goOffline;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn resetOffline;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn rotateLogs;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn clearMemcache;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn clearEnumCache;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx sbus_msg_handler_fn sysbusReconnect;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx};
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx/* ------------------------------------------------------------------------
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * DBus Interface Metadata
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx *
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * These structure definitions are filled in with the information about
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * the interfaces, methods, properties and so on.
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx *
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * The actual definitions are found in the accompanying C file next
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx * to this header.
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx/* interface info for org.freedesktop.sssd.monitor */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkxextern const struct sbus_interface_meta mon_srv_iface_meta;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx/* interface info for org.freedesktop.sssd.service */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkxextern const struct sbus_interface_meta mon_cli_iface_meta;
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx#endif /* __MONITOR_IFACE_XML__ */
c002c44ee5c7e7258f4ba5c162461c24a0c179c2dirkx