First Import
Added Wali's Change to gant.c
Syncing to ant0_t3
Added some typecasting in the debug statements to get gant.c and antlib.c to compile
Adding rapiddescent's recommendation to change output filename so it sorts properly
Adding Wali's 20090124 patch.
Adding Wali's changes
Adding Chris Turchin's Python Monitor
Removed generated files
Removed needless files
Cleanup the code

Did a bit cleanup work to make the next step easier.
Rewrite the XML part

This patch rewrites the XML part completely to use libxml2. This fix all
issue with invalid XML output.

With this patch there might be dropped trackpoints which put to invalide
XML before. This trackpoins was encountered as timestamp only in the
case when the timestamp is one second before the activity start.

See also http://developer.garmin.com/schemas/tcx/v2/ for schema
documentation.
Handle more events

This handles the events EVENT_TRANSFER_TX_FAILED(06),
EVENT_TRANSFER_RX_FAILED(04) and EVENT_RX_SEARCH_TIMEOUT(01). Also
sorted the event definition.
Cleanup and better debug handling

- Clean up some unused variables.
- Initialize variables.
- Using snprintf most of the time instead the insecure sprintf.
- Implementing better debug feature with levels.
- Updating usage output.
- Clean up unused options.
Complete redesign of garmin protocol

As the original protocol parser was a bit broken, this is a complete
redesign with some reverse engineering. With this patch, all garmin
response should work now.
Update version information
Indent the file proper

* Change the indenting style to some like gnu. (-l0, -i3, -ci3, -cli3,
  -nlp, -nbbb, -bli0, -bl, -nbad, -brs, -bbo, -ncs, -npcs, -npsl)
* End macro calls with ';' and fix issues in if/else constructs.
* Fix vim modeline.
Implementing better debugging output
Hmpf, one more unneeded file
Place needed libraries in a correct variable

Patch sent from Ilya Barygin (from Ubuntu) over Christian Perrier (from
Debian).

Signed-off-by: Klaus Ethgen <Klaus@Ethgen.de>