Mercurial > pidgin.yaz
diff libpurple/account.c @ 21377:872068d10eab
Mark pointed out that PurpleConnectionErrorPair is not a very good name for the
struct (what if it gains an extra field in the future?), and John suggested
PurpleConnectionErrorInfo, which is an accurate name.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Sun, 28 Oct 2007 23:10:08 +0000 |
parents | 71c1f2da4ff2 |
children | 30a532b14003 |
line wrap: on
line diff
--- a/libpurple/account.c Sun Oct 28 18:03:14 2007 +0000 +++ b/libpurple/account.c Sun Oct 28 23:10:08 2007 +0000 @@ -43,7 +43,7 @@ typedef struct { - PurpleConnectionErrorPair *current_error; + PurpleConnectionErrorInfo *current_error; } PurpleAccountPrivate; #define PURPLE_ACCOUNT_GET_PRIVATE(account) \ @@ -2236,7 +2236,7 @@ clear_current_error(PurpleAccount *account) { PurpleAccountPrivate *priv = PURPLE_ACCOUNT_GET_PRIVATE(account); - PurpleConnectionErrorPair *old; + PurpleConnectionErrorInfo *old; if (priv->current_error) { @@ -2266,9 +2266,9 @@ { PurpleAccount *account = purple_connection_get_account(gc); PurpleAccountPrivate *priv = PURPLE_ACCOUNT_GET_PRIVATE(account); - PurpleConnectionErrorPair *old = priv->current_error; - - priv->current_error = g_new0(PurpleConnectionErrorPair, 1); + PurpleConnectionErrorInfo *old = priv->current_error; + + priv->current_error = g_new0(PurpleConnectionErrorInfo, 1); priv->current_error->type = err; priv->current_error->description = desc; @@ -2278,7 +2278,7 @@ g_free(old); } -const PurpleConnectionErrorPair * +const PurpleConnectionErrorInfo * purple_account_get_current_error(PurpleAccount *account) { PurpleAccountPrivate *priv = PURPLE_ACCOUNT_GET_PRIVATE(account);