summaryrefslogtreecommitdiffhomepage
path: root/windows/nsis-plugins/src/error.h
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2019-12-11 13:29:50 +0100
committerDavid Lönnhager <david.l@mullvad.net>2019-12-16 15:16:19 +0100
commit11ab41a02e34c0f3907faa5891f64da366bbc8c2 (patch)
treecdef956018d9dd61e654f2157b879dced9b52ce6 /windows/nsis-plugins/src/error.h
parent99eb972eb7c995216ce0b337b14c94cd89254ab4 (diff)
downloadmullvadvpn-11ab41a02e34c0f3907faa5891f64da366bbc8c2.tar.xz
mullvadvpn-11ab41a02e34c0f3907faa5891f64da366bbc8c2.zip
Get rid of duplicate nsis constants
Diffstat (limited to 'windows/nsis-plugins/src/error.h')
-rw-r--r--windows/nsis-plugins/src/error.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/windows/nsis-plugins/src/error.h b/windows/nsis-plugins/src/error.h
new file mode 100644
index 0000000000..c254ed3af7
--- /dev/null
+++ b/windows/nsis-plugins/src/error.h
@@ -0,0 +1,20 @@
+#pragma once
+
+//
+// Generic return codes for NSIS plugins
+//
+//
+// Returned on the stack:
+//
+// GENERAL_ERROR: Most functions return an error message.
+// SUCCESS: Most functions return an empty string.
+//
+// NOTE: While this is generally true, some functions only
+// push a status code to the stack.
+//
+
+enum NsisStatus
+{
+ GENERAL_ERROR = 0,
+ SUCCESS,
+};