diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
commit | 48540940b6c28bb4378abfeb500ec45a625b37b6 (patch) | |
tree | 2ef294c0763e802f91d868bdef4229b6868527de /plugins/updater/extern.h | |
parent | 5c350913f011e119127baeb32a6aedeb4f0d33bc (diff) |
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/updater/extern.h')
-rw-r--r-- | plugins/updater/extern.h | 20 |
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
|