summaryrefslogtreecommitdiff
path: root/plugins/Updater/extern.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-05-19 11:12:34 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-05-19 11:12:34 +0000
commit927add1b301c9f38808f3d35854d3ce896bff095 (patch)
tree244dfff95aee5393ec835e5804252ff8cf07866d /plugins/Updater/extern.h
parente447995b61b645d48ebe837a0ee4fdb28373aa1c (diff)
adding SpellChecker plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@69 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Updater/extern.h')
-rw-r--r--plugins/Updater/extern.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/Updater/extern.h b/plugins/Updater/extern.h
new file mode 100644
index 0000000000..c6091f4dfa
--- /dev/null
+++ b/plugins/Updater/extern.h
@@ -0,0 +1,20 @@
+#ifndef _EXTERN_INC
+#define _EXTERN_INC
+
+#include "options.h"
+
+
+#define ROOT_FILES_FOLDER _T("root_files")
+
+// returns 1 if any error, 0 if shutdown is imminent
+int ExternProcess(bool restart);
+
+// move all files in src_folder to backup_folder - put replaced files in backup folder
+// if a file in src_folder is a directory, copy it's contents to the same dir in the root folder and
+// set that dir as the new root (so that dirs in dirs go in the right place)
+void MoveFiles(HANDLE hLogFile, TCHAR *src_folder, TCHAR *dst_folder, TCHAR *backup_folder, TCHAR *root_folder);
+
+
+void CALLBACK ExternalUpdate(HWND hwnd, HINSTANCE hInstance, LPSTR lpszCmdLine, int nCmdShow);
+
+#endif