1454952e5SMatthias Ringwald /* 2454952e5SMatthias Ringwald * Copyright (C) 2017 BlueKitchen GmbH 3454952e5SMatthias Ringwald * 4454952e5SMatthias Ringwald * Redistribution and use in source and binary forms, with or without 5454952e5SMatthias Ringwald * modification, are permitted provided that the following conditions 6454952e5SMatthias Ringwald * are met: 7454952e5SMatthias Ringwald * 8454952e5SMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 9454952e5SMatthias Ringwald * notice, this list of conditions and the following disclaimer. 10454952e5SMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11454952e5SMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 12454952e5SMatthias Ringwald * documentation and/or other materials provided with the distribution. 13454952e5SMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 14454952e5SMatthias Ringwald * contributors may be used to endorse or promote products derived 15454952e5SMatthias Ringwald * from this software without specific prior written permission. 16454952e5SMatthias Ringwald * 17*2fca4dadSMilanka Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 18454952e5SMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19454952e5SMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 20*2fca4dadSMilanka Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN 21*2fca4dadSMilanka Ringwald * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 22454952e5SMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 23454952e5SMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 24454952e5SMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 25454952e5SMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 26454952e5SMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 27454952e5SMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28454952e5SMatthias Ringwald * SUCH DAMAGE. 29454952e5SMatthias Ringwald * 30454952e5SMatthias Ringwald */ 31454952e5SMatthias Ringwald 32454952e5SMatthias Ringwald #define BTSTACK_FILE__ "btstack_tlv_none.c" 33454952e5SMatthias Ringwald 34454952e5SMatthias Ringwald #include "btstack_tlv.h" 35454952e5SMatthias Ringwald #include "btstack_tlv_none.h" 36454952e5SMatthias Ringwald 37454952e5SMatthias Ringwald /** 38454952e5SMatthias Ringwald * Get Value for Tag 39454952e5SMatthias Ringwald * @param tag 40454952e5SMatthias Ringwald * @param buffer 41454952e5SMatthias Ringwald * @param buffer_size 426b65794dSMilanka Ringwald * @return size of value 43454952e5SMatthias Ringwald */ 44454952e5SMatthias Ringwald static int btstack_tlv_none_get_tag(void * context, uint32_t tag, uint8_t * buffer, uint32_t buffer_size){ 45454952e5SMatthias Ringwald return 0; 46454952e5SMatthias Ringwald } 47454952e5SMatthias Ringwald 48454952e5SMatthias Ringwald /** 49454952e5SMatthias Ringwald * Store Tag 50454952e5SMatthias Ringwald * @param tag 51454952e5SMatthias Ringwald * @param data 52454952e5SMatthias Ringwald * @param data_size 53454952e5SMatthias Ringwald */ 54454952e5SMatthias Ringwald static int btstack_tlv_none_store_tag(void * context, uint32_t tag, const uint8_t * data, uint32_t data_size){ 55454952e5SMatthias Ringwald return 0; 56454952e5SMatthias Ringwald } 57454952e5SMatthias Ringwald 58454952e5SMatthias Ringwald /** 59454952e5SMatthias Ringwald * Delete Tag 60454952e5SMatthias Ringwald * @param tag 61454952e5SMatthias Ringwald */ 62454952e5SMatthias Ringwald static void btstack_tlv_none_delete_tag(void * context, uint32_t tag){ 63454952e5SMatthias Ringwald } 64454952e5SMatthias Ringwald 65454952e5SMatthias Ringwald static const btstack_tlv_t btstack_tlv_none = { 66454952e5SMatthias Ringwald /* int (*get_tag)(..); */ &btstack_tlv_none_get_tag, 67454952e5SMatthias Ringwald /* int (*store_tag)(..); */ &btstack_tlv_none_store_tag, 68454952e5SMatthias Ringwald /* void (*delete_tag)(v..); */ &btstack_tlv_none_delete_tag, 69454952e5SMatthias Ringwald }; 70454952e5SMatthias Ringwald 71454952e5SMatthias Ringwald /** 72454952e5SMatthias Ringwald * Init Tag Length Value Store 73454952e5SMatthias Ringwald */ 74454952e5SMatthias Ringwald const btstack_tlv_t * btstack_tlv_none_init_instance(void){ 75454952e5SMatthias Ringwald return &btstack_tlv_none; 76454952e5SMatthias Ringwald } 77454952e5SMatthias Ringwald 78