projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mysql_selector.c: rename get_dbinfo() to get_selector_info()
[paraslash.git]
/
mysql_selector.c
diff --git
a/mysql_selector.c
b/mysql_selector.c
index 9f5a14f39854831faa238e8cb3d6363cb8d4f93d..b51f4f079c82cf12994e9f91f0fb553769983932 100644
(file)
--- a/
mysql_selector.c
+++ b/
mysql_selector.c
@@
-1248,7
+1248,7
@@
out:
* This is called from server and from some commands. Name must not be NULL
* Never returns NULL.
*/
* This is called from server and from some commands. Name must not be NULL
* Never returns NULL.
*/
-static char *get_
db
info(char *name)
+static char *get_
selector_
info(char *name)
{
char *meta = NULL, *atts = NULL, *info, *dir = NULL, *query, *stream = NULL;
void *result = NULL;
{
char *meta = NULL, *atts = NULL, *info, *dir = NULL, *query, *stream = NULL;
void *result = NULL;
@@
-1814,7
+1814,7
@@
static void update_mmd(char *info)
static void update_audio_file_server_handler(char *name)
{
char *info;
static void update_audio_file_server_handler(char *name)
{
char *info;
- info = get_
db
info(name);
+ info = get_
selector_
info(name);
update_mmd(info);
free(info);
update_audio_file(name);
update_mmd(info);
free(info);
update_audio_file(name);
@@
-1827,14
+1827,14
@@
static int com_us(__unused int fd, int argc, char *argv[])
return update_audio_file(argv[1]);
}
return update_audio_file(argv[1]);
}
-static void refresh_
mmd_db
info(void)
+static void refresh_
selector_
info(void)
{
char *name = get_current_audio_file();
char *info;
if (!name)
return;
{
char *name = get_current_audio_file();
char *info;
if (!name)
return;
- info = get_
db
info(name);
+ info = get_
selector_
info(name);
free(name);
mmd_lock();
update_mmd(info);
free(name);
mmd_lock();
update_mmd(info);
@@
-1901,7
+1901,7
@@
static int com_ps(__unused int fd, int argc, char *argv[])
"'current_stream'", row[0]);
ret = real_query(query);
free(query);
"'current_stream'", row[0]);
ret = real_query(query);
free(query);
- refresh_
mmd_db
info();
+ refresh_
selector_
info();
out:
free(stream);
if (result)
out:
free(stream);
if (result)
@@
-2009,7
+2009,7
@@
static int com_cs(int fd, int argc, char *argv[])
ret = change_stream(argv[1]);
if (ret < 0)
goto out;
ret = change_stream(argv[1]);
if (ret < 0)
goto out;
- refresh_
mmd_db
info();
+ refresh_
selector_
info();
}
if (csp) {
mmd_lock();
}
if (csp) {
mmd_lock();
@@
-2148,7
+2148,7
@@
no_more_atts:
for (; argv[i] && ret >= 0; i++)
ret = update_atts(fd, argv[i], atts);
}
for (; argv[i] && ret >= 0; i++)
ret = update_atts(fd, argv[i], atts);
}
- refresh_
mmd_db
info();
+ refresh_
selector_
info();
out:
return ret;
}
out:
return ret;
}