Lines Matching defs:entp
680 struct entity *entp;
685 while ((entp = TAILQ_FIRST(q)) != NULL) {
686 TAILQ_REMOVE(q, entp, entries);
688 switch (entp->type) {
690 proc_parser_file(entp->file, entp->data, entp->datasz);
693 if ((tal = tal_parse(entp->file, entp->data,
694 entp->datasz)) == NULL)
696 entp->file);
697 tal->id = entp->talid;
702 errx(1, "unhandled entity type %d", entp->type);
706 io_simple_buffer(b, &entp->type, sizeof(entp->type));
707 io_simple_buffer(b, &entp->repoid, sizeof(entp->repoid));
708 io_simple_buffer(b, &entp->talid, sizeof(entp->talid));
709 io_str_buffer(b, entp->file);
712 entity_free(entp);
729 struct entity *entp;
782 entp = calloc(1, sizeof(struct entity));
783 if (entp == NULL)
785 entity_read_req(b, entp);
786 TAILQ_INSERT_TAIL(&q, entp, entries);
804 while ((entp = TAILQ_FIRST(&q)) != NULL) {
805 TAILQ_REMOVE(&q, entp, entries);
806 entity_free(entp);