pbap_client.c (c0904bf32c02e12daca8291c75d866d8b1f7f722) pbap_client.c (ebb9bbfb000031b81ad055547dc4641df084c612)
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

--- 636 unchanged lines hidden (view full) ---

645
646static void pbap_client_add_application_parameters(const pbap_client_t * client, uint8_t * application_parameters, uint16_t len){
647 if (len > 0){
648 goep_client_header_add_application_parameters(client->goep_cid, &application_parameters[0], len);
649 }
650}
651
652static void pbap_client_prepare_srm_header(const pbap_client_t * client){
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

--- 636 unchanged lines hidden (view full) ---

645
646static void pbap_client_add_application_parameters(const pbap_client_t * client, uint8_t * application_parameters, uint16_t len){
647 if (len > 0){
648 goep_client_header_add_application_parameters(client->goep_cid, &application_parameters[0], len);
649 }
650}
651
652static void pbap_client_prepare_srm_header(const pbap_client_t * client){
653 if (!client->flow_control_enabled){
653 if (!client->flow_control_enabled && goep_client_version_20_or_higher(client->goep_cid)){
654 goep_client_header_add_srm_enable(client->goep_cid);
655 pbap_client->srm_state = SRM_W4_CONFIRM;
656 }
657}
658
659static void pbap_client_prepare_get_operation(pbap_client_t * client){
660 obex_parser_init_for_response(&client->obex_parser, OBEX_OPCODE_GET, pbap_client_parser_callback_get_operation, pbap_client);
661 obex_srm_init(&client->obex_srm);

--- 668 unchanged lines hidden ---
654 goep_client_header_add_srm_enable(client->goep_cid);
655 pbap_client->srm_state = SRM_W4_CONFIRM;
656 }
657}
658
659static void pbap_client_prepare_get_operation(pbap_client_t * client){
660 obex_parser_init_for_response(&client->obex_parser, OBEX_OPCODE_GET, pbap_client_parser_callback_get_operation, pbap_client);
661 obex_srm_init(&client->obex_srm);

--- 668 unchanged lines hidden ---