mirror of https://git.48k.eu/ogserver
rest: statify image restore and create function
only used in rest.c, remove the forward declaration in json.hmaster
parent
00d54325d3
commit
da31efb4e0
|
@ -82,8 +82,6 @@ struct og_msg_params {
|
|||
};
|
||||
|
||||
int og_json_parse_partition_setup(json_t *element, struct og_msg_params *params);
|
||||
int og_json_parse_create_image(json_t *element, struct og_msg_params *params);
|
||||
int og_json_parse_restore_image(json_t *element, struct og_msg_params *params);
|
||||
|
||||
struct og_cmd_json {
|
||||
const char *type;
|
||||
|
|
|
@ -3680,8 +3680,7 @@ static int og_cmd_images(char *buffer_reply)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int og_json_parse_create_image(json_t *element,
|
||||
struct og_msg_params *params)
|
||||
static int og_json_parse_create_image(json_t *element, struct og_msg_params *params)
|
||||
{
|
||||
const char *key;
|
||||
json_t *value;
|
||||
|
@ -3826,7 +3825,7 @@ static int og_cmd_update_image(json_t *element, struct og_msg_params *params)
|
|||
return og_cmd_add_image(element, params, true);
|
||||
}
|
||||
|
||||
int og_json_parse_restore_image(json_t *element, struct og_msg_params *params)
|
||||
static int og_json_parse_restore_image(json_t *element, struct og_msg_params *params)
|
||||
{
|
||||
const char *key;
|
||||
json_t *value;
|
||||
|
|
Loading…
Reference in New Issue