diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-07-06 18:23:56 +0200 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-07-07 10:04:36 +0200 |
commit | 74b6e3ec7275164e2ecbf6f98b24357b2a9bb174 (patch) | |
tree | 3ba80fea6b671faec97172d345f9c9057f4b74bb /src/json.h | |
parent | 3de8c25e4ee30d3d917d9b6c6956ccedeee29245 (diff) |
rest: add optional param "backup" for create_imagev1.2.3
This parameter is used by ogServer to instruct target client if image
backup should be performed before image creation.
This parameter is optional to preserve backward compatibility with
webconsole (legacy web client) and avoid the need of updating any legacy
client.
Default is true if the REST request is missing this parameter.
Diffstat (limited to 'src/json.h')
-rw-r--r-- | src/json.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -91,6 +91,7 @@ struct og_msg_params { struct og_image image; const char *task_id; uint64_t flags; + bool backup; }; int og_json_parse_partition_setup(json_t *element, struct og_msg_params *params); |