*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
#include <string.h>
+#include <librfid/rfid.h>
#include <librfid/rfid_reader.h>
-#include <librfid/rfid_reader_cm5121.h>
-#include <librfid/rfid_reader_openpcd.h>
#include <librfid/rfid_protocol.h>
#include <librfid/rfid_protocol_tcl.h>
#include <librfid/rfid_protocol_mifare_ul.h>
#include <librfid/rfid_protocol_mifare_classic.h>
+#ifdef LIBRFID_STATIC
+struct rfid_asic_handle rfid_ah;
+struct rfid_layer2_handle rfid_l2h;
+struct rfid_protocol_handle rfid_ph;
+struct rfid_asic_transport_handle rfid_ath;
+struct rfid_reader_handle rfid_rh;
+#endif
+
+#ifndef LIBRFID_FIRMWARE
const char *
rfid_hexdump(const void *data, unsigned int len)
{
}
return string;
}
+#else
+#define rfid_hexdump(x, y) hexdump(x, y)
+#endif
#if 0
int rfid_setopt(struct rfid_handle *rh, unsigned int level,
int rfid_init()
{
- rfid_reader_register(&rfid_reader_cm5121);
- rfid_reader_register(&rfid_reader_openpcd);
- rfid_layer2_register(&rfid_layer2_iso14443a);
- rfid_layer2_register(&rfid_layer2_iso14443b);
- rfid_protocol_register(&rfid_protocol_tcl);
- rfid_protocol_register(&rfid_protocol_mful);
- rfid_protocol_register(&rfid_protocol_mfcl);
-
return 0;
}