diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-02 19:17:38 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-05-14 16:51:56 +0200 |
commit | 3fe339bcba0e211cc666bb3afe34e5c8fce85f4f (patch) | |
tree | 5558a375506770e4f1c713c6d27c75827425210e /src/responder/ifp/ifp_iface_generated.h | |
parent | cf2cc44d6293165379d6470b8bf6bb6a87d62b31 (diff) | |
download | sssd-3fe339bcba0e211cc666bb3afe34e5c8fce85f4f.tar.gz sssd-3fe339bcba0e211cc666bb3afe34e5c8fce85f4f.tar.xz sssd-3fe339bcba0e211cc666bb3afe34e5c8fce85f4f.zip |
IFP: Add a GetGroupsList method
This patch adds a new method on the bus with the following synopsis:
<method name="GetUserGroups">
<arg name="user" type="s" direction="in" />
<arg name="values" type="as" direction="out"/>
</method>
Its purpose is to return names of groups the user is a member of as a
list of strings.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/responder/ifp/ifp_iface_generated.h')
-rw-r--r-- | src/responder/ifp/ifp_iface_generated.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/responder/ifp/ifp_iface_generated.h b/src/responder/ifp/ifp_iface_generated.h index c52e87f06..9b92b9b07 100644 --- a/src/responder/ifp/ifp_iface_generated.h +++ b/src/responder/ifp/ifp_iface_generated.h @@ -15,6 +15,7 @@ #define INFOPIPE_IFACE "org.freedesktop.sssd.infopipe" #define INFOPIPE_IFACE_PING "Ping" #define INFOPIPE_IFACE_GETUSERATTR "GetUserAttr" +#define INFOPIPE_IFACE_GETUSERGROUPS "GetUserGroups" /* ------------------------------------------------------------------------ * DBus handlers @@ -39,8 +40,12 @@ struct infopipe_iface { struct sbus_vtable vtable; /* derive from sbus_vtable */ sbus_msg_handler_fn Ping; sbus_msg_handler_fn GetUserAttr; + int (*GetUserGroups)(struct sbus_request *req, void *data, const char *arg_user); }; +/* finish function for GetUserGroups */ +int infopipe_iface_GetUserGroups_finish(struct sbus_request *req, const char *arg_values[], int len_values); + /* ------------------------------------------------------------------------ * DBus Interface Metadata * |