Callback functions added to conn structure for request handling.

FossilOrigin-Name: f68f1f9de80e04077afac2e994ca1c06c8f7839545da8715df6a7588774876da
This commit is contained in:
7u83@mail.ru 2014-08-23 07:38:31 +00:00
parent 4c6fb77a34
commit a2b87578b1
1 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,10 @@ struct conn{
void * data;
int strict_capwap;
void (*request_handler) (void*);
void * request_handler_param;
};
@ -163,6 +167,7 @@ struct conn * connlist_get(struct connlist * cl, const struct sockaddr * addr);
struct conn * connlist_add(struct connlist * cl, struct conn * conn);
void connlist_remove(struct connlist *cl,struct conn * conn);
void connlist_destroy(struct connlist * cl);
void conn_q_add_packet(struct conn * conn,uint8_t *packet,int len);