Param management WIP
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
NADAL Jean-Baptiste
2020-02-19 18:45:28 +01:00
parent 0962a1b776
commit 29fb5f456d
3 changed files with 119 additions and 21 deletions

View File

@@ -127,9 +127,10 @@ struct restd_hook_s
char *path;
restd_callback cb;
void *userdata;
bool has_param;
qlist_t *path_fragments;
char *param_name;
bool has_parameter;
int parameter_position;
char *parameter_name;
char *action_name;
};
@@ -140,7 +141,8 @@ struct restd_resp_s
{
struct evhttp_request *request;
bool has_parameter;
char *parameter;
char *parameter_name;
char *parameter_value;
char *action;
};