From 88c8b52e8855fb26d6985cafeca77f2ae618fd97 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 10 Jun 2021 17:00:19 +0200 Subject: move json function declarations to json.h These function declarations belong to json.h: 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); --- src/json.h | 4 ++++ src/rest.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/json.h b/src/json.h index 0e98a6e..17e5698 100644 --- a/src/json.h +++ b/src/json.h @@ -92,6 +92,10 @@ struct og_msg_params { uint64_t flags; }; +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; json_t *json; diff --git a/src/rest.h b/src/rest.h index 508a234..43ddd66 100644 --- a/src/rest.h +++ b/src/rest.h @@ -94,8 +94,4 @@ struct og_cmd { const struct og_cmd *og_cmd_find(const char *client_ip); void og_cmd_free(const struct og_cmd *cmd); -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); - #endif -- cgit v1.2.3-18-g5258