Lines Matching defs:objres
2672 struct objres *objres, *or1;
2677 for (objres = TAILQ_FIRST(&objres_list);
2678 objres != NULL;
2679 objres = TAILQ_NEXT(objres, link)) {
2680 if ((or1 = TAILQ_NEXT(objres, link)) == NULL ||
2681 or1->index > objres->index + 1) {
2682 idx = objres->index + 1;
2687 if ((objres = malloc(sizeof(*objres))) == NULL)
2690 objres->index = idx;
2691 objres->oid = *or;
2692 strlcpy(objres->descr, descr, sizeof(objres->descr));
2693 objres->uptime = (uint32_t)(get_ticks() - start_tick);
2694 objres->module = mod;
2696 INSERT_OBJECT_INT(objres, &objres_list);
2698 systemg.or_last_change = objres->uptime;
2706 struct objres *objres;
2708 TAILQ_FOREACH(objres, &objres_list, link)
2709 if (objres->index == idx) {
2710 TAILQ_REMOVE(&objres_list, objres, link);
2711 free(objres);