From 36751e15b8ac7a0ed5809385645150ffaaf114d1 Mon Sep 17 00:00:00 2001 From: laforge Date: Sat, 14 Oct 2006 15:22:36 +0000 Subject: - remove prototypes for already-removed _register() functions from headers - automatically define LIBRFID_STATIC if LIBRFID_FIRMWARE is set - remove any references to printf/snprintf - remove bogus free() in 14443b_init git-svn-id: https://svn.gnumonks.org/trunk/librfid@1905 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/librfid/rfid_protocol.h | 2 -- include/librfid/rfid_reader.h | 3 --- include/librfid/rfid_system.h | 6 +++++- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/librfid/rfid_protocol.h b/include/librfid/rfid_protocol.h index 28fae69..2b02a42 100644 --- a/include/librfid/rfid_protocol.h +++ b/include/librfid/rfid_protocol.h @@ -68,8 +68,6 @@ struct rfid_protocol { } fn; }; -int rfid_protocol_register(struct rfid_protocol *p); - #include #include #include diff --git a/include/librfid/rfid_reader.h b/include/librfid/rfid_reader.h index 2221abd..2a5c2d1 100644 --- a/include/librfid/rfid_reader.h +++ b/include/librfid/rfid_reader.h @@ -63,9 +63,6 @@ struct rfid_reader_handle { struct rfid_reader *reader; }; - -extern int rfid_reader_register(struct rfid_reader *r); - extern struct rfid_reader_handle * rfid_reader_open(void *data, unsigned int id); diff --git a/include/librfid/rfid_system.h b/include/librfid/rfid_system.h index 9b07cf7..7f9c1b3 100644 --- a/include/librfid/rfid_system.h +++ b/include/librfid/rfid_system.h @@ -1,10 +1,14 @@ /* system / environment specific defines */ /* build for openpcd firmware */ -//#define LIBRFID_FIRMWARE +#define LIBRFID_FIRMWARE /* build without dynamic allocations */ +//#define LIBRFID_STATIC +// +#ifdef LIBRFID_FIRMWARE #define LIBRFID_STATIC +#endif #ifdef __LIBRFID__ -- cgit v1.2.3