summaryrefslogtreecommitdiffstats
path: root/src/tests/sbus_codegen_tests_generated.c
blob: 502d6ce8a0436d5651e27e0ae6e8b87daa8715e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
/* The following definitions are auto-generated from sbus_codegen_tests.xml */

#include "util/util.h"
#include "sbus/sssd_dbus.h"
#include "sbus/sssd_dbus_meta.h"
#include "sbus_codegen_tests_generated.h"

/* invokes a handler with a 'bu' DBus signature */
static int invoke_bu_method(struct sbus_request *dbus_req, void *function_ptr);

/* invokes a handler with a 's' DBus signature */
static int invoke_s_method(struct sbus_request *dbus_req, void *function_ptr);

/* invokes a handler with a 'u' DBus signature */
static int invoke_u_method(struct sbus_request *dbus_req, void *function_ptr);

/* invokes a handler with a 'ybnqiuxtdsoayanaqaiauaxatadasao' DBus signature */
static int invoke_ybnqiuxtdsoayanaqaiauaxatadasao_method(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_s(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_y(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_b(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_n(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_q(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_i(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_u(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_x(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_t(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_d(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_o(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_ay(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_an(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_aq(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_ai(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_au(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_ax(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_at(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_ad(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_as(struct sbus_request *dbus_req, void *function_ptr);
static int invoke_get_ao(struct sbus_request *dbus_req, void *function_ptr);

/* arguments for com.planetexpress.Ship.MoveUniverse */
const struct sbus_arg_meta com_planetexpress_Ship_MoveUniverse__in[] = {
    { "smoothly", "b" },
    { "speed_factor", "u" },
    { NULL, }
};

/* arguments for com.planetexpress.Ship.MoveUniverse */
const struct sbus_arg_meta com_planetexpress_Ship_MoveUniverse__out[] = {
    { "where_we_crashed", "s" },
    { NULL, }
};

int com_planetexpress_Ship_MoveUniverse_finish(struct sbus_request *req, const char *arg_where_we_crashed)
{
   return sbus_request_return_and_finish(req,
                                         DBUS_TYPE_STRING, &arg_where_we_crashed,
                                         DBUS_TYPE_INVALID);
}

/* arguments for com.planetexpress.Ship.Crash */
const struct sbus_arg_meta com_planetexpress_Ship_crash_now__in[] = {
    { "where", "s" },
    { NULL, }
};

int com_planetexpress_Ship_crash_now_finish(struct sbus_request *req)
{
   return sbus_request_return_and_finish(req,
                                         DBUS_TYPE_INVALID);
}

/* methods for com.planetexpress.Ship */
const struct sbus_method_meta com_planetexpress_Ship__methods[] = {
    {
        "MoveUniverse", /* name */
        com_planetexpress_Ship_MoveUniverse__in,
        com_planetexpress_Ship_MoveUniverse__out,
        offsetof(struct com_planetexpress_Ship, MoveUniverse),
        invoke_bu_method,
    },
    {
        "Crash", /* name */
        com_planetexpress_Ship_crash_now__in,
        NULL, /* no out_args */
        offsetof(struct com_planetexpress_Ship, crash_now),
        invoke_s_method,
    },
    {
        "Land", /* name */
        NULL, /* no in_args */
        NULL, /* no out_args */
        offsetof(struct com_planetexpress_Ship, Land),
        NULL, /* no invoker */
    },
    { NULL, }
};

/* arguments for com.planetexpress.Ship.BecameSentient */
const struct sbus_arg_meta com_planetexpress_Ship_BecameSentient__args[] = {
    { "gender", "s" },
    { NULL, }
};

/* signals for com.planetexpress.Ship */
const struct sbus_signal_meta com_planetexpress_Ship__signals[] = {
    {
        "BecameSentient", /* name */
        com_planetexpress_Ship_BecameSentient__args
    },
    { NULL, }
};

/* property info for com.planetexpress.Ship */
const struct sbus_property_meta com_planetexpress_Ship__properties[] = {
    {
        "Color", /* name */
        "s", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct com_planetexpress_Ship, com_planetexpress_Ship_get_Color),
        invoke_get_s,
        0, /* not writable */
        NULL, /* no invoker */
    },
    { NULL, }
};

/* invokes GetAll for the 'com.planetexpress.Ship' interface */
static int invoke_com_planetexpress_Ship_get_all(struct sbus_request *dbus_req, void *function_ptr)
{
    DBusMessage *reply;
    dbus_bool_t dbret;
    DBusMessageIter iter;
    DBusMessageIter iter_dict;
    int ret;
    struct sbus_interface *intf = dbus_req->intf;
    const struct sbus_property_meta *property;
    const char * s_prop_val;
    const char * s_out_val;
    void (*s_handler)(struct sbus_request *, void *data, const char * *);

    reply = dbus_message_new_method_return(dbus_req->message);
    if (!reply) return ENOMEM;
    dbus_message_iter_init_append(reply, &iter);
    dbret = dbus_message_iter_open_container(
                                     &iter, DBUS_TYPE_ARRAY,
                                     DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING
                                     DBUS_TYPE_STRING_AS_STRING
                                     DBUS_TYPE_VARIANT_AS_STRING
                                     DBUS_DICT_ENTRY_END_CHAR_AS_STRING,
                                     &iter_dict);
    if (!dbret) return ENOMEM;

    property = sbus_meta_find_property(intf->vtable->meta, "Color");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        s_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (s_handler) {
            (s_handler)(dbus_req, dbus_req->intf->instance_data, &s_prop_val);
            s_out_val = s_prop_val == NULL ? "" : s_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "Color", DBUS_TYPE_STRING, &s_out_val);
            if (ret != EOK) return ret;
        }
    }

    dbret = dbus_message_iter_close_container(&iter, &iter_dict);
    if (!dbret) return ENOMEM;

    return sbus_request_finish(dbus_req, reply);
}

/* interface info for com.planetexpress.Ship */
const struct sbus_interface_meta com_planetexpress_Ship_meta = {
    "com.planetexpress.Ship", /* name */
    com_planetexpress_Ship__methods,
    com_planetexpress_Ship__signals,
    com_planetexpress_Ship__properties,
    invoke_com_planetexpress_Ship_get_all, /* GetAll invoker */
};

/* arguments for com.planetexpress.Pilot.Blink */
const struct sbus_arg_meta test_pilot_Blink__in[] = {
    { "duration", "u" },
    { NULL, }
};

/* arguments for com.planetexpress.Pilot.Blink */
const struct sbus_arg_meta test_pilot_Blink__out[] = {
    { "crashed", "b" },
    { NULL, }
};

int test_pilot_Blink_finish(struct sbus_request *req, bool arg_crashed)
{
    dbus_bool_t cast_crashed = arg_crashed;
   return sbus_request_return_and_finish(req,
                                         DBUS_TYPE_BOOLEAN, &cast_crashed,
                                         DBUS_TYPE_INVALID);
}

/* arguments for com.planetexpress.Pilot.Eject */
const struct sbus_arg_meta test_pilot_Eject__in[] = {
    { "byte", "y" },
    { "boolean", "b" },
    { "int16", "n" },
    { "uint16", "q" },
    { "int32", "i" },
    { "uint32", "u" },
    { "int64", "x" },
    { "uint64", "t" },
    { "double", "d" },
    { "string", "s" },
    { "object_path", "o" },
    { "byte_array", "ay" },
    { "int16_array", "an" },
    { "uint16_array", "aq" },
    { "int32_array", "ai" },
    { "uint32_array", "au" },
    { "int64_array", "ax" },
    { "uint64_array", "at" },
    { "double_array", "ad" },
    { "string_array", "as" },
    { "object_path_array", "ao" },
    { NULL, }
};

/* arguments for com.planetexpress.Pilot.Eject */
const struct sbus_arg_meta test_pilot_Eject__out[] = {
    { "byte", "y" },
    { "boolean", "b" },
    { "int16", "n" },
    { "uint16", "q" },
    { "int32", "i" },
    { "uint32", "u" },
    { "int64", "x" },
    { "uint64", "t" },
    { "double", "d" },
    { "string", "s" },
    { "object_path", "o" },
    { "byte_array", "ay" },
    { "int16_array", "an" },
    { "uint16_array", "aq" },
    { "int32_array", "ai" },
    { "uint32_array", "au" },
    { "int64_array", "ax" },
    { "uint64_array", "at" },
    { "double_array", "ad" },
    { "string_array", "as" },
    { "object_path_array", "ao" },
    { NULL, }
};

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_bool_t cast_boolean = arg_boolean;
   return sbus_request_return_and_finish(req,
                                         DBUS_TYPE_BYTE, &arg_byte,
                                         DBUS_TYPE_BOOLEAN, &cast_boolean,
                                         DBUS_TYPE_INT16, &arg_int16,
                                         DBUS_TYPE_UINT16, &arg_uint16,
                                         DBUS_TYPE_INT32, &arg_int32,
                                         DBUS_TYPE_UINT32, &arg_uint32,
                                         DBUS_TYPE_INT64, &arg_int64,
                                         DBUS_TYPE_UINT64, &arg_uint64,
                                         DBUS_TYPE_DOUBLE, &arg_double,
                                         DBUS_TYPE_STRING, &arg_string,
                                         DBUS_TYPE_OBJECT_PATH, &arg_object_path,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &arg_byte_array, len_byte_array,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_INT16, &arg_int16_array, len_int16_array,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_UINT16, &arg_uint16_array, len_uint16_array,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_INT32, &arg_int32_array, len_int32_array,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_UINT32, &arg_uint32_array, len_uint32_array,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_INT64, &arg_int64_array, len_int64_array,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_UINT64, &arg_uint64_array, len_uint64_array,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_DOUBLE, &arg_double_array, len_double_array,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &arg_string_array, len_string_array,
                                         DBUS_TYPE_ARRAY, DBUS_TYPE_OBJECT_PATH, &arg_object_path_array, len_object_path_array,
                                         DBUS_TYPE_INVALID);
}

/* methods for com.planetexpress.Pilot */
const struct sbus_method_meta test_pilot__methods[] = {
    {
        "Blink", /* name */
        test_pilot_Blink__in,
        test_pilot_Blink__out,
        offsetof(struct test_pilot, Blink),
        invoke_u_method,
    },
    {
        "Eject", /* name */
        test_pilot_Eject__in,
        test_pilot_Eject__out,
        offsetof(struct test_pilot, Eject),
        invoke_ybnqiuxtdsoayanaqaiauaxatadasao_method,
    },
    { NULL, }
};

/* property info for com.planetexpress.Pilot */
const struct sbus_property_meta test_pilot__properties[] = {
    {
        "FullName", /* name */
        "s", /* type */
        SBUS_PROPERTY_READABLE | SBUS_PROPERTY_WRITABLE,
        offsetof(struct test_pilot, test_pilot_get_FullName),
        invoke_get_s,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "byte", /* name */
        "y", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_byte),
        invoke_get_y,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "boolean", /* name */
        "b", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_boolean),
        invoke_get_b,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "int16", /* name */
        "n", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_int16),
        invoke_get_n,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "uint16", /* name */
        "q", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_uint16),
        invoke_get_q,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "int32", /* name */
        "i", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_int32),
        invoke_get_i,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "uint32", /* name */
        "u", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_uint32),
        invoke_get_u,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "int64", /* name */
        "x", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_int64),
        invoke_get_x,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "uint64", /* name */
        "t", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_uint64),
        invoke_get_t,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "double", /* name */
        "d", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_double),
        invoke_get_d,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "string", /* name */
        "s", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_string),
        invoke_get_s,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "object_path", /* name */
        "o", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_object_path),
        invoke_get_o,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "null_string", /* name */
        "s", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_null_string),
        invoke_get_s,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "null_path", /* name */
        "o", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_null_path),
        invoke_get_o,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "byte_array", /* name */
        "ay", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_byte_array),
        invoke_get_ay,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "int16_array", /* name */
        "an", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_int16_array),
        invoke_get_an,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "uint16_array", /* name */
        "aq", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_uint16_array),
        invoke_get_aq,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "int32_array", /* name */
        "ai", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_int32_array),
        invoke_get_ai,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "uint32_array", /* name */
        "au", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_uint32_array),
        invoke_get_au,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "int64_array", /* name */
        "ax", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_int64_array),
        invoke_get_ax,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "uint64_array", /* name */
        "at", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_uint64_array),
        invoke_get_at,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "double_array", /* name */
        "ad", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_double_array),
        invoke_get_ad,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "string_array", /* name */
        "as", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_string_array),
        invoke_get_as,
        0, /* not writable */
        NULL, /* no invoker */
    },
    {
        "object_path_array", /* name */
        "ao", /* type */
        SBUS_PROPERTY_READABLE,
        offsetof(struct test_pilot, test_pilot_get_object_path_array),
        invoke_get_ao,
        0, /* not writable */
        NULL, /* no invoker */
    },
    { NULL, }
};

/* invokes GetAll for the 'com.planetexpress.Pilot' interface */
static int invoke_test_pilot_get_all(struct sbus_request *dbus_req, void *function_ptr)
{
    DBusMessage *reply;
    dbus_bool_t dbret;
    DBusMessageIter iter;
    DBusMessageIter iter_dict;
    int ret;
    struct sbus_interface *intf = dbus_req->intf;
    const struct sbus_property_meta *property;
    uint16_t *aq_prop_val;
    int aq_prop_len;
    uint16_t *aq_out_val;
    void (*aq_handler)(struct sbus_request *, void *data, uint16_t * *, int *);
    bool b_prop_val;
    dbus_bool_t b_out_val;
    void (*b_handler)(struct sbus_request *, void *data, bool *);
    double d_prop_val;
    double d_out_val;
    void (*d_handler)(struct sbus_request *, void *data, double *);
    const char * *ao_prop_val;
    int ao_prop_len;
    const char * *ao_out_val;
    void (*ao_handler)(struct sbus_request *, void *data, const char * * *, int *);
    int32_t i_prop_val;
    int32_t i_out_val;
    void (*i_handler)(struct sbus_request *, void *data, int32_t *);
    const char * *as_prop_val;
    int as_prop_len;
    const char * *as_out_val;
    void (*as_handler)(struct sbus_request *, void *data, const char * * *, int *);
    const char * o_prop_val;
    const char * o_out_val;
    void (*o_handler)(struct sbus_request *, void *data, const char * *);
    int16_t n_prop_val;
    int16_t n_out_val;
    void (*n_handler)(struct sbus_request *, void *data, int16_t *);
    uint16_t q_prop_val;
    uint16_t q_out_val;
    void (*q_handler)(struct sbus_request *, void *data, uint16_t *);
    uint8_t *ay_prop_val;
    int ay_prop_len;
    uint8_t *ay_out_val;
    void (*ay_handler)(struct sbus_request *, void *data, uint8_t * *, int *);
    const char * s_prop_val;
    const char * s_out_val;
    void (*s_handler)(struct sbus_request *, void *data, const char * *);
    uint32_t u_prop_val;
    uint32_t u_out_val;
    void (*u_handler)(struct sbus_request *, void *data, uint32_t *);
    uint64_t t_prop_val;
    uint64_t t_out_val;
    void (*t_handler)(struct sbus_request *, void *data, uint64_t *);
    int64_t *ax_prop_val;
    int ax_prop_len;
    int64_t *ax_out_val;
    void (*ax_handler)(struct sbus_request *, void *data, int64_t * *, int *);
    uint8_t y_prop_val;
    uint8_t y_out_val;
    void (*y_handler)(struct sbus_request *, void *data, uint8_t *);
    int64_t x_prop_val;
    int64_t x_out_val;
    void (*x_handler)(struct sbus_request *, void *data, int64_t *);
    uint32_t *au_prop_val;
    int au_prop_len;
    uint32_t *au_out_val;
    void (*au_handler)(struct sbus_request *, void *data, uint32_t * *, int *);
    int16_t *an_prop_val;
    int an_prop_len;
    int16_t *an_out_val;
    void (*an_handler)(struct sbus_request *, void *data, int16_t * *, int *);
    double *ad_prop_val;
    int ad_prop_len;
    double *ad_out_val;
    void (*ad_handler)(struct sbus_request *, void *data, double * *, int *);
    int32_t *ai_prop_val;
    int ai_prop_len;
    int32_t *ai_out_val;
    void (*ai_handler)(struct sbus_request *, void *data, int32_t * *, int *);
    uint64_t *at_prop_val;
    int at_prop_len;
    uint64_t *at_out_val;
    void (*at_handler)(struct sbus_request *, void *data, uint64_t * *, int *);

    reply = dbus_message_new_method_return(dbus_req->message);
    if (!reply) return ENOMEM;
    dbus_message_iter_init_append(reply, &iter);
    dbret = dbus_message_iter_open_container(
                                     &iter, DBUS_TYPE_ARRAY,
                                     DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING
                                     DBUS_TYPE_STRING_AS_STRING
                                     DBUS_TYPE_VARIANT_AS_STRING
                                     DBUS_DICT_ENTRY_END_CHAR_AS_STRING,
                                     &iter_dict);
    if (!dbret) return ENOMEM;

    property = sbus_meta_find_property(intf->vtable->meta, "FullName");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        s_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (s_handler) {
            (s_handler)(dbus_req, dbus_req->intf->instance_data, &s_prop_val);
            s_out_val = s_prop_val == NULL ? "" : s_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "FullName", DBUS_TYPE_STRING, &s_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "byte");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        y_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (y_handler) {
            (y_handler)(dbus_req, dbus_req->intf->instance_data, &y_prop_val);
            y_out_val = y_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "byte", DBUS_TYPE_BYTE, &y_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "boolean");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        b_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (b_handler) {
            (b_handler)(dbus_req, dbus_req->intf->instance_data, &b_prop_val);
            b_out_val = b_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "boolean", DBUS_TYPE_BOOLEAN, &b_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "int16");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        n_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (n_handler) {
            (n_handler)(dbus_req, dbus_req->intf->instance_data, &n_prop_val);
            n_out_val = n_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "int16", DBUS_TYPE_INT16, &n_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "uint16");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        q_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (q_handler) {
            (q_handler)(dbus_req, dbus_req->intf->instance_data, &q_prop_val);
            q_out_val = q_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "uint16", DBUS_TYPE_UINT16, &q_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "int32");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        i_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (i_handler) {
            (i_handler)(dbus_req, dbus_req->intf->instance_data, &i_prop_val);
            i_out_val = i_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "int32", DBUS_TYPE_INT32, &i_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "uint32");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        u_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (u_handler) {
            (u_handler)(dbus_req, dbus_req->intf->instance_data, &u_prop_val);
            u_out_val = u_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "uint32", DBUS_TYPE_UINT32, &u_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "int64");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        x_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (x_handler) {
            (x_handler)(dbus_req, dbus_req->intf->instance_data, &x_prop_val);
            x_out_val = x_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "int64", DBUS_TYPE_INT64, &x_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "uint64");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        t_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (t_handler) {
            (t_handler)(dbus_req, dbus_req->intf->instance_data, &t_prop_val);
            t_out_val = t_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "uint64", DBUS_TYPE_UINT64, &t_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "double");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        d_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (d_handler) {
            (d_handler)(dbus_req, dbus_req->intf->instance_data, &d_prop_val);
            d_out_val = d_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "double", DBUS_TYPE_DOUBLE, &d_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "string");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        s_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (s_handler) {
            (s_handler)(dbus_req, dbus_req->intf->instance_data, &s_prop_val);
            s_out_val = s_prop_val == NULL ? "" : s_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "string", DBUS_TYPE_STRING, &s_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "object_path");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        o_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (o_handler) {
            (o_handler)(dbus_req, dbus_req->intf->instance_data, &o_prop_val);
            o_out_val = o_prop_val == NULL ? "/" : o_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "object_path", DBUS_TYPE_OBJECT_PATH, &o_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "null_string");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        s_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (s_handler) {
            (s_handler)(dbus_req, dbus_req->intf->instance_data, &s_prop_val);
            s_out_val = s_prop_val == NULL ? "" : s_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "null_string", DBUS_TYPE_STRING, &s_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "null_path");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        o_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (o_handler) {
            (o_handler)(dbus_req, dbus_req->intf->instance_data, &o_prop_val);
            o_out_val = o_prop_val == NULL ? "/" : o_prop_val;
            ret = sbus_add_variant_to_dict(&iter_dict, "null_path", DBUS_TYPE_OBJECT_PATH, &o_out_val);
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "byte_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        ay_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (ay_handler) {
            (ay_handler)(dbus_req, dbus_req->intf->instance_data, &ay_prop_val, &ay_prop_len);
            ay_out_val = ay_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "byte_array", DBUS_TYPE_BYTE, (uint8_t*)ay_out_val, ay_prop_len, sizeof(uint8_t));
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "int16_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        an_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (an_handler) {
            (an_handler)(dbus_req, dbus_req->intf->instance_data, &an_prop_val, &an_prop_len);
            an_out_val = an_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "int16_array", DBUS_TYPE_INT16, (uint8_t*)an_out_val, an_prop_len, sizeof(int16_t));
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "uint16_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        aq_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (aq_handler) {
            (aq_handler)(dbus_req, dbus_req->intf->instance_data, &aq_prop_val, &aq_prop_len);
            aq_out_val = aq_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "uint16_array", DBUS_TYPE_UINT16, (uint8_t*)aq_out_val, aq_prop_len, sizeof(uint16_t));
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "int32_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        ai_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (ai_handler) {
            (ai_handler)(dbus_req, dbus_req->intf->instance_data, &ai_prop_val, &ai_prop_len);
            ai_out_val = ai_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "int32_array", DBUS_TYPE_INT32, (uint8_t*)ai_out_val, ai_prop_len, sizeof(int32_t));
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "uint32_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        au_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (au_handler) {
            (au_handler)(dbus_req, dbus_req->intf->instance_data, &au_prop_val, &au_prop_len);
            au_out_val = au_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "uint32_array", DBUS_TYPE_UINT32, (uint8_t*)au_out_val, au_prop_len, sizeof(uint32_t));
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "int64_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        ax_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (ax_handler) {
            (ax_handler)(dbus_req, dbus_req->intf->instance_data, &ax_prop_val, &ax_prop_len);
            ax_out_val = ax_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "int64_array", DBUS_TYPE_INT64, (uint8_t*)ax_out_val, ax_prop_len, sizeof(int64_t));
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "uint64_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        at_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (at_handler) {
            (at_handler)(dbus_req, dbus_req->intf->instance_data, &at_prop_val, &at_prop_len);
            at_out_val = at_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "uint64_array", DBUS_TYPE_UINT64, (uint8_t*)at_out_val, at_prop_len, sizeof(uint64_t));
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "double_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        ad_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (ad_handler) {
            (ad_handler)(dbus_req, dbus_req->intf->instance_data, &ad_prop_val, &ad_prop_len);
            ad_out_val = ad_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "double_array", DBUS_TYPE_DOUBLE, (uint8_t*)ad_out_val, ad_prop_len, sizeof(double));
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "string_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        as_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (as_handler) {
            (as_handler)(dbus_req, dbus_req->intf->instance_data, &as_prop_val, &as_prop_len);
            as_out_val = as_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "string_array", DBUS_TYPE_STRING, (uint8_t*)as_out_val, as_prop_len, sizeof(const char *));
            if (ret != EOK) return ret;
        }
    }

    property = sbus_meta_find_property(intf->vtable->meta, "object_path_array");
    if (property != NULL && property->flags & SBUS_PROPERTY_READABLE) {
        ao_handler = VTABLE_FUNC(intf->vtable, property->vtable_offset_get);
        if (ao_handler) {
            (ao_handler)(dbus_req, dbus_req->intf->instance_data, &ao_prop_val, &ao_prop_len);
            ao_out_val = ao_prop_val;
            ret = sbus_add_array_as_variant_to_dict(&iter_dict, "object_path_array", DBUS_TYPE_OBJECT_PATH, (uint8_t*)ao_out_val, ao_prop_len, sizeof(const char *));
            if (ret != EOK) return ret;
        }
    }

    dbret = dbus_message_iter_close_container(&iter, &iter_dict);
    if (!dbret) return ENOMEM;

    return sbus_request_finish(dbus_req, reply);
}

