diff options
author | Alok Barsode <alok@greatbear.(none)> | 2008-08-13 21:47:31 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-08-13 15:06:51 -0300 |
commit | 59969fedf496c710ba9b1bfcd8de4d6899275172 (patch) | |
tree | 89d6a557a55a6b644bebbac84e0a19023c25cf10 /src/adapter.h | |
parent | 2d1286883e26d7b483d917ee2f0456762b27e2bb (diff) |
Adding adapter_get_state and adapter_set_state.
Signed-off-by: Alok Barsode <alok@greatbear.(none)>
Diffstat (limited to 'src/adapter.h')
-rw-r--r-- | src/adapter.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/adapter.h b/src/adapter.h index 19a1a9a8..7ea6fb23 100644 --- a/src/adapter.h +++ b/src/adapter.h @@ -108,11 +108,8 @@ struct adapter { uint8_t scan_mode; /* scan mode: SCAN_DISABLED, SCAN_PAGE, SCAN_INQUIRY */ uint8_t mode; /* off, connectable, discoverable, limited */ uint8_t global_mode; /* last valid global mode */ - int discov_active; /* standard discovery active: includes name resolution step */ - int pdiscov_active; /* periodic discovery active */ int pinq_idle; /* tracks the idle time for periodic inquiry */ - int discov_type; /* type requested */ - int pdiscov_resolve_names; /* Resolve names when doing periodic discovery */ + int state; /* standard inq, periodic inq, name resloving */ GSList *found_devices; GSList *oor_devices; /* out of range device list */ char *pdiscov_requestor; /* periodic discovery requestor unique name */ @@ -181,3 +178,5 @@ void adapter_set_scan_mode(struct adapter *adapter, uint8_t scan_mode); uint8_t adapter_get_scan_mode(struct adapter *adapter); void adapter_set_mode(struct adapter *adapter, uint8_t mode); uint8_t adapter_get_mode(struct adapter *adapter); +void adapter_set_state(struct adapter *adapter, int state); +int adapter_get_state(struct adapter *adapter); |