Commit graph

1020 commits

Author SHA1 Message Date
Romuald Conty
d642b59300 Updated Debian package changelog. 2010-01-29 14:36:32 +00:00
Romain Tartiere
10183ffd22 ATM, there is no particular reason to keep O_NDELAY in open(2) flags (not defined by POSIX, BTW), but a particular reason to suppress it: it breaks build on FreeBSD. 2010-01-28 15:46:55 +00:00
Romain Tartiere
19672806d2 Fix some more cc warnings. 2010-01-28 15:42:50 +00:00
Romain Tartiere
4669279589 Add missing header. Fix build at least on FreeBSD 7.2.
Reported by:	tinderbox
2010-01-28 14:32:23 +00:00
Romain Tartiere
7d20198520 Tweak the libusb detection.
1. Try to use pkg-config to locate libusb;
  2. Try with libusb-config if not found;
  3. Try to locate headers and lib if still not found.

This would hopefully prevent build failures in some very particular cases, such as cross compiling libnfc on a FreeBSD version for another FreeBSD version that does not use the same libusb.

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/142836

Reported by:	Dmitry Marakasov
2010-01-28 13:56:04 +00:00
Romuald Conty
d7aeb8fb5b Prepare 1.3.1 2010-01-19 15:52:45 +00:00
Romuald Conty
2d4bdf28a1 Serial autoprobing is now DISABLED as default, fix Issue 58. 2010-01-18 11:23:07 +00:00
Romuald Conty
1e2ccbf9ff Clean up after building doc archive. 2010-01-18 11:20:38 +00:00
Romuald Conty
abdc67ff4e Improve releaser script by adding documentation generation. 2010-01-18 10:30:11 +00:00
Romuald Conty
2ebafcffaf Description changed for Debian. 2010-01-18 10:29:23 +00:00
Romain Tartiere
e92de4d49e Ensure UART file descriptors are valid before using them in uart_close ().
The uart_open() function may call uart_close() with a 'serial_port' structure with an invalid member 'fd' if the port was not opened successfully.  The call to uart_close() was kept for consistency with the rest of the function because uart_close() is also in charge of freeing 'serial_port'.
2010-01-15 10:38:50 +00:00
Romain Tartiere
3f8068b760 Include "config.h" at the beginning of all source code, remove it from headers.
While here distinguish licence comments using the /*- special comment delimiter.
2010-01-15 10:18:11 +00:00
Romuald Conty
2e5236561e Oups, typo. 2010-01-15 09:59:59 +00:00
Romuald Conty
f057b26afa Another fix for Windows zip generation. 2010-01-14 16:44:07 +00:00
Romuald Conty
99c2a0aaf5 Update ChangeLog. 2010-01-14 16:33:08 +00:00
Romuald Conty
de8efd6855 Add missing files in windows archive. 2010-01-14 16:04:48 +00:00
Romuald Conty
4ad52aba57 Minor typo in debian files. 2010-01-14 15:58:58 +00:00
Romuald Conty
9ca2d3abfc Update tarballs generation script. 2010-01-14 15:54:55 +00:00
Romuald Conty
762079d066 Include config.h must be used with HAVE_CONFIG_H define. 2010-01-14 15:53:49 +00:00
Roel Verdult
15981b743e fixed windows compiling issues 2010-01-13 16:23:06 +00:00
Roel Verdult
f8b3ba9ab6 fixed windows compiling with 'free' Windows 7 SDK, currently dropped default libusb support 2010-01-13 15:57:46 +00:00
Roel Verdult
4179bb1918 ARYGON ADRB-USB 9600 baud note, removed invalid connection Mac OS X string for pn532 uart. This only applies for ARYGON devices since they use a silabs-usb-to-uart chip 2010-01-13 14:24:29 +00:00
Romuald Conty
f6a3ee94be Update Doxyfile.in using doxygen -u as suggested by Doxygen during doc compilation. 2010-01-13 14:18:40 +00:00
Francois Kooman
271fbc7589 enable Doxygen makefile "make doc" target for CMake builds 2010-01-12 19:27:37 +00:00
Romuald Conty
e4ca9245ec C99 compiler is a requirement so we don't need --enable-std99 anymore.
Define _XOPEN_SOURCE 600 using config.h
2010-01-12 17:58:13 +00:00
Romuald Conty
0b720d30cd Avoid BUFSIZ usage since it will be a HUGE buffer under linux (8192 bytes). 2010-01-12 12:47:26 +00:00
Romuald Conty
f0acc73541 Fix compilation warnings. Fix Issue 52. 2010-01-12 12:36:43 +00:00
Romuald Conty
e2336b8b90 Add mainpage, and fex useful pages, to generated documentation. 2010-01-12 12:03:20 +00:00
Romuald Conty
864a482e88 Minor code cleanup. 2010-01-12 11:50:09 +00:00
Francois Kooman
fe0396e392 fix CMake build files 2010-01-11 20:33:46 +00:00
Romuald Conty
9cc3dca98b Improve Doxygen generation.
Move doxygen comment from header to source (make installed header more cleaner).
2010-01-10 18:14:26 +00:00
Romain Tartiere
31597117a2 Update the ChangeLog entry of FreeBSD support (libnfc has not been run on a "today current" -CURRENT FreeBSD system. It's smooth on -STABLE BTW).
While here, fix a typo and adjust style for consistency.
2010-01-06 10:24:49 +00:00
Romuald Conty
377caecefe Allow all ACS ACR122U to be detected as valid NFC device. 2010-01-03 12:48:21 +00:00
Romain Tartiere
73448612af Increase _XOPEN_SOURCE to 600.
The snprintf() function conforms to C99.  On FreeBSD, sys/cdefs.h instruct us that _XOPEN_SOURCE == 500 defines _POSIX_C_SOURCE as 199506 which in turn defines __ISO_C_VISIBLE as 1990.  600 is the minimal _XOPEN_SOURCE value we can use to allow us using C99 functions.

Reported by:	tinderbox
2009-12-23 12:01:40 +00:00
Romain Tartiere
e0fab1c9a7 Add stdlib.h header where applicable (where we call malloc() / free()).
Reported by:	tinderbox
2009-12-23 11:56:56 +00:00
Romain Tartiere
aa7d7171c8 Sync libnfc.pc includedir with the rest of the project source files.
When I introduced headers separation (aka includes-revamp branch), the libnfc source code includes have been changed from '#include "../xx/nfc*.h"' to '#include <nfc/nfc*>' (when compiling, the source include dir (src/include) has precedence over '${prefix}/include').  For the sake of consistency, update libnfc.pc includedir so that compiling third party code using '#include <nfc/nfc*>' just works (tm).  This provides much more consistent headers since they are usually referred relative to the includedir (exceptions are e.g. glib, gtk, xorg... quite bigger than libnfc I could say).
2009-12-22 21:02:19 +00:00
Romuald Conty
2079016a04 Remove autoreconf warnings by adding m4 directory 2009-12-20 19:14:41 +00:00
Adam Laurie
c0493a91e0 fix warning '... discards qualifiers from pointer target type' (missing const) 2009-12-17 10:01:40 +00:00
Romain Tartiere
61a0aba66e Make use of the new AM_SILENT_RULES macro of automake 1.11 if possible.
We can see warnings again!
2009-12-16 23:16:21 +00:00
Romain Tartiere
462d986633 Free memory allocated by pick_device() once we are connected to the device in nfc_connect(). 2009-12-16 23:14:31 +00:00
Adam Laurie
51854f508c add nfc_device_name() routine to allow external languages to extract device name 2009-12-14 19:18:29 +00:00
Adam Laurie
6a97e694ec preserve PCSC device name 2009-12-13 17:38:50 +00:00
Adam Laurie
a0cdc3e0d4 ensure USB name is blank before we start 2009-12-09 11:20:28 +00:00
Adam Laurie
a3f573cdff report device names and a little tidying up 2009-12-09 10:36:27 +00:00
Romuald Conty
20df0d785d Speed up PN532_UART driver by removing useless delay. Thanks to Zuck for issue reporting. 2009-12-09 10:32:55 +00:00
Adam Laurie
c15fc93494 simplify abstraction of pn531/pn533 and remove more duplicate code 2009-12-08 21:06:59 +00:00
Emanuele Bertoldi
673986835a Fix Issue 16. 2009-12-08 14:34:07 +00:00
Adam Laurie
6f353013fd minor fixes to pn531/pn533 list routines and some more debugging 2009-12-07 22:18:32 +00:00
Adam Laurie
112b4c45e4 set approrpiate reporting level for error messages 2009-12-07 21:28:07 +00:00
Adam Laurie
b223ec5780 add pn531/pn533 _list_devices and _pick routines (plus minor fixes for acr122 and pn532_uart) 2009-12-07 21:13:36 +00:00