playlist_print: no CamelCase

Renamed one function.
This commit is contained in:
Max Kellermann 2009-02-04 21:02:11 +01:00
parent cfaede610c
commit f817285922
3 changed files with 6 additions and 5 deletions

View File

@ -688,7 +688,7 @@ handle_listplaylist(struct client *client, G_GNUC_UNUSED int argc, char *argv[])
{
int ret;
ret = PlaylistInfo(client, argv[1], 0);
ret = spl_print(client, argv[1], 0);
if (ret == -1)
command_error(client, ACK_ERROR_NO_EXIST, "No such playlist");
@ -701,7 +701,7 @@ handle_listplaylistinfo(struct client *client,
{
int ret;
ret = PlaylistInfo(client, argv[1], 1);
ret = spl_print(client, argv[1], 1);
if (ret == -1)
command_error(client, ACK_ERROR_NO_EXIST, "No such playlist");

View File

@ -24,11 +24,12 @@
#include "client.h"
int
PlaylistInfo(struct client *client, const char *utf8file, int detail)
spl_print(struct client *client, const char *name_utf8, int detail)
{
GPtrArray *list;
if (!(list = spl_load(utf8file)))
list = spl_load(name_utf8);
if (list == NULL)
return -1;
for (unsigned i = 0; i < list->len; ++i) {

View File

@ -22,6 +22,6 @@
struct client;
int
PlaylistInfo(struct client *client, const char *utf8file, int detail);
spl_print(struct client *client, const char *name_utf8, int detail);
#endif