diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-06-17 05:22:05 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-17 05:32:28 -0500 |
commit | 2b2b992c22875f4e5ee03e15f94a7e7e5d3819a2 (patch) | |
tree | b6e6db6e7854d097a2736e47d80bde32cf3fd504 | |
parent | b611316bbe9014de0ee066fe4e3efe5e0751740d (diff) | |
download | ofono-2b2b992c22875f4e5ee03e15f94a7e7e5d3819a2.tar.bz2 |
bluetooth: Rename send_method_call_with_reply
-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, ...); + |