Changeset 4452e69 for protocols/msn/soap.c
- Timestamp:
- 2010-08-14T13:06:11Z (14 years ago)
- Branches:
- master
- Children:
- 5848675
- Parents:
- d93c0eb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/soap.c
rd93c0eb9 r4452e69 609 609 msn_soap_addressbook_free_data ); 610 610 } 611 612 /* Variant: Change our display name. */ 613 static int msn_soap_ab_namechange_build_request( struct msn_soap_req_data *soap_req ) 614 { 615 struct msn_data *md = soap_req->ic->proto_data; 616 617 soap_req->url = g_strdup( SOAP_ADDRESSBOOK_URL ); 618 soap_req->action = g_strdup( SOAP_AB_NAMECHANGE_ACTION ); 619 soap_req->payload = g_markup_printf_escaped( SOAP_AB_NAMECHANGE_PAYLOAD, 620 md->tokens[1], (char *) soap_req->data ); 621 622 return 1; 623 } 624 625 static int msn_soap_ab_namechange_handle_response( struct msn_soap_req_data *soap_req ) 626 { 627 /* TODO: Ack the change? Not sure what the NAKs look like.. */ 628 return MSN_SOAP_OK; 629 } 630 631 static int msn_soap_ab_namechange_free_data( struct msn_soap_req_data *soap_req ) 632 { 633 g_free( soap_req->data ); 634 return 0; 635 } 636 637 int msn_soap_addressbook_set_display_name( struct im_connection *ic, const char *new ) 638 { 639 return msn_soap_start( ic, g_strdup( new ), 640 msn_soap_ab_namechange_build_request, 641 NULL, 642 msn_soap_ab_namechange_handle_response, 643 msn_soap_ab_namechange_free_data ); 644 }
Note: See TracChangeset
for help on using the changeset viewer.