}
}
-static void do_write(struct timeval *tv, uint32_t flags,
+void btsnoop_write(struct timeval *tv, uint32_t flags,
const void *data, uint16_t size)
{
struct btsnoop_pkt pkt;
return;
}
- do_write(tv, flags, data, size);
+ btsnoop_write(tv, flags, data, size);
}
int btsnoop_open(const char *path, uint32_t *type)
#define BTSNOOP_TYPE_EXTENDED_HCI 2001
void btsnoop_create(const char *path, uint32_t type);
+void btsnoop_write(struct timeval *tv, uint32_t flags,
+ const void *data, uint16_t size);
void btsnoop_write_hci(struct timeval *tv, uint16_t index, uint16_t opcode,
const void *data, uint16_t size);
int btsnoop_open(const char *path, uint32_t *type);