uh_connection: Add a pointer to save context for user
userdata Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
1 parent
971602f45f
commit
6cf45fb0a2
1 file changed
+1
@@ -78,6 +78,7 @@ struct uh_connection {
|
|||||||
struct uh_str (*get_body)(struct uh_connection *conn);
|
struct uh_str (*get_body)(struct uh_connection *conn);
|
||||||
/* The remain body data will be discurd after this function called */
|
/* The remain body data will be discurd after this function called */
|
||||||
struct uh_str (*extract_body)(struct uh_connection *conn);
|
struct uh_str (*extract_body)(struct uh_connection *conn);
|
||||||
|
void *userdata;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*uh_path_handler_prototype)(struct uh_connection *conn, int event);
|
typedef void (*uh_path_handler_prototype)(struct uh_connection *conn, int event);
|
||||||
|
|||||||
Reference in new issue
Block a user