1ccaa09baSMatthias Ringwald /* 2*a8a70d91SDirk Helbig * Copyright (C) 2023 BlueKitchen GmbH 3ccaa09baSMatthias Ringwald * 4ccaa09baSMatthias Ringwald * Redistribution and use in source and binary forms, with or without 5ccaa09baSMatthias Ringwald * modification, are permitted provided that the following conditions 6ccaa09baSMatthias Ringwald * are met: 7ccaa09baSMatthias Ringwald * 8ccaa09baSMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 9ccaa09baSMatthias Ringwald * notice, this list of conditions and the following disclaimer. 10ccaa09baSMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11ccaa09baSMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 12ccaa09baSMatthias Ringwald * documentation and/or other materials provided with the distribution. 13ccaa09baSMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 14ccaa09baSMatthias Ringwald * contributors may be used to endorse or promote products derived 15ccaa09baSMatthias Ringwald * from this software without specific prior written permission. 16ccaa09baSMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 17ccaa09baSMatthias Ringwald * personal benefit and not for any commercial purpose or for 18ccaa09baSMatthias Ringwald * monetary gain. 19ccaa09baSMatthias Ringwald * 20ccaa09baSMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21ccaa09baSMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22ccaa09baSMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 232fca4dadSMilanka Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN 242fca4dadSMilanka Ringwald * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25ccaa09baSMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26ccaa09baSMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27ccaa09baSMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28ccaa09baSMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29ccaa09baSMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30ccaa09baSMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31ccaa09baSMatthias Ringwald * SUCH DAMAGE. 32ccaa09baSMatthias Ringwald * 33ccaa09baSMatthias Ringwald * Please inquire about commercial licensing options at 34ccaa09baSMatthias Ringwald * [email protected] 35ccaa09baSMatthias Ringwald * 36ccaa09baSMatthias Ringwald */ 37ccaa09baSMatthias Ringwald 3880e33422SMatthias Ringwald #ifndef BTSTACK_STDIN_H 3980e33422SMatthias Ringwald #define BTSTACK_STDIN_H 40ccaa09baSMatthias Ringwald 41ccaa09baSMatthias Ringwald #include "btstack_run_loop.h" 42ccaa09baSMatthias Ringwald 43ccaa09baSMatthias Ringwald #if defined __cplusplus 44ccaa09baSMatthias Ringwald extern "C" { 45ccaa09baSMatthias Ringwald #endif 46ccaa09baSMatthias Ringwald 47ccaa09baSMatthias Ringwald // setup handler for command line interface 4895a8ee01SMatthias Ringwald void btstack_stdin_setup(void (*stdin_handler)(char c)); 49ccaa09baSMatthias Ringwald 50ccaa09baSMatthias Ringwald // gets called by main.c 51ccaa09baSMatthias Ringwald void btstack_stdin_reset(void); 52ccaa09baSMatthias Ringwald 53ccaa09baSMatthias Ringwald #if defined __cplusplus 54ccaa09baSMatthias Ringwald } 55ccaa09baSMatthias Ringwald #endif 56ccaa09baSMatthias Ringwald 57ccaa09baSMatthias Ringwald #endif 58