#include <dbus-cxx/callmessage.h>
#include <dbus-cxx/returnmessage.h>
#include <dbus-cxx/demangle.h>
#include <dbus-cxx/messageiterator.h>
#include <dbus-cxx/signature.h>
#include <dbus-cxx/simplelogger_defs.h>
#include <functional>
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <typeinfo>
#include <vector>
#include <sigc++/sigc++.h>
#include <chrono>
#include <dbus-cxx/multiplereturn.h>
Go to the source code of this file.
Namespaces | |
DBus | |
Global DBus namespace, where everything happens. | |
DBus::priv | |
Private namespace for internal dbux-cxx implementation. | |
Macros | |
#define | DBUS_CXX_INTROSPECTABLE_INTERFACE "org.freedesktop.DBus.Introspectable" |
#define | DBUS_CXX_PEER_INTERFACE "org.freedesktop.DBus.Peer" |
#define | DBUS_CXX_PROPERTIES_INTERFACE "org.freedesktop.DBus.Properties" |
#define | DBUS_CXX_PROPERTY_EMITS_CHANGE_SIGNAL_ANNOTATION "org.freedesktop.DBus.Property.EmitsChangedSignal" |
#define | DBUS_CXX_ITERATOR_SUPPORT(CppType, DBusType) |
Provides support for unsupported types that can be cast to DBus supported types. More... | |
Functions | |
void | DBus::set_logging_function (::simplelogger_log_function function) |
Set the callback function that is used for printing log messages. More... | |
void | DBus::log_std_err (const char *logger_name, const struct ::SL_LogLocation *location, const enum ::SL_LogLevel level, const char *log_string) |
Log messages to stderr(std::cerr). More... | |
void | DBus::set_log_level (const enum ::SL_LogLevel level) |
When used in conjunction with DBus::logStdErr, will only print out log messages above the set level. More... | |
void | DBus::hexdump (const std::vector< uint8_t > *vec, std::ostream *stream) |
Print the vector as a hexdump output to the given output stream. More... | |
void | DBus::hexdump (const uint8_t *vec, const uint32_t len, std::ostream *stream) |
Print the C array as a hexdump output to the given output stream. More... | |
void | DBus::set_default_endianess (DBus::Endianess endianess) |
Set the default endianess that the library uses in order to send messages. More... | |
DBus::Endianess | DBus::default_endianess () |
std::tuple< bool, int, std::vector< int >, std::chrono::milliseconds > | DBus::priv::wait_for_fd_activity (std::vector< int > fds, int timeout_ms) |
Wait for activity on any of the given FDs. More... | |
#define DBUS_CXX_INTROSPECTABLE_INTERFACE "org.freedesktop.DBus.Introspectable" |
#define DBUS_CXX_ITERATOR_SUPPORT | ( | CppType, | |
DBusType | |||
) |
Provides support for unsupported types that can be cast to DBus supported types.
This macro provides message iterator and introspection support for types that are not supported by the DBus native types, but can be static_cast<>
to a DBus native type. Typically, this is an enum.
CppType | The unsupported type. Must be able to static_cast<> to DBusType |
DBusType | One of the types inherently supported by dbus-cxx |
Example supporting an enum as a 32-bit int:
#define DBUS_CXX_PEER_INTERFACE "org.freedesktop.DBus.Peer" |
#define DBUS_CXX_PROPERTIES_INTERFACE "org.freedesktop.DBus.Properties" |
#define DBUS_CXX_PROPERTY_EMITS_CHANGE_SIGNAL_ANNOTATION "org.freedesktop.DBus.Property.EmitsChangedSignal" |