Lines Matching refs:items

53     struct partedit_item **items, int *nitems);
55 static void get_mount_points(struct partedit_item *items, int nitems);
79 struct partedit_item *items = NULL; in main() local
132 items = read_geom_mesh(&mesh, &nitems); in main()
133 if (error || items == NULL) { in main()
141 get_mount_points(items, nitems); in main()
145 op = diskmenu_show("Partition Editor", prompt, items, nitems, in main()
150 gpart_create((struct gprovider *)(items[i].cookie), in main()
154 gpart_delete((struct gprovider *)(items[i].cookie)); in main()
157 gpart_edit((struct gprovider *)(items[i].cookie)); in main()
213 free(items); in main()
504 struct partedit_item *items; in read_geom_mesh() local
507 items = NULL; in read_geom_mesh()
520 add_geom_children(gp, 0, &items, nitems); in read_geom_mesh()
523 return (items); in read_geom_mesh()
527 add_geom_children(struct ggeom *gp, int recurse, struct partedit_item **items, in add_geom_children() argument
538 (*items)[*nitems-1].type = gc->lg_val; in add_geom_children()
553 *items = realloc(*items, in add_geom_children()
555 (*items)[*nitems].indentation = recurse; in add_geom_children()
556 (*items)[*nitems].name = pp->lg_name; in add_geom_children()
557 (*items)[*nitems].size = pp->lg_mediasize; in add_geom_children()
558 (*items)[*nitems].mountpoint = NULL; in add_geom_children()
559 (*items)[*nitems].type = ""; in add_geom_children()
560 (*items)[*nitems].cookie = pp; in add_geom_children()
564 (*items)[*nitems].type = gc->lg_val; in add_geom_children()
569 strcmp((*items)[*nitems].type, "swap") == 0) in add_geom_children()
575 add_geom_children(cp->lg_geom, recurse+1, items, in add_geom_children()
614 get_mount_points(struct partedit_item *items, int nitems) in get_mount_points() argument
622 strcmp(md->name, items[i].name) == 0) { in get_mount_points()
623 items[i].mountpoint = md->fstab->fs_file; in get_mount_points()