* This is called from server and from some commands. Name must not be NULL
* Never returns NULL.
*/
-static char *get_dbinfo(char *name)
+static char *get_selector_info(char *name)
{
char *meta = NULL, *atts = NULL, *info, *dir = NULL, *query, *stream = NULL;
void *result = NULL;
static void update_audio_file_server_handler(char *name)
{
char *info;
- info = get_dbinfo(name);
+ info = get_selector_info(name);
update_mmd(info);
free(info);
update_audio_file(name);
return update_audio_file(argv[1]);
}
-static void refresh_mmd_dbinfo(void)
+static void refresh_selector_info(void)
{
char *name = get_current_audio_file();
char *info;
if (!name)
return;
- info = get_dbinfo(name);
+ info = get_selector_info(name);
free(name);
mmd_lock();
update_mmd(info);
"'current_stream'", row[0]);
ret = real_query(query);
free(query);
- refresh_mmd_dbinfo();
+ refresh_selector_info();
out:
free(stream);
if (result)
ret = change_stream(argv[1]);
if (ret < 0)
goto out;
- refresh_mmd_dbinfo();
+ refresh_selector_info();
}
if (csp) {
mmd_lock();
for (; argv[i] && ret >= 0; i++)
ret = update_atts(fd, argv[i], atts);
}
- refresh_mmd_dbinfo();
+ refresh_selector_info();
out:
return ret;
}