From c8d2fdbaf244111a7888b206c802970d2602e3f0 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 6 Jun 2012 22:09:18 +0200 Subject: dev-libs/libnfc: add patch to be able to query bEasyFraming --- dev-libs/libnfc/files/add-get-easy-frameing.patch | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dev-libs/libnfc/files/add-get-easy-frameing.patch (limited to 'dev-libs/libnfc/files/add-get-easy-frameing.patch') diff --git a/dev-libs/libnfc/files/add-get-easy-frameing.patch b/dev-libs/libnfc/files/add-get-easy-frameing.patch new file mode 100644 index 0000000..5d5bd64 --- /dev/null +++ b/dev-libs/libnfc/files/add-get-easy-frameing.patch @@ -0,0 +1,27 @@ +--- libnfc-1.6.0-rc1/include/nfc/nfc.h 2012-03-01 16:02:42.000000000 +0100 ++++ libnfc-1.6.0-rc1/include/nfc/nfc.h 2012-06-06 22:03:00.340374314 +0200 +@@ -105,6 +103,7 @@ + NFC_EXPORT const char *nfc_device_get_connstring (nfc_device *pnd); + NFC_EXPORT int nfc_device_get_supported_modulation (nfc_device *pnd, const nfc_mode mode, const nfc_modulation_type **const supported_mt); + NFC_EXPORT int nfc_device_get_supported_baud_rate (nfc_device *pnd, const nfc_modulation_type nmt, const nfc_baud_rate **const supported_br); ++ NFC_EXPORT bool nfc_device_get_easy_framing (nfc_device *pnd); + + /* Properties accessors */ + NFC_EXPORT int nfc_device_set_property_int (nfc_device *pnd, const nfc_property property, const int value); + +--- libnfc-1.6.0-rc1/libnfc/nfc.c 2012-03-01 16:02:42.000000000 +0100 ++++ libnfc-1.6.0-rc1/libnfc/nfc.c 2012-06-06 22:03:32.110977125 +0200 +@@ -1017,6 +1017,12 @@ + HAL (get_supported_baud_rate, pnd, nmt, supported_br); + } + ++bool ++nfc_device_get_easy_framing (nfc_device *pnd) ++{ ++ return pnd->bEasyFraming; ++} ++ + /* Misc. functions */ + + /** @ingroup misc + -- cgit v1.2.3