summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-12-01 15:08:09 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-12-02 23:55:35 +0100
commitda31efb4e0708675cd4eda19eadfcd48ef691aa3 (patch)
tree996527bfddeb3324e4ef6b65df09d8685a6e6e11 /src
parent00d54325d3d8a325ebcab40df549b4146204f6e0 (diff)
rest: statify image restore and create function
only used in rest.c, remove the forward declaration in json.h
Diffstat (limited to 'src')
-rw-r--r--src/json.h2
-rw-r--r--src/rest.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/json.h b/src/json.h
index 6536d88..b307d6b 100644
--- a/src/json.h
+++ b/src/json.h
@@ -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;
diff --git a/src/rest.c b/src/rest.c
index cf50f64..68b24a0 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -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;