summaryrefslogtreecommitdiffstats
path: root/src/json.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.h')
-rw-r--r--src/json.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/json.h b/src/json.h
index 421f88d..e43531e 100644
--- a/src/json.h
+++ b/src/json.h
@@ -3,7 +3,9 @@
#include <jansson.h>
#include <stdint.h>
-#include "schedule.h"
+#include <stdbool.h>
+#include "list.h"
+#include "dbi.h"
int og_json_parse_string(const json_t *element, const char **str);
int og_json_parse_string_copy(const json_t *element, char *str, size_t size);
@@ -41,21 +43,6 @@ int og_json_parse_partition(json_t *element, struct og_partition *part,
#define OG_CLIENTS_MAX 4096
-struct og_sync_params {
- const char *sync;
- const char *diff;
- const char *remove;
- const char *compress;
- const char *cleanup;
- const char *cache;
- const char *cleanup_cache;
- const char *remove_dst;
- const char *diff_id;
- const char *diff_name;
- const char *path;
- const char *method;
-};
-
#define OG_PARAM_SCOPE_ID (1UL << 0)
#define OG_PARAM_SCOPE_TYPE (1UL << 1)
@@ -87,10 +74,7 @@ struct og_msg_params {
const char *comment;
bool echo;
struct og_partition partition_setup[OG_PARTITION_MAX];
- struct og_sync_params sync_setup;
- struct og_schedule_time time;
- struct og_image image;
- const char *task_id;
+ struct og_image image;
uint64_t flags;
bool backup;
};