summaryrefslogtreecommitdiffstats
path: root/src/tests/sbus_codegen_tests_generated.h
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2014-02-25 10:30:06 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-04-19 10:32:50 +0200
commit1203e462650f035b0df2304075d60b9a99e36715 (patch)
tree6f466b47098a4fc66a1f52815b3f59f7f0625a76 /src/tests/sbus_codegen_tests_generated.h
parentdff909d473f43a6bd0f0286fa2d279c0ebe945c6 (diff)
downloadsssd-1203e462650f035b0df2304075d60b9a99e36715.tar.gz
sssd-1203e462650f035b0df2304075d60b9a99e36715.tar.xz
sssd-1203e462650f035b0df2304075d60b9a99e36715.zip
sbus_codegen_tests: Add test case type-safe handler args
This adds a big test case for invoking a handler with all supported basic arguments, and constructing a reply with the same. Lots of tedious code, but worth it to make sure things work well.
Diffstat (limited to 'src/tests/sbus_codegen_tests_generated.h')
-rw-r--r--src/tests/sbus_codegen_tests_generated.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/sbus_codegen_tests_generated.h b/src/tests/sbus_codegen_tests_generated.h
index 23091a7bf..137dab8a0 100644
--- a/src/tests/sbus_codegen_tests_generated.h
+++ b/src/tests/sbus_codegen_tests_generated.h
@@ -22,6 +22,7 @@
/* constants for com.planetexpress.Pilot */
#define TEST_PILOT "com.planetexpress.Pilot"
#define TEST_PILOT_BLINK "Blink"
+#define TEST_PILOT_EJECT "Eject"
#define TEST_PILOT_FULLNAME "FullName"
/* ------------------------------------------------------------------------
@@ -60,11 +61,15 @@ int com_planetexpress_Ship_crash_now_finish(struct sbus_request *req);
struct test_pilot {
struct sbus_vtable vtable; /* derive from sbus_vtable */
int (*Blink)(struct sbus_request *req, void *data, uint32_t arg_duration);
+ int (*Eject)(struct sbus_request *req, void *data, uint8_t arg_byte, bool arg_boolean, int16_t arg_int16, uint16_t arg_uint16, int32_t arg_int32, uint32_t arg_uint32, int64_t arg_int64, uint64_t arg_uint64, double arg_double, const char *arg_string, const char *arg_object_path, uint8_t arg_byte_array[], int len_byte_array, int16_t arg_int16_array[], int len_int16_array, uint16_t arg_uint16_array[], int len_uint16_array, int32_t arg_int32_array[], int len_int32_array, uint32_t arg_uint32_array[], int len_uint32_array, int64_t arg_int64_array[], int len_int64_array, uint64_t arg_uint64_array[], int len_uint64_array, double arg_double_array[], int len_double_array, const char *arg_string_array[], int len_string_array, const char *arg_object_path_array[], int len_object_path_array);
};
/* finish function for Blink */
int test_pilot_Blink_finish(struct sbus_request *req, bool arg_crashed);
+/* finish function for Eject */
+int test_pilot_Eject_finish(struct sbus_request *req, uint8_t arg_byte, bool arg_boolean, int16_t arg_int16, uint16_t arg_uint16, int32_t arg_int32, uint32_t arg_uint32, int64_t arg_int64, uint64_t arg_uint64, double arg_double, const char *arg_string, const char *arg_object_path, uint8_t arg_byte_array[], int len_byte_array, int16_t arg_int16_array[], int len_int16_array, uint16_t arg_uint16_array[], int len_uint16_array, int32_t arg_int32_array[], int len_int32_array, uint32_t arg_uint32_array[], int len_uint32_array, int64_t arg_int64_array[], int len_int64_array, uint64_t arg_uint64_array[], int len_uint64_array, double arg_double_array[], int len_double_array, const char *arg_string_array[], int len_string_array, const char *arg_object_path_array[], int len_object_path_array);
+
/* ------------------------------------------------------------------------
* DBus Interface Metadata
*