dbus.h revision 5856c5b39318bc766ccd6f823f1349c80a3dcfaa
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync * Module to dynamically load libdbus and load all symbols
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync * which are needed by VirtualBox.
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync * Copyright (C) 2008 Sun Microsystems, Inc.
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
92a27575521748a392dcd1b996fce55b87411a00vboxsync * available from http://www.virtualbox.org. This file is free software;
92a27575521748a392dcd1b996fce55b87411a00vboxsync * you can redistribute it and/or modify it under the terms of the GNU
92a27575521748a392dcd1b996fce55b87411a00vboxsync * General Public License (GPL) as published by the Free Software
92a27575521748a392dcd1b996fce55b87411a00vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
92a27575521748a392dcd1b996fce55b87411a00vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
92a27575521748a392dcd1b996fce55b87411a00vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
92a27575521748a392dcd1b996fce55b87411a00vboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync * additional information or have any questions.
10cdf5733351fdcd857d439ca32189e812f18682vboxsync/** Types and defines from the dbus header files which we need. These are
10cdf5733351fdcd857d439ca32189e812f18682vboxsync * taken more or less verbatim from the DBus public interface header files. */
10cdf5733351fdcd857d439ca32189e812f18682vboxsync const char *name;
10cdf5733351fdcd857d439ca32189e812f18682vboxsync const char *message;
10cdf5733351fdcd857d439ca32189e812f18682vboxsynctypedef enum { DBUS_BUS_SESSON, DBUS_BUS_SYSTEM, DBUS_BUS_STARTER } DBusBusType;
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync#define DBUS_ERROR_NO_MEMORY "org.freedesktop.DBus.Error.NoMemory"
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsynctypedef enum
23ee8310386e73ba6760fa30831a7964713d34b6vboxsynctypedef DBusHandlerResult (*DBusHandleMessageFunction) (DBusConnection *,
23ee8310386e73ba6760fa30831a7964713d34b6vboxsynctypedef void (*DBusFreeFunction) (void *);
4a429a59b1a82ce092626ea5f7512466c18f2015vboxsync/* Declarations of the functions that we need from libdbus-1 */
4a429a59b1a82ce092626ea5f7512466c18f2015vboxsync#define VBOX_PROXY_STUB(function, rettype, signature, shortsig) \
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync * Try to dynamically load the DBus library. This function should be called
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync * before attempting to use any of the DBus functions. It is safe to call this
23ee8310386e73ba6760fa30831a7964713d34b6vboxsync * function multiple times.
23ee8310386e73ba6760fa30831a7964713d34b6vboxsync * @returns iprt status code
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync#endif /* ____H_VBOX_DBUS not defined */
db3dbd0ed7eb69f804a8921fa23a1267ea01f46evboxsync/* vi: set tabstop=4 shiftwidth=4 expandtab: */