From 6e87a007525b313dcf2da194977bb1abdf62026f Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 8 Oct 2006 01:05:50 +0000 Subject: - 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 --- include/librfid/rfid_layer2.h | 2 +- include/librfid/rfid_protocol.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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 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, -- cgit v1.2.3