/* interface info for com.planetexpress.Pilot */
const struct sbus_interface_meta test_pilot_meta = {
    "com.planetexpress.Pilot", /* name */
    test_pilot__methods,
    NULL, /* no signals */
    test_pilot__properties,
    invoke_test_pilot_get_all, /* GetAll invoker */
};

/* invokes a handler with a 'bu' DBus signature */
static int invoke_bu_method(struct sbus_request *dbus_req, void *function_ptr)
{
    dbus_bool_t arg_0;
    uint32_t arg_1;
    int (*handler)(struct sbus_request *, void *, bool, uint32_t) = function_ptr;

    if (!sbus_request_parse_or_finish(dbus_req,
                               DBUS_TYPE_BOOLEAN, &arg_0,
                               DBUS_TYPE_UINT32, &arg_1,
                               DBUS_TYPE_INVALID)) {
         return EOK; /* request handled */
    }

    return (handler)(dbus_req, dbus_req->intf->instance_data,
                     arg_0,
                     arg_1);
}

/* invokes a handler with a 's' DBus signature */
static int invoke_s_method(struct sbus_request *dbus_req, void *function_ptr)
{
    const char * arg_0;
    int (*handler)(struct sbus_request *, void *, const char *) = function_ptr;

    if (!sbus_request_parse_or_finish(dbus_req,
                               DBUS_TYPE_STRING, &arg_0,
                               DBUS_TYPE_INVALID)) {
         return EOK; /* request handled */
    }

    return (handler)(dbus_req, dbus_req->intf->instance_data,
                     arg_0);
}

/* invokes a handler with a 'u' DBus signature */
static int invoke_u_method(struct sbus_request *dbus_req, void *function_ptr)
{
    uint32_t arg_0;
    int (*handler)(struct sbus_request *, void *, uint32_t) = function_ptr;

    if (!sbus_request_parse_or_finish(dbus_req,
                               DBUS_TYPE_UINT32, &arg_0,
                               DBUS_TYPE_INVALID)) {
         return EOK; /* request handled */
    }

    return (handler)(dbus_req, dbus_req->intf->instance_data,
                     arg_0);
}

/* invokes a handler with a 'ybnqiuxtdsoayanaqaiauaxatadasao' DBus signature */
static int invoke_ybnqiuxtdsoayanaqaiauaxatadasao_method(struct sbus_request *dbus_req, void *function_ptr)
{
    uint8_t arg_0;
    dbus_bool_t arg_1;
    int16_t arg_2;
    uint16_t arg_3;
    int32_t arg_4;
    uint32_t arg_5;
    int64_t arg_6;
    uint64_t arg_7;
    double arg_8;
    const char * arg_9;
    const char * arg_10;
    uint8_t *arg_11;
    int len_11;
    int16_t *arg_12;
    int len_12;
    uint16_t *arg_13;
    int len_13;
    int32_t *arg_14;
    int len_14;
    uint32_t *arg_15;
    int len_15;
    int64_t *arg_16;
    int len_16;
    uint64_t *arg_17;
    int len_17;
    double *arg_18;
    int len_18;
    const char * *arg_19;
    int len_19;
    const char * *arg_20;
    int len_20;
    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;

    if (!sbus_request_parse_or_finish(dbus_req,
                               DBUS_TYPE_BYTE, &arg_0,
                               DBUS_TYPE_BOOLEAN, &arg_1,
                               DBUS_TYPE_INT16, &arg_2,
                               DBUS_TYPE_UINT16, &arg_3,
                               DBUS_TYPE_INT32, &arg_4,
                               DBUS_TYPE_UINT32, &arg_5,
                               DBUS_TYPE_INT64, &arg_6,
                               DBUS_TYPE_UINT64, &arg_7,
                               DBUS_TYPE_DOUBLE, &arg_8,
                               DBUS_TYPE_STRING, &arg_9,
                               DBUS_TYPE_OBJECT_PATH, &arg_10,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &arg_11, &len_11,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_INT16, &arg_12, &len_12,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_UINT16, &arg_13, &len_13,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_INT32, &arg_14, &len_14,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_UINT32, &arg_15, &len_15,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_INT64, &arg_16, &len_16,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_UINT64, &arg_17, &len_17,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_DOUBLE, &arg_18, &len_18,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, &arg_19, &len_19,
                               DBUS_TYPE_ARRAY, DBUS_TYPE_OBJECT_PATH, &arg_20, &len_20,
                               DBUS_TYPE_INVALID)) {
         return EOK; /* request handled */
    }

    return (handler)(dbus_req, dbus_req->intf->instance_data,
                     arg_0,
                     arg_1,
                     arg_2,
                     arg_3,
                     arg_4,
                     arg_5,
                     arg_6,
                     arg_7,
                     arg_8,
                     arg_9,
                     arg_10,
                     arg_11,
                     len_11,
                     arg_12,
                     len_12,
                     arg_13,
                     len_13,
                     arg_14,
                     len_14,
                     arg_15,
                     len_15,
                     arg_16,
                     len_16,
                     arg_17,
                     len_17,
                     arg_18,
                     len_18,
                     arg_19,
                     len_19,
                     arg_20,
                     len_20);
}

