d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* The following declarations are auto-generated from dp_iface.xml */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* ------------------------------------------------------------------------
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * DBus Constants
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * Various constants of interface and method names mostly for use by clients
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* constants for org.freedesktop.sssd.DataProvider.Client */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina#define IFACE_DP_CLIENT "org.freedesktop.sssd.DataProvider.Client"
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina/* constants for org.freedesktop.sssd.DataProvider.Backend */
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina#define IFACE_DP_BACKEND "org.freedesktop.sssd.DataProvider.Backend"
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina/* constants for org.freedesktop.sssd.DataProvider.Failover */
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina#define IFACE_DP_FAILOVER "org.freedesktop.sssd.DataProvider.Failover"
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina#define IFACE_DP_FAILOVER_LISTSERVICES "ListServices"
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březina#define IFACE_DP_FAILOVER_ACTIVESERVER "ActiveServer"
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březina#define IFACE_DP_FAILOVER_LISTSERVERS "ListServers"
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březina/* constants for org.freedesktop.sssd.DataProvider.AccessControl */
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březina#define IFACE_DP_ACCESS_CONTROL "org.freedesktop.sssd.DataProvider.AccessControl"
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březina#define IFACE_DP_ACCESS_CONTROL_REFRESHRULES "RefreshRules"
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* constants for org.freedesktop.sssd.dataprovider */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina#define IFACE_DP "org.freedesktop.sssd.dataprovider"
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina#define IFACE_DP_GETACCOUNTINFO "getAccountInfo"
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek#define IFACE_DP_GETACCOUNTDOMAIN "getAccountDomain"
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* ------------------------------------------------------------------------
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * DBus handlers
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * These structures are filled in by implementors of the different
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * dbus interfaces to handle method calls.
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * Handler functions of type sbus_msg_handler_fn accept raw messages,
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * other handlers are typed appropriately. If a handler that is
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * set to NULL is invoked it will result in a
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * org.freedesktop.DBus.Error.NotSupported error for the caller.
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * Handlers have a matching xxx_finish() function (unless the method has
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * accepts raw messages). These finish functions the
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * sbus_request_return_and_finish() with the appropriate arguments to
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * construct a valid reply. Once a finish function has been called, the
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * @dbus_req it was called with is freed and no longer valid.
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* vtable for org.freedesktop.sssd.DataProvider.Client */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina struct sbus_vtable vtable; /* derive from sbus_vtable */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina int (*Register)(struct sbus_request *req, void *data, const char *arg_Name);
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* finish function for Register */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaint iface_dp_client_Register_finish(struct sbus_request *req);
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina/* vtable for org.freedesktop.sssd.DataProvider.Backend */
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina struct sbus_vtable vtable; /* derive from sbus_vtable */
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina int (*IsOnline)(struct sbus_request *req, void *data, const char *arg_domain_name);
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina/* finish function for IsOnline */
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březinaint iface_dp_backend_IsOnline_finish(struct sbus_request *req, bool arg_status);
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina/* vtable for org.freedesktop.sssd.DataProvider.Failover */
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina struct sbus_vtable vtable; /* derive from sbus_vtable */
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina int (*ListServices)(struct sbus_request *req, void *data, const char *arg_domain_name);
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březina int (*ActiveServer)(struct sbus_request *req, void *data, const char *arg_service_name);
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březina int (*ListServers)(struct sbus_request *req, void *data, const char *arg_service_name);
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina/* finish function for ListServices */
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březinaint iface_dp_failover_ListServices_finish(struct sbus_request *req, const char *arg_services[], int len_services);
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březina/* finish function for ActiveServer */
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březinaint iface_dp_failover_ActiveServer_finish(struct sbus_request *req, const char *arg_server);
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březina/* finish function for ListServers */
bd4c2ed5aec7f57ea04500f0e43f151eedfdde45Pavel Březinaint iface_dp_failover_ListServers_finish(struct sbus_request *req, const char *arg_servers[], int len_servers);
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březina/* vtable for org.freedesktop.sssd.DataProvider.AccessControl */
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březina struct sbus_vtable vtable; /* derive from sbus_vtable */
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březina int (*RefreshRules)(struct sbus_request *req, void *data);
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březina/* finish function for RefreshRules */
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březinaint iface_dp_access_control_RefreshRules_finish(struct sbus_request *req);
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* vtable for org.freedesktop.sssd.dataprovider */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina struct sbus_vtable vtable; /* derive from sbus_vtable */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina int (*autofsHandler)(struct sbus_request *req, void *data, uint32_t arg_dp_flags, const char *arg_mapname);
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina int (*hostHandler)(struct sbus_request *req, void *data, uint32_t arg_dp_flags, const char *arg_name, const char *arg_alias);
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina int (*getDomains)(struct sbus_request *req, void *data, const char *arg_domain_hint);
ca68b1b4ba06b1cda316ae8af470647bd7015a5aLukas Slebodnik int (*getAccountInfo)(struct sbus_request *req, void *data, uint32_t arg_dp_flags, uint32_t arg_entry_type, const char *arg_filter, const char *arg_domain, const char *arg_extra);
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek int (*getAccountDomain)(struct sbus_request *req, void *data, uint32_t arg_entry_type, const char *arg_filter);
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* finish function for autofsHandler */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaint iface_dp_autofsHandler_finish(struct sbus_request *req, uint16_t arg_dp_error, uint32_t arg_error, const char *arg_error_message);
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* finish function for hostHandler */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaint iface_dp_hostHandler_finish(struct sbus_request *req, uint16_t arg_dp_error, uint32_t arg_error, const char *arg_error_message);
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* finish function for getDomains */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaint iface_dp_getDomains_finish(struct sbus_request *req, uint16_t arg_dp_error, uint32_t arg_error, const char *arg_error_message);
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* finish function for getAccountInfo */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaint iface_dp_getAccountInfo_finish(struct sbus_request *req, uint16_t arg_dp_error, uint32_t arg_error, const char *arg_error_message);
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozek/* finish function for getAccountDomain */
c0f9f5a0f6d71a1596ee3cef549b4b02295313c3Jakub Hrozekint iface_dp_getAccountDomain_finish(struct sbus_request *req, uint16_t arg_dp_error, uint32_t arg_error, const char *arg_domain_name);
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* ------------------------------------------------------------------------
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * DBus Interface Metadata
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * These structure definitions are filled in with the information about
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * the interfaces, methods, properties and so on.
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * The actual definitions are found in the accompanying C file next
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina * to this header.
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* interface info for org.freedesktop.sssd.DataProvider.Client */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaextern const struct sbus_interface_meta iface_dp_client_meta;
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina/* interface info for org.freedesktop.sssd.DataProvider.Backend */
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březinaextern const struct sbus_interface_meta iface_dp_backend_meta;
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březina/* interface info for org.freedesktop.sssd.DataProvider.Failover */
bf83a0faacf16196ab9bd37dcf6190b4209ccaf7Pavel Březinaextern const struct sbus_interface_meta iface_dp_failover_meta;
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březina/* interface info for org.freedesktop.sssd.DataProvider.AccessControl */
e737cdfa225e0d455c0e574bcb82c2cc16a17d9dPavel Březinaextern const struct sbus_interface_meta iface_dp_access_control_meta;
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina/* interface info for org.freedesktop.sssd.dataprovider */
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březinaextern const struct sbus_interface_meta iface_dp_meta;
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina#endif /* __DP_IFACE_XML__ */