From 8d7172fd17e7b49f236ab97848872f2c91d800da Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Mon, 21 Aug 2006 22:07:10 +0000 Subject: Make Messages file parsing and searching use new re-usable hash table library svn path=/trunk/netsurf/; revision=2879 --- utils/messages.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'utils/messages.h') 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. */ #ifndef _NETSURF_UTILS_MESSAGES_H_ #define _NETSURF_UTILS_MESSAGES_H_ +#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); #endif -- cgit v1.2.3