Matteo Cypriani
d1c64212d8
Test malloc/realloc return values
2012-11-03 16:51:13 +01:00
Matteo Cypriani
8455dd0d74
Add copyright & license information
...
Add the file COPYRIGHT, the CeCILL license's text, and update the source
files' headers with the copyright and license information.
2012-11-03 14:52:33 +01:00
Matteo Cypriani
5d94fe8cc4
[Client] Add option -N (number of requests)
...
New option to use in conjunction with -F, in order to stop after a given
number of requests.
2012-08-29 12:20:34 +02:00
Matteo Cypriani
60e32ac500
[Client] Minor cosmetic fixes
2012-08-29 12:17:26 +02:00
Matteo Cypriani
316db76861
Makefiles: add common-rules.mk, drop openwrt files
...
This is the sequel of the work on the Makefiles' unification.
2012-05-24 14:19:04 +02:00
Matteo Cypriani
bb45348f05
[Client] Fix printf conversion for MAX_PKT_SIZE
2012-05-23 18:46:55 +02:00
Matteo Cypriani
412b77d37f
[Client] Refactor make_packet()
2012-05-10 11:38:21 +02:00
Matteo Cypriani
775687a1dc
[Client] Add option -s (packet size)
2012-05-10 11:38:21 +02:00
Matteo Cypriani
96d1c54e54
Send number of packets at the beginning of request
...
The packet number and number of packets are now sent right after the
packet type, instead of at the end of the request.
2012-05-09 21:13:52 +02:00
Matteo Cypriani
92485f3f67
Add common.mk
...
Adapt all the Makefiles to use it.
Rename all the Makefile_atheros_openwrt-10.03 to
Makefile_atheros_openwrt.
2012-05-09 15:55:17 +02:00
Matteo Cypriani
8e7aac1e6e
[Client] make_packet(): include the packet number
...
The prepared packet now includes the number of packets of the request
and the current packet ID. The packet ID is initialised to 1 for the
first packet.
2012-02-08 10:52:38 +01:00
Matteo Cypriani
6b7e5668fa
Add/update headers on the top of each source file
2012-02-06 16:44:09 +01:00
Matteo Cypriani
3ed19bb012
Version printing: "Owl" instead of "Open Wireless"
2012-02-06 13:27:05 +01:00
Matteo Cypriani
2c1697b78a
Enable compilation on GNU/kFreeBSD
2012-02-06 13:27:05 +01:00
Matteo Cypriani
16eaecc53f
Avoid displaying non-ASCII characters
...
Avoid displaying UTF-8 characters on the terminal (French quotes &
ellipsis).
2012-02-06 13:26:50 +01:00
Matteo Cypriani
dd01705608
Wrap help messages at 80 columns
...
In Client, Listener and Aggregator, wrap the help message text at 80
columns to make them easier to read on a standard console.
2012-01-24 18:29:50 +01:00
Matteo Cypriani
a1bc3db310
Fix daemon modes (Aggregator, Listener, Client)
...
daemon() must be called prior to set up signal handlers and threads.
2012-01-24 17:27:46 +01:00
Matteo Cypriani
08a8626354
Makefiles: improve static compilation
...
Add a static target for Listener, Aggregator and Positioning.
Strip the static and semistatic targets.
2012-01-11 16:50:39 +01:00
Matteo Cypriani
c9c82211d8
[Client] Compile-time option ENABLE_RECEIVE_POSITION
...
Enables or disables the -l option at compile-time.
2012-01-11 16:50:39 +01:00
Matteo Cypriani
a81b539a05
Remove Makefiles for OpenWrt 8.09
2012-01-11 16:50:39 +01:00
Matteo Cypriani
327f8ae199
[Client] Daemon mode (-D)
2012-01-11 16:50:39 +01:00
Matteo Cypriani
cf73bf6309
[lib] Avoid struct arguments & return values
...
Modify the *time*() functions to avoid passing structures in arguments
(using const pointers instead) or returning structures (using result
arguments instead).
2012-01-11 16:50:36 +01:00
Matteo Cypriani
61124e4cfc
Makefiles: test CC prior to surcharge it
...
Verifies that CC is at its default value prior to try to surcharge it
with colorgcc.
2012-01-09 11:11:30 +01:00
Matteo Cypriani
8c070d482e
Standardise CLI options
...
Make uniform the command-line options of the various programs.
Positioning: delete some useless short options.
2012-01-09 11:11:30 +01:00
Matteo Cypriani
39300aaa85
Makefiles: translate help
...
Translate help messages from French.
2012-01-09 11:11:30 +01:00
Matteo Cypriani
a70fc783e2
Makefiles: translate comments
...
Translate all the comments from French.
2012-01-09 11:11:30 +01:00
Matteo Cypriani
91609a40fe
[Client] Use libowlps-resultreader
...
Use functions from libowlps-resultreader in receive_position(). By the
way, this function is still not really useful, as we do not verify that
the received result correspond to the set request.
2011-08-27 09:18:16 +02:00
Matteo Cypriani
b22a42a524
[Client] Fix the request loop
...
8bec37c4
caused the non-flood mode to flood.
2011-08-27 09:18:16 +02:00
Matteo Cypriani
3fec57b1ae
Move all error #defines in owlps.h
2011-08-26 11:09:41 +02:00
Matteo Cypriani
a3c16211c2
Use owl_msleep() everywhere
2011-08-24 15:41:17 +02:00
Matteo Cypriani
8bec37c4ad
[Client] Improve the request loop
...
In flood mode, avoid sending a last request when the program is stopped.
2011-08-24 13:39:01 +02:00
Matteo Cypriani
ff17c92bfa
[lib-client] Change the prefix for "owl_"
...
Use the prefix "owl_" instead of "owlclient_".
2011-08-23 19:58:49 +02:00
Matteo Cypriani
442c5a4601
[lib] .h all is prefixed with OWL_ or owl_
...
All the types, defines, etc. are now prefixed with "OWL_" or "owl_".
TRUE and FALSE become owl_true and owl_false.
2011-08-22 22:43:35 +02:00
Matteo Cypriani
d566187f42
[Client] Fix "blinking" coordinates in flood mode
...
In calibration flood mode, the coordinates were "blinking" (correct
values, then 0, etc.). This is now fixed.
2011-08-22 22:43:35 +02:00
Matteo Cypriani
b68cb179a9
[Client] Handle signals
2011-08-22 22:43:35 +02:00
Matteo Cypriani
8327357290
Makefiles: allow to enable -g easily
...
Add a commented line DEBUG=-g in each Makefile.
2011-08-22 22:43:35 +02:00
Matteo Cypriani
de74213102
[lib] Rename OWL_TIMESTAMP_STR_LEN OWL_TIMESTAMP_STRLEN
2011-08-18 14:02:17 +02:00
Matteo Cypriani
ac4dd87ef9
Use ++var instead of var++ whenever possible
2011-08-18 11:45:36 +02:00
Matteo Cypriani
ab8ad83e52
Add emacs mode command to each Makefile_atheros*
2011-08-18 11:05:45 +02:00
Matteo Cypriani
a174a01e0f
Rename Atheros Makefiles: specify OpenWrt version
...
*/Makefile_atheros become */Makefile_atheros_openwrt-8.09.
2011-07-25 13:13:21 +02:00
Matteo Cypriani
1dae048f0c
[lib-client] Delay in ms instead of microseconds
...
In owlclient_send_request(), the delay between two packets is now in
milliseconds.
Client & Listener updated to reflect the change.
2011-07-25 12:46:20 +02:00
Matteo Cypriani
051ce9147c
Use -D DEBUG / NDEBUG in Makefiles
...
Instead of #define DEBUG, we now prefer to use either verbose levels
or, when needed, NDEBUG. Each Makefile was modified to be able to pass
-D NDEBUG to the compiler (but the corresponding lines are commented),
except in the modules where assert is never used, in which case the
Makefile passes -D DEBUG.
Long story short: to totally disable debugging code, comment-out the
"-D DEBUG" lines and uncomment the "-D NDEBUG" lines, in every Makefile.
2011-07-25 12:46:20 +02:00
Matteo Cypriani
e705801bb1
[Client] Add option -f (flood mode)
2011-07-25 12:46:19 +02:00
Matteo Cypriani
c7e0280596
Fix Makefiles for OpenWrt 10.03
2011-07-18 23:34:06 +02:00
Matteo Cypriani
2597295f08
[Client] Better optarg test for -l
2011-07-01 14:29:47 +02:00
Matteo Cypriani
65487af736
[lib] Makefile: remove unneeded -lrt & -lm
...
-lrt is now added as needed in each module Makefile, but not directly in
the library. Furthermore, the Makefiles add -lrt only if the platform is
Linux.
2011-06-27 10:09:14 +02:00
Matteo Cypriani
7dade1c36b
Makefiles: get rid of echo -e
...
Use one call to echo for each line, because the echo's -e option is not
standard.
2011-06-27 10:09:14 +02:00
Matteo Cypriani
f54b0d11e1
Makefiles: remove -v incompatible with BSD commands
...
The -v 'verbose' switch of the standard commands (rm, cp, mkdir, etc.)
is not implemented in BSD versions of the commands, so we avoid using
it.
2011-06-27 10:09:14 +02:00
Matteo Cypriani
3196e5a2e0
Makefiles: resolve OWLPS_VERSION earlier
2011-04-26 10:15:04 +02:00
Matteo Cypriani
bd8d761bdc
[Client] Makefile: fix static target
2011-04-13 13:05:10 +02:00