Skip to content

Commit

Permalink
uh_connection: Add a pointer to save context for user
Browse files Browse the repository at this point in the history
userdata

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Jan 15, 2021
1 parent 971602f commit 6cf45fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/uhttpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6cf45fb

Please sign in to comment.