aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.h
Commit message (Collapse)AuthorAgeFilesLines
* storage: Store address type in "eir" filehog_test3Paulo Alcantara2012-05-221-3/+4
|
* storage: Store address type in blocked fileClaudio Takahasi2012-05-221-2/+3
|
* storage: Store address type in alias fileClaudio Takahasi2012-05-221-2/+4
|
* storage: Store address type in "names" filePaulo Alcantara2012-05-221-2/+4
| | | | | | | | "names" file is shared between BR/EDR and BLE. Addressing types can be either BR/EDR, BLE public or BLE random so the entries in the "names" file did not contain enough information to distinguish which addressing type it's supposed to be. Entries will now contain both address number, and address type as a single key in every entry in the file.
* storage: Store address type in "ccc" filePaulo Alcantara2012-05-221-4/+4
| | | | | | | | Addressing types can be either BR/EDR, BLE public or BLE random so the entries in the "ccc" file did not contain enough information to distinguish which addressing type it's supposed to be. Entries will now contain both address number and address type as a single key in every entry in the file.
* storage: Store address type in "appearance" filePaulo Alcantara2012-05-211-2/+4
| | | | | | | | | | BLE addressing types can be either public or random so the entries in the "appearance" file did not contain enough information to distinguish which addressing type it's supposed to be (LE public or LE random). Appearance is an information related to BLE device only. Entries will now contain both BLE address number and BLE address type as a single key in every entry in the file.
* storage: Store address type in "characteristics"Paulo Alcantara2012-05-211-2/+3
| | | | | | | | GATT can use BR/EDR or BLE as transport. Addressing types can be either BR/EDR, BLE public or BLE random so the entries in the "characteristics" file did not contain enough information to distinguish which addressing type it's supposed to be. Entries will now contain both address number and address type as a single key in every entry in the file.
* storage: Store BLE address type in "primary" filePaulo Alcantara2012-05-211-2/+3
| | | | | | | | BLE addressing types can be either public or random so the entries in the "primary" file did not contain enough information to distinguish which addressing type it's supposed to be (LE public or LE random). Entries will now contain both BLE address number and BLE address type as a single key in every entry in the file.
* src: Fix newline before EOFSyam Sidhardhan2012-04-131-1/+0
|
* storage: Add storage to GAP characteristicBruna Moreira2012-03-301-0/+2
| | | | | Add functions to read and write remote Appearance characteristic. The values are saved in "appearance" file.
* Add storage functions to handle SMP keysVinicius Costa Gomes2012-01-191-0/+2
| | | | For now, only the Long Term Key (LTK) is stored.
* storage: Add variable-length EIR support to write_remote_eirJohan Hedberg2012-01-181-1/+2
|
* Add storage function to remove CCC of a deviceClaudio Takahasi2011-11-141-0/+1
|
* Add storage functions to deal with CCCVinicius Costa Gomes2011-11-141-0/+4
| | | | | CCC (Client Characteristic Configuration) is used to allow configuration whether to send updates about an characteristic value.
* Remove not referenced function in storage.cClaudio Takahasi2011-09-161-1/+0
|
* Remove storing device typeClaudio Takahasi2011-09-161-3/+0
| | | | | | | 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.
* Fix read_pin_code to return ssize_tDavid Herrmann2011-07-141-1/+1
| | | | | read_pin_code returns the length of a memory block and hence should use ssize_t as type.
* Remove unused storage functionsJohan Hedberg2011-01-211-7/+0
|
* Add a way to store the remote device typeVinicius Costa Gomes2010-12-221-0/+3
| | | | | | | | | Because we need to know the device type (LE, Basic Rate or Dual Mode) to be able to fully restore the device from storage, we have to store and load this information to permanent storage. Note: due to "device_type_t" usage in storage.h, some header includes needed to be reordered in files which include storage.h.
* Delete all stored data related to GATT/ATT when the device is removedClaudio Takahasi2010-09-221-0/+1
|
* Support for loading attribute dataAnderson Lizardo2010-08-261-0/+3
|
* Support for storing attribute dataBruna Moreira2010-08-261-0/+2
| | | | | | | | | | | | | Create a new storage called "attributes" to save attribute data. Format description: <bt_addr>#<attr_handle> <attr_type>#<attr_value> - the key is composed of the device address and the attribute handle; - the value is composed of the attribute type UUID (converted to printable 128-bit format) and the attribute value (hex encoded). - the key/value components are joined with "#", and separated from each other by a space.
* Add a way to read a device's characteristics from storageVinicius Costa Gomes2010-08-091-0/+2
| | | | | | With this we can finally load the essential information to register a DBus interface for the characteristics of a device without connecting to it.
* Add a way to store a device characteristicsVinicius Costa Gomes2010-08-091-0/+2
| | | | | This allows for the characteristics of a device to be stored on permanent storage, so they can be restored later on.
* Add support for loading previously stored servicesVinicius Costa Gomes2010-08-091-0/+1
| | | | | | This adds support for loading the GATT primary services information that may exist. This will allow registering the DBus interface of a service without connecting to the remote device.
* Add support to storing the discoved GATT ServicesVinicius Costa Gomes2010-08-091-0/+2
| | | | | This adds support to storing the discovered primary services so they can be loaded from storage later.
* Add new "Blocked" property to device objectsJohan Hedberg2010-05-171-0/+3
| | | | | | This patch adds a new "Blocked" property to device objects. It maps directly to the HCIBLOCKDEV and HCIUNBLOCKDEV ioctl's which enable control of incoming connection acceptance on the kernel side.
* Check for cached remote host features during discoveryJohan Hedberg2010-02-031-0/+1
| | | | | | If a remote name is cached and we didn't got a non-EIR event we should check for cached remote host features for SSP support to behave correctly with SSP & non-EIR devices.
* Implement caching of remote host featuresJohan Hedberg2010-02-031-1/+1
| | | | | | | | | Devices with SSP but no EIR requires looking at the remote host features to get a correct value for the LegacyPairing property. Requesting a remote name gives these features for free but if the name is already cached we don't get them. This patch implements the caching part for the features and a subsequent patch will actually make use of the cached value for the device discovery process.
* Update copyright informationMarcel Holtmann2010-01-011-1/+1
|
* Fix const declarations for some storage function parametersJohan Hedberg2009-10-291-2/+2
|
* Fix deleting SDP records when a device is removedJaikumar Ganesh2009-10-291-0/+1
| | | | | | | This fixes the issues of stale SDP records, when the SDP records are modified on the remote end, before the next connection. Since we are going to perform SDP on the next connection anyway, this doesn't introduce any new overheads.
* Fix write_local_name name parameter type to be constJohan Hedberg2009-08-051-1/+1
|
* Update copyright informationMarcel Holtmann2009-01-011-1/+1
|
* Add read_remote_eir functionJohan Hedberg2008-12-041-0/+1
|
* Introduce PairableTimeout Property and fix use of g_timeout_add.Luiz Augusto von Dentz2008-11-271-0/+2
| | | | | | | PairableTimeout work similarly to DiscoverableTimeout where the user application can set the amount of time to stay in Pairable. It also fixes the use of g_timeout_add to g_timeout_add_seconds for both PairableTimeout and DiscoverableTimeout.
* Introduce Pairable property.Luiz Augusto von Dentz2008-11-201-0/+2
| | | | | | | | | | | As the name suggest it tells when an adapter enter or leaves bondable mode, it works as follow: Pairable=true & Discoverable=true: limited IAC Pairable=true & Discoverable=false: pairable but inquiry scan disabled Pairable=false & Discoverable=true: inquiry scan enabled (with Generic IAC) but new pairings cannot be created (same as if there was no agent) Pairable=false & Discoverable=false: inquiry scan disabled & non-pairable (as if there was no agent)
* Export record_from_string() from the storage functionsBastien Nocera2008-10-161-0/+1
| | | | | | Export record_from_string() from the storage functions, so it can be used to generate an sdp_record from a static string in sixpair.c
* Make device driver probe calls take UUID's instead of full recordsJohan Hedberg2008-10-091-1/+1
| | | | | This is preparation for allowing the device object to be correctly set up even when we don't have the full service records but only the remote UUID's.
* Find device ID from SDP recordsDavid Woodhouse2008-09-141-0/+3
|
* rename get_record() to find_record_in_list() and move to storage.[ch]David Woodhouse2008-09-141-0/+1
|
* move read_records() to storage.c where it belongsDavid Woodhouse2008-09-141-1/+1
|
* Store source information from DID recordMarcel Holtmann2008-09-141-4/+6
|
* Add storage for pnp info, which can come from PNP record or EIRDavid Woodhouse2008-09-131-0/+5
|
* Adapter initialization cleanupClaudio Takahasi2008-09-011-2/+2
|
* Storage cleanup: avoid Bluetooth address to string conversionsClaudio Takahasi2008-08-281-1/+1
|
* Storage cleanupClaudio Takahasi2008-08-281-0/+61