dav/scfg.h

changeset 642
4e23087d3d90
parent 630
046b869a1c49
child 644
a38b15061848
equal deleted inserted replaced
641:b138d1241e68 642:4e23087d3d90
60 #define SYNC_STORE_HASH(dir) ((dir)->store_hash) 60 #define SYNC_STORE_HASH(dir) ((dir)->store_hash)
61 61
62 typedef struct TagConfig TagConfig; 62 typedef struct TagConfig TagConfig;
63 typedef struct Versioning Versioning; 63 typedef struct Versioning Versioning;
64 typedef struct SplitConfig SplitConfig; 64 typedef struct SplitConfig SplitConfig;
65 65
66 enum PushStrategy {
67 PUSH_STRATEGY_METADATA = 0,
68 PUSH_STRATEGY_HASH
69 };
70 typedef enum PushStrategy PushStrategy;
71
66 typedef struct SyncDirectory { 72 typedef struct SyncDirectory {
67 char *name; 73 char *name;
68 char *path; 74 char *path;
69 char *trash; 75 char *trash;
70 char *collection; 76 char *collection;
79 uint32_t metadata; 85 uint32_t metadata;
80 int max_retry; 86 int max_retry;
81 int allow_cmd; 87 int allow_cmd;
82 uint32_t symlink; 88 uint32_t symlink;
83 time_t lock_timeout; 89 time_t lock_timeout;
90 PushStrategy push_strategy;
84 bool backuppull; 91 bool backuppull;
85 bool lockpull; 92 bool lockpull;
86 bool lockpush; 93 bool lockpush;
87 bool hashing; 94 bool hashing;
88 bool store_hash; 95 bool store_hash;

mercurial