2007-04-29 14:38:52 +08:00
|
|
|
#ifndef PATH_LIST_H
|
|
|
|
#define PATH_LIST_H
|
2006-07-26 12:32:18 +08:00
|
|
|
|
|
|
|
struct path_list_item {
|
|
|
|
char *path;
|
|
|
|
void *util;
|
|
|
|
};
|
|
|
|
struct path_list
|
|
|
|
{
|
|
|
|
struct path_list_item *items;
|
|
|
|
unsigned int nr, alloc;
|
|
|
|
unsigned int strdup_paths:1;
|
|
|
|
};
|
|
|
|
|
|
|
|
void print_path_list(const char *text, const struct path_list *p);
|
|
|
|
|
|
|
|
int path_list_has_path(const struct path_list *list, const char *path);
|
2007-08-15 23:59:24 +08:00
|
|
|
void path_list_clear(struct path_list *list, int free_util);
|
2006-07-26 12:32:18 +08:00
|
|
|
struct path_list_item *path_list_insert(const char *path, struct path_list *list);
|
|
|
|
struct path_list_item *path_list_lookup(const char *path, struct path_list *list);
|
|
|
|
|
2007-04-29 14:38:52 +08:00
|
|
|
#endif /* PATH_LIST_H */
|