bluetooth: Rename send_method_call_with_reply

This commit is contained in:
Denis Kenzior 2010-06-17 05:22:05 -05:00
parent b611316bbe
commit 2b2b992c22
2 changed files with 10 additions and 3 deletions

View File

@ -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;

View File

@ -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, ...);