build: Add magic file for BTSnoop file format

This commit is contained in:
Marcel Holtmann 2012-12-21 12:15:31 -08:00
parent 505bac019a
commit e33fe5dec2
2 changed files with 15 additions and 0 deletions

View File

@ -205,6 +205,8 @@ EXTRA_DIST += doc/alert-api.txt \
EXTRA_DIST += doc/obex-api.txt doc/obex-agent-api.txt
EXTRA_DIST += tools/magic.btsnoop
AM_CFLAGS += @DBUS_CFLAGS@ @GLIB_CFLAGS@
AM_CPPFLAGS = -I$(builddir)/lib -I$(builddir)/src -I$(srcdir)/src \

13
tools/magic.btsnoop Normal file
View File

@ -0,0 +1,13 @@
#------------------------------------------------------------------------------
# BTSnoop: file(1) magic for BTSnoop files
#
# From <marcel@holtmann.org>
0 string btsnoop\0 BTSnoop
>8 belong x version %d,
>12 belong 1001 Unencapsulated HCI
>12 belong 1002 HCI UART (H4)
>12 belong 1003 HCI BCSP
>12 belong 1004 HCI Serial (H5)
>12 belong 2001 Bluetooth monitor
>>12 belong x type %d