hci_dump.h (eed533f6229f871fb5bfb241d84dda6e6c38175c) hci_dump.h (f471afd8963ca1a5b914db0cbb3471db087f44b8)
1/*
2 * Copyright (C) 2009-2012 by Matthias Ringwald
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37/*
38 * hci_dump.h
39 *
40 * Dump HCI trace as BlueZ's hcidump format, Apple's PacketLogger, or stdout
41 *
42 * Created by Matthias Ringwald on 5/26/09.
43 */
44
1/*
2 * Copyright (C) 2009-2012 by Matthias Ringwald
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37/*
38 * hci_dump.h
39 *
40 * Dump HCI trace as BlueZ's hcidump format, Apple's PacketLogger, or stdout
41 *
42 * Created by Matthias Ringwald on 5/26/09.
43 */
44
45#pragma once
45#ifndef __HCI_DUMP_H
46#define __HCI_DUMP_H
46
47#include <stdint.h>
48
49#if defined __cplusplus
50extern "C" {
51#endif
52
53typedef enum {

--- 6 unchanged lines hidden (view full) ---

60void hci_dump_set_max_packets(int packets); // -1 for unlimited
61void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len);
62void hci_dump_log(const char * format, ...);
63void hci_dump_close(void);
64
65#if defined __cplusplus
66}
67#endif
47
48#include <stdint.h>
49
50#if defined __cplusplus
51extern "C" {
52#endif
53
54typedef enum {

--- 6 unchanged lines hidden (view full) ---

61void hci_dump_set_max_packets(int packets); // -1 for unlimited
62void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len);
63void hci_dump_log(const char * format, ...);
64void hci_dump_close(void);
65
66#if defined __cplusplus
67}
68#endif
69#endif // __HCI_DUMP_H