forked from len0rd/rockbox
Add path_strip_last_volume
This gets the volume that the path eventually refers to by parsing the last volume specifier and returning the part of the path after it (which does not contain any volume specifiers). The initial part of the path therefore contains everything up to and including the last volume specifier. Change-Id: I9a935543256f8f22e0b8b1e3c88d4e47bd9dae8a
This commit is contained in:
parent
ca0c3dee0a
commit
4f05a9d066
2 changed files with 38 additions and 2 deletions
|
@ -79,6 +79,7 @@ static inline bool name_is_dot_dot(const char *name)
|
|||
|
||||
#ifdef HAVE_MULTIVOLUME
|
||||
int path_strip_volume(const char *name, const char **nameptr, bool greedy);
|
||||
int path_strip_last_volume(const char *name, const char **nameptr, bool greedy);
|
||||
int get_volume_name(int volume, char *name);
|
||||
int make_volume_root(int volume, char *dst);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue