aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2011-09-15 16:31:43 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2011-09-16 11:33:06 +0300
commit6be26a3f016807c7d4dd08aae67e3455d5b7e99f (patch)
tree6d45e692a0722eb8d9ab373907511269479391b9 /src/storage.c
parent6a6da5de107e192f62ce2ecdde96eae985181df0 (diff)
downloadbluez-6be26a3f016807c7d4dd08aae67e3455d5b7e99f.tar.gz
bluez-6be26a3f016807c7d4dd08aae67e3455d5b7e99f.tar.xz
bluez-6be26a3f016807c7d4dd08aae67e3455d5b7e99f.zip
Remove storing device type
Device type doesn't need to be stored since GATT services information exported through basic rate can be retrieved from the SDP records. Device "type" is also a wrong expression to represent the operation mode: over which transport GATT service is being exported.
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/storage.c b/src/storage.c
index 1f3da6e0..85118230 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -1303,41 +1303,3 @@ int read_device_attributes(const bdaddr_t *sba, textfile_cb func, void *data)
return textfile_foreach(filename, func, data);
}
-
-int write_device_type(const bdaddr_t *sba, const bdaddr_t *dba,
- device_type_t type)
-{
- char filename[PATH_MAX + 1], addr[18], chars[3];
-
- create_filename(filename, PATH_MAX, sba, "types");
-
- create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
-
- ba2str(dba, addr);
-
- snprintf(chars, sizeof(chars), "%2.2X", type);
-
- return textfile_put(filename, addr, chars);
-}
-
-device_type_t read_device_type(const bdaddr_t *sba, const bdaddr_t *dba)
-{
- char filename[PATH_MAX + 1], addr[18], *chars;
- device_type_t type;
-
- create_filename(filename, PATH_MAX, sba, "types");
-
- create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
-
- ba2str(dba, addr);
-
- chars = textfile_caseget(filename, addr);
- if (chars == NULL)
- return DEVICE_TYPE_UNKNOWN;
-
- type = strtol(chars, NULL, 16);
-
- free(chars);
-
- return type;
-}