Lines Matching refs:atransport
114 void SetTransport(atransport* transport) { transport_ = transport; } in SetTransport()
138 atransport* transport_ = nullptr;
258 class atransport : public enable_weak_from_this<atransport> {
265 using ReconnectCallback = std::function<ReconnectResult(atransport*)>;
267 atransport(ReconnectCallback reconnect, ConnectionState state) in atransport() function
282 atransport(ConnectionState state = kCsOffline)
283 : atransport([](atransport*) { return ReconnectResult::Abort; }, state) {}
284 ~atransport();
447 DISALLOW_COPY_AND_ASSIGN(atransport);
470 atransport* acquire_one_transport(TransportType type, const char* serial, TransportId transport_id,
473 void kick_transport(atransport* t, bool reset = false);
478 bool iterate_transports(std::function<bool(const atransport*)> fn);
484 atransport* find_transport(const char* serial);
497 void register_transport(atransport* transport);
500 void init_usb_transport(atransport* t, usb_handle* usb);
516 atransport::ReconnectCallback reconnect, bool use_tls,
519 bool check_header(apacket* p, atransport* t);
522 void close_usb_devices(std::function<bool(const atransport*)> predicate, bool reset = false);
524 void send_packet(apacket* p, atransport* t);