blob: 369e8b04c713bc02faf7286f802b30c40f6d21a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef PATH_H
#define PATH_H
/*
* Path structure follows unix format:
*
* /foo/bar/file
*
*/
struct path_part {
const char *name;
struct path_part *next;
};
/* head is a linked list of all path components.
* the '/' is a component itself with name == NULL
*/
struct path_root {
int disk_id;
struct path_part *head;
};
struct path_root * parse_path(char *path);
#endif /* PATH_H */
|