diff options
Diffstat (limited to '')
-rw-r--r-- | src/ClientSubscribe.hxx (renamed from src/client_subscribe.h) | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/client_subscribe.h b/src/ClientSubscribe.hxx index 09f864417..e9d3b8a68 100644 --- a/src/client_subscribe.h +++ b/src/ClientSubscribe.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -17,14 +17,14 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef MPD_CLIENT_SUBSCRIBE_H -#define MPD_CLIENT_SUBSCRIBE_H +#ifndef MPD_CLIENT_SUBSCRIBE_HXX +#define MPD_CLIENT_SUBSCRIBE_HXX -#include <stdbool.h> -#include <glib.h> +#include "gcc.h" -struct client; -struct client_message; +typedef struct _GSList GSList; +class Client; +class ClientMessage; enum client_subscribe_result { /** success */ @@ -41,19 +41,15 @@ enum client_subscribe_result { }; enum client_subscribe_result -client_subscribe(struct client *client, const char *channel); +client_subscribe(Client *client, const char *channel); bool -client_unsubscribe(struct client *client, const char *channel); +client_unsubscribe(Client *client, const char *channel); void -client_unsubscribe_all(struct client *client); +client_unsubscribe_all(Client *client); bool -client_push_message(struct client *client, const struct client_message *msg); - -G_GNUC_MALLOC -GSList * -client_read_messages(struct client *client); +client_push_message(Client *client, const ClientMessage &msg); #endif |