Files
lcdproc/server/clients.h
T

37 lines
846 B
C
Raw Normal View History

/*
* client.h
* 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.
*
* Copyright (c) 1999, William Ferrell, Scott Scriven
*
*/
1999-12-09 23:15:14 +00:00
#ifndef CLIENTS_H
#define CLIENTS_H
#include "client.h"
#include "shared/LL.h"
1999-12-09 23:15:14 +00:00
/* extern LinkedList *clientlist; Not needed outside ? */
1999-12-09 23:15:14 +00:00
2001-12-30 00:15:25 +00:00
/* Initialize and kill client list...*/
2007-04-02 21:29:53 +00:00
int clients_init(void);
int clients_shutdown(void);
1999-12-09 23:15:14 +00:00
/* Add/remove clients (return -1 for error) */
2007-04-02 21:29:53 +00:00
int clients_add_client(Client *c);
int clients_remove_client(Client *c);
1999-12-09 23:15:14 +00:00
/* List functions */
2007-04-02 21:29:53 +00:00
Client *clients_getfirst(void);
Client *clients_getnext(void);
int clients_client_count(void);
1999-12-09 23:15:14 +00:00
2001-12-30 00:15:25 +00:00
/* Search for a client with a particular filedescriptor...*/
2007-04-02 21:29:53 +00:00
Client * clients_find_client_by_sock(int sock);
1999-12-09 23:15:14 +00:00
#endif