Removed lcddriver.c (doesn't do anything, isn't in any makefiles, etc.).
Passed *every* piece of source in this project through indent. I'm setting things up with ctags soon and am actually going to *gasp* use a nice programming environment to continue development in. :)
This commit is contained in:
+14
-15
@@ -4,37 +4,36 @@
|
||||
#include "client_data.h"
|
||||
#include "../shared/LL.h"
|
||||
|
||||
typedef struct client
|
||||
{
|
||||
int sock;
|
||||
LL *messages;
|
||||
client_data *data;
|
||||
|
||||
typedef struct client {
|
||||
int sock;
|
||||
LL *messages;
|
||||
client_data *data;
|
||||
|
||||
} client;
|
||||
|
||||
extern LL *clients;
|
||||
|
||||
|
||||
// Initialize and kill client list...
|
||||
int client_init();
|
||||
int client_shutdown();
|
||||
int client_init ();
|
||||
int client_shutdown ();
|
||||
|
||||
|
||||
// Create and destroy clients....
|
||||
client * client_create(int sock);
|
||||
int client_destroy(client *c);
|
||||
client *client_create (int sock);
|
||||
int client_destroy (client * c);
|
||||
|
||||
// Add and remove messages from the client's queue...
|
||||
int client_add_message(client *c, char *message);
|
||||
char * client_get_message(client *c);
|
||||
int client_add_message (client * c, char *message);
|
||||
char *client_get_message (client * c);
|
||||
|
||||
// Get and set the client's data...
|
||||
// Not used at all yet, and may never be. Oh, well.
|
||||
int client_set(client *c, void *data);
|
||||
void * client_get(client *c);
|
||||
int client_set (client * c, void *data);
|
||||
void *client_get (client * c);
|
||||
|
||||
// Search for a client with a particular filedescriptor...
|
||||
client * client_find_sock(int sock);
|
||||
client *client_find_sock (int sock);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user