uh_connection: Add a pointer to save context for user

userdata

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main^2
Jianhui Zhao 2021-01-15 12:02:10 +08:00
parent 971602f45f
commit 6cf45fb0a2
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ struct uh_connection {
struct uh_str (*get_body)(struct uh_connection *conn);
/* The remain body data will be discurd after this function called */
struct uh_str (*extract_body)(struct uh_connection *conn);
void *userdata;
};
typedef void (*uh_path_handler_prototype)(struct uh_connection *conn, int event);