Playlist slight optimizations for playlist_resume

Change-Id: I766ce032a9b6b36d750a9231ff9f5d5a0167e5a5
This commit is contained in:
William Wilgus 2023-11-06 17:22:36 -05:00 committed by William Wilgus
parent 7f455af905
commit 7ac4d34dd6
4 changed files with 172 additions and 149 deletions

View file

@ -94,6 +94,8 @@ void path_remove_dot_segments(char *dstpath, const char *path);
/* constants useable in basepath and component */
#define PA_SEP_HARD NULL /* separate even if base is empty */
#define PA_SEP_SOFT "" /* separate only if base is nonempty */
size_t path_append_ex(char *buf, const char *basepath, size_t basepath_max,
const char *component, size_t bufsize);
size_t path_append(char *buffer, const char *basepath, const char *component,
size_t bufsize);
ssize_t parse_path_component(const char **pathp, const char **namep);