X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-protocol.h;h=ce6e3cbcf69a9dba013aa05879083b42dd199262;hp=6a113cf19d65e02e61b3a88defd633d1530b49f1;hb=f02ac5fc983a182ad696716fabb5fd2242256031;hpb=627c4af6ac85444cc3256fa568baf4a8d62178ae diff --git a/src/modest-protocol.h b/src/modest-protocol.h index 6a113cf..ce6e3cb 100644 --- a/src/modest-protocol.h +++ b/src/modest-protocol.h @@ -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__ */