Lines Matching full:_adb_server
102 static AdbServer _adb_server;
414 memset(&_adb_server, 0, sizeof(_adb_server));
415 alist_init(&_adb_server.adb_hosts);
416 alist_init(&_adb_server.adb_guests);
417 alist_init(&_adb_server.pending_hosts);
418 alist_init(&_adb_server.pending_guests);
419 _adb_server.port = port;
422 _adb_server.looper = looper_newCore();
423 if (_adb_server.looper == NULL) {
429 sock_address_init_inet(&_adb_server.socket_address,
431 _adb_server.so = socket_loopback_server(port, SOCKET_STREAM);
432 if (_adb_server.so < 0) {
438 socket_set_nonblock(_adb_server.so);
439 loopIo_init(_adb_server.io, _adb_server.looper, _adb_server.so,
440 _on_server_socket_io, &_adb_server);
441 loopIo_wantRead(_adb_server.io);
444 port, _adb_server.so);
465 AdbGuest* const adb_guest = _adb_guest_new(&_adb_server);
470 adb_host = (AdbHost*)alist_remove_head(&_adb_server
473 alist_insert_tail(&_adb_server.adb_guests, &adb_guest->list_entry);
474 alist_insert_tail(&_adb_server.adb_hosts, &adb_host->list_entry);
479 alist_insert_tail(&_adb_server.pending_guests, &adb_guest->list_entry);