pbap_client.c (ebb9bbfb000031b81ad055547dc4641df084c612) | pbap_client.c (c79e33a22c692605cb2fb097ac68c60f76f73efb) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 524 unchanged lines hidden (view full) --- 533 break; 534 case OBEX_HEADER_SINGLE_RESPONSE_MODE_PARAMETER: 535 obex_parser_header_store(&client->obex_srm.srmp_value, 1, total_len, data_offset, data_buffer, data_len); 536 break; 537 case OBEX_HEADER_BODY: 538 case OBEX_HEADER_END_OF_BODY: 539 switch(pbap_client->state){ 540 case PBAP_W4_PHONEBOOK: | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 524 unchanged lines hidden (view full) --- 533 break; 534 case OBEX_HEADER_SINGLE_RESPONSE_MODE_PARAMETER: 535 obex_parser_header_store(&client->obex_srm.srmp_value, 1, total_len, data_offset, data_buffer, data_len); 536 break; 537 case OBEX_HEADER_BODY: 538 case OBEX_HEADER_END_OF_BODY: 539 switch(pbap_client->state){ 540 case PBAP_W4_PHONEBOOK: |
541 case PBAP_W4_GET_CARD_ENTRY_COMPLETE: |
|
541 client->client_handler(PBAP_DATA_PACKET, client->cid, (uint8_t *) data_buffer, data_len); 542 if (data_offset + data_len == total_len){ 543 client->flow_wait_for_user = true; 544 } 545 break; 546 case PBAP_W4_GET_CARD_LIST_COMPLETE: 547 pbap_client_process_vcard_list_body(data_buffer, data_len); 548 break; | 542 client->client_handler(PBAP_DATA_PACKET, client->cid, (uint8_t *) data_buffer, data_len); 543 if (data_offset + data_len == total_len){ 544 client->flow_wait_for_user = true; 545 } 546 break; 547 case PBAP_W4_GET_CARD_LIST_COMPLETE: 548 pbap_client_process_vcard_list_body(data_buffer, data_len); 549 break; |
549 case PBAP_W4_GET_CARD_ENTRY_COMPLETE: 550 // TODO: not implemented yet 551 break; | |
552 default: 553 btstack_unreachable(); 554 break; 555 } 556 break; 557 default: 558 // ignore other headers 559 break; --- 770 unchanged lines hidden --- | 550 default: 551 btstack_unreachable(); 552 break; 553 } 554 break; 555 default: 556 // ignore other headers 557 break; --- 770 unchanged lines hidden --- |