goep_client.c (cc92f22bee26a7cb6d2d16e105e8269f520f9968) | goep_client.c (d76b11194250071a124a8301ad2379d2f4df6221) |
---|---|
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 --- 366 unchanged lines hidden (view full) --- 375 376void goep_client_init(void){ 377 memset(goep_client, 0, sizeof(goep_client_t)); 378 goep_client->state = GOEP_INIT; 379 goep_client->cid = 1; 380 goep_client->obex_connection_id = OBEX_CONNECTION_ID_INVALID; 381} 382 | 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 --- 366 unchanged lines hidden (view full) --- 375 376void goep_client_init(void){ 377 memset(goep_client, 0, sizeof(goep_client_t)); 378 goep_client->state = GOEP_INIT; 379 goep_client->cid = 1; 380 goep_client->obex_connection_id = OBEX_CONNECTION_ID_INVALID; 381} 382 |
383void goep_client_deinit(void){ 384} 385 |
|
383uint8_t goep_client_create_connection(btstack_packet_handler_t handler, bd_addr_t addr, uint16_t uuid, uint16_t * out_cid){ 384 goep_client_t * context = goep_client; 385 if (context->state != GOEP_INIT) return BTSTACK_MEMORY_ALLOC_FAILED; 386 context->client_handler = handler; 387 context->state = GOEP_W4_SDP; 388 context->l2cap_psm = 0; 389 context->rfcomm_port = 0; 390 context->pbap_supported_features = PBAP_FEATURES_NOT_PRESENT; --- 206 unchanged lines hidden --- | 386uint8_t goep_client_create_connection(btstack_packet_handler_t handler, bd_addr_t addr, uint16_t uuid, uint16_t * out_cid){ 387 goep_client_t * context = goep_client; 388 if (context->state != GOEP_INIT) return BTSTACK_MEMORY_ALLOC_FAILED; 389 context->client_handler = handler; 390 context->state = GOEP_W4_SDP; 391 context->l2cap_psm = 0; 392 context->rfcomm_port = 0; 393 context->pbap_supported_features = PBAP_FEATURES_NOT_PRESENT; --- 206 unchanged lines hidden --- |