summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJefferson Delfes <jefferson.delfes@gmail.com>2013-12-20 16:20:37 -0400
committerJefferson Delfes <jefferson.delfes@gmail.com>2013-12-23 11:16:23 -0400
commitd41a4e6ad86f30db97826d6ffabdeca980a1a3d7 (patch)
treee860475ad0da2381fc9ca64b9e307e6ade0937d1
parent49be18dd7e61296490ddcf99049a88e148a93d67 (diff)
Remove old connection variables
Now we have an array to handle multiple connections, so we don't need these variables anymore.
-rw-r--r--btctl.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/btctl.c b/btctl.c
index 15fd0dc..409e53e 100644
--- a/btctl.c
+++ b/btctl.c
@@ -109,22 +109,10 @@ struct userdata {
uint8_t scan_state;
bool client_registered;
int client_if;
- bt_bdaddr_t remote_addr;
- int conn_id;
prompt_state_t prompt_state;
bt_bdaddr_t r_bd_addr; /* remote address when pairing */
- /* When searching for services, we receive at search_result_cb a pointer
- * for btgatt_srvc_id_t. But its value is replaced each time. So one option
- * is to store these values and show a simpler ID to user.
- *
- * This static list limits the number of services that we can store, but it
- * is simpler than using linked list.
- */
- service_info_t svcs[MAX_SVCS_SIZE];
- int svcs_size;
-
connection_t conns[MAX_CONNECTIONS];
} u;
@@ -2213,7 +2201,6 @@ static void bt_init() {
u.btiface_initialized = 0;
u.quit = 0;
u.adapter_state = BT_STATE_OFF; /* The adapter is OFF in the beginning */
- u.conn_id = 0;
for (i = 0; i < MAX_CONNECTIONS; i++)
u.conns[i].conn_id = INVALID_CONN_ID;