diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-10-08 01:05:50 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-10-08 01:05:50 +0000 |
commit | 6e87a007525b313dcf2da194977bb1abdf62026f (patch) | |
tree | 0d4d3d8947bffe5fd69cede516241e923f938276 /include | |
parent | 1db4b3b435b8e79c36ac12515152168a45e5ac8e (diff) |
- fix segfault during rfid_scan()
- add accessor functions for protocol and layer2 names
- print l2 and proto name + uid after successful scan
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1899 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'include')
-rw-r--r-- | include/librfid/rfid_layer2.h | 2 | ||||
-rw-r--r-- | include/librfid/rfid_protocol.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/librfid/rfid_layer2.h b/include/librfid/rfid_layer2.h index 514a735..0f6f683 100644 --- a/include/librfid/rfid_layer2.h +++ b/include/librfid/rfid_layer2.h @@ -34,7 +34,7 @@ int rfid_layer2_getopt(struct rfid_layer2_handle *ph, int optname, void *optval, unsigned int *optlen); int rfid_layer2_setopt(struct rfid_layer2_handle *ph, int optname, const void *optval, unsigned int optlen); - +char *rfid_layer2_name(struct rfid_layer2_handle *l2h); #ifdef __LIBRFID__ #include <librfid/rfid_layer2_iso14443a.h> diff --git a/include/librfid/rfid_protocol.h b/include/librfid/rfid_protocol.h index d1960ef..28fae69 100644 --- a/include/librfid/rfid_protocol.h +++ b/include/librfid/rfid_protocol.h @@ -27,6 +27,8 @@ rfid_protocol_write(struct rfid_protocol_handle *ph, int rfid_protocol_fini(struct rfid_protocol_handle *ph); int rfid_protocol_close(struct rfid_protocol_handle *ph); +char *rfid_protocol_name(struct rfid_protocol_handle *ph); + enum rfid_protocol_id { RFID_PROTOCOL_UNKNOWN, RFID_PROTOCOL_TCL, |