comparison libpurple/account.c @ 19195:1ca6c4b234ab

Warning fixes in the aftermath of resiak's authorize_cb and deny_cb type fixing.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 12 Aug 2007 00:52:17 +0000
parents 45865fb3f4f9
children f821d4bffb0a e6364b0679b0 0ed8a2a86a1b
comparison
equal deleted inserted replaced
19194:510ed64b8c74 19195:1ca6c4b234ab
1128 } 1128 }
1129 } 1129 }
1130 1130
1131 void * 1131 void *
1132 purple_account_request_authorization(PurpleAccount *account, const char *remote_user, 1132 purple_account_request_authorization(PurpleAccount *account, const char *remote_user,
1133 const char *id, const char *alias, const char *message, gboolean on_list, 1133 const char *id, const char *alias, const char *message, gboolean on_list,
1134 GCallback auth_cb, GCallback deny_cb, void *user_data) 1134 PurpleAccountRequestAuthorizationCb auth_cb, PurpleAccountRequestAuthorizationCb deny_cb, void *user_data)
1135 { 1135 {
1136 PurpleAccountUiOps *ui_ops; 1136 PurpleAccountUiOps *ui_ops;
1137 PurpleAccountRequestInfo *info; 1137 PurpleAccountRequestInfo *info;
1138 1138
1139 g_return_val_if_fail(account != NULL, NULL); 1139 g_return_val_if_fail(account != NULL, NULL);
1144 if (ui_ops != NULL && ui_ops->request_authorize != NULL) { 1144 if (ui_ops != NULL && ui_ops->request_authorize != NULL) {
1145 info = g_new0(PurpleAccountRequestInfo, 1); 1145 info = g_new0(PurpleAccountRequestInfo, 1);
1146 info->type = PURPLE_ACCOUNT_REQUEST_AUTHORIZATION; 1146 info->type = PURPLE_ACCOUNT_REQUEST_AUTHORIZATION;
1147 info->account = account; 1147 info->account = account;
1148 info->ui_handle = ui_ops->request_authorize(account, remote_user, id, alias, message, 1148 info->ui_handle = ui_ops->request_authorize(account, remote_user, id, alias, message,
1149 on_list, auth_cb, deny_cb, user_data); 1149 on_list, auth_cb, deny_cb, user_data);
1150 1150
1151 handles = g_list_append(handles, info); 1151 handles = g_list_append(handles, info);
1152 return info->ui_handle; 1152 return info->ui_handle;
1153 } 1153 }
1154 1154
1155 return NULL; 1155 return NULL;