/* invokes a getter with an array of 'uint16_t' DBus type */
static int invoke_get_aq(struct sbus_request *dbus_req, void *function_ptr)
{
    uint16_t *prop_val;
    int prop_len;
    uint16_t *out_val;

    void (*handler)(struct sbus_request *, void *data, uint16_t * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_UINT16, (uint8_t*)out_val, prop_len, sizeof(uint16_t));
}

/* invokes a getter with a 'dbus_bool_t' DBus type */
static int invoke_get_b(struct sbus_request *dbus_req, void *function_ptr)
{
    bool prop_val;
    dbus_bool_t out_val;

    void (*handler)(struct sbus_request *, void *data, bool *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_BOOLEAN, &out_val);
}

/* invokes a getter with a 'double' DBus type */
static int invoke_get_d(struct sbus_request *dbus_req, void *function_ptr)
{
    double prop_val;
    double out_val;

    void (*handler)(struct sbus_request *, void *data, double *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_DOUBLE, &out_val);
}

/* invokes a getter with an array of 'const char *' DBus type */
static int invoke_get_ao(struct sbus_request *dbus_req, void *function_ptr)
{
    const char * *prop_val;
    int prop_len;
    const char * *out_val;

    void (*handler)(struct sbus_request *, void *data, const char * * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_OBJECT_PATH, (uint8_t*)out_val, prop_len, sizeof(const char *));
}

