extend deletion functions in LL.c, use them to make "bye" client command work
This commit is contained in:
+11
-8
@@ -1,9 +1,6 @@
|
||||
/** \file clients.c
|
||||
* Manage the list of clients that are connected.
|
||||
* Init/shut down client system, and search for clients in the list.
|
||||
*/
|
||||
|
||||
/* This file is part of LCDd, the lcdproc server.
|
||||
/*
|
||||
* clients.c
|
||||
* This file is part of LCDd, the lcdproc server.
|
||||
*
|
||||
* This file is released under the GNU General Public License. Refer to the
|
||||
* COPYING file distributed with this package.
|
||||
@@ -11,6 +8,11 @@
|
||||
* Copyright (c) 1999, William Ferrell, Scott Scriven
|
||||
* 2002, Joris Robijn
|
||||
*
|
||||
*
|
||||
* Inits/shuts down client system,
|
||||
* and searches for clients in the list.
|
||||
* On short: manages the list of clients that are connected.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -87,9 +89,9 @@ clients_add_client(Client *c)
|
||||
|
||||
/* Remove the client from the clients list... */
|
||||
Client *
|
||||
clients_remove_client(Client *c)
|
||||
clients_remove_client(Client *c, Direction whereto)
|
||||
{
|
||||
Client *client = LL_Remove(clientlist, c);
|
||||
Client *client = LL_Remove(clientlist, c, whereto);
|
||||
|
||||
return client;
|
||||
}
|
||||
@@ -116,6 +118,7 @@ clients_client_count(void)
|
||||
/* A client is identified by the file descriptor
|
||||
* associated with it. Find one.
|
||||
*/
|
||||
|
||||
Client *
|
||||
clients_find_client_by_sock(int sock)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user