b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* The following definitions are auto-generated from sbus_codegen_tests.xml */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* invokes a handler with a 'bu' DBus signature */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterstatic int invoke_bu_method(struct sbus_request *dbus_req, void *function_ptr);
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* invokes a handler with a 's' DBus signature */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterstatic int invoke_s_method(struct sbus_request *dbus_req, void *function_ptr);
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* invokes a handler with a 'u' DBus signature */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterstatic int invoke_u_method(struct sbus_request *dbus_req, void *function_ptr);
1203e462650f035b0df2304075d60b9a99e36715Stef Walter/* invokes a handler with a 'ybnqiuxtdsoayanaqaiauaxatadasao' DBus signature */
1203e462650f035b0df2304075d60b9a99e36715Stef Walterstatic int invoke_ybnqiuxtdsoayanaqaiauaxatadasao_method(struct sbus_request *dbus_req, void *function_ptr);
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* arguments for com.planetexpress.Ship.MoveUniverse */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walterconst struct sbus_arg_meta com_planetexpress_Ship_MoveUniverse__in[] = {
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* arguments for com.planetexpress.Ship.MoveUniverse */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walterconst struct sbus_arg_meta com_planetexpress_Ship_MoveUniverse__out[] = {
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterint com_planetexpress_Ship_MoveUniverse_finish(struct sbus_request *req, const char *arg_where_we_crashed)
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* arguments for com.planetexpress.Ship.Crash */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterconst struct sbus_arg_meta com_planetexpress_Ship_crash_now__in[] = {
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterint com_planetexpress_Ship_crash_now_finish(struct sbus_request *req)
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* methods for com.planetexpress.Ship */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walterconst struct sbus_method_meta com_planetexpress_Ship__methods[] = {
fcd8093c58638dc7c4f9cddfc97f273b94ce2eadStef Walter offsetof(struct com_planetexpress_Ship, MoveUniverse),
fcd8093c58638dc7c4f9cddfc97f273b94ce2eadStef Walter offsetof(struct com_planetexpress_Ship, crash_now),
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* arguments for com.planetexpress.Ship.BecameSentient */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walterconst struct sbus_arg_meta com_planetexpress_Ship_BecameSentient__args[] = {
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* signals for com.planetexpress.Ship */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walterconst struct sbus_signal_meta com_planetexpress_Ship__signals[] = {
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* property info for com.planetexpress.Ship */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walterconst struct sbus_property_meta com_planetexpress_Ship__properties[] = {
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina offsetof(struct com_planetexpress_Ship, get_Color),
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* interface info for com.planetexpress.Ship */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walterconst struct sbus_interface_meta com_planetexpress_Ship_meta = {
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* arguments for com.planetexpress.Pilot.Blink */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterconst struct sbus_arg_meta test_pilot_Blink__in[] = {
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* arguments for com.planetexpress.Pilot.Blink */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterconst struct sbus_arg_meta test_pilot_Blink__out[] = {
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterint test_pilot_Blink_finish(struct sbus_request *req, bool arg_crashed)
1203e462650f035b0df2304075d60b9a99e36715Stef Walter/* arguments for com.planetexpress.Pilot.Eject */
1203e462650f035b0df2304075d60b9a99e36715Stef Walterconst struct sbus_arg_meta test_pilot_Eject__in[] = {
1203e462650f035b0df2304075d60b9a99e36715Stef Walter/* arguments for com.planetexpress.Pilot.Eject */
1203e462650f035b0df2304075d60b9a99e36715Stef Walterconst struct sbus_arg_meta test_pilot_Eject__out[] = {
1203e462650f035b0df2304075d60b9a99e36715Stef Walterint 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)
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &arg_byte_array, len_byte_array,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_INT16, &arg_int16_array, len_int16_array,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_UINT16, &arg_uint16_array, len_uint16_array,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_INT32, &arg_int32_array, len_int32_array,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_UINT32, &arg_uint32_array, len_uint32_array,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_INT64, &arg_int64_array, len_int64_array,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_UINT64, &arg_uint64_array, len_uint64_array,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_DOUBLE, &arg_double_array, len_double_array,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &arg_string_array, len_string_array,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_OBJECT_PATH, &arg_object_path_array, len_object_path_array,
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* methods for com.planetexpress.Pilot */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterconst struct sbus_method_meta test_pilot__methods[] = {
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* property info for com.planetexpress.Pilot */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walterconst struct sbus_property_meta test_pilot__properties[] = {
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter SBUS_PROPERTY_READABLE | SBUS_PROPERTY_WRITABLE,
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
58229439447d5617913a5a2e173b78105c694842Pavel Březina 0, /* not writable */
5de968e80ade1c02d1907834dcff95e9fc9ad10aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina offsetof(struct test_pilot, get_uint16_array),
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina offsetof(struct test_pilot, get_uint32_array),
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina offsetof(struct test_pilot, get_uint64_array),
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina offsetof(struct test_pilot, get_double_array),
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina offsetof(struct test_pilot, get_string_array),
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
4e5d19f659d8c545c4ed3c307c95cfe4f2ca33cbPavel Březina offsetof(struct test_pilot, get_object_path_array),
90e04eae7e54ec892a6f239783df94dab5d1ed9aJakub Hrozek 0, /* not writable */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walter/* interface info for com.planetexpress.Pilot */
b699c4d7f85a5404be1d1ee9450331aea869b886Stef Walterconst struct sbus_interface_meta test_pilot_meta = {
ac744223411099a862a747e7168a30255c003bf7Pavel Březina/* property info for com.planetexpress.Special */
ac744223411099a862a747e7168a30255c003bf7Pavel Březinaconst struct sbus_property_meta test_special__properties[] = {
ac744223411099a862a747e7168a30255c003bf7Pavel Březina offsetof(struct test_special, get_array_dict_sas),
ac744223411099a862a747e7168a30255c003bf7Pavel Březina 0, /* not writable */
ac744223411099a862a747e7168a30255c003bf7Pavel Březina/* interface info for com.planetexpress.Special */
ac744223411099a862a747e7168a30255c003bf7Pavel Březinaconst struct sbus_interface_meta test_special_meta = {
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* invokes a handler with a 'bu' DBus signature */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterstatic int invoke_bu_method(struct sbus_request *dbus_req, void *function_ptr)
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter int (*handler)(struct sbus_request *, void *, bool, uint32_t) = function_ptr;
66277b21179d95f6e96abed01a20ccbccf27ce99Pavel Březina return (handler)(dbus_req, dbus_req->intf->handler_data,
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* invokes a handler with a 's' DBus signature */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterstatic int invoke_s_method(struct sbus_request *dbus_req, void *function_ptr)
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter int (*handler)(struct sbus_request *, void *, const char *) = function_ptr;
66277b21179d95f6e96abed01a20ccbccf27ce99Pavel Březina return (handler)(dbus_req, dbus_req->intf->handler_data,
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter/* invokes a handler with a 'u' DBus signature */
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walterstatic int invoke_u_method(struct sbus_request *dbus_req, void *function_ptr)
dff909d473f43a6bd0f0286fa2d279c0ebe945c6Stef Walter int (*handler)(struct sbus_request *, void *, uint32_t) = function_ptr;
66277b21179d95f6e96abed01a20ccbccf27ce99Pavel Březina return (handler)(dbus_req, dbus_req->intf->handler_data,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter/* invokes a handler with a 'ybnqiuxtdsoayanaqaiauaxatadasao' DBus signature */
1203e462650f035b0df2304075d60b9a99e36715Stef Walterstatic int invoke_ybnqiuxtdsoayanaqaiauaxatadasao_method(struct sbus_request *dbus_req, void *function_ptr)
1203e462650f035b0df2304075d60b9a99e36715Stef Walter int (*handler)(struct sbus_request *, void *, uint8_t, bool, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t, double, const char *, const char *, uint8_t[], int, int16_t[], int, uint16_t[], int, int32_t[], int, uint32_t[], int, int64_t[], int, uint64_t[], int, double[], int, const char *[], int, const char *[], int) = function_ptr;
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &arg_11, &len_11,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_INT16, &arg_12, &len_12,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_UINT16, &arg_13, &len_13,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_INT32, &arg_14, &len_14,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_UINT32, &arg_15, &len_15,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_INT64, &arg_16, &len_16,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_UINT64, &arg_17, &len_17,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_DOUBLE, &arg_18, &len_18,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &arg_19, &len_19,
1203e462650f035b0df2304075d60b9a99e36715Stef Walter DBUS_TYPE_ARRAY, DBUS_TYPE_OBJECT_PATH, &arg_20, &len_20,