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