diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-03-20 14:54:24 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-03-20 14:54:24 +0000 |
commit | f511421ba10092ba32343a973e71f96ce4698f7b (patch) | |
tree | 33abfc45110aa5e7ea8a1852bab148d1d1254104 /hcid/dbus-database.c | |
parent | 835dd438bc43c1483480aaee08b7a5bfa49a21b6 (diff) |
Added adapter UpdateServiceRecord implementation
Diffstat (limited to 'hcid/dbus-database.c')
-rw-r--r-- | hcid/dbus-database.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/hcid/dbus-database.c b/hcid/dbus-database.c index aa8a7467..a2330940 100644 --- a/hcid/dbus-database.c +++ b/hcid/dbus-database.c @@ -314,25 +314,19 @@ static DBusHandlerResult update_service_record(DBusConnection *conn, return update_record(conn, msg, handle, sdp_record); } -int update_xml_record(DBusConnection *conn, const char *sender, - dbus_uint32_t handle, const char *record) +DBusHandlerResult update_xml_record(DBusConnection *conn, + DBusMessage *msg, bdaddr_t *src) { - return -EIO; -} - -static DBusHandlerResult update_service_record_from_xml(DBusConnection *conn, - DBusMessage *msg, void *data) -{ - const char *record; struct record_data *user_record; sdp_record_t *sdp_record; + const char *record; dbus_uint32_t handle; int len; if (dbus_message_get_args(msg, NULL, - DBUS_TYPE_UINT32, &handle, - DBUS_TYPE_STRING, &record, - DBUS_TYPE_INVALID) == FALSE) + DBUS_TYPE_UINT32, &handle, + DBUS_TYPE_STRING, &record, + DBUS_TYPE_INVALID) == FALSE) return error_invalid_arguments(conn, msg, NULL); len = (record ? strlen(record) : 0); @@ -353,6 +347,12 @@ static DBusHandlerResult update_service_record_from_xml(DBusConnection *conn, return update_record(conn, msg, handle, sdp_record); } +static DBusHandlerResult update_service_record_from_xml(DBusConnection *conn, + DBusMessage *msg, void *data) +{ + return update_xml_record(conn, msg, BDADDR_ANY); +} + int remove_record(DBusConnection *conn, const char *sender, dbus_uint32_t handle) { |