Fix modest_tny_msg_header_get_all_recipients_list (in case from is empty)
[modest] / src / modest-protocol.h
index 6a113cf..ce6e3cb 100644 (file)
@@ -48,7 +48,7 @@ G_BEGIN_DECLS
 
 #define MODEST_PROTOCOL_TYPE_INVALID -1
 
-typedef gchar * (*TranslationFunc) (gpointer userdata, ...);
+typedef gchar * (*TranslationFunc) (gpointer userdata, va_list args);
 
 typedef struct _ModestProtocol      ModestProtocol;
 typedef struct _ModestProtocolClass ModestProtocolClass;
@@ -182,6 +182,21 @@ modest_protocol_get_translation (ModestProtocol *protocol,
                                 const gchar *id,
                                 ...);
 
+/**
+ * modest_protocol_va_get_translation:
+ * @protocol: a @ModestProtocol
+ * @id: the id for the translation set
+ * @args: a @va_list of the parameters for the translation
+ *
+ * applies the translation with parameters to obtain the full string expected.
+ *
+ * Returns: a newly allocated string
+ */
+gchar *
+modest_protocol_va_get_translation (ModestProtocol *protocol,
+                                   const gchar *id,
+                                   va_list args);
+
 G_END_DECLS
 
 #endif /* __MODEST_PROTOCOL_H__ */