summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-common.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2006-11-01 12:58:31 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2006-11-01 12:58:31 +0000
commit1badf196a83fb8d32e212c49b7487b08962c18f0 (patch)
treeb59e058454dd96d7196733482b3facae5b24a6e5 /hcid/dbus-common.h
parentc31fef0ff07c09edb9df8b0abcab9a9e828627a1 (diff)
More cleanup. Move common dbus stuff to common/dbus.c. hcid/dbus.c -> hcid/dbus-hci.c
Diffstat (limited to 'hcid/dbus-common.h')
-rw-r--r--hcid/dbus-common.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/hcid/dbus-common.h b/hcid/dbus-common.h
index 6bfbe33b..b9065982 100644
--- a/hcid/dbus-common.h
+++ b/hcid/dbus-common.h
@@ -26,6 +26,7 @@
#include <bluetooth/bluetooth.h>
#include <bluetooth/sdp.h>
+#include <dbus/dbus.h>
#define BASE_PATH "/org/bluez"
@@ -40,15 +41,6 @@ struct service_data {
service_handler_func_t handler_func;
};
-typedef void (*name_cb_t)(const char *name, void *user_data);
-
-int name_listener_add(DBusConnection *connection, const char *name,
- name_cb_t func, void *user_data);
-int name_listener_remove(DBusConnection *connection, const char *name,
- name_cb_t func, void *user_data);
-
-DBusHandlerResult simple_introspect(DBusConnection *conn, DBusMessage *msg, void *data);
-
service_handler_func_t find_service_handler(struct service_data *services, DBusMessage *msg);
int str2uuid(uuid_t *uuid, const char *string);
@@ -57,16 +49,10 @@ int l2raw_connect(const char *local, const bdaddr_t *remote);
int check_address(const char *addr);
-static inline DBusHandlerResult send_message_and_unref(DBusConnection *conn, DBusMessage *msg)
-{
- if (msg) {
- dbus_connection_send(conn, msg, NULL);
- dbus_message_unref(msg);
- }
+DBusHandlerResult handle_method_call(DBusConnection *conn, DBusMessage *msg, void *data);
- return DBUS_HANDLER_RESULT_HANDLED;
-}
+void hcid_dbus_exit(void);
-DBusHandlerResult handle_method_call(DBusConnection *conn, DBusMessage *msg, void *data);
+int hcid_dbus_init(void);
#endif /* __BLUEZ_DBUS_COMMON_H */