#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 */