diff options
author | Andreas Monitzer <am@adiumx.com> | 2007-07-11 22:27:44 +0000 |
---|---|---|
committer | Andreas Monitzer <am@adiumx.com> | 2007-07-11 22:27:44 +0000 |
commit | a28993fbc6205d7e418ce8d3a1fbe60cc0d38cab (patch) | |
tree | 9dc2d6d1432a7b169e5069177deed87e8de19550 /libpurple/status.h | |
parent | 60c69fa0b71738e53a719db77bfc1733c1a48099 (diff) | |
parent | 6a4aa6a308f79bb7792e1b2b6eaf3d8aece3d15c (diff) | |
download | pidgin-a28993fbc6205d7e418ce8d3a1fbe60cc0d38cab.tar.gz |
propagate from branch 'im.pidgin.pidgin' (head 716f4775cbdf4b1d6ca8bb122964f9f1b04fca72)
to branch 'im.pidgin.soc.2007.xmpp' (head 72d8799d2913424cd7f99b7ca3a0920e5bd8532d)
Diffstat (limited to 'libpurple/status.h')
-rw-r--r-- | libpurple/status.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/libpurple/status.h b/libpurple/status.h index 2234d01bdd..f65a9fa2ae 100644 --- a/libpurple/status.h +++ b/libpurple/status.h @@ -237,7 +237,7 @@ PurpleStatusType *purple_status_type_new_with_attrs(PurpleStatusPrimitive primit gboolean independent, const char *attr_id, const char *attr_name, - PurpleValue *attr_value, ...); + PurpleValue *attr_value, ...) G_GNUC_NULL_TERMINATED; /** * Destroys a status type. @@ -280,7 +280,7 @@ void purple_status_type_add_attr(PurpleStatusType *status_type, const char *id, * @param ... Additional attribute information. */ void purple_status_type_add_attrs(PurpleStatusType *status_type, const char *id, - const char *name, PurpleValue *value, ...); + const char *name, PurpleValue *value, ...) G_GNUC_NULL_TERMINATED; /** * Adds multiple attributes to a status type using a va_list. @@ -397,9 +397,9 @@ PurpleStatusAttr *purple_status_type_get_attr(const PurpleStatusType *status_typ * * @param status_type The status type. * - * @return The list of attributes. + * @constreturn The list of attributes. */ -const GList *purple_status_type_get_attrs(const PurpleStatusType *status_type); +GList *purple_status_type_get_attrs(const PurpleStatusType *status_type); /** * Find the PurpleStatusType with the given id. @@ -525,10 +525,11 @@ void purple_status_set_active_with_attrs(PurpleStatus *status, gboolean active, * @param active The active state. * @param attrs A list of attributes to set on the status. This list is * composed of key/value pairs, where each key is a valid - * attribute name for this PurpleStatusType. + * attribute name for this PurpleStatusType. The list is + * not modified or freed by this function. */ void purple_status_set_active_with_attrs_list(PurpleStatus *status, gboolean active, - const GList *attrs); + GList *attrs); /** * Sets the boolean value of an attribute in a status with the specified ID. @@ -778,9 +779,10 @@ void purple_presence_add_status(PurplePresence *presence, PurpleStatus *status); * Adds a list of statuses to the presence. * * @param presence The presence. - * @param source_list The source list of statuses to add. + * @param source_list The source list of statuses to add, which is not + * modified or freed by this function. */ -void purple_presence_add_list(PurplePresence *presence, const GList *source_list); +void purple_presence_add_list(PurplePresence *presence, GList *source_list); /** * Sets the active state of a status in a presence. @@ -879,9 +881,9 @@ PurpleBuddy *purple_presence_get_buddy(const PurplePresence *presence); * * @param presence The presence. * - * @return The statuses. + * @constreturn The statuses. */ -const GList *purple_presence_get_statuses(const PurplePresence *presence); +GList *purple_presence_get_statuses(const PurplePresence *presence); /** * Returns the status with the specified ID from a presence. |