ClientList: add header ClientList.hxx
This commit is contained in:
parent
045993001c
commit
377a2b9e07
@ -232,7 +232,7 @@ src_mpd_SOURCES = \
|
||||
src/ClientExpire.cxx \
|
||||
src/ClientGlobal.cxx \
|
||||
src/ClientIdle.cxx src/ClientIdle.hxx \
|
||||
src/ClientList.cxx \
|
||||
src/ClientList.cxx src/ClientList.hxx \
|
||||
src/ClientNew.cxx \
|
||||
src/ClientProcess.cxx \
|
||||
src/ClientRead.cxx \
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "ClientList.hxx"
|
||||
|
||||
static guint expire_source_id;
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "ClientList.hxx"
|
||||
#include "conf.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "config.h"
|
||||
#include "ClientIdle.hxx"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "ClientList.hxx"
|
||||
|
||||
extern "C" {
|
||||
#include "idle.h"
|
||||
|
@ -118,24 +118,6 @@ extern int client_timeout;
|
||||
extern size_t client_max_command_list_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
|
||||
client_close(Client *client);
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ClientList.hxx"
|
||||
#include "ClientInternal.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
45
src/ClientList.hxx
Normal file
45
src/ClientList.hxx
Normal file
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "ClientList.hxx"
|
||||
#include "Partition.hxx"
|
||||
#include "fd_util.h"
|
||||
extern "C" {
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "MessageCommands.hxx"
|
||||
#include "ClientSubscribe.hxx"
|
||||
#include "ClientInternal.hxx"
|
||||
#include "ClientList.hxx"
|
||||
#include "protocol/Result.hxx"
|
||||
#include "protocol/ArgParser.hxx"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user