diff options
author | Pavel Březina <pbrezina@redhat.com> | 2017-09-22 10:47:30 +0200 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2017-09-25 21:41:39 +0200 |
commit | 1024dbcba0c16fb5df5e6d16894a8c7a36dc75f2 (patch) | |
tree | 9cccc19b399a87644fd0044a4d6a0dad40671e73 /src/responder/ifp/ifp_iface_generated.c | |
parent | 39e300314cb43e534179a6950274e1e9c9a48465 (diff) | |
download | sssd-1024dbcba0c16fb5df5e6d16894a8c7a36dc75f2.tar.gz sssd-1024dbcba0c16fb5df5e6d16894a8c7a36dc75f2.tar.xz sssd-1024dbcba0c16fb5df5e6d16894a8c7a36dc75f2.zip |
IFP: parse ping arguments in codegen
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/responder/ifp/ifp_iface_generated.c')
-rw-r--r-- | src/responder/ifp/ifp_iface_generated.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/src/responder/ifp/ifp_iface_generated.c b/src/responder/ifp/ifp_iface_generated.c index 15339698f..6943e38e3 100644 --- a/src/responder/ifp/ifp_iface_generated.c +++ b/src/responder/ifp/ifp_iface_generated.c @@ -24,6 +24,25 @@ static int invoke_ss_method(struct sbus_request *dbus_req, void *function_ptr); /* invokes a handler with a 'ssu' DBus signature */ static int invoke_ssu_method(struct sbus_request *dbus_req, void *function_ptr); +/* arguments for org.freedesktop.sssd.infopipe.Ping */ +const struct sbus_arg_meta iface_ifp_Ping__in[] = { + { "ping", "s" }, + { NULL, } +}; + +/* arguments for org.freedesktop.sssd.infopipe.Ping */ +const struct sbus_arg_meta iface_ifp_Ping__out[] = { + { "pong", "s" }, + { NULL, } +}; + +int iface_ifp_Ping_finish(struct sbus_request *req, const char *arg_pong) +{ + return sbus_request_return_and_finish(req, + DBUS_TYPE_STRING, &arg_pong, + DBUS_TYPE_INVALID); +} + /* arguments for org.freedesktop.sssd.infopipe.ListComponents */ const struct sbus_arg_meta iface_ifp_ListComponents__out[] = { { "components", "ao" }, @@ -182,10 +201,10 @@ int iface_ifp_ListDomains_finish(struct sbus_request *req, const char *arg_domai const struct sbus_method_meta iface_ifp__methods[] = { { "Ping", /* name */ - NULL, /* no in_args */ - NULL, /* no out_args */ + iface_ifp_Ping__in, + iface_ifp_Ping__out, offsetof(struct iface_ifp, Ping), - NULL, /* no invoker */ + invoke_s_method, }, { "ListComponents", /* name */ |