summaryrefslogtreecommitdiff
path: root/client/dbus_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/dbus_helpers.h')
-rw-r--r--client/dbus_helpers.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/client/dbus_helpers.h b/client/dbus_helpers.h
index f014ac9f..cdd92e1c 100644
--- a/client/dbus_helpers.h
+++ b/client/dbus_helpers.h
@@ -24,7 +24,6 @@
#define __CONNMANCTL_DBUS_HELPERS_H
#include <dbus/dbus.h>
-#include "../include/dbus.h"
#ifdef __cplusplus
extern "C" {
@@ -45,22 +44,27 @@ int __connmanctl_dbus_set_property(DBusConnection *connection,
connmanctl_dbus_method_return_func_t cb, void * user_data,
const char *property, int type, void *value);
+typedef void (*connmanctl_dbus_append_func_t)(DBusMessageIter *iter,
+ void *user_data);
+
void __connmanctl_dbus_append_dict_entry(DBusMessageIter *iter, char *property,
int type, void *value);
int __connmanctl_dbus_set_property_dict(DBusConnection *connection,
const char *path, const char *interface,
connmanctl_dbus_method_return_func_t cb, void * user_data,
const char *property, int type,
- connman_dbus_append_cb_t append_fn, void *append_user_data);
+ connmanctl_dbus_append_func_t append_fn,
+ void *append_user_data);
void __connmanctl_dbus_append_dict_string_array(DBusMessageIter *iter,
- const char *property, connman_dbus_append_cb_t append_fn,
+ const char *property, connmanctl_dbus_append_func_t append_fn,
void *append_user_data);
int __connmanctl_dbus_set_property_array(DBusConnection *connection,
const char *path, const char *interface,
connmanctl_dbus_method_return_func_t cb, void *user_data,
const char *property, int type,
- connman_dbus_append_cb_t append_fn, void *append_user_data);
+ connmanctl_dbus_append_func_t append_fn,
+ void *append_user_data);
#ifdef __cplusplus
}