- fix segfault during rfid_scan()
[librfid] / src / rfid_protocol.c
index 46dc48d..b24243a 100644 (file)
@@ -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;
+}