diff options
-rw-r--r-- | plugins/bluetooth.c | 7 | ||||
-rw-r--r-- | plugins/bluetooth.h | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c index 20621dfc..abed1e96 100644 --- a/plugins/bluetooth.c +++ b/plugins/bluetooth.c @@ -62,8 +62,8 @@ void bluetooth_create_path(const char *dev_addr, const char *adapter_addr, char buf[i] = '\0'; } -static int send_method_call_with_reply(const char *dest, const char *path, - const char *interface, const char *method, +int bluetooth_send_with_reply(const char *path, const char *interface, + const char *method, DBusPendingCallNotifyFunction cb, void *user_data, DBusFreeFunction free_func, int timeout, int type, ...) @@ -73,7 +73,8 @@ static int send_method_call_with_reply(const char *dest, const char *path, va_list args; int err; - msg = dbus_message_new_method_call(dest, path, interface, method); + msg = dbus_message_new_method_call(BLUEZ_SERVICE, path, + interface, method); if (!msg) { ofono_error("Unable to allocate new D-Bus %s message", method); err = -ENOMEM; diff --git a/plugins/bluetooth.h b/plugins/bluetooth.h index 430f4cf3..43cca995 100644 --- a/plugins/bluetooth.h +++ b/plugins/bluetooth.h @@ -43,3 +43,9 @@ void bluetooth_unregister_uuid(const char *uuid); void bluetooth_create_path(const char *dev_addr, const char *adapter_addr, char *buf, int size); +int bluetooth_send_with_reply(const char *path, const char *interface, + const char *method, + DBusPendingCallNotifyFunction cb, + void *user_data, DBusFreeFunction free_func, + int timeout, int type, ...); + |