2015-09-29 13:43:12 +02:00
|
|
|
This directory contains code for use with, and code made by, the
|
|
|
|
automatic code generation tool "Trunnel".
|
|
|
|
|
2015-10-14 16:40:27 +02:00
|
|
|
Trunnel generates binary parsers and formatters for simple data
|
|
|
|
structures. It aims for human-readable, obviously-correct outputs over
|
|
|
|
maximum efficiency or flexibility.
|
|
|
|
|
2015-09-29 13:43:12 +02:00
|
|
|
The .trunnel files are the inputs here; the .c and .h files are the outputs.
|
2015-10-14 16:40:27 +02:00
|
|
|
|
|
|
|
To add a new structure:
|
|
|
|
- Add a new .trunnel file or expand an existing one to describe the format
|
|
|
|
of the structure.
|
|
|
|
- Regenerate the .c and .h files. To do this, you run
|
|
|
|
"scripts/codegen/run_trunnel.sh". You'll need trunnel installed.
|
|
|
|
- Add the .trunnel, .c, and .h files to include.am
|
2015-09-29 13:43:12 +02:00
|
|
|
|
|
|
|
For the Trunnel source code, and more documentation about using Trunnel,
|
|
|
|
see https://gitweb.torproject.org/trunnel.git , especially
|
|
|
|
https://gitweb.torproject.org/trunnel.git/tree/README
|
|
|
|
and https://gitweb.torproject.org/trunnel.git/tree/doc/trunnel.md
|
2015-10-14 16:40:27 +02:00
|
|
|
|