-
Notifications
You must be signed in to change notification settings - Fork 3
/
stubs.c
1118 lines (895 loc) · 22.5 KB
/
stubs.c
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
#include "include/dbus-1.0/dbus/dbus.h"
#include "include/dbus-1.0/dbus/dbus-glib.h"
#include <string.h>
#include <stdlib.h>
static const char *empty = "";
static GError gerr = {.domain = 0, .code = G_FILE_ERROR_NOENT, .message = "" };
dbus_bool_t dbus_parse_address (const char *a,
DBusAddressEntry ***b,
int *c,
DBusError *d) {
return TRUE;
}
const char *dbus_address_entry_get_value (DBusAddressEntry *entry,
const char *key) {
return empty;
}
const char *dbus_address_entry_get_method (DBusAddressEntry *entry) {
return empty;
}
char* dbus_address_escape_value (const char *value) {
return NULL;
}
char* dbus_address_unescape_value (const char *value,
DBusError *error) {
return NULL;
}
DBusConnection *dbus_bus_get (DBusBusType type,
DBusError *error) {
return NULL;
}
DBusConnection *dbus_bus_get_private (DBusBusType type,
DBusError *error) {
return NULL;
}
dbus_bool_t dbus_bus_register (DBusConnection *connection,
DBusError *error) {
return TRUE;
}
dbus_bool_t dbus_bus_set_unique_name (DBusConnection *connection,
const char *unique_name) {
return TRUE;
}
const char* dbus_bus_get_unique_name (DBusConnection *connection) {
return empty;
}
unsigned long dbus_bus_get_unix_user (DBusConnection *connection,
const char *name,
DBusError *error) {
return 0;
}
char* dbus_bus_get_id (DBusConnection *connection,
DBusError *error) {
return strdup(empty);
}
int dbus_bus_request_name (DBusConnection *connection,
const char *name,
unsigned int flags,
DBusError *error) {
return DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER;
}
int dbus_bus_release_name (DBusConnection *connection,
const char *name,
DBusError *error) {
return DBUS_RELEASE_NAME_REPLY_RELEASED;
}
dbus_bool_t dbus_bus_name_has_owner (DBusConnection *connection,
const char *name,
DBusError *error) {
return TRUE;
}
dbus_bool_t dbus_bus_start_service_by_name (DBusConnection *connection,
const char *name,
dbus_uint32_t flags,
dbus_uint32_t *reply,
DBusError *error) {
return TRUE;
}
DBusConnection* dbus_connection_open (const char *address,
DBusError *error) {
return NULL;
}
DBusConnection* dbus_connection_open_private (const char *address,
DBusError *error) {
return NULL;
}
DBusConnection* dbus_connection_ref (DBusConnection *connection) {
return connection;
}
dbus_bool_t dbus_connection_get_is_connected (DBusConnection *connection) {
return TRUE;
}
dbus_bool_t dbus_connection_get_is_authenticated (DBusConnection *connection) {
return TRUE;
}
dbus_bool_t dbus_connection_get_is_anonymous (DBusConnection *connection) {
return TRUE;
}
char* dbus_connection_get_server_id (DBusConnection *connection) {
return strdup(empty);
}
dbus_bool_t dbus_connection_can_send_type (DBusConnection *connection,
int type) {
return TRUE;
}
dbus_bool_t dbus_connection_read_write_dispatch (DBusConnection *connection,
int timeout_milliseconds) {
return TRUE;
}
dbus_bool_t dbus_connection_read_write (DBusConnection *connection,
int timeout_milliseconds) {
return TRUE;
}
DBusMessage* dbus_connection_borrow_message (DBusConnection *connection) {
return NULL;
}
DBusMessage* dbus_connection_pop_message (DBusConnection *connection) {
return NULL;
}
DBusDispatchStatus dbus_connection_get_dispatch_status (DBusConnection *connection) {
return DBUS_DISPATCH_COMPLETE;
}
DBusDispatchStatus dbus_connection_dispatch (DBusConnection *connection) {
return DBUS_DISPATCH_COMPLETE;
}
dbus_bool_t dbus_connection_has_messages_to_send (DBusConnection *connection) {
return FALSE;
}
dbus_bool_t dbus_connection_send (DBusConnection *connection,
DBusMessage *message,
dbus_uint32_t *client_serial) {
return TRUE;
}
dbus_bool_t dbus_connection_send_with_reply (DBusConnection *connection,
DBusMessage *message,
DBusPendingCall **pending_return,
int timeout_milliseconds) {
return TRUE;
}
DBusMessage * dbus_connection_send_with_reply_and_block (DBusConnection *connection,
DBusMessage *message,
int timeout_milliseconds,
DBusError *error) {
return NULL;
}
dbus_bool_t dbus_connection_set_watch_functions (DBusConnection *connection,
DBusAddWatchFunction add_function,
DBusRemoveWatchFunction remove_function,
DBusWatchToggledFunction toggled_function,
void *data,
DBusFreeFunction free_data_function) {
return TRUE;
}
dbus_bool_t dbus_connection_set_timeout_functions (DBusConnection *connection,
DBusAddTimeoutFunction add_function,
DBusRemoveTimeoutFunction remove_function,
DBusTimeoutToggledFunction toggled_function,
void *data,
DBusFreeFunction free_data_function) {
return TRUE;
}
dbus_bool_t dbus_connection_get_unix_user (DBusConnection *connection,
unsigned long *uid) {
return FALSE;
}
dbus_bool_t dbus_connection_get_unix_process_id (DBusConnection *connection,
unsigned long *pid) {
return FALSE;
}
dbus_bool_t dbus_connection_get_adt_audit_session_data (DBusConnection *connection,
void **data,
dbus_int32_t *data_size) {
return FALSE;
}
dbus_bool_t dbus_connection_get_windows_user (DBusConnection *connection,
char **windows_sid_p) {
return FALSE;
}
dbus_bool_t dbus_connection_add_filter (DBusConnection *connection,
DBusHandleMessageFunction function,
void *user_data,
DBusFreeFunction free_data_function) {
return TRUE;
}
dbus_bool_t dbus_connection_allocate_data_slot (dbus_int32_t *slot_p) {
return TRUE;
}
dbus_bool_t dbus_connection_set_data (DBusConnection *connection,
dbus_int32_t slot,
void *data,
DBusFreeFunction free_data_func) {
return TRUE;
}
void* dbus_connection_get_data (DBusConnection *connection,
dbus_int32_t slot) {
return NULL;
}
long dbus_connection_get_max_message_size (DBusConnection *connection) {
return 10;
}
long dbus_connection_get_max_received_size (DBusConnection *connection) {
return 10;
}
long dbus_connection_get_max_message_unix_fds (DBusConnection *connection) {
return 10;
}
long dbus_connection_get_max_received_unix_fds(DBusConnection *connection) {
return 10;
}
long dbus_connection_get_outgoing_size (DBusConnection *connection) {
return 0;
}
long dbus_connection_get_outgoing_unix_fds (DBusConnection *connection) {
return 0;
}
DBusPreallocatedSend* dbus_connection_preallocate_send (DBusConnection *connection) {
return NULL;
}
dbus_bool_t dbus_connection_try_register_object_path (DBusConnection *connection,
const char *path,
const DBusObjectPathVTable *vtable,
void *user_data,
DBusError *error) {
return TRUE;
}
dbus_bool_t dbus_connection_register_object_path (DBusConnection *connection,
const char *path,
const DBusObjectPathVTable *vtable,
void *user_data) {
return TRUE;
}
dbus_bool_t dbus_connection_try_register_fallback (DBusConnection *connection,
const char *path,
const DBusObjectPathVTable *vtable,
void *user_data,
DBusError *error) {
return TRUE;
}
dbus_bool_t dbus_connection_register_fallback (DBusConnection *connection,
const char *path,
const DBusObjectPathVTable *vtable,
void *user_data) {
return TRUE;
}
dbus_bool_t dbus_connection_unregister_object_path (DBusConnection *connection,
const char *path) {
return TRUE;
}
dbus_bool_t dbus_connection_get_object_path_data (DBusConnection *connection,
const char *path,
void **data_p) {
return TRUE;
}
dbus_bool_t dbus_connection_list_registered (DBusConnection *connection,
const char *parent_path,
char ***child_entries) {
return FALSE;
}
dbus_bool_t dbus_connection_get_unix_fd (DBusConnection *connection,
int *fd) {
return FALSE;
}
dbus_bool_t dbus_connection_get_socket (DBusConnection *connection,
int *fd) {
return FALSE;
}
int dbus_watch_get_fd (DBusWatch *watch) {
return -1;
}
int dbus_watch_get_unix_fd (DBusWatch *watch) {
return -1;
}
int dbus_watch_get_socket (DBusWatch *watch) {
return -1;
}
unsigned int dbus_watch_get_flags (DBusWatch *watch) {
return 0;
}
void* dbus_watch_get_data (DBusWatch *watch) {
return NULL;
}
dbus_bool_t dbus_watch_handle (DBusWatch *watch,
unsigned int flags) {
return TRUE;
}
dbus_bool_t dbus_watch_get_enabled (DBusWatch *watch) {
return TRUE;
}
int dbus_timeout_get_interval (DBusTimeout *timeout) {
return 0;
}
void* dbus_timeout_get_data (DBusTimeout *timeout) {
return NULL;
}
dbus_bool_t dbus_timeout_handle (DBusTimeout *timeout) {
return TRUE;
}
dbus_bool_t dbus_timeout_get_enabled (DBusTimeout *timeout) {
return TRUE;
}
dbus_bool_t dbus_error_has_name (const DBusError *error,
const char *name) {
return TRUE;
}
dbus_bool_t dbus_error_is_set (const DBusError *error) {
return TRUE;
}
GType dbus_g_connection_get_g_type() {
return 0;
}
GType dbus_g_message_get_g_type() {
return 0;
}
DBusGConnection* dbus_g_connection_ref (DBusGConnection *connection) {
return connection;
}
DBusGMessage* dbus_g_message_ref (DBusGMessage *message) {
return message;
}
GQuark dbus_g_error_quark() {
return 0;
}
gboolean dbus_g_error_has_name (GError *error,
const char *name) {
return TRUE;
}
const char * dbus_g_error_get_name (GError *error) {
return empty;
}
DBusGConnection* dbus_g_connection_open (const gchar *address,
GError **error) {
*error = &gerr;
return NULL;
}
DBusGConnection* dbus_g_bus_get (DBusBusType type,
GError **error) {
return NULL;
}
GObject * dbus_g_connection_lookup_g_object (DBusGConnection *connection,
const char *at_path) {
return NULL;
}
GType dbus_g_object_path_get_g_type() {
return 0;
}
GType dbus_g_proxy_get_type() {
return 0;
}
DBusGProxy* dbus_g_proxy_new_for_name (DBusGConnection *connection,
const char *name,
const char *path,
const char *interface) {
return NULL;
}
DBusGProxy* dbus_g_proxy_new_for_name_owner (DBusGConnection *connection,
const char *name,
const char *path,
const char *interface,
GError **error) {
return NULL;
}
DBusGProxy* dbus_g_proxy_new_from_proxy (DBusGProxy *proxy,
const char *interface,
const char *path_name) {
return NULL;
}
DBusGProxy* dbus_g_proxy_new_for_peer (DBusGConnection *connection,
const char *path_name,
const char *interface_name) {
return NULL;
}
gboolean dbus_g_proxy_call (DBusGProxy *proxy,
const char *method,
GError **error,
GType first_arg_type,
...) {
return TRUE;
}
gboolean dbus_g_proxy_call_with_timeout (DBusGProxy *proxy,
const char *method,
int timeout,
GError **error,
GType first_arg_type,
...) {
return TRUE;
}
DBusGProxyCall * dbus_g_proxy_begin_call (DBusGProxy *proxy,
const char *method,
DBusGProxyCallNotify notify,
gpointer data,
GDestroyNotify destroy,
GType first_arg_type,
...) {
return NULL;
}
DBusGProxyCall * dbus_g_proxy_begin_call_with_timeout (DBusGProxy *proxy,
const char *method,
DBusGProxyCallNotify notify,
gpointer user_data,
GDestroyNotify destroy,
int timeout,
GType first_arg_type,
...) {
return NULL;
}
gboolean dbus_g_proxy_end_call (DBusGProxy *proxy,
DBusGProxyCall *call,
GError **error,
GType first_arg_type,
...) {
return TRUE;
}
const char* dbus_g_proxy_get_path (DBusGProxy *proxy) {
return empty;
}
const char* dbus_g_proxy_get_bus_name (DBusGProxy *proxy) {
return empty;
}
const char* dbus_g_proxy_get_interface (DBusGProxy *proxy) {
return empty;
}
GType dbus_connection_get_g_type() {
return 0;
}
GType dbus_message_get_g_type() {
return 0;
}
GType dbus_pending_call_get_g_type() {
return 0;
}
DBusConnection* dbus_g_connection_get_connection (DBusGConnection *gconnection) {
return NULL;
}
DBusGConnection* dbus_connection_get_g_connection (DBusConnection *connection) {
return NULL;
}
DBusMessage* dbus_g_message_get_message (DBusGMessage *gmessage) {
return NULL;
}
gchar* dbus_g_method_get_sender (DBusGMethodInvocation *context) {
return strdup(empty);
}
DBusMessage* dbus_g_method_get_reply (DBusGMethodInvocation *context) {
return NULL;
}
GType dbus_g_type_get_collection (const char *container,
GType specialization) {
return 0;
}
GType dbus_g_type_get_map (const char *container,
GType key_specialization,
GType value_specialization) {
return 0;
}
GType dbus_g_type_get_structv (const char *container,
guint num_members,
GType *types) {
return 0;
}
GType dbus_g_type_get_struct (const char *container,
GType first_type,
...) {
return 0;
}
gboolean dbus_g_type_is_collection (GType gtype) {
return FALSE;
}
gboolean dbus_g_type_is_map (GType gtype) {
return FALSE;
}
gboolean dbus_g_type_is_struct (GType gtype) {
return FALSE;
}
GType dbus_g_type_get_collection_specialization (GType gtype) {
return 0;
}
GType dbus_g_type_get_map_key_specialization (GType gtype) {
return 0;
}
GType dbus_g_type_get_map_value_specialization (GType gtype) {
return 0;
}
GType dbus_g_type_get_struct_member_type (GType gtype,
guint member) {
return 0;
}
guint dbus_g_type_get_struct_size (GType gtype) {
return 0;
}
gpointer dbus_g_type_specialized_construct (GType gtype) {
return NULL;
}
gboolean dbus_g_type_collection_get_fixed (GValue *value,
gpointer *data,
guint *len) {
return FALSE;
}
gboolean dbus_g_type_struct_get_member (const GValue *value,
guint member,
GValue *dest) {
return FALSE;
}
gboolean dbus_g_type_struct_set_member (GValue *value,
guint member,
const GValue *src) {
return FALSE;
}
gboolean dbus_g_type_struct_get (const GValue *value,
guint member,
...) {
return FALSE;
}
gboolean dbus_g_type_struct_set (GValue *value,
guint member,
...) {
return FALSE;
}
const DBusGTypeSpecializedMapVtable* dbus_g_type_map_peek_vtable (GType map_type) {
return NULL;
}
const DBusGTypeSpecializedCollectionVtable* dbus_g_type_collection_peek_vtable (GType collection_type) {
return NULL;
}
const DBusGTypeSpecializedStructVtable* dbus_g_type_struct_peek_vtable (GType struct_type) {
return NULL;
}
void* dbus_malloc (size_t bytes) {
return malloc(bytes);
}
void* dbus_malloc0 (size_t bytes) {
return calloc(bytes, 1);
}
void* dbus_realloc (void *memory,
size_t bytes) {
return realloc(memory, bytes);
}
DBusMessage* dbus_message_new (int message_type) {
return NULL;
}
DBusMessage* dbus_message_new_method_call (const char *bus_name,
const char *path,
const char *interface,
const char *method) {
return NULL;
}
DBusMessage* dbus_message_new_method_return (DBusMessage *method_call) {
return NULL;
}
DBusMessage* dbus_message_new_signal (const char *path,
const char *interface,
const char *name) {
return NULL;
}
DBusMessage* dbus_message_new_error (DBusMessage *reply_to,
const char *error_name,
const char *error_message) {
return NULL;
}
DBusMessage* dbus_message_new_error_printf (DBusMessage *reply_to,
const char *error_name,
const char *error_format,
...) {
return NULL;
}
DBusMessage* dbus_message_copy (const DBusMessage *message) {
return NULL;
}
DBusMessage* dbus_message_ref (DBusMessage *message) {
return message;
}
int dbus_message_get_type (DBusMessage *message) {
return 0;
}
dbus_bool_t dbus_message_set_path (DBusMessage *message,
const char *object_path) {
return TRUE;
}
const char* dbus_message_get_path (DBusMessage *message) {
return empty;
}
dbus_bool_t dbus_message_has_path (DBusMessage *message,
const char *object_path) {
return TRUE;
}
dbus_bool_t dbus_message_set_interface (DBusMessage *message,
const char *interface) {
return TRUE;
}
const char* dbus_message_get_interface (DBusMessage *message) {
return empty;
}
dbus_bool_t dbus_message_has_interface (DBusMessage *message,
const char *interface) {
return TRUE;
}
dbus_bool_t dbus_message_set_member (DBusMessage *message,
const char *member) {
return TRUE;
}
const char* dbus_message_get_member (DBusMessage *message) {
return empty;
}
dbus_bool_t dbus_message_has_member (DBusMessage *message,
const char *member) {
return FALSE;
}
dbus_bool_t dbus_message_set_error_name (DBusMessage *message,
const char *name) {
return TRUE;
}
const char* dbus_message_get_error_name (DBusMessage *message) {
return empty;
}
dbus_bool_t dbus_message_set_destination (DBusMessage *message,
const char *destination) {
return TRUE;
}
const char* dbus_message_get_destination (DBusMessage *message) {
return empty;
}
dbus_bool_t dbus_message_set_sender (DBusMessage *message,
const char *sender) {
return TRUE;
}
const char* dbus_message_get_sender (DBusMessage *message) {
return empty;
}
const char* dbus_message_get_signature (DBusMessage *message) {
return empty;
}
dbus_bool_t dbus_message_get_no_reply (DBusMessage *message) {
return TRUE;
}
dbus_bool_t dbus_message_is_method_call (DBusMessage *message,
const char *interface,
const char *method) {
return FALSE;
}
dbus_bool_t dbus_message_is_signal (DBusMessage *message,
const char *interface,
const char *signal_name) {
return FALSE;
}
dbus_bool_t dbus_message_is_error (DBusMessage *message,
const char *error_name) {
return FALSE;
}
dbus_bool_t dbus_message_has_destination (DBusMessage *message,
const char *bus_name) {
return TRUE;
}
dbus_bool_t dbus_message_has_sender (DBusMessage *message,
const char *unique_bus_name) {
return TRUE;
}
dbus_bool_t dbus_message_has_signature (DBusMessage *message,
const char *signature) {
return TRUE;
}
dbus_uint32_t dbus_message_get_serial (DBusMessage *message) {
return 0;
}
dbus_bool_t dbus_message_set_reply_serial (DBusMessage *message,
dbus_uint32_t reply_serial) {
return TRUE;
}
dbus_uint32_t dbus_message_get_reply_serial (DBusMessage *message) {
return 0;
}
dbus_bool_t dbus_message_get_auto_start (DBusMessage *message) {
return FALSE;
}
dbus_bool_t dbus_message_get_path_decomposed (DBusMessage *message,
char ***path) {
return FALSE;
}
dbus_bool_t dbus_message_append_args (DBusMessage *message,
int first_arg_type,
...) {
return TRUE;
}
dbus_bool_t dbus_message_append_args_valist (DBusMessage *message,
int first_arg_type,
va_list var_args) {
return TRUE;
}
dbus_bool_t dbus_message_get_args (DBusMessage *message,
DBusError *error,
int first_arg_type,
...) {
return FALSE;
}
dbus_bool_t dbus_message_get_args_valist (DBusMessage *message,
DBusError *error,
int first_arg_type,
va_list var_args) {
return FALSE;
}
dbus_bool_t dbus_message_contains_unix_fds (DBusMessage *message) {
return FALSE;
}
dbus_bool_t dbus_message_iter_init (DBusMessage *message,
DBusMessageIter *iter) {
return FALSE;
}
dbus_bool_t dbus_message_iter_has_next (DBusMessageIter *iter) {
return FALSE;
}
dbus_bool_t dbus_message_iter_next (DBusMessageIter *iter) {
return FALSE;
}
char* dbus_message_iter_get_signature (DBusMessageIter *iter) {
return strdup(empty);
}
int dbus_message_iter_get_arg_type (DBusMessageIter *iter) {
return 0;
}
int dbus_message_iter_get_element_type (DBusMessageIter *iter) {
return 0;
}
int dbus_message_iter_get_array_len (DBusMessageIter *iter) {
return 0;
}
dbus_bool_t dbus_message_iter_append_basic (DBusMessageIter *iter,
int type,
const void *value) {
return TRUE;
}
dbus_bool_t dbus_message_iter_append_fixed_array (DBusMessageIter *iter,
int element_type,
const void *value,
int n_elements) {
return TRUE;
}
dbus_bool_t dbus_message_iter_open_container (DBusMessageIter *iter,
int type,
const char *contained_signature,
DBusMessageIter *sub) {
return TRUE;
}
dbus_bool_t dbus_message_iter_close_container (DBusMessageIter *iter,
DBusMessageIter *sub) {
return TRUE;
}
dbus_bool_t dbus_set_error_from_message (DBusError *error,
DBusMessage *message) {
return TRUE;
}
dbus_bool_t dbus_message_allocate_data_slot (dbus_int32_t *slot_p) {
return FALSE;
}
dbus_bool_t dbus_message_set_data (DBusMessage *message,
dbus_int32_t slot,
void *data,
DBusFreeFunction free_data_func) {
return TRUE;
}
void* dbus_message_get_data (DBusMessage *message,
dbus_int32_t slot) {
return NULL;
}
int dbus_message_type_from_string (const char *type_str) {
return 0;
}
const char* dbus_message_type_to_string (int type) {
return empty;
}
dbus_bool_t dbus_message_marshal (DBusMessage *msg,
char **marshalled_data_p,
int *len_p) {
return FALSE;
}
DBusMessage* dbus_message_demarshal (const char *str,
int len,
DBusError *error) {
return NULL;
}
int dbus_message_demarshal_bytes_needed (const char *str,
int len) {
return 0;
}
char* dbus_get_local_machine_id (void) {
return strdup(empty);
}
DBusPendingCall* dbus_pending_call_ref (DBusPendingCall *pending) {
return NULL;
}
dbus_bool_t dbus_pending_call_set_notify (DBusPendingCall *pending,
DBusPendingCallNotifyFunction function,
void *user_data,
DBusFreeFunction free_user_data) {
return TRUE;
}
dbus_bool_t dbus_pending_call_get_completed (DBusPendingCall *pending) {
return TRUE;
}
DBusMessage* dbus_pending_call_steal_reply (DBusPendingCall *pending) {
return NULL;
}
dbus_bool_t dbus_pending_call_allocate_data_slot (dbus_int32_t *slot_p) {
return FALSE;
}