Mercurial > pidgin.yaz
diff src/status.c @ 10010:56e34a659db2
[gaim-migrate @ 10927]
Further deprecation of serv_got_update
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 10 Sep 2004 22:39:35 +0000 |
parents | c124bef68132 |
children | a38881ec9c0f |
line wrap: on
line diff
--- a/src/status.c Fri Sep 10 19:51:52 2004 +0000 +++ b/src/status.c Fri Sep 10 22:39:35 2004 +0000 @@ -225,6 +225,7 @@ status_type = gaim_status_type_new_full(primitive, id, name, saveable, user_settable, independent); + /* Add the first attribute */ gaim_status_type_add_attr(status_type, attr_id, attr_name, attr_value); va_start(args, attr_value); @@ -286,25 +287,6 @@ } void -gaim_status_type_add_attrs(GaimStatusType *status_type, const char *id, - const char *name, GaimValue *value, ...) -{ - va_list args; - - g_return_if_fail(status_type != NULL); - g_return_if_fail(id != NULL); - g_return_if_fail(name != NULL); - g_return_if_fail(value != NULL); - - /* Add the first. */ - gaim_status_type_add_attr(status_type, id, name, value); - - va_start(args, value); - gaim_status_type_add_attrs_vargs(status_type, args); - va_end(args); -} - -void gaim_status_type_add_attrs_vargs(GaimStatusType *status_type, va_list args) { const char *id, *name; @@ -324,6 +306,25 @@ } } +void +gaim_status_type_add_attrs(GaimStatusType *status_type, const char *id, + const char *name, GaimValue *value, ...) +{ + va_list args; + + g_return_if_fail(status_type != NULL); + g_return_if_fail(id != NULL); + g_return_if_fail(name != NULL); + g_return_if_fail(value != NULL); + + /* Add the first attribute */ + gaim_status_type_add_attr(status_type, id, name, value); + + va_start(args, value); + gaim_status_type_add_attrs_vargs(status_type, args); + va_end(args); +} + GaimStatusPrimitive gaim_status_type_get_primitive(const GaimStatusType *status_type) {