Code Generation
ei-scanner
In the libei repo, we use the ei-scanner to generate bindings for C and Python (for tests) as well the interface documentation in this documentation.
Note: these generated protocol bindings are not part of libei’s API contract.
The ei-scanner is written in Python but is intended to be useful to anyone that needs generated
bindings. It parses the protocol.xml
file and passes its content as data to Jinja.
See here for the template that generates the C source for libei and libeis.
Details
If you plan to use the ei-scanner to generate language bindings, please get
in contact with us through the issue tracker.