| 45 #include "buddylist.h" |
45 #include "buddylist.h" |
| 46 #include "utils.h" |
46 #include "utils.h" |
| 47 #include "resolver-purple.h" |
47 #include "resolver-purple.h" |
| 48 #include "account.h" |
48 #include "account.h" |
| 49 #include "deprecated.h" |
49 #include "deprecated.h" |
| 50 #include "purple.h" |
50 #include "purplew.h" |
| 51 |
51 |
| 52 /* Prototypes */ |
52 /* Prototypes */ |
| 53 static void ggp_set_status(PurpleAccount *account, PurpleStatus *status); |
53 static void ggp_set_status(PurpleAccount *account, PurpleStatus *status); |
| 54 static int ggp_to_gg_status(PurpleStatus *status, char **msg); |
54 static int ggp_to_gg_status(PurpleStatus *status, char **msg); |
| 55 |
55 |
| 355 req->http_req->state == GG_STATE_ERROR) |
355 req->http_req->state == GG_STATE_ERROR) |
| 356 goto exit_error; |
356 goto exit_error; |
| 357 |
357 |
| 358 if (req->http_req->state != GG_STATE_DONE) |
358 if (req->http_req->state != GG_STATE_DONE) |
| 359 { |
359 { |
| 360 req->inpa = ggp_purple_http_input_add(req->http_req, |
360 req->inpa = ggp_purplew_http_input_add(req->http_req, |
| 361 ggp_callback_change_passwd_handler, req); |
361 ggp_callback_change_passwd_handler, req); |
| 362 return; |
362 return; |
| 363 } |
363 } |
| 364 |
364 |
| 365 if (req->http_req->data != NULL && |
365 if (req->http_req->data != NULL && |
| 452 g_new(ggp_change_passwd_request, 1); |
452 g_new(ggp_change_passwd_request, 1); |
| 453 req->http_req = h; |
453 req->http_req = h; |
| 454 req->new_password = g_strdup(p1); |
454 req->new_password = g_strdup(p1); |
| 455 req->account = account; |
455 req->account = account; |
| 456 |
456 |
| 457 req->inpa = ggp_purple_http_input_add(h, |
457 req->inpa = ggp_purplew_http_input_add(h, |
| 458 ggp_callback_change_passwd_handler, req); |
458 ggp_callback_change_passwd_handler, req); |
| 459 } |
459 } |
| 460 |
460 |
| 461 exit_err: |
461 exit_err: |
| 462 g_free(cur); |
462 g_free(cur); |