1*ee252d54SMatthias Ringwald /* 2*ee252d54SMatthias Ringwald * Copyright (C) 2018 BlueKitchen GmbH 3*ee252d54SMatthias Ringwald * 4*ee252d54SMatthias Ringwald * Redistribution and use in source and binary forms, with or without 5*ee252d54SMatthias Ringwald * modification, are permitted provided that the following conditions 6*ee252d54SMatthias Ringwald * are met: 7*ee252d54SMatthias Ringwald * 8*ee252d54SMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 9*ee252d54SMatthias Ringwald * notice, this list of conditions and the following disclaimer. 10*ee252d54SMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11*ee252d54SMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 12*ee252d54SMatthias Ringwald * documentation and/or other materials provided with the distribution. 13*ee252d54SMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 14*ee252d54SMatthias Ringwald * contributors may be used to endorse or promote products derived 15*ee252d54SMatthias Ringwald * from this software without specific prior written permission. 16*ee252d54SMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 17*ee252d54SMatthias Ringwald * personal benefit and not for any commercial purpose or for 18*ee252d54SMatthias Ringwald * monetary gain. 19*ee252d54SMatthias Ringwald * 20*ee252d54SMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21*ee252d54SMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22*ee252d54SMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23*ee252d54SMatthias Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 24*ee252d54SMatthias Ringwald * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25*ee252d54SMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26*ee252d54SMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27*ee252d54SMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28*ee252d54SMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29*ee252d54SMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30*ee252d54SMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31*ee252d54SMatthias Ringwald * SUCH DAMAGE. 32*ee252d54SMatthias Ringwald * 33*ee252d54SMatthias Ringwald * Please inquire about commercial licensing options at 34*ee252d54SMatthias Ringwald * [email protected] 35*ee252d54SMatthias Ringwald * 36*ee252d54SMatthias Ringwald */ 37*ee252d54SMatthias Ringwald 38*ee252d54SMatthias Ringwald 39*ee252d54SMatthias Ringwald /* 40*ee252d54SMatthias Ringwald * btstack_server.h 41*ee252d54SMatthias Ringwald * 42*ee252d54SMatthias Ringwald * BTstack server for use either standalone or inside an application process 43*ee252d54SMatthias Ringwald * 44*ee252d54SMatthias Ringwald */ 45*ee252d54SMatthias Ringwald 46*ee252d54SMatthias Ringwald #ifndef __BTSTACK_SERVER_H 47*ee252d54SMatthias Ringwald #define __BTSTACK_SERVER_H 48*ee252d54SMatthias Ringwald 49*ee252d54SMatthias Ringwald /** 50*ee252d54SMatthias Ringwald * @brief Start BTstack Server either with TCP or Unix Domain Socket 51*ee252d54SMatthias Ringwald * @param tcp_flag 1=start TCP Server, 0=start Unix Socket Server 52*ee252d54SMatthias Ringwald * @returns 0 on success 53*ee252d54SMatthias Ringwald */ 54*ee252d54SMatthias Ringwald int btstack_server_run(int tcp_flag); 55*ee252d54SMatthias Ringwald 56*ee252d54SMatthias Ringwald /** 57*ee252d54SMatthias Ringwald * @brief Start BTstack Server with TCP Socket 58*ee252d54SMatthias Ringwald * @param tcp_flag 1=start TCP Server, 0=start Unix Socket Server 59*ee252d54SMatthias Ringwald * @returns 0 on success 60*ee252d54SMatthias Ringwald */ 61*ee252d54SMatthias Ringwald int btstack_server_run_tcp(void); 62*ee252d54SMatthias Ringwald 63*ee252d54SMatthias Ringwald #endif 64