diff -r 4e3769d4e782 -r 395763c0ee69 dav/sync.h --- a/dav/sync.h Thu Sep 07 18:42:51 2017 +0200 +++ b/dav/sync.h Sun Sep 10 10:23:25 2017 +0200 @@ -37,14 +37,23 @@ #include "version.h" +#ifdef _WIN32 +// TODO: thread includes +#else +#include +#endif /* _WIN32 */ + #ifdef __cplusplus extern "C" { #endif #define STDIN_BUF_SIZE 2048 - + void print_usage(char *cmd); +pthread_t start_sighandler(pthread_mutex_t *mutex) ; +void stop_sighandler(pthread_mutex_t *mutex, pthread_t tid); + int cmd_pull(CmdArgs *args); int cmd_push(CmdArgs *args, DavBool archive); @@ -62,6 +71,7 @@ UcxList* local_scan(SyncDirectory *dir, SyncDatabase *db); UcxList* read_changes(SyncDirectory *dir, SyncDatabase *db); LocalResource* local_resource_new(SyncDirectory *dir, SyncDatabase *db, char *path, int *isdir); +LocalResource* local_resource_copy(LocalResource *res); int local_resource_is_changed(SyncDirectory *dir, SyncDatabase *db, LocalResource *res); int remote_resource_is_changed( DavSession *sn,