Lines Matching refs:tracker

375 device_tracker_remove( device_tracker*  tracker )  in device_tracker_remove()  argument
382 if (node == tracker) { in device_tracker_remove()
395 device_tracker* tracker = (device_tracker*) socket; in device_tracker_close() local
398 D( "device tracker %p removed\n", tracker); in device_tracker_close()
403 device_tracker_remove(tracker); in device_tracker_close()
404 free(tracker); in device_tracker_close()
416 static int device_tracker_send(device_tracker* tracker, const std::string& string) { in device_tracker_send() argument
418 asocket* peer = tracker->socket.peer; in device_tracker_send()
427 device_tracker* tracker = reinterpret_cast<device_tracker*>(socket); in device_tracker_ready() local
431 if (tracker->update_needed > 0) { in device_tracker_ready()
432 tracker->update_needed = 0; in device_tracker_ready()
435 device_tracker_send(tracker, transports); in device_tracker_ready()
442 device_tracker* tracker = reinterpret_cast<device_tracker*>(calloc(1, sizeof(*tracker))); in create_device_tracker() local
443 if (tracker == nullptr) fatal("cannot allocate device tracker"); in create_device_tracker()
445 D( "device tracker %p created\n", tracker); in create_device_tracker()
447 tracker->socket.enqueue = device_tracker_enqueue; in create_device_tracker()
448 tracker->socket.ready = device_tracker_ready; in create_device_tracker()
449 tracker->socket.close = device_tracker_close; in create_device_tracker()
450 tracker->update_needed = 1; in create_device_tracker()
452 tracker->next = device_tracker_list; in create_device_tracker()
453 device_tracker_list = tracker; in create_device_tracker()
455 return &tracker->socket; in create_device_tracker()
463 device_tracker* tracker = device_tracker_list; in update_transports() local
464 while (tracker != nullptr) { in update_transports()
465 device_tracker* next = tracker->next; in update_transports()
467 device_tracker_send(tracker, transports); in update_transports()
468 tracker = next; in update_transports()