Commit 32567e5d authored by Zhao Zhili's avatar Zhao Zhili Committed by Thomas Guillem

src/android: implement config_GetSysPath

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent c1147c57
......@@ -302,6 +302,29 @@ char *config_GetUserDir (vlc_userdir_t type)
return NULL;
}
char *config_GetSysPath(vlc_sysdir_t type, const char *filename)
{
char *dir = NULL;
switch (type)
{
case VLC_LIB_DIR:
dir = config_GetLibDir();
break;
default:
break;
}
if (filename == NULL || dir == NULL)
return dir;
char *path;
if (unlikely(asprintf(&path, "%s/%s", dir, filename) == -1))
path = NULL;
free(dir);
return path;
}
/**
* Determines the network proxy server to use (if any).
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment