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 /src/rfid_protocol.c | |
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 'src/rfid_protocol.c')
-rw-r--r-- | src/rfid_protocol.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rfid_protocol.c b/src/rfid_protocol.c index 46dc48d..b24243a 100644 --- a/src/rfid_protocol.c +++ b/src/rfid_protocol.c @@ -111,3 +111,8 @@ rfid_protocol_register(struct rfid_protocol *p) return 0; } + +char *rfid_protocol_name(struct rfid_protocol_handle *ph) +{ + return ph->proto->name; +} |