Commit 377a2b9e authored by Max Kellermann's avatar Max Kellermann

ClientList: add header ClientList.hxx

parent 04599300
...@@ -232,7 +232,7 @@ src_mpd_SOURCES = \ ...@@ -232,7 +232,7 @@ src_mpd_SOURCES = \
src/ClientExpire.cxx \ src/ClientExpire.cxx \
src/ClientGlobal.cxx \ src/ClientGlobal.cxx \
src/ClientIdle.cxx src/ClientIdle.hxx \ src/ClientIdle.cxx src/ClientIdle.hxx \
src/ClientList.cxx \ src/ClientList.cxx src/ClientList.hxx \
src/ClientNew.cxx \ src/ClientNew.cxx \
src/ClientProcess.cxx \ src/ClientProcess.cxx \
src/ClientRead.cxx \ src/ClientRead.cxx \
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "config.h" #include "config.h"
#include "ClientInternal.hxx" #include "ClientInternal.hxx"
#include "ClientList.hxx"
static guint expire_source_id; static guint expire_source_id;
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "config.h" #include "config.h"
#include "ClientInternal.hxx" #include "ClientInternal.hxx"
#include "ClientList.hxx"
#include "conf.h" #include "conf.h"
#include <assert.h> #include <assert.h>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "config.h" #include "config.h"
#include "ClientIdle.hxx" #include "ClientIdle.hxx"
#include "ClientInternal.hxx" #include "ClientInternal.hxx"
#include "ClientList.hxx"
extern "C" { extern "C" {
#include "idle.h" #include "idle.h"
......
...@@ -118,24 +118,6 @@ extern int client_timeout; ...@@ -118,24 +118,6 @@ extern int client_timeout;
extern size_t client_max_command_list_size; extern size_t client_max_command_list_size;
extern size_t client_max_output_buffer_size; extern size_t client_max_output_buffer_size;
bool
client_list_is_empty(void);
bool
client_list_is_full(void);
Client *
client_list_get_first(void);
void
client_list_add(Client *client);
void
client_list_foreach(GFunc func, gpointer user_data);
void
client_list_remove(Client *client);
void void
client_close(Client *client); client_close(Client *client);
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include "config.h" #include "config.h"
#include "ClientList.hxx"
#include "ClientInternal.hxx" #include "ClientInternal.hxx"
#include <assert.h> #include <assert.h>
......
/*
* 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
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_CLIENT_LIST_HXX
#define MPD_CLIENT_LIST_HXX
#include <glib.h>
class Client;
bool
client_list_is_empty(void);
bool
client_list_is_full(void);
Client *
client_list_get_first(void);
void
client_list_add(Client *client);
void
client_list_foreach(GFunc func, gpointer user_data);
void
client_list_remove(Client *client);
#endif
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "config.h" #include "config.h"
#include "ClientInternal.hxx" #include "ClientInternal.hxx"
#include "ClientList.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "fd_util.h" #include "fd_util.h"
extern "C" { extern "C" {
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "MessageCommands.hxx" #include "MessageCommands.hxx"
#include "ClientSubscribe.hxx" #include "ClientSubscribe.hxx"
#include "ClientInternal.hxx" #include "ClientInternal.hxx"
#include "ClientList.hxx"
#include "protocol/Result.hxx" #include "protocol/Result.hxx"
#include "protocol/ArgParser.hxx" #include "protocol/ArgParser.hxx"
......
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