VirtualBox

Changeset 28357 in vbox for trunk/include/VBox/dbus.h


Ignore:
Timestamp:
Apr 15, 2010 1:11:23 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60117
Message:

Runtime: generalise the code used to load libdbus at runtime to a template for loading shared libraries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/dbus.h

    r25477 r28357  
    3535#include <iprt/types.h>
    3636#include <iprt/stdarg.h>
    37 
    38 #define VBOX_DBUS_1_3_LIB "libdbus-1.so.3"
    3937
    4038/** Types and defines from the dbus header files which we need.  These are
     
    109107
    110108/* Declarations of the functions that we need from libdbus-1 */
    111 #define VBOX_PROXY_STUB(function, rettype, signature, shortsig) \
    112     RTR3DECL(rettype) ( function ) signature ;
     109#define VBOX_DBUS_GENERATE_HEADER
    113110
    114111#include <VBox/dbus-calls.h>
    115112
    116 #undef VBOX_PROXY_STUB
    117 
    118 /**
    119  * Try to dynamically load the DBus library.  This function should be called
    120  * before attempting to use any of the DBus functions.  It is safe to call this
    121  * function multiple times.
    122  *
    123  * @returns iprt status code
    124  */
    125 RTR3DECL(int) RTDBusLoadLib(void);
     113#undef VBOX_DBUS_GENERATE_HEADER
    126114
    127115#endif /* ___VBox_DBus_h not defined */
Note: See TracChangeset for help on using the changeset viewer.

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