Files
lcdproc/server/clients.h
T
robijn 726f2f995e Big changes in code of clients, screens and widgets.
- Moved and altered code to create, destroy and manipulate clients, screens
  and widgets in an OO-like manner.
- Moved command execution code to a commands directory, splitting commands to
  what subject they are concerned.
- Menus are temporary disabled while working on new menu structure.
2002-04-26 00:00:31 +00:00

37 lines
836 B
C

/*
* 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
*
*/
#ifndef CLIENTS_H
#define CLIENTS_H
#include "client.h"
#include "shared/LL.h"
/* extern LinkedList *clientlist; Not needed outside ? */
/* Initialize and kill client list...*/
int clients_init ();
int clients_shutdown ();
/* Add/remove clients (return -1 for error) */
int clients_add_client (Client *c);
int clients_remove_client (Client *c);
/* List functions */
Client * clients_getfirst ();
Client * clients_getnext ();
int clients_client_count ();
/* Search for a client with a particular filedescriptor...*/
Client * clients_find_client_by_sock (int sock);
#endif