Mercurial > pidgin
diff libpurple/protocols/myspace/message.h @ 17302:d69bcd74c240
Enhance msim_msg_new() to accept a variadic arguments, like msim_send(),
by means of a new function msim_msg_new_v() accepting a va_list().
This simplifies coding, in that you can now easily create a MsimMessage
with certain fields, and send it later (instead of doing both at once as
with msim_send()).
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Mon, 04 Jun 2007 03:30:55 +0000 |
parents | 641c96277fa6 |
children | f057837085b0 |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.h Mon Jun 04 03:07:42 2007 +0000 +++ b/libpurple/protocols/myspace/message.h Mon Jun 04 03:30:55 2007 +0000 @@ -44,7 +44,9 @@ #define MSIM_TYPE_DICTIONARY 'd' #define MSIM_TYPE_LIST 'l' -MsimMessage *msim_msg_new(void); +MsimMessage *msim_msg_new(gboolean not_empty, ...); +/* No sentinel attribute, because can leave off varargs if not_empty is FALSE. */ + MsimMessage *msim_msg_clone(MsimMessage *old); void msim_msg_free(MsimMessage *msg); MsimMessage *msim_msg_append(MsimMessage *msg, gchar *name, MsimMessageType type, gpointer data);