Allow aware developer to change nfc_connstring size

/!\ Warning: be sure what you are doing if you custom this value...
This commit is contained in:
Romuald Conty 2013-02-19 00:35:57 +01:00
parent 911bbfa38d
commit ef5c39bd7b

View file

@ -3,7 +3,7 @@
* *
* Copyright (C) 2009 Roel Verdult * Copyright (C) 2009 Roel Verdult
* Copyright (C) 2010, 2011 Romain Tartière * 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 * 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 * under the terms of the GNU Lesser General Public License as published by the
@ -32,6 +32,10 @@
# include <stdbool.h> # include <stdbool.h>
# include <stdio.h> # include <stdio.h>
#ifndef NFC_BUFSIZE_CONNSTRING
#define NFC_BUFSIZE_CONNSTRING 1024
#endif
/** /**
* NFC context * NFC context
*/ */
@ -50,7 +54,7 @@ typedef struct nfc_driver nfc_driver;
/** /**
* Connection string * Connection string
*/ */
typedef char nfc_connstring[1024]; typedef char nfc_connstring[NFC_BUFSIZE_CONNSTRING];
/** /**
* Properties * Properties