summaryrefslogtreecommitdiff
path: root/library/detectRenaming.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/detectRenaming.h')
-rw-r--r--library/detectRenaming.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/library/detectRenaming.h b/library/detectRenaming.h
new file mode 100644
index 00000000..82cb543e
--- /dev/null
+++ b/library/detectRenaming.h
@@ -0,0 +1,20 @@
+#ifndef DETECTRENAMING_H_INCLUDED
+#define DETECTRENAMING_H_INCLUDED
+
+#include "../fileHierarchy.h"
+
+
+//identify a file "create and delete"-operation as a file renaming!
+
+namespace FreeFileSync
+{
+typedef FileMapping* CreateOnLeft;
+typedef FileMapping* DeleteOnLeft;
+typedef FileMapping* CreateOnRight;
+typedef FileMapping* DeleteOnRight;
+void getRenameCandidates(FreeFileSync::BaseDirMapping& baseMapping, //in
+ std::vector<std::pair<CreateOnLeft, DeleteOnLeft> >& renameOnLeft, //out
+ std::vector<std::pair<CreateOnRight, DeleteOnRight> >& renameOnRight); //out throw()!
+}
+
+#endif // DETECTRENAMING_H_INCLUDED
bgstack15