Shim to call the posix/unix dbus library. More...
Functions | |
eError BURGER_API | init (void) BURGER_NOEXCEPT |
Initialize the dbus library. | |
void BURGER_API | shutdown (void) BURGER_NOEXCEPT |
Shut down the dbus library. | |
Shim to call the posix/unix dbus library.
Many Posix based systems contain a shared library called dbus. This shim will automatically load in the library if needed and if present, will forward calls to the library through a set of shims.
This way, high level code can call has_dbus() to determine if the library is present, and if so, use the functions within.
|
extern |
Initialize the dbus library.
If the file libdbus-1.so.3
exists, load it in and remap all function pointers to the functions within the library. DO NOT CALL ANY DBUS FUNCTIONS BEFORE INITIALIZATION!
|
extern |
Shut down the dbus library.
If the dbus library was loaded, this function will unload it and set all the function pointers to nullptr. DO NOT CALL ANY DBUS FUNCTIONS AFTER CALLING THIS FUNCTION!