VirtualBox

source: vbox/trunk/include/VBox/dbus-calls.h@ 24130

Last change on this file since 24130 was 24073, checked in by vboxsync, 15 years ago

VBoxClient: Added more D-BUS error checking.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.0 KB
Line 
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. */
28VBOX_PROXY_STUB(dbus_error_init, void, (DBusError *error),
29 (error))
30VBOX_PROXY_STUB(dbus_error_is_set, dbus_bool_t, (const DBusError *error),
31 (error))
32VBOX_PROXY_STUB(dbus_bus_get, DBusConnection *,
33 (DBusBusType type, DBusError *error), (type, error))
34VBOX_PROXY_STUB(dbus_bus_get_private, DBusConnection *,
35 (DBusBusType type, DBusError *error), (type, error))
36VBOX_PROXY_STUB(dbus_error_free, void, (DBusError *error),
37 (error))
38VBOX_PROXY_STUB(dbus_connection_unref, void, (DBusConnection *connection),
39 (connection))
40VBOX_PROXY_STUB(dbus_connection_close, void, (DBusConnection *connection),
41 (connection))
42VBOX_PROXY_STUB(dbus_connection_send, dbus_bool_t,
43 (DBusConnection *connection, DBusMessage *message, dbus_uint32_t *serial),
44 (connection, message, serial))
45VBOX_PROXY_STUB(dbus_connection_flush, void, (DBusConnection *connection),
46 (connection))
47VBOX_PROXY_STUB(dbus_connection_set_exit_on_disconnect, void,
48 (DBusConnection *connection, dbus_bool_t boolean),
49 (connection, boolean))
50VBOX_PROXY_STUB(dbus_bus_name_has_owner, dbus_bool_t,
51 (DBusConnection *connection, const char *string, DBusError *error),
52 (connection, string, error))
53VBOX_PROXY_STUB(dbus_bus_add_match, void,
54 (DBusConnection *connection, const char *string,
55 DBusError *error),
56 (connection, string, error))
57VBOX_PROXY_STUB(dbus_bus_remove_match, void,
58 (DBusConnection *connection, const char *string,
59 DBusError *error),
60 (connection, string, error))
61VBOX_PROXY_STUB(dbus_message_append_args_valist, dbus_bool_t,
62 (DBusMessage *message, int first_arg_type, va_list var_args),
63 (message, first_arg_type, var_args))
64VBOX_PROXY_STUB(dbus_message_iter_open_container, dbus_bool_t,
65 (DBusMessageIter *iter, int type, const char *contained_signature, DBusMessageIter *sub),
66 (iter, type, contained_signature, sub))
67VBOX_PROXY_STUB(dbus_message_iter_close_container, dbus_bool_t,
68 (DBusMessageIter *iter, DBusMessageIter *sub),
69 (iter, sub))
70VBOX_PROXY_STUB(dbus_message_iter_append_fixed_array, dbus_bool_t,
71 (DBusMessageIter *iter, int element_type, const void *value, int n_elements),
72 (iter, element_type, value, n_elements))
73VBOX_PROXY_STUB(dbus_message_unref, void, (DBusMessage *message),
74 (message))
75VBOX_PROXY_STUB(dbus_message_new_method_call, DBusMessage*,
76 (const char *string1, const char *string2, const char *string3,
77 const char *string4),
78 (string1, string2, string3, string4))
79VBOX_PROXY_STUB(dbus_message_iter_init_append, void,
80 (DBusMessage *message, DBusMessageIter *iter),
81 (message, iter))
82VBOX_PROXY_STUB(dbus_message_iter_append_basic, dbus_bool_t,
83 (DBusMessageIter *iter, int val, const void *string),
84 (iter, val, string))
85VBOX_PROXY_STUB(dbus_connection_send_with_reply_and_block, DBusMessage *,
86 (DBusConnection *connection, DBusMessage *message, int val,
87 DBusError *error),
88 (connection, message, val, error))
89VBOX_PROXY_STUB(dbus_message_iter_init, dbus_bool_t,
90 (DBusMessage *message, DBusMessageIter *iter),
91 (message, iter))
92VBOX_PROXY_STUB(dbus_message_iter_get_arg_type, int, (DBusMessageIter *iter),
93 (iter))
94VBOX_PROXY_STUB(dbus_message_iter_get_element_type, int,
95 (DBusMessageIter *iter), (iter))
96VBOX_PROXY_STUB(dbus_message_iter_recurse, void,
97 (DBusMessageIter *iter1, DBusMessageIter *iter2),
98 (iter1, iter2))
99VBOX_PROXY_STUB(dbus_message_iter_get_basic, void,
100 (DBusMessageIter *iter, void *pvoid), (iter, pvoid))
101VBOX_PROXY_STUB(dbus_message_iter_next, dbus_bool_t, (DBusMessageIter *iter),
102 (iter))
103VBOX_PROXY_STUB(dbus_connection_add_filter, dbus_bool_t,
104 (DBusConnection *connection,
105 DBusHandleMessageFunction function1, void *pvoid,
106 DBusFreeFunction function2),
107 (connection, function1, pvoid, function2))
108VBOX_PROXY_STUB(dbus_connection_remove_filter, void,
109 (DBusConnection *connection,
110 DBusHandleMessageFunction function, void *pvoid),
111 (connection, function, pvoid))
112VBOX_PROXY_STUB(dbus_connection_read_write_dispatch, dbus_bool_t,
113 (DBusConnection *connection, int val), (connection, val))
114VBOX_PROXY_STUB(dbus_message_is_signal, dbus_bool_t,
115 (DBusMessage *message, const char *string1,
116 const char *string2),
117 (message, string1, string2))
118VBOX_PROXY_STUB(dbus_connection_pop_message, DBusMessage *,
119 (DBusConnection *connection), (connection))
120
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette