55 lines
1 KiB
C
55 lines
1 KiB
C
#ifndef ARC_DBUS_HELPER_H_
|
|
#define ARC_DBUS_HELPER_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include <dbus/dbus.h>
|
|
|
|
/**
|
|
* @brief
|
|
*/
|
|
typedef struct ARC_DBus ARC_DBus;
|
|
|
|
/**
|
|
* @brief
|
|
*
|
|
* @param[in] dbus
|
|
* @param[in] interface
|
|
* @param[in] objectPath
|
|
*/
|
|
void ARC_DBusHelper_BusRequestName(ARC_DBus *dbus, const char *interface, const char *objectPath);
|
|
|
|
/**
|
|
* @brief
|
|
*
|
|
* @param[in] dbus
|
|
* @param[in] interface
|
|
* @param[in] objectPath
|
|
* @param[in] member
|
|
*/
|
|
void ARC_DBusHelper_BusAddMatch(ARC_DBus *dbus, const char *interface, const char *objectPath, const char *member);
|
|
|
|
/**
|
|
* @brief
|
|
*
|
|
* @param[in] message
|
|
*/
|
|
void ARC_DBusHelper_HandleSignal(DBusMessage *message);
|
|
|
|
/**
|
|
* @brief
|
|
*
|
|
* @param[in] dictonaryIter
|
|
* @param[in] stringKey
|
|
* @param[in] varientStringValue
|
|
*/
|
|
void ARC_DBusHelper_AddStringVarientStringToMessageIterDictionary(DBusMessageIter *dictonaryIter, const char *stringKey, const char *varientStringValue);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // !ARC_DBUS_HELPER_H_
|