Mercurial > pidgin
changeset 17274:9accf6d6cd61
Change msim_msg_get_element to msim_msg_get.
Related functions:
msim_msg_get_integer
msim_msg_get_string
all use msim_msg_get(). msim_msg_get_X gets the value as type X, but
msim_msg_get_element() didn't get the value as an element (instead, it got
the whole element). So now the name is more accurate.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Fri, 01 Jun 2007 05:07:25 +0000 |
parents | dc7ed2ecf0cb |
children | f3ec513efb59 |
files | libpurple/protocols/myspace/message.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.c Fri Jun 01 04:55:42 2007 +0000 +++ b/libpurple/protocols/myspace/message.c Fri Jun 01 05:07:25 2007 +0000 @@ -570,9 +570,11 @@ * * @return MsimMessageElement * matching name, or NULL. * - * Note: useful fields of MsimMessageElement are 'data' and 'type'. + * Note: useful fields of MsimMessageElement are 'data' and 'type', which + * you can access directly. But it is often more convenient to use + * another msim_msg_get_* that converts the data to what type you want. */ -MsimMessageElement *msim_msg_get_element(MsimMessage *msg, gchar *name) +MsimMessageElement *msim_msg_get(MsimMessage *msg, gchar *name) { GList *i; @@ -600,7 +602,7 @@ { MsimMessageElement *elem; - elem = msim_msg_get_element(msg, name); + elem = msim_msg_get(msg, name); if (!elem) return NULL; @@ -621,7 +623,7 @@ { MsimMessageElement *elem; - elem = msim_msg_get_element(msg, name); + elem = msim_msg_get(msg, name); switch (elem->type) {