1 | /** @file
|
---|
2 | *
|
---|
3 | * Stubs for dynamically loading libdbus-1 and the symbols
|
---|
4 | * which are needed by VirtualBox.
|
---|
5 | */
|
---|
6 |
|
---|
7 | /*
|
---|
8 | * Copyright (C) 2008 Sun Microsystems, Inc.
|
---|
9 | *
|
---|
10 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | * available from http://www.virtualbox.org. This file is free software;
|
---|
12 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | * General Public License (GPL) as published by the Free Software
|
---|
14 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | *
|
---|
18 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
19 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
20 | * additional information or have any questions.
|
---|
21 | */
|
---|
22 |
|
---|
23 | #ifndef VBOX_PROXY_STUB
|
---|
24 | #error This file is a private header, intended to be included in specific places only
|
---|
25 | #endif
|
---|
26 |
|
---|
27 | /** The following are the symbols which we need from libdbus-1. */
|
---|
28 | VBOX_PROXY_STUB(dbus_error_init, void, (DBusError *error),
|
---|
29 | (error))
|
---|
30 | VBOX_PROXY_STUB(dbus_bus_get, DBusConnection *,
|
---|
31 | (DBusBusType type, DBusError *error), (type, error))
|
---|
32 | VBOX_PROXY_STUB(dbus_bus_get_private, DBusConnection *,
|
---|
33 | (DBusBusType type, DBusError *error), (type, error))
|
---|
34 | VBOX_PROXY_STUB(dbus_error_free, void, (DBusError *error),
|
---|
35 | (error))
|
---|
36 | VBOX_PROXY_STUB(dbus_connection_unref, void, (DBusConnection *connection),
|
---|
37 | (connection))
|
---|
38 | VBOX_PROXY_STUB(dbus_connection_close, void, (DBusConnection *connection),
|
---|
39 | (connection))
|
---|
40 | VBOX_PROXY_STUB(dbus_connection_set_exit_on_disconnect, void,
|
---|
41 | (DBusConnection *connection, dbus_bool_t boolean),
|
---|
42 | (connection, boolean))
|
---|
43 | VBOX_PROXY_STUB(dbus_bus_name_has_owner, dbus_bool_t,
|
---|
44 | (DBusConnection *connection, const char *string, DBusError *error),
|
---|
45 | (connection, string, error))
|
---|
46 | VBOX_PROXY_STUB(dbus_bus_add_match, void,
|
---|
47 | (DBusConnection *connection, const char *string,
|
---|
48 | DBusError *error),
|
---|
49 | (connection, string, error))
|
---|
50 | VBOX_PROXY_STUB(dbus_bus_remove_match, void,
|
---|
51 | (DBusConnection *connection, const char *string,
|
---|
52 | DBusError *error),
|
---|
53 | (connection, string, error))
|
---|
54 | VBOX_PROXY_STUB(dbus_message_unref, void, (DBusMessage *message),
|
---|
55 | (message))
|
---|
56 | VBOX_PROXY_STUB(dbus_message_new_method_call, DBusMessage*,
|
---|
57 | (const char *string1, const char *string2, const char *string3,
|
---|
58 | const char *string4),
|
---|
59 | (string1, string2, string3, string4))
|
---|
60 | VBOX_PROXY_STUB(dbus_message_iter_init_append, void,
|
---|
61 | (DBusMessage *message, DBusMessageIter *iter),
|
---|
62 | (message, iter))
|
---|
63 | VBOX_PROXY_STUB(dbus_message_iter_append_basic, dbus_bool_t,
|
---|
64 | (DBusMessageIter *iter, int val, const void *string),
|
---|
65 | (iter, val, string))
|
---|
66 | VBOX_PROXY_STUB(dbus_connection_send_with_reply_and_block, DBusMessage *,
|
---|
67 | (DBusConnection *connection, DBusMessage *message, int val,
|
---|
68 | DBusError *error),
|
---|
69 | (connection, message, val, error))
|
---|
70 | VBOX_PROXY_STUB(dbus_message_iter_init, dbus_bool_t,
|
---|
71 | (DBusMessage *message, DBusMessageIter *iter),
|
---|
72 | (message, iter))
|
---|
73 | VBOX_PROXY_STUB(dbus_message_iter_get_arg_type, int, (DBusMessageIter *iter),
|
---|
74 | (iter))
|
---|
75 | VBOX_PROXY_STUB(dbus_message_iter_get_element_type, int,
|
---|
76 | (DBusMessageIter *iter), (iter))
|
---|
77 | VBOX_PROXY_STUB(dbus_message_iter_recurse, void,
|
---|
78 | (DBusMessageIter *iter1, DBusMessageIter *iter2),
|
---|
79 | (iter1, iter2))
|
---|
80 | VBOX_PROXY_STUB(dbus_message_iter_get_basic, void,
|
---|
81 | (DBusMessageIter *iter, void *pvoid), (iter, pvoid))
|
---|
82 | VBOX_PROXY_STUB(dbus_message_iter_next, dbus_bool_t, (DBusMessageIter *iter),
|
---|
83 | (iter))
|
---|
84 | VBOX_PROXY_STUB(dbus_connection_add_filter, dbus_bool_t,
|
---|
85 | (DBusConnection *connection,
|
---|
86 | DBusHandleMessageFunction function1, void *pvoid,
|
---|
87 | DBusFreeFunction function2),
|
---|
88 | (connection, function1, pvoid, function2))
|
---|
89 | VBOX_PROXY_STUB(dbus_connection_remove_filter, void,
|
---|
90 | (DBusConnection *connection,
|
---|
91 | DBusHandleMessageFunction function, void *pvoid),
|
---|
92 | (connection, function, pvoid))
|
---|
93 | VBOX_PROXY_STUB(dbus_connection_read_write_dispatch, dbus_bool_t,
|
---|
94 | (DBusConnection *connection, int val), (connection, val))
|
---|
95 | VBOX_PROXY_STUB(dbus_message_is_signal, dbus_bool_t,
|
---|
96 | (DBusMessage *message, const char *string1,
|
---|
97 | const char *string2),
|
---|
98 | (message, string1, string2))
|
---|
99 | VBOX_PROXY_STUB(dbus_connection_pop_message, DBusMessage *,
|
---|
100 | (DBusConnection *connection), (connection))
|
---|
101 |
|
---|