pbap_client.c (5575558ed0100028c9c5c9efb98a642e49638920) | pbap_client.c (a0506975eb4fa908c15c801fd22b8cd00a74977f) |
---|---|
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 --- 267 unchanged lines hidden (view full) --- 276 goep_client_request_create_abort(pbap_client->goep_cid); 277 goep_client_execute(pbap_client->goep_cid); 278 return; 279 } 280 281 switch (pbap_client->state){ 282 case PBAP_W2_SEND_CONNECT_REQUEST: 283 goep_client_request_create_connect(pbap_client->goep_cid, OBEX_VERSION, 0, OBEX_MAX_PACKETLEN_DEFAULT); | 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 --- 267 unchanged lines hidden (view full) --- 276 goep_client_request_create_abort(pbap_client->goep_cid); 277 goep_client_execute(pbap_client->goep_cid); 278 return; 279 } 280 281 switch (pbap_client->state){ 282 case PBAP_W2_SEND_CONNECT_REQUEST: 283 goep_client_request_create_connect(pbap_client->goep_cid, OBEX_VERSION, 0, OBEX_MAX_PACKETLEN_DEFAULT); |
284 goep_client_header_add_target(pbap_client->goep_cid, pbap_uuid, 18); | 284 goep_client_header_add_target(pbap_client->goep_cid, pbap_uuid, 16); |
285 // Mandatory if the PSE advertises a PbapSupportedFeatures attribute in its SDP record, else excluded. 286 if (goep_client_get_pbap_supported_features(pbap_client->goep_cid) != PBAP_FEATURES_NOT_PRESENT){ 287 application_parameters[0] = PBAP_APPLICATION_PARAMETER_PBAP_SUPPORTED_FEATURES; 288 application_parameters[1] = 4; 289 big_endian_store_32(application_parameters, 2, pbap_supported_features); 290 goep_client_header_add_application_parameters(pbap_client->goep_cid, &application_parameters[0], 6); 291 } 292 pbap_client->state = PBAP_W4_CONNECT_RESPONSE; --- 751 unchanged lines hidden --- | 285 // Mandatory if the PSE advertises a PbapSupportedFeatures attribute in its SDP record, else excluded. 286 if (goep_client_get_pbap_supported_features(pbap_client->goep_cid) != PBAP_FEATURES_NOT_PRESENT){ 287 application_parameters[0] = PBAP_APPLICATION_PARAMETER_PBAP_SUPPORTED_FEATURES; 288 application_parameters[1] = 4; 289 big_endian_store_32(application_parameters, 2, pbap_supported_features); 290 goep_client_header_add_application_parameters(pbap_client->goep_cid, &application_parameters[0], 6); 291 } 292 pbap_client->state = PBAP_W4_CONNECT_RESPONSE; --- 751 unchanged lines hidden --- |