aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/Error.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 18:46:56 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 19:29:38 +0200
commitf6d74012b7a583bddf2e3b824193ade91fe09ce7 (patch)
tree320e8bfe60bd03185124962fae6cfc330b84bf86 /src/util/Error.hxx
parent32dfc11c23ec89a994ec92a98e2f9a5c0fbd93db (diff)
downloadmpd-f6d74012b7a583bddf2e3b824193ade91fe09ce7.tar.gz
mpd-f6d74012b7a583bddf2e3b824193ade91fe09ce7.tar.xz
mpd-f6d74012b7a583bddf2e3b824193ade91fe09ce7.zip
util/Error: add method SetLastError()
Diffstat (limited to 'src/util/Error.hxx')
-rw-r--r--src/util/Error.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/Error.hxx b/src/util/Error.hxx
index a37211538..facb461dc 100644
--- a/src/util/Error.hxx
+++ b/src/util/Error.hxx
@@ -36,6 +36,11 @@ extern const Domain errno_domain;
#include <windows.h>
#define IgnoreError MPDIgnoreError
#undef GetMessage
+
+/**
+ * Domain for GetLastError().
+ */
+extern const Domain win32_domain;
#endif
/**
@@ -143,6 +148,10 @@ public:
void SetErrno(const char *prefix);
void FormatErrno(const char *prefix, ...);
void FormatErrno(int e, const char *prefix, ...);
+
+#ifdef WIN32
+ void SetLastError(const char *prefix);
+#endif
};
/**