Rename db_pl_add_item -> db_pl_add_item_bypath

For consistency with db_pl_add_item_byid & similar database functions.
This commit is contained in:
Julien BLACHE 2009-11-22 12:21:21 +01:00
parent a45f46f3eb
commit 04ce09e5be
3 changed files with 3 additions and 3 deletions

View File

@ -1755,7 +1755,7 @@ db_pl_add(char *title, char *path, int *id)
} }
int int
db_pl_add_item(int plid, char *path) db_pl_add_item_bypath(int plid, char *path)
{ {
#define Q_TMPL "INSERT INTO playlistitems (playlistid, filepath) VALUES (%d, '%q');" #define Q_TMPL "INSERT INTO playlistitems (playlistid, filepath) VALUES (%d, '%q');"
char *query; char *query;

View File

@ -279,7 +279,7 @@ int
db_pl_add(char *title, char *path, int *id); db_pl_add(char *title, char *path, int *id);
int int
db_pl_add_item(int plid, char *path); db_pl_add_item_bypath(int plid, char *path);
int int
db_pl_add_item_byid(int plid, int fileid); db_pl_add_item_byid(int plid, int fileid);

View File

@ -189,7 +189,7 @@ scan_m3u_playlist(char *file)
continue; continue;
} }
ret = db_pl_add_item(pl_id, filename); ret = db_pl_add_item_bypath(pl_id, filename);
if (ret < 0) if (ret < 0)
DPRINTF(E_WARN, L_SCAN, "Could not add %s to playlist\n", filename); DPRINTF(E_WARN, L_SCAN, "Could not add %s to playlist\n", filename);