summaryrefslogtreecommitdiffstats
path: root/src/responder/ifp/ifp_iface_generated.h
blob: 3a3e6955e351d76a23cbd6d94104e1198d51c5f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
/* The following declarations are auto-generated from ifp_iface.xml */

#ifndef __IFP_IFACE_XML__
#define __IFP_IFACE_XML__

#include "sbus/sssd_dbus.h"

/* ------------------------------------------------------------------------
 * DBus Constants
 *
 * Various constants of interface and method names mostly for use by clients
 */

/* constants for org.freedesktop.sssd.infopipe */
#define INFOPIPE_IFACE "org.freedesktop.sssd.infopipe"
#define INFOPIPE_IFACE_PING "Ping"
#define INFOPIPE_IFACE_LISTCOMPONENTS "ListComponents"
#define INFOPIPE_IFACE_LISTRESPONDERS "ListResponders"
#define INFOPIPE_IFACE_LISTBACKENDS "ListBackends"
#define INFOPIPE_IFACE_FINDMONITOR "FindMonitor"
#define INFOPIPE_IFACE_FINDRESPONDERBYNAME "FindResponderByName"
#define INFOPIPE_IFACE_FINDBACKENDBYNAME "FindBackendByName"
#define INFOPIPE_IFACE_GETUSERATTR "GetUserAttr"
#define INFOPIPE_IFACE_GETUSERGROUPS "GetUserGroups"
#define INFOPIPE_IFACE_FINDDOMAINBYNAME "FindDomainByName"
#define INFOPIPE_IFACE_LISTDOMAINS "ListDomains"

/* constants for org.freedesktop.sssd.infopipe.Components */
#define INFOPIPE_COMPONENT "org.freedesktop.sssd.infopipe.Components"
#define INFOPIPE_COMPONENT_ENABLE "Enable"
#define INFOPIPE_COMPONENT_DISABLE "Disable"
#define INFOPIPE_COMPONENT_CHANGEDEBUGLEVEL "ChangeDebugLevel"
#define INFOPIPE_COMPONENT_CHANGEDEBUGLEVELTEMPORARILY "ChangeDebugLevelTemporarily"
#define INFOPIPE_COMPONENT_NAME "name"
#define INFOPIPE_COMPONENT_DEBUG_LEVEL "debug_level"
#define INFOPIPE_COMPONENT_ENABLED "enabled"
#define INFOPIPE_COMPONENT_TYPE "type"
#define INFOPIPE_COMPONENT_PROVIDERS "providers"

/* constants for org.freedesktop.sssd.infopipe.Domains */
#define INFOPIPE_DOMAIN "org.freedesktop.sssd.infopipe.Domains"
#define INFOPIPE_DOMAIN_NAME "name"
#define INFOPIPE_DOMAIN_PROVIDER "provider"
#define INFOPIPE_DOMAIN_PRIMARY_SERVERS "primary_servers"
#define INFOPIPE_DOMAIN_BACKUP_SERVERS "backup_servers"
#define INFOPIPE_DOMAIN_MIN_ID "min_id"
#define INFOPIPE_DOMAIN_MAX_ID "max_id"
#define INFOPIPE_DOMAIN_REALM "realm"
#define INFOPIPE_DOMAIN_FOREST "forest"
#define INFOPIPE_DOMAIN_LOGIN_FORMAT "login_format"
#define INFOPIPE_DOMAIN_FULLY_QUALIFIED_NAME_FORMAT "fully_qualified_name_format"
#define INFOPIPE_DOMAIN_ENUMERABLE "enumerable"
#define INFOPIPE_DOMAIN_USE_FULLY_QUALIFIED_NAMES "use_fully_qualified_names"
#define INFOPIPE_DOMAIN_SUBDOMAIN "subdomain"
#define INFOPIPE_DOMAIN_PARENT_DOMAIN "parent_domain"

/* ------------------------------------------------------------------------
 * DBus handlers
 *
 * These structures are filled in by implementors of the different
 * dbus interfaces to handle method calls.
 *
 * Handler functions of type sbus_msg_handler_fn accept raw messages,
 * other handlers are typed appropriately. If a handler that is
 * set to NULL is invoked it will result in a
 * org.freedesktop.DBus.Error.NotSupported error for the caller.
 *
 * Handlers have a matching xxx_finish() function (unless the method has
 * accepts raw messages). These finish functions the
 * sbus_request_return_and_finish() with the appropriate arguments to
 * construct a valid reply. Once a finish function has been called, the
 * @dbus_req it was called with is freed and no longer valid.
 */

/* vtable for org.freedesktop.sssd.infopipe */
struct infopipe_iface {
    struct sbus_vtable vtable; /* derive from sbus_vtable */
    sbus_msg_handler_fn Ping;
    int (*ListComponents)(struct sbus_request *req, void *data);
    int (*ListResponders)(struct sbus_request *req, void *data);
    int (*ListBackends)(struct sbus_request *req, void *data);
    int (*FindMonitor)(struct sbus_request *req, void *data);
    int (*FindResponderByName)(struct sbus_request *req, void *data, const char *arg_name);
    int (*FindBackendByName)(struct sbus_request *req, void *data, const char *arg_name);
    sbus_msg_handler_fn GetUserAttr;
    int (*GetUserGroups)(struct sbus_request *req, void *data, const char *arg_user);
    int (*FindDomainByName)(struct sbus_request *req, void *data, const char *arg_name);
    int (*ListDomains)(struct sbus_request *req, void *data);
};

/* finish function for ListComponents */
int infopipe_iface_ListComponents_finish(struct sbus_request *req, const char *arg_components[], int len_components);

/* finish function for ListResponders */
int infopipe_iface_ListResponders_finish(struct sbus_request *req, const char *arg_responders[], int len_responders);

/* finish function for ListBackends */
int infopipe_iface_ListBackends_finish(struct sbus_request *req, const char *arg_backends[], int len_backends);

/* finish function for FindMonitor */
int infopipe_iface_FindMonitor_finish(struct sbus_request *req, const char *arg_monitor);

/* finish function for FindResponderByName */
int infopipe_iface_FindResponderByName_finish(struct sbus_request *req, const char *arg_responder);

/* finish function for FindBackendByName */
int infopipe_iface_FindBackendByName_finish(struct sbus_request *req, const char *arg_backend);

/* finish function for GetUserGroups */
int infopipe_iface_GetUserGroups_finish(struct sbus_request *req, const char *arg_values[], int len_values);

/* finish function for FindDomainByName */
int infopipe_iface_FindDomainByName_finish(struct sbus_request *req, const char *arg_domain);

/* finish function for ListDomains */
int infopipe_iface_ListDomains_finish(struct sbus_request *req, const char *arg_domain[], int len_domain);

/* vtable for org.freedesktop.sssd.infopipe.Components */
struct infopipe_component {
    struct sbus_vtable vtable; /* derive from sbus_vtable */
    int (*Enable)(struct sbus_request *req, void *data);
    int (*Disable)(struct sbus_request *req, void *data);
    int (*ChangeDebugLevel)(struct sbus_request *req, void *data, uint32_t arg_new_level);
    int (*ChangeDebugLevelTemporarily)(struct sbus_request *req, void *data, uint32_t arg_new_level);
    void (*infopipe_component_get_name)(struct sbus_request *, void *data, const char * *);
    void (*infopipe_component_get_debug_level)(struct sbus_request *, void *data, uint32_t *);
    void (*infopipe_component_get_enabled)(struct sbus_request *, void *data, bool *);
    void (*infopipe_component_get_type)(struct sbus_request *, void *data, const char * *);
    void (*infopipe_component_get_providers)(struct sbus_request *, void *data, const char * * *, int *);
};

/* finish function for Enable */
int infopipe_component_Enable_finish(struct sbus_request *req);

/* finish function for Disable */
int infopipe_component_Disable_finish(struct sbus_request *req);

/* finish function for ChangeDebugLevel */
int infopipe_component_ChangeDebugLevel_finish(struct sbus_request *req);

/* finish function for ChangeDebugLevelTemporarily */
int infopipe_component_ChangeDebugLevelTemporarily_finish(struct sbus_request *req);

/* vtable for org.freedesktop.sssd.infopipe.Domains */
struct infopipe_domain {
    struct sbus_vtable vtable; /* derive from sbus_vtable */
    void (*infopipe_domain_get_name)(struct sbus_request *, void *data, const char * *);
    void (*infopipe_domain_get_provider)(struct sbus_request *, void *data, const char * *);
    void (*infopipe_domain_get_primary_servers)(struct sbus_request *, void *data, const char * * *, int *);
    void (*infopipe_domain_get_backup_servers)(struct sbus_request *, void *data, const char * * *, int *);
    void (*infopipe_domain_get_min_id)(struct sbus_request *, void *data, uint32_t *);
    void (*infopipe_domain_get_max_id)(struct sbus_request *, void *data, uint32_t *);
    void (*infopipe_domain_get_realm)(struct sbus_request *, void *data, const char * *);
    void (*infopipe_domain_get_forest)(struct sbus_request *, void *data, const char * *);
    void (*infopipe_domain_get_login_format)(struct sbus_request *, void *data, const char * *);
    void (*infopipe_domain_get_fully_qualified_name_format)(struct sbus_request *, void *data, const char * *);
    void (*infopipe_domain_get_enumerable)(struct sbus_request *, void *data, bool *);
    void (*infopipe_domain_get_use_fully_qualified_names)(struct sbus_request *, void *data, bool *);
    void (*infopipe_domain_get_subdomain)(struct sbus_request *, void *data, bool *);
    void (*infopipe_domain_get_parent_domain)(struct sbus_request *, void *data, const char * *);
};

/* ------------------------------------------------------------------------
 * DBus Interface Metadata
 *
 * These structure definitions are filled in with the information about
 * the interfaces, methods, properties and so on.
 *
 * The actual definitions are found in the accompanying C file next
 * to this header.
 */

/* interface info for org.freedesktop.sssd.infopipe */
extern const struct sbus_interface_meta infopipe_iface_meta;

/* interface info for org.freedesktop.sssd.infopipe.Components */
extern const struct sbus_interface_meta infopipe_component_meta;

/* interface info for org.freedesktop.sssd.infopipe.Domains */
extern const struct sbus_interface_meta infopipe_domain_meta;

#endif /* __IFP_IFACE_XML__ */