/* invokes a getter with a 'int32_t' DBus type */
static int invoke_get_i(struct sbus_request *dbus_req, void *function_ptr)
{
    int32_t prop_val;
    int32_t out_val;

    void (*handler)(struct sbus_request *, void *data, int32_t *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_INT32, &out_val);
}

/* invokes a getter with an array of 'const char *' DBus type */
static int invoke_get_as(struct sbus_request *dbus_req, void *function_ptr)
{
    const char * *prop_val;
    int prop_len;
    const char * *out_val;

    void (*handler)(struct sbus_request *, void *data, const char * * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_STRING, (uint8_t*)out_val, prop_len, sizeof(const char *));
}

/* invokes a getter with a 'const char *' DBus type */
static int invoke_get_o(struct sbus_request *dbus_req, void *function_ptr)
{
    const char * prop_val;
    const char * out_val;

    void (*handler)(struct sbus_request *, void *data, const char * *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val == NULL ? "/" : prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_OBJECT_PATH, &out_val);
}

/* invokes a getter with a 'int16_t' DBus type */
static int invoke_get_n(struct sbus_request *dbus_req, void *function_ptr)
{
    int16_t prop_val;
    int16_t out_val;

    void (*handler)(struct sbus_request *, void *data, int16_t *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_INT16, &out_val);
}

