Johannes Schindelin | 8fd2cb4 | 2006-07-25 21:32:18 -0700 | [diff] [blame] | 1 | #ifndef _PATH_LIST_H_ |
| 2 | #define _PATH_LIST_H_ |
| 3 | |
| 4 | struct path_list_item { |
| 5 | char *path; |
| 6 | void *util; |
| 7 | }; |
| 8 | struct path_list |
| 9 | { |
| 10 | struct path_list_item *items; |
| 11 | unsigned int nr, alloc; |
| 12 | unsigned int strdup_paths:1; |
| 13 | }; |
| 14 | |
| 15 | void print_path_list(const char *text, const struct path_list *p); |
| 16 | |
| 17 | int path_list_has_path(const struct path_list *list, const char *path); |
| 18 | void path_list_clear(struct path_list *list, int free_items); |
| 19 | struct path_list_item *path_list_insert(const char *path, struct path_list *list); |
| 20 | struct path_list_item *path_list_lookup(const char *path, struct path_list *list); |
| 21 | |
| 22 | #endif /* _PATH_LIST_H_ */ |