Lines Matching refs:targets

80 	struct target       *targets;  member
795 iterator_init(struct iterator *itr, int cnt, struct target *targets) in iterator_init() argument
799 itr->targets = malloc(sizeof(struct target) * cnt); in iterator_init()
800 if (!itr->targets) in iterator_init()
803 memcpy(itr->targets, targets, sizeof(struct target) * cnt); in iterator_init()
818 return itr->targets + itr->cur++; in iterator_next()
830 t = itr->targets + i; in iterator_add_file()
852 if (!strcmp(parent, itr->targets[i].name)) in iterator_add_volume()
881 new = realloc(itr->targets, in iterator_add()
888 itr->targets = new; in iterator_add()
891 target = itr->targets + itr->cur_size; in iterator_add()
909 free(itr->targets); in iterator_free()
933 vhd_util_scan_targets(int cnt, struct target *targets) in vhd_util_scan_targets() argument
944 err = iterator_init(&itr, cnt, targets); in vhd_util_scan_targets()
1011 vhd_util_scan_targets_pretty(int cnt, struct target *targets) in vhd_util_scan_targets_pretty() argument
1021 err = vhd_util_scan_targets(cnt, targets); in vhd_util_scan_targets_pretty()
1035 struct target *targets; in vhd_util_scan_find_file_targets() local
1072 targets = calloc(total, sizeof(struct target)); in vhd_util_scan_find_file_targets()
1073 if (!targets) { in vhd_util_scan_find_file_targets()
1079 err = vhd_util_scan_init_file_target(targets + i, in vhd_util_scan_find_file_targets()
1090 err = vhd_util_scan_init_file_target(targets + i + globs, in vhd_util_scan_find_file_targets()
1102 *_targets = targets; in vhd_util_scan_find_file_targets()
1106 free(targets); in vhd_util_scan_find_file_targets()
1168 struct target *targets; in vhd_util_scan_find_volume_targets() local
1173 targets = NULL; in vhd_util_scan_find_volume_targets()
1195 targets = calloc(total, sizeof(struct target)); in vhd_util_scan_find_volume_targets()
1196 if (!targets) { in vhd_util_scan_find_volume_targets()
1202 err = vhd_util_scan_init_volume_target(targets + i, in vhd_util_scan_find_volume_targets()
1214 *_targets = targets; in vhd_util_scan_find_volume_targets()
1218 free(targets); in vhd_util_scan_find_volume_targets()
1225 struct target **targets, int *total) in vhd_util_scan_find_targets() argument
1230 targets, total); in vhd_util_scan_find_targets()
1232 filter, targets, total); in vhd_util_scan_find_targets()
1240 struct target *targets; in vhd_util_scan() local
1248 targets = NULL; in vhd_util_scan()
1292 volume, filter, &targets, &cnt); in vhd_util_scan()
1302 err = vhd_util_scan_targets_pretty(cnt, targets); in vhd_util_scan()
1304 err = vhd_util_scan_targets(cnt, targets); in vhd_util_scan()
1306 free(targets); in vhd_util_scan()