1999-12-09 23:15:14 +00:00
|
|
|
#ifndef CLIENT_DATA_H
|
|
|
|
|
#define CLIENT_DATA_H
|
|
|
|
|
|
|
|
|
|
#include "../shared/LL.h"
|
|
|
|
|
|
|
|
|
|
#define CLIENT_NAME_SIZE 256
|
|
|
|
|
|
2000-03-30 20:20:41 +00:00
|
|
|
typedef struct client_data {
|
2000-04-03 22:13:57 +00:00
|
|
|
int ack;
|
|
|
|
|
char *name;
|
|
|
|
|
// and other stuff... doesn't matter yet
|
|
|
|
|
LL *screenlist;
|
2001-05-11 17:55:36 +00:00
|
|
|
// list of requested keys...
|
|
|
|
|
char *client_keys ;
|
2000-04-03 22:13:57 +00:00
|
|
|
LL *menulist;
|
2000-03-30 20:20:41 +00:00
|
|
|
|
1999-12-09 23:15:14 +00:00
|
|
|
} client_data;
|
|
|
|
|
|
|
|
|
|
// sets up an existing (empty) client_data struct
|
2000-03-30 20:20:41 +00:00
|
|
|
int client_data_init (client_data * d);
|
1999-12-09 23:15:14 +00:00
|
|
|
// destroys members of a client's data
|
2000-03-30 20:20:41 +00:00
|
|
|
int client_data_destroy (client_data * d);
|
1999-12-09 23:15:14 +00:00
|
|
|
|
|
|
|
|
#endif
|