path: root/utils/messages.h
diff options
authorRob Kendrick <>2006-08-21 22:07:10 +0000
committerRob Kendrick <>2006-08-21 22:07:10 +0000
commit8d7172fd17e7b49f236ab97848872f2c91d800da (patch)
treef8b74bb6e723a6c40b296e8ef8066434882c4bce /utils/messages.h
parent4165187bd833634df115d1d78031924457698241 (diff)
Make Messages file parsing and searching use new re-usable hash table library
svn path=/trunk/netsurf/; revision=2879
Diffstat (limited to 'utils/messages.h')
1 files changed, 7 insertions, 3 deletions
diff --git a/utils/messages.h b/utils/messages.h
index 4ca079293..6f9dfb763 100644
--- a/utils/messages.h
+++ b/utils/messages.h
@@ -14,15 +14,19 @@
* messages_load() to read the file into memory. To lookup a key, use
* messages_get("key").
- * Only the first MAX_KEY_LENGTH (currently 24) characters of the key are
- * significant.
+ * It can also load additional messages files into different contexts and allow
+ * you to look up values in it independantly from the standard shared Messages
+ * file table. Use the _ctx versions of the functions to do this.
+#include "netsurf/utils/hashtable.h"
void messages_load(const char *path);
+struct hash_table *messages_load_ctx(const char *path, struct hash_table *ctx);
+const char *messages_get_ctx(const char *key, struct hash_table *ctx);
const char *messages_get(const char *key);
-void messages_dump(void);