add: schedule tags endpoint
fix: memory leak for string args
This commit is contained in:
parent
a127a68e31
commit
f040cd8b21
6 changed files with 71 additions and 2 deletions
include
|
@ -18,4 +18,7 @@ api_v1_schedules_STR_PUT(struct mg_connection *c, endpoint_args_t *args, struct
|
|||
void
|
||||
api_v1_schedules_STR_DELETE(struct mg_connection *c, endpoint_args_t *args, struct http_message *hm);
|
||||
|
||||
void
|
||||
api_v1_schedules_tag_STR_GET(struct mg_connection *c, endpoint_args_t *args, struct http_message *hm);
|
||||
|
||||
#endif /* CORE_ENDPOINTS_API_V1_SCHEDULES_H */
|
||||
|
|
|
@ -17,7 +17,7 @@ typedef struct
|
|||
union
|
||||
{
|
||||
int v_int;
|
||||
char *v_str;
|
||||
const char *v_str;
|
||||
} value;
|
||||
} endpoint_args_t;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue