return 1;
}
-static int get_playlist_data(struct osl_row *row, char **playlist_name,
- struct osl_object *playlist_def)
-{
- struct osl_object obj;
- int ret = osl_get_object(playlists_table, row, BLOBCOL_NAME, &obj);
- if (ret < 0)
- return ret;
- *playlist_name = obj.data;
- return osl_open_disk_object(playlists_table, row, BLOBCOL_DEF,
- playlist_def);
-}
-
/* returns -E_PLAYLIST_LOADED on _success_ to terminate the loop */
static int load_playlist(struct osl_row *row, void *data)
{
char *playlist_name;
int ret;
- ret = get_playlist_data(row, &playlist_name, &playlist_def);
+ ret = pl_get_name_and_def_by_row(row, &playlist_name, &playlist_def);
if (ret < 0)
goto err;
playlist->length = 0;
struct para_buffer *pb = data;
struct osl_object playlist_def;
char *playlist_name;
- int ret = get_playlist_data(row, &playlist_name, &playlist_def);
+ int ret = pl_get_name_and_def_by_row(row, &playlist_name, &playlist_def);
if (ret < 0) {
para_printf(pb, "failed to get playlist data: %s\n",