dav/sync.h

changeset 302
395763c0ee69
parent 299
c517502d3e38
child 327
a66e0a1f01fc
child 330
54819e984a19
--- 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 <pthread.h>
+#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,

mercurial