xref: /btstack/port/freebsd-netgraph/hci_transport_netgraph.h (revision 22029648dbaf7b329b48db7cbda905ed784c5ee2)
1*22029648SMatthias Ringwald /*
2*22029648SMatthias Ringwald  * Copyright (C) 2023 BlueKitchen GmbH
3*22029648SMatthias Ringwald  *
4*22029648SMatthias Ringwald  * Redistribution and use in source and binary forms, with or without
5*22029648SMatthias Ringwald  * modification, are permitted provided that the following conditions
6*22029648SMatthias Ringwald  * are met:
7*22029648SMatthias Ringwald  *
8*22029648SMatthias Ringwald  * 1. Redistributions of source code must retain the above copyright
9*22029648SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer.
10*22029648SMatthias Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
11*22029648SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer in the
12*22029648SMatthias Ringwald  *    documentation and/or other materials provided with the distribution.
13*22029648SMatthias Ringwald  * 3. Neither the name of the copyright holders nor the names of
14*22029648SMatthias Ringwald  *    contributors may be used to endorse or promote products derived
15*22029648SMatthias Ringwald  *    from this software without specific prior written permission.
16*22029648SMatthias Ringwald  * 4. Any redistribution, use, or modification is done solely for
17*22029648SMatthias Ringwald  *    personal benefit and not for any commercial purpose or for
18*22029648SMatthias Ringwald  *    monetary gain.
19*22029648SMatthias Ringwald  *
20*22029648SMatthias Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
21*22029648SMatthias Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*22029648SMatthias Ringwald  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23*22029648SMatthias Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN
24*22029648SMatthias Ringwald  * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25*22029648SMatthias Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26*22029648SMatthias Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27*22029648SMatthias Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28*22029648SMatthias Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29*22029648SMatthias Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
30*22029648SMatthias Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*22029648SMatthias Ringwald  * SUCH DAMAGE.
32*22029648SMatthias Ringwald  *
33*22029648SMatthias Ringwald  * Please inquire about commercial licensing options at
34*22029648SMatthias Ringwald  * [email protected]
35*22029648SMatthias Ringwald  *
36*22029648SMatthias Ringwald  */
37*22029648SMatthias Ringwald 
38*22029648SMatthias Ringwald /**
39*22029648SMatthias Ringwald  *  @brief TODO
40*22029648SMatthias Ringwald  */
41*22029648SMatthias Ringwald 
42*22029648SMatthias Ringwald #ifndef HCI_TRANSPORT_NETGRAPH_H
43*22029648SMatthias Ringwald #define HCI_TRANSPORT_NETGRAPH_H
44*22029648SMatthias Ringwald 
45*22029648SMatthias Ringwald #include "hci_transport.h"
46*22029648SMatthias Ringwald 
47*22029648SMatthias Ringwald #if defined __cplusplus
48*22029648SMatthias Ringwald extern "C" {
49*22029648SMatthias Ringwald #endif
50*22029648SMatthias Ringwald 
51*22029648SMatthias Ringwald typedef struct {
52*22029648SMatthias Ringwald     hci_transport_config_type_t type;
53*22029648SMatthias Ringwald     const char *device_name;
54*22029648SMatthias Ringwald } hci_transport_config_netgraph_t;
55*22029648SMatthias Ringwald 
56*22029648SMatthias Ringwald const hci_transport_t * hci_transport_netgraph_instance(void);
57*22029648SMatthias Ringwald 
58*22029648SMatthias Ringwald #if defined __cplusplus
59*22029648SMatthias Ringwald }
60*22029648SMatthias Ringwald #endif
61*22029648SMatthias Ringwald #endif // HCI_TRANSPORT_NETGRAPH_H
62