Commit f8172859 authored by Max Kellermann's avatar Max Kellermann

playlist_print: no CamelCase

Renamed one function.
parent cfaede61
...@@ -688,7 +688,7 @@ handle_listplaylist(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) ...@@ -688,7 +688,7 @@ handle_listplaylist(struct client *client, G_GNUC_UNUSED int argc, char *argv[])
{ {
int ret; int ret;
ret = PlaylistInfo(client, argv[1], 0); ret = spl_print(client, argv[1], 0);
if (ret == -1) if (ret == -1)
command_error(client, ACK_ERROR_NO_EXIST, "No such playlist"); command_error(client, ACK_ERROR_NO_EXIST, "No such playlist");
...@@ -701,7 +701,7 @@ handle_listplaylistinfo(struct client *client, ...@@ -701,7 +701,7 @@ handle_listplaylistinfo(struct client *client,
{ {
int ret; int ret;
ret = PlaylistInfo(client, argv[1], 1); ret = spl_print(client, argv[1], 1);
if (ret == -1) if (ret == -1)
command_error(client, ACK_ERROR_NO_EXIST, "No such playlist"); command_error(client, ACK_ERROR_NO_EXIST, "No such playlist");
......
...@@ -24,11 +24,12 @@ ...@@ -24,11 +24,12 @@
#include "client.h" #include "client.h"
int int
PlaylistInfo(struct client *client, const char *utf8file, int detail) spl_print(struct client *client, const char *name_utf8, int detail)
{ {
GPtrArray *list; GPtrArray *list;
if (!(list = spl_load(utf8file))) list = spl_load(name_utf8);
if (list == NULL)
return -1; return -1;
for (unsigned i = 0; i < list->len; ++i) { for (unsigned i = 0; i < list->len; ++i) {
......
...@@ -22,6 +22,6 @@ ...@@ -22,6 +22,6 @@
struct client; struct client;
int int
PlaylistInfo(struct client *client, const char *utf8file, int detail); spl_print(struct client *client, const char *name_utf8, int detail);
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment