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
Matteo Cypriani
82d1041ab2
[Client] Print version info with -V
2011-04-13 00:12:30 +02:00
Matteo Cypriani
d31ac3864e
Position endianess conversion in all modules
2011-04-07 16:15:46 +02:00
Matteo Cypriani
aef4e5aed7
[Client & Aggregator] Print direction with PRIu8
2011-04-07 11:57:14 +02:00
Matteo Cypriani
df5ed19834
Include headers as needed
...
Move #includes from .h to .c wherever possible.
2011-03-31 16:03:22 +02:00
Matteo Cypriani
204750b8c5
[lib] Rename PACKET_TYPE_* -> OWL_REQUEST_*
2011-03-25 16:30:40 +01:00
Matteo Cypriani
c980d05baa
[Client] Free the allocated packet
2011-03-25 11:48:26 +01:00
Matteo Cypriani
7c6d09d859
[Client] Check the direction
2011-03-25 11:48:25 +01:00
Matteo Cypriani
6c4af9020f
close(fd) instead of (void) close(fd)
2011-03-25 11:48:24 +01:00
Matteo Cypriani
98386514e5
Use INET_ADDRSTRLEN instead of 16
2011-03-25 11:48:23 +01:00
Matteo Cypriani
91cba33dcd
[lib] Rename types
...
- Lowercase all defined types.
- Prefix with "owl_".
- Rename couple_message -> owl_captured_request.
- Rename couple_info -> owl_request_info.
2011-03-25 11:48:22 +01:00
Matteo Cypriani
a72a76d5a9
mv /infrastructure-centred/* /
...
Get rid of the infrastructure-centred directory: all the modules are now
at the same level.
2011-03-25 11:48:22 +01:00