/* invokes a getter with a 'uint16_t' DBus type */
static int invoke_get_q(struct sbus_request *dbus_req, void *function_ptr)
{
    uint16_t prop_val;
    uint16_t out_val;

    void (*handler)(struct sbus_request *, void *data, uint16_t *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_UINT16, &out_val);
}

/* invokes a getter with an array of 'uint8_t' DBus type */
static int invoke_get_ay(struct sbus_request *dbus_req, void *function_ptr)
{
    uint8_t *prop_val;
    int prop_len;
    uint8_t *out_val;

    void (*handler)(struct sbus_request *, void *data, uint8_t * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_BYTE, (uint8_t*)out_val, prop_len, sizeof(uint8_t));
}

/* invokes a getter with a 'const char *' DBus type */
static int invoke_get_s(struct sbus_request *dbus_req, void *function_ptr)
{
    const char * prop_val;
    const char * out_val;

    void (*handler)(struct sbus_request *, void *data, const char * *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val == NULL ? "" : prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_STRING, &out_val);
}

/* invokes a getter with a 'uint32_t' DBus type */
static int invoke_get_u(struct sbus_request *dbus_req, void *function_ptr)
{
    uint32_t prop_val;
    uint32_t out_val;

    void (*handler)(struct sbus_request *, void *data, uint32_t *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_UINT32, &out_val);
}

/* invokes a getter with a 'uint64_t' DBus type */
static int invoke_get_t(struct sbus_request *dbus_req, void *function_ptr)
{
    uint64_t prop_val;
    uint64_t out_val;

    void (*handler)(struct sbus_request *, void *data, uint64_t *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_UINT64, &out_val);
}

/* invokes a getter with an array of 'int64_t' DBus type */
static int invoke_get_ax(struct sbus_request *dbus_req, void *function_ptr)
{
    int64_t *prop_val;
    int prop_len;
    int64_t *out_val;

    void (*handler)(struct sbus_request *, void *data, int64_t * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_INT64, (uint8_t*)out_val, prop_len, sizeof(int64_t));
}

/* invokes a getter with a 'uint8_t' DBus type */
static int invoke_get_y(struct sbus_request *dbus_req, void *function_ptr)
{
    uint8_t prop_val;
    uint8_t out_val;

    void (*handler)(struct sbus_request *, void *data, uint8_t *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_BYTE, &out_val);
}

/* invokes a getter with a 'int64_t' DBus type */
static int invoke_get_x(struct sbus_request *dbus_req, void *function_ptr)
{
    int64_t prop_val;
    int64_t out_val;

    void (*handler)(struct sbus_request *, void *data, int64_t *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val);

    out_val = prop_val;
    return sbus_request_return_as_variant(dbus_req, DBUS_TYPE_INT64, &out_val);
}

/* invokes a getter with an array of 'uint32_t' DBus type */
static int invoke_get_au(struct sbus_request *dbus_req, void *function_ptr)
{
    uint32_t *prop_val;
    int prop_len;
    uint32_t *out_val;

    void (*handler)(struct sbus_request *, void *data, uint32_t * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_UINT32, (uint8_t*)out_val, prop_len, sizeof(uint32_t));
}

/* invokes a getter with an array of 'int16_t' DBus type */
static int invoke_get_an(struct sbus_request *dbus_req, void *function_ptr)
{
    int16_t *prop_val;
    int prop_len;
    int16_t *out_val;

    void (*handler)(struct sbus_request *, void *data, int16_t * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_INT16, (uint8_t*)out_val, prop_len, sizeof(int16_t));
}

/* invokes a getter with an array of 'double' DBus type */
static int invoke_get_ad(struct sbus_request *dbus_req, void *function_ptr)
{
    double *prop_val;
    int prop_len;
    double *out_val;

    void (*handler)(struct sbus_request *, void *data, double * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_DOUBLE, (uint8_t*)out_val, prop_len, sizeof(double));
}

/* invokes a getter with an array of 'int32_t' DBus type */
static int invoke_get_ai(struct sbus_request *dbus_req, void *function_ptr)
{
    int32_t *prop_val;
    int prop_len;
    int32_t *out_val;

    void (*handler)(struct sbus_request *, void *data, int32_t * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_INT32, (uint8_t*)out_val, prop_len, sizeof(int32_t));
}

/* invokes a getter with an array of 'uint64_t' DBus type */
static int invoke_get_at(struct sbus_request *dbus_req, void *function_ptr)
{
    uint64_t *prop_val;
    int prop_len;
    uint64_t *out_val;

    void (*handler)(struct sbus_request *, void *data, uint64_t * *, int *) = function_ptr;

    (handler)(dbus_req, dbus_req->intf->instance_data, &prop_val, &prop_len);

    out_val = prop_val;
    return sbus_request_return_array_as_variant(dbus_req, DBUS_TYPE_UINT64, (uint8_t*)out_val, prop_len, sizeof(uint64_t));
}