1*dc5611fdSMilanka Ringwald /* 2*dc5611fdSMilanka Ringwald * Copyright (C) 2014 BlueKitchen GmbH 3*dc5611fdSMilanka Ringwald * 4*dc5611fdSMilanka Ringwald * Redistribution and use in source and binary forms, with or without 5*dc5611fdSMilanka Ringwald * modification, are permitted provided that the following conditions 6*dc5611fdSMilanka Ringwald * are met: 7*dc5611fdSMilanka Ringwald * 8*dc5611fdSMilanka Ringwald * 1. Redistributions of source code must retain the above copyright 9*dc5611fdSMilanka Ringwald * notice, this list of conditions and the following disclaimer. 10*dc5611fdSMilanka Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11*dc5611fdSMilanka Ringwald * notice, this list of conditions and the following disclaimer in the 12*dc5611fdSMilanka Ringwald * documentation and/or other materials provided with the distribution. 13*dc5611fdSMilanka Ringwald * 3. Neither the name of the copyright holders nor the names of 14*dc5611fdSMilanka Ringwald * contributors may be used to endorse or promote products derived 15*dc5611fdSMilanka Ringwald * from this software without specific prior written permission. 16*dc5611fdSMilanka Ringwald * 4. Any redistribution, use, or modification is done solely for 17*dc5611fdSMilanka Ringwald * personal benefit and not for any commercial purpose or for 18*dc5611fdSMilanka Ringwald * monetary gain. 19*dc5611fdSMilanka Ringwald * 20*dc5611fdSMilanka Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21*dc5611fdSMilanka Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22*dc5611fdSMilanka Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23*dc5611fdSMilanka Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 24*dc5611fdSMilanka Ringwald * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25*dc5611fdSMilanka Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26*dc5611fdSMilanka Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27*dc5611fdSMilanka Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28*dc5611fdSMilanka Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29*dc5611fdSMilanka Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30*dc5611fdSMilanka Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31*dc5611fdSMilanka Ringwald * SUCH DAMAGE. 32*dc5611fdSMilanka Ringwald * 33*dc5611fdSMilanka Ringwald * Please inquire about commercial licensing options at 34*dc5611fdSMilanka Ringwald * [email protected] 35*dc5611fdSMilanka Ringwald * 36*dc5611fdSMilanka Ringwald */ 37*dc5611fdSMilanka Ringwald 38*dc5611fdSMilanka Ringwald // ***************************************************************************** 39*dc5611fdSMilanka Ringwald // 40*dc5611fdSMilanka Ringwald // HFP BTstack Mocks 41*dc5611fdSMilanka Ringwald // 42*dc5611fdSMilanka Ringwald // ***************************************************************************** 43*dc5611fdSMilanka Ringwald 44*dc5611fdSMilanka Ringwald #include <stdint.h> 45*dc5611fdSMilanka Ringwald #include <stdio.h> 46*dc5611fdSMilanka Ringwald #include <stdlib.h> 47*dc5611fdSMilanka Ringwald #include <string.h> 48*dc5611fdSMilanka Ringwald 49*dc5611fdSMilanka Ringwald // HFP Mock API 50*dc5611fdSMilanka Ringwald uint8_t * get_rfcomm_payload(); 51*dc5611fdSMilanka Ringwald uint16_t get_rfcomm_payload_len(); 52*dc5611fdSMilanka Ringwald void inject_rfcomm_command(uint8_t * data, int len); 53*dc5611fdSMilanka Ringwald int expected_rfcomm_command(const char * cmd); 54