From 04ce09e5be23da3083f34409325840827d9755af Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sun, 22 Nov 2009 12:21:21 +0100 Subject: [PATCH] Rename db_pl_add_item -> db_pl_add_item_bypath For consistency with db_pl_add_item_byid & similar database functions. --- src/db.c | 2 +- src/db.h | 2 +- src/filescanner_m3u.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/db.c b/src/db.c index 1f5f5526..16a97539 100644 --- a/src/db.c +++ b/src/db.c @@ -1755,7 +1755,7 @@ db_pl_add(char *title, char *path, int *id) } 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');" char *query; diff --git a/src/db.h b/src/db.h index 5581492e..8ef4cfb8 100644 --- a/src/db.h +++ b/src/db.h @@ -279,7 +279,7 @@ int db_pl_add(char *title, char *path, int *id); int -db_pl_add_item(int plid, char *path); +db_pl_add_item_bypath(int plid, char *path); int db_pl_add_item_byid(int plid, int fileid); diff --git a/src/filescanner_m3u.c b/src/filescanner_m3u.c index 3a1d1e1c..21fcd2cf 100644 --- a/src/filescanner_m3u.c +++ b/src/filescanner_m3u.c @@ -189,7 +189,7 @@ scan_m3u_playlist(char *file) continue; } - ret = db_pl_add_item(pl_id, filename); + ret = db_pl_add_item_bypath(pl_id, filename); if (ret < 0) DPRINTF(E_WARN, L_SCAN, "Could not add %s to playlist\n", filename);