Lines Matching defs:watcher
3339 struct team_watcher* watcher;
3340 while ((watcher = (struct team_watcher*)list_remove_head_item(
3342 watcher->hook(teamID, watcher->data);
3343 free(watcher);
3529 // create the watcher object
3530 team_watcher* watcher = (team_watcher*)malloc(sizeof(team_watcher));
3531 if (watcher == NULL)
3534 watcher->hook = hook;
3535 watcher->data = data;
3537 // add watcher, if the team isn't already dying
3541 free(watcher);
3545 list_add_item(&team->watcher_list, watcher);
3559 // get team and remove watcher (if present)
3564 // search for watcher
3565 team_watcher* watcher = NULL;
3566 while ((watcher = (team_watcher*)list_get_next_item(
3567 &team->watcher_list, watcher)) != NULL) {
3568 if (watcher->hook == hook && watcher->data == data) {
3570 list_remove_item(&team->watcher_list, watcher);
3577 if (watcher == NULL)
3580 free(watcher);