diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-27 16:46:45 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-11-27 16:46:45 -0300 |
commit | 3ee81cab2ed66b7f3d4fbd6ba6676d5d9448d6dc (patch) | |
tree | 459dc5218f3b944a638a16361a422e5ba3d7857d /src/storage.h | |
parent | 395c910980394868a3c2d14e90e4f55988c7663d (diff) |
Introduce PairableTimeout Property and fix use of g_timeout_add.
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.
Diffstat (limited to 'src/storage.h')
-rw-r--r-- | src/storage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h index b6bedbed..ce3a22e5 100644 --- a/src/storage.h +++ b/src/storage.h @@ -25,6 +25,8 @@ int read_device_alias(const char *src, const char *dst, char *alias, size_t size int write_device_alias(const char *src, const char *dst, const char *alias); int write_discoverable_timeout(bdaddr_t *bdaddr, int timeout); int read_discoverable_timeout(const char *src, int *timeout); +int write_pairable_timeout(bdaddr_t *bdaddr, int timeout); +int read_pairable_timeout(const char *src, int *timeout); int write_device_mode(bdaddr_t *bdaddr, const char *mode); int read_device_mode(const char *src, char *mode, int length); int read_on_mode(const char *src, char *mode, int length); |