diff options
Diffstat (limited to 'src/d_bus_variant.h')
-rw-r--r-- | src/d_bus_variant.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/d_bus_variant.h b/src/d_bus_variant.h new file mode 100644 index 0000000..e4f261b --- /dev/null +++ b/src/d_bus_variant.h @@ -0,0 +1,20 @@ +#ifndef D_BUS_VARIANT_H +#define D_BUS_VARIANT_H + +#include <stdbool.h> + +typedef struct +{ + //dbus coded type letter + const char* type; + union + { + const char* string; + int integer; + bool boolean; + }; +}dbus_value_variant_t; + +const char* dbus_variant_get_string(const dbus_value_variant_t* val); + +#endif // D_BUS_VARIANT_H |