diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-08-06 13:38:21 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-08-06 13:38:21 +0000 |
commit | 80747dff99b0c857e7344e41715e2af7a3574672 (patch) | |
tree | ea0aee69c28725d43a8c8bbda31601ae6acfd44f /hcid | |
parent | c3f0924a5b4792616a2caf3acce6a4193a986d88 (diff) |
hcid: ListRecentRemoteDevices - added comments
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-adapter.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c index 0d6f7a74..2d3edef8 100644 --- a/hcid/dbus-adapter.c +++ b/hcid/dbus-adapter.c @@ -2905,26 +2905,25 @@ static DBusHandlerResult adapter_list_recent_remote_devices(DBusConnection *conn DBUS_TYPE_INVALID)) return error_invalid_arguments(conn, msg); + /* Date format is "YYYY-MM-DD HH:MM:SS GMT" */ len = strlen(string); if (len && (strptime(string, "%Y-%m-%d %H:%M:%S", &date) == NULL)) return error_invalid_arguments(conn, msg); - /* Add Bonded devices to the list */ + /* Bonded and trusted: mandatory entries(no matter the date/time) */ create_name(filename, PATH_MAX, STORAGEDIR, adapter->address, "linkkeys"); textfile_foreach(filename, list_remote_devices_do_append, ¶m); - /* Add Trusted devices to the list */ create_name(filename, PATH_MAX, STORAGEDIR, adapter->address, "trusts"); textfile_foreach(filename, list_remote_devices_do_append, ¶m); + /* Last seen/used: append devices since the date informed */ if (len) param.time = mktime(&date); - /* Add Last seen devices to the list */ create_name(filename, PATH_MAX, STORAGEDIR, adapter->address, "lastseen"); textfile_foreach(filename, list_remote_devices_do_append, ¶m); - /* Add Last Used devices to the list */ create_name(filename, PATH_MAX, STORAGEDIR, adapter->address, "lastused"); textfile_foreach(filename, list_remote_devices_do_append, ¶m); |