diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-26 17:20:15 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-26 17:32:57 +0000 |
commit | ce309aa5a9c1f813f6bdf152221f9bff88c4d3e1 (patch) | |
tree | 9034a1249379455f06463d87915fa1e67f176853 /utils/messages.h | |
parent | 2fef76db1555f49cff7f2baeec7fa084c8a5facb (diff) | |
download | netsurf-ce309aa5a9c1f813f6bdf152221f9bff88c4d3e1.tar.gz netsurf-ce309aa5a9c1f813f6bdf152221f9bff88c4d3e1.tar.bz2 |
add message retrival of error codes ensuring there are messages for all codes
Diffstat (limited to 'utils/messages.h')
-rw-r--r-- | utils/messages.h | 9 |
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 |