More work on the ADC client lib.

This commit is contained in:
Jan Vidar Krey
2009-10-06 12:39:31 +02:00
parent 8592aa80d4
commit 310ddf4e9d
3 changed files with 33 additions and 4 deletions

View File

@@ -76,16 +76,26 @@ struct ADC_chat_message
int flags;
};
struct ADC_user
{
sid_t sid;
char* cid;
char* name;
char* description;
char* address;
char* version;
};
struct ADC_client_callback_data
{
union {
struct ADC_hub_info* hubinfo;
struct ADC_chat_message* chat;
struct ADC_user* user;
};
};
typedef int (*adc_client_cb)(struct ADC_client*, enum ADC_client_callback_type, struct ADC_client_callback_data* data);
struct ADC_client
@@ -101,7 +111,6 @@ struct ADC_client
size_t timeout;
struct net_connection* con;
struct net_timer* timer;
struct sockaddr_in addr;
char* hub_address;
char* nick;