summaryrefslogtreecommitdiff
path: root/utils/messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/messages.h')
-rw-r--r--utils/messages.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/messages.h b/utils/messages.h
index 2b78d07ee..81c380515 100644
--- a/utils/messages.h
+++ b/utils/messages.h
@@ -33,6 +33,7 @@
#ifndef _NETSURF_UTILS_MESSAGES_H_
#define _NETSURF_UTILS_MESSAGES_H_
+#include "utils/errors.h"
#include "utils/hashtable.h"
void messages_load(const char *path);
@@ -41,6 +42,14 @@ const char *messages_get_ctx(const char *key, struct hash_table *ctx);
const char *messages_get(const char *key);
/**
+ * lookup of a message by errorcode from the standard Messages hash.
+ *
+ * \param code errorcode of message
+ * \return message text
+ */
+const char *messages_get_errorcode(nserror code);
+
+/**
* Formatted message from a key in the global message hash.
*
* \param key key of message