From 67ded2a02a4f3f4d2a0ab156f3343dc93f4ba04c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 19 Jun 2015 16:29:42 +0100 Subject: This moves message loading out of netsurf_init into each frontend The translated message loading is dependant on configuration of resource location in each frontend, additionally they should have the ability to deal with errors in this loading in a implementation specific manner. This also extends the message loading API to be capable of loading from an inline memory buffer instead of from a file. --- utils/messages.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'utils/messages.c') diff --git a/utils/messages.c b/utils/messages.c index 78b9a79f0..91b41cbc8 100644 --- a/utils/messages.c +++ b/utils/messages.c @@ -142,7 +142,7 @@ messages_get_ctx(const char *key, struct hash_table *ctx) } /* exported interface documented in messages.h */ -nserror messages_load(const char *path) +nserror messages_add_from_file(const char *path) { nserror err; @@ -157,6 +157,12 @@ nserror messages_load(const char *path) return err; } +/* exported interface documented in messages.h */ +nserror messages_add_from_inline(const char *data) +{ + return NSERROR_OK; +} + /* exported interface documented in messages.h */ char *messages_get_buff(const char *key, ...) { -- cgit v1.2.3