Mercurial > pidgin
changeset 18179:72906c5ac037
Add G_GNUC_NULL_TERMINATED to a few functions that expect a NULL terminated
list of things. This will generate some _useful_ compile warnings, for a
change, when such functions are invoked without appending a NULL at the end.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 18 Jun 2007 12:43:44 +0000 |
parents | 160ec876bbaf |
children | ba042caf722a 150689f4b56d |
files | libpurple/account.h libpurple/prpl.h libpurple/request.h libpurple/status.h |
diffstat | 4 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/account.h Sun Jun 17 23:42:32 2007 +0000 +++ b/libpurple/account.h Mon Jun 18 12:43:44 2007 +0000 @@ -369,7 +369,7 @@ * as a NULL-terminated list of id/value pairs. */ void purple_account_set_status(PurpleAccount *account, const char *status_id, - gboolean active, ...); + gboolean active, ...) G_GNUC_NULL_TERMINATED; /**
--- a/libpurple/prpl.h Sun Jun 17 23:42:32 2007 +0000 +++ b/libpurple/prpl.h Mon Jun 18 12:43:44 2007 +0000 @@ -378,7 +378,7 @@ * beginning with the value for @a attr_id. */ void purple_prpl_got_account_status(PurpleAccount *account, - const char *status_id, ...); + const char *status_id, ...) G_GNUC_NULL_TERMINATED; /** * Notifies Purple that a user's idle state and time have changed. * @@ -418,7 +418,7 @@ * beginning with the value for @a attr_id. */ void purple_prpl_got_user_status(PurpleAccount *account, const char *name, - const char *status_id, ...); + const char *status_id, ...) G_GNUC_NULL_TERMINATED; /** * Notifies libpurple that a user's status has been deactivated
--- a/libpurple/request.h Sun Jun 17 23:42:32 2007 +0000 +++ b/libpurple/request.h Mon Jun 18 12:43:44 2007 +0000 @@ -1228,7 +1228,7 @@ const char *ok_text, GCallback ok_cb, const char *cancel_text, GCallback cancel_cb, PurpleAccount *account, const char *who, PurpleConversation *conv, - void *user_data, ...); + void *user_data, ...) G_GNUC_NULL_TERMINATED; /** * Prompts the user for multiple-choice input.
--- a/libpurple/status.h Sun Jun 17 23:42:32 2007 +0000 +++ b/libpurple/status.h Mon Jun 18 12:43:44 2007 +0000 @@ -227,7 +227,7 @@ gboolean independent, const char *attr_id, const char *attr_name, - PurpleValue *attr_value, ...); + PurpleValue *attr_value, ...) G_GNUC_NULL_TERMINATED; /** * Destroys a status type. @@ -270,7 +270,7 @@ * @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.