goep_client.c (c997a1dfdece535134f5f63e6144cd78b73304fd) goep_client.c (0e57192257bd32f166f54add846b90086565e919)
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

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

524 goep_client->cid = goep_client_cid;
525 goep_client->client_handler = handler;
526 goep_client->profile_supported_features = PROFILE_FEATURES_NOT_PRESENT;
527 (void)memcpy(goep_client->bd_addr, addr, 6);
528 goep_client->obex_connection_id = OBEX_CONNECTION_ID_INVALID;
529 memcpy(&goep_client->ertm_config, l2cap_ertm_config, sizeof(l2cap_ertm_config_t));
530 goep_client->ertm_buffer_size = l2cap_ertm_buffer_size;
531 goep_client->ertm_buffer = l2cap_ertm_buffer;
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

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

524 goep_client->cid = goep_client_cid;
525 goep_client->client_handler = handler;
526 goep_client->profile_supported_features = PROFILE_FEATURES_NOT_PRESENT;
527 (void)memcpy(goep_client->bd_addr, addr, 6);
528 goep_client->obex_connection_id = OBEX_CONNECTION_ID_INVALID;
529 memcpy(&goep_client->ertm_config, l2cap_ertm_config, sizeof(l2cap_ertm_config_t));
530 goep_client->ertm_buffer_size = l2cap_ertm_buffer_size;
531 goep_client->ertm_buffer = l2cap_ertm_buffer;
532 btstack_linked_list_add(&goep_clients, (btstack_linked_item_t *) goep_client);
532 btstack_linked_list_add_tail(&goep_clients, (btstack_linked_item_t *) goep_client);
533
534 goep_client->l2cap_psm = l2cap_psm;
535
536 *out_cid = goep_client->cid;
537
538 return goep_client_start_connect(goep_client);
539}
540#endif

--- 351 unchanged lines hidden ---
533
534 goep_client->l2cap_psm = l2cap_psm;
535
536 *out_cid = goep_client->cid;
537
538 return goep_client_start_connect(goep_client);
539}
540#endif

--- 351 unchanged lines hidden ---