Mercurial > pidgin
diff libpurple/prpl.h @ 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 | 62a71bb085ef |
children | 5c1ed6296b56 0f46f13c0805 f12bf92d64ec |
line wrap: on
line diff
--- 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