Commit Graph

1127 Commits (master)
 

Author SHA1 Message Date
Matteo Cypriani 47103f3360 [Aggregator] Refactor monitor_requests()
Create output_request() out of monitor_requests().
11 years ago
Matteo Cypriani 45d4eeb791 [Aggregator] Reorder functions
Reorder the functions in owlps-aggregatord.c to respect the order of
owlps-aggregator.h.
11 years ago
Matteo Cypriani 3a9ce442d1 [Aggregator] Add -F option (don't flush output)
Add the -F option to turn off flushing of the output file after each
analyse of the requests' list.
11 years ago
Matteo Cypriani 6761650648 [Aggregator] Make -o optional
The -o parameter is now optional, and the default output file is the
standard output.
11 years ago
Matteo Cypriani a29a43a6fa [Listener] Add option -G (dump configuration)
This new option is just like Aggregator's -G option.
11 years ago
Matteo Cypriani 94e5c5cbab [Aggregator] Add option -G (dump configuration)
Add the option -G (like "Generate configuration file") that dumps the
current configuration on the standard output, so the user can call
  owlps-aggregatord [custom options] -G >owlps-aggregator.conf
to generate the configuration file owlps-aggregator.conf.
11 years ago
Matteo Cypriani 5ddca24738 Print exit message only in verbose mode
Update the exit message printing in all the modules:
- print on standard error
- print only in verbose mode
- use "exiting" instead of "end"
11 years ago
Matteo Cypriani 86510d490f [doc] owlps.t2t: update main description 11 years ago
Matteo Cypriani 35eef92e94 [doc] Fix links to commands' manuals 11 years ago
Matteo Cypriani 6551bd6c3a [doc] Finish writing owlps-client.t2t 11 years ago
Matteo Cypriani b0bb4094d8 CMake: get rid of the OWLPS_DEBUG option
The constant is not used in any program any more, so we can stop
declaring it.
11 years ago
Matteo Cypriani ca918af0ab [UDP-HTTP] Stop using OWLPS_DEBUG 11 years ago
Matteo Cypriani e114a6997a [lib-client] Add "verbose" parameters
owl_send_request() and owl_send_packet() get a boolean "verbose"
parameter that allow to enable or disable message display on run-time
and allow to get rid of the OWLPS_DEBUG compile-time option.
11 years ago
Matteo Cypriani b859734d23 [Client] Add verbose and quiet options (-v / -q) 11 years ago
Matteo Cypriani 9701a2d393 [Positioner] Allow building with clang++
This patch is to have clang++ (>= 3.2) happily build OwlPS Positioner.
For some reason it doesn't work on NetBSD, but it is fine on GNU/Linux
and (a couple of warnings apart) on DragonFly BSD.
11 years ago
Matteo Cypriani d32813376b CMake: pass installation prefix to programs
The file libowlps/owlps-config.h.in was added to allow CMake to pass the
installation prefix variable to the programs. That allows the programs
to look for their configuration file at the right position (i.e. in the
etc/owlps directory under the installation prefix).
11 years ago
Matteo Cypriani 4bd104d633 CMake: test for the presence of txt2tags 11 years ago
Matteo Cypriani f7533fc93f CMake: fix Doxygen garbage cleaning 11 years ago
Matteo Cypriani 3aa5ae7513 Use Doxygen on lib*
Doxygen comments are now used in libowlps, libowlps-client and
libowlps-resultreader. doc/Doxyfile was added as well as CMake rules to
generate man pages for the libraries' header files.
11 years ago
Matteo Cypriani 9d640cd4d6 [Positioner] Doxygen: enable MULTILINE_CPP_IS_BRIEF
Enable Doxygen option MULTILINE_CPP_IS_BRIEF, so that we don't have to
use \brief: C++-style comments are for brief descriptions and C-style
comments for extended descriptions.

Fix some comments (use @param instead of @arg).
11 years ago
Matteo Cypriani eb2715e249 CMake: make sure doxygen is available 11 years ago
Matteo Cypriani 410038f38c [lib] Remove unused owl_timestamp_is_null() 11 years ago
Matteo Cypriani abce1f985e [lib] Rework owl_frequency_to_channel() 11 years ago
Matteo Cypriani 87f390f288 CMake: handle doc/ 11 years ago
Matteo Cypriani df765e08b3 CMake: generate Positioner's doc out of tree
The Positioner's documentation is now generated in the build tree
instead of in the source tree.
11 years ago
Matteo Cypriani 4a3fd2ac8a [Positioner] Use Markdown in Doxygen comments
Fix some comments as well, and uniformise the use of @returns instead of
@return.
11 years ago
Matteo Cypriani 486d2c9670 [Positioner] CSV*Reader: don't use namespace boost
Remove the using namespace boost declaration.
11 years ago
Matteo Cypriani f352295e9d [Positioner] Get rid of Boost's unordered_*
Stop using Boost for unordered_set, unordered_map and hashes.
11 years ago
Matteo Cypriani 081c559fc5 [Positioner] Fix a few small issues
Fix three minor performance issues signaled by cppcheck and a couple of
problems with Doxygen.
11 years ago
Matteo Cypriani e9cecbe1c0 [Positioner] Update Doxyfile
Update Doxyfile to Doxygen 1.8.1.2 and change a couple of options.
11 years ago
Matteo Cypriani 62511dbe13 CMake: generate headers after dependencies check
The generated configuration header of OwlPS Listener is now generated
after the dependencies checking, so that if an option was disabled
because of a missing dependency it is reflected in the generated header.
11 years ago
Matteo Cypriani f82cd82d43 Update copyright information in *.h.in
The CMake templates were forgotten when the centralisation of copyright
information was done. Fixed!
11 years ago
Matteo Cypriani a47f30a553 Update CHANGELOG for v1.3.3 11 years ago
Matteo Cypriani 80fd5b287b Update and centralise copyright information 11 years ago
Matteo Cypriani 85978e3a68 Update TODO.t2t 11 years ago
Matteo Cypriani eed0db4a4f Update INSTALL.t2t with new instructions for CMake 11 years ago
Matteo Cypriani 9aa9099e6a DEBUG compile-time option -> OWLPS_DEBUG
The former DEBUG compilation-time option was renamed OWLPS_DEBUG to be
consistent with the other options.
11 years ago
Matteo Cypriani 245c7f38b2 CMake: "fix" static linking (remove -pie)
Stop linking with -pie, as it prevents from linking statically.
11 years ago
Matteo Cypriani 2bfd0ee009 CMake: add toolchain file for OpenWrt 11 years ago
Matteo Cypriani 1a30b90683 CMake: test for the presence of libiw 11 years ago
Matteo Cypriani c667203c45 CMake: test for the presence of libpcap 11 years ago
Matteo Cypriani 0c6af63657 CMake: test for the presence of Confuse 11 years ago
Matteo Cypriani 8e46aae55c CMake: test for the presence of POSIX threads
We chose a centralised approach, since threads are needed in several
modules: the find_package() is done only once in the rood directory.
Not sure it's the best approach though, but this test is several lines
long so doing that avoids duplication of this code.
11 years ago
Matteo Cypriani be6d369fcc CMake: test for the presence of Boost (Positioner) 11 years ago
Matteo Cypriani 1cb5742ef9 CMake: rework compilation/link flags
- Default compiler and linker flags were added silently. They are now
  set in the cache if no previous values are present.
- Debug flags and regular flags have been merged.
- Position-independent code (doesn't appear in the cache because CMake
  lacks variables like CMAKE_EXE_COMPILE_FLAGS):
  - Shared libraries are compiled with -fPIC.
  - Executables and static libraries are compiled with -fPIE.
  - Executables are linked with -pie -fPIE.
11 years ago
Matteo Cypriani 51cb1ab08a CMake: link libraries to libc and other
Link the libraries to libc explicitely.
Link libowlps to librt on GNU platforms.
11 years ago
Matteo Cypriani c41f6d9547 CMake: add installation targets 11 years ago
Matteo Cypriani 9908ecf905 CMake: handle libraries' sonames
libowlps-client and libowlps-resultreader were never built as shared
libraries, therefore we set their version number to 1.0.

For stable releases, the rule is to increase the minor version number
when changes are made to the library without changing the API, and to
bump the major version number (soname) in case of API change.

In the development branch and for development point releases, the soname
should not be increased, even in case of API break. The minor version
number should be bumped instead.

Following this rule, libowlps' version number is bumped to 3.1, as some
changes were made since version 3.0.
11 years ago
Matteo Cypriani 464e3f223f CMake: link libowlps-* to libowlps
Libraries libowlps-client and libowlps-resultreader are now linked to
libowlps. Linker flag --no-undefined was added to detect such errors.
11 years ago
Matteo Cypriani 4264210dcc CMake: add static targets
The pseudo-targets "semistatic" and "static" were added to build
everything in semistatic or static mode.
11 years ago