Lines Matching refs:watcher
3336 struct team_watcher* watcher;
3337 while ((watcher = (struct team_watcher*)list_remove_head_item(
3339 watcher->hook(teamID, watcher->data);
3340 free(watcher);
3514 // create the watcher object
3515 team_watcher* watcher = (team_watcher*)malloc(sizeof(team_watcher));
3516 if (watcher == NULL)
3519 watcher->hook = hook;
3520 watcher->data = data;
3522 // add watcher, if the team isn't already dying
3526 free(watcher);
3530 list_add_item(&team->watcher_list, watcher);
3544 // get team and remove watcher (if present)
3549 // search for watcher
3550 team_watcher* watcher = NULL;
3551 while ((watcher = (team_watcher*)list_get_next_item(
3552 &team->watcher_list, watcher)) != NULL) {
3553 if (watcher->hook == hook && watcher->data == data) {
3555 list_remove_item(&team->watcher_list, watcher);
3562 if (watcher == NULL)
3565 free(watcher);