1*1e2cd7c0SMilanka Ringwald /* 2*1e2cd7c0SMilanka Ringwald * Copyright (C) 2021 BlueKitchen GmbH 3*1e2cd7c0SMilanka Ringwald * 4*1e2cd7c0SMilanka Ringwald * Redistribution and use in source and binary forms, with or without 5*1e2cd7c0SMilanka Ringwald * modification, are permitted provided that the following conditions 6*1e2cd7c0SMilanka Ringwald * are met: 7*1e2cd7c0SMilanka Ringwald * 8*1e2cd7c0SMilanka Ringwald * 1. Redistributions of source code must retain the above copyright 9*1e2cd7c0SMilanka Ringwald * notice, this list of conditions and the following disclaimer. 10*1e2cd7c0SMilanka Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11*1e2cd7c0SMilanka Ringwald * notice, this list of conditions and the following disclaimer in the 12*1e2cd7c0SMilanka Ringwald * documentation and/or other materials provided with the distribution. 13*1e2cd7c0SMilanka Ringwald * 3. Neither the name of the copyright holders nor the names of 14*1e2cd7c0SMilanka Ringwald * contributors may be used to endorse or promote products derived 15*1e2cd7c0SMilanka Ringwald * from this software without specific prior written permission. 16*1e2cd7c0SMilanka Ringwald * 17*1e2cd7c0SMilanka Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 18*1e2cd7c0SMilanka Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19*1e2cd7c0SMilanka Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 20*1e2cd7c0SMilanka Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN 21*1e2cd7c0SMilanka Ringwald * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 22*1e2cd7c0SMilanka Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 23*1e2cd7c0SMilanka Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 24*1e2cd7c0SMilanka Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 25*1e2cd7c0SMilanka Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26*1e2cd7c0SMilanka Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 27*1e2cd7c0SMilanka Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28*1e2cd7c0SMilanka Ringwald * SUCH DAMAGE. 29*1e2cd7c0SMilanka Ringwald * 30*1e2cd7c0SMilanka Ringwald */ 31*1e2cd7c0SMilanka Ringwald 32*1e2cd7c0SMilanka Ringwald /** 33*1e2cd7c0SMilanka Ringwald * @title Memory TLV Instance 34*1e2cd7c0SMilanka Ringwald * 35*1e2cd7c0SMilanka Ringwald * Empty implementation for BTstack's Tag Value Length Persistent Storage implementations 36*1e2cd7c0SMilanka Ringwald * No keys are stored. Can be used as placeholder during porting to new platform. 37*1e2cd7c0SMilanka Ringwald */ 38*1e2cd7c0SMilanka Ringwald 39*1e2cd7c0SMilanka Ringwald #ifndef MOCK_BTSTACK_TLV_H 40*1e2cd7c0SMilanka Ringwald #define MOCK_BTSTACK_TLV_H 41*1e2cd7c0SMilanka Ringwald 42*1e2cd7c0SMilanka Ringwald #include <stdint.h> 43*1e2cd7c0SMilanka Ringwald #include "btstack_tlv.h" 44*1e2cd7c0SMilanka Ringwald 45*1e2cd7c0SMilanka Ringwald #if defined __cplusplus 46*1e2cd7c0SMilanka Ringwald extern "C" { 47*1e2cd7c0SMilanka Ringwald #endif 48*1e2cd7c0SMilanka Ringwald 49*1e2cd7c0SMilanka Ringwald /* API_START */ 50*1e2cd7c0SMilanka Ringwald typedef struct { 51*1e2cd7c0SMilanka Ringwald btstack_linked_list_t entry_list; 52*1e2cd7c0SMilanka Ringwald } mock_btstack_tlv_t; 53*1e2cd7c0SMilanka Ringwald 54*1e2cd7c0SMilanka Ringwald /** 55*1e2cd7c0SMilanka Ringwald * Init Tag Length Value Store 56*1e2cd7c0SMilanka Ringwald * @param self mock_btstack_tlv_t 57*1e2cd7c0SMilanka Ringwald */ 58*1e2cd7c0SMilanka Ringwald const btstack_tlv_t * mock_btstack_tlv_init_instance(mock_btstack_tlv_t * self); 59*1e2cd7c0SMilanka Ringwald 60*1e2cd7c0SMilanka Ringwald /** 61*1e2cd7c0SMilanka Ringwald * Free TLV entries 62*1e2cd7c0SMilanka Ringwald * @param self mock_btstack_tlv_t 63*1e2cd7c0SMilanka Ringwald */ 64*1e2cd7c0SMilanka Ringwald void mock_btstack_tlv_deinit(mock_btstack_tlv_t * self); 65*1e2cd7c0SMilanka Ringwald 66*1e2cd7c0SMilanka Ringwald /* API_END */ 67*1e2cd7c0SMilanka Ringwald 68*1e2cd7c0SMilanka Ringwald #if defined __cplusplus 69*1e2cd7c0SMilanka Ringwald } 70*1e2cd7c0SMilanka Ringwald #endif 71*1e2cd7c0SMilanka Ringwald #endif // MOCK_BTSTACK_TLV_H 72