From 6173bb0e6c3bf51cd463f7bc4f725429d9087b2b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 5 Oct 2010 19:14:46 +0000 Subject: Merge treeview-redux to trunk svn path=/trunk/netsurf/; revision=10865 --- utils/messages.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'utils/messages.h') diff --git a/utils/messages.h b/utils/messages.h index 1c72db2f8..2b78d07ee 100644 --- a/utils/messages.h +++ b/utils/messages.h @@ -40,4 +40,16 @@ 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); +/** + * Formatted message from a key in the global message hash. + * + * \param key key of message + * \param ... message parameters + * \return buffer containing formatted message text or NULL if memory + * is unavailable. The caller owns the returned buffer and is + * responsible for freeing it. + */ + +char *messages_get_buff(const char *key, ...); + #endif -- cgit v1.2.3