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