From ef5c39bd7b4e55f7b48f2ae5ae93c673cb42e621 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Tue, 19 Feb 2013 00:35:57 +0100 Subject: [PATCH] Allow aware developer to change nfc_connstring size /!\ Warning: be sure what you are doing if you custom this value... --- include/nfc/nfc-types.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/nfc/nfc-types.h b/include/nfc/nfc-types.h index d2e8d91..f3a6891 100644 --- a/include/nfc/nfc-types.h +++ b/include/nfc/nfc-types.h @@ -3,7 +3,7 @@ * * Copyright (C) 2009 Roel Verdult * Copyright (C) 2010, 2011 Romain Tartière - * Copyright (C) 2010, 2011, 2012 Romuald Conty + * Copyright (C) 2010, 2011, 2012, 2013 Romuald Conty * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the @@ -32,6 +32,10 @@ # include # include +#ifndef NFC_BUFSIZE_CONNSTRING +#define NFC_BUFSIZE_CONNSTRING 1024 +#endif + /** * NFC context */ @@ -50,7 +54,7 @@ typedef struct nfc_driver nfc_driver; /** * Connection string */ -typedef char nfc_connstring[1024]; +typedef char nfc_connstring[NFC_BUFSIZE_CONNSTRING]; /** * Properties