From f2ea63e48812b042d36ac8357f0cb13b2f2184fe Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Mon, 12 May 2014 19:00:36 +0200 Subject: SBUS: Utility function sbus_request_return_array_as_variant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a utility function that returns an array of types values, each of a given size, with a given type in a variant. This utility function will be used by the GetAll property call. Reviewed-by: Stef Walter Reviewed-by: Pavel Březina --- src/sbus/sssd_dbus.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/sbus/sssd_dbus.h') diff --git a/src/sbus/sssd_dbus.h b/src/sbus/sssd_dbus.h index efb029681..a19f1d9c6 100644 --- a/src/sbus/sssd_dbus.h +++ b/src/sbus/sssd_dbus.h @@ -250,6 +250,12 @@ int sbus_request_return_as_variant(struct sbus_request *dbus_req, int type, const void *value); +int sbus_request_return_array_as_variant(struct sbus_request *dbus_req, + int type, + uint8_t *values, + const int len, + const size_t item_size); + /* * Return an error for a DBus method call request. The @error is a normal * DBusError. -- cgit