other/apidsl/README.md
This folder contains the input file (tox.in.h) that has to be used to generate the tox.h api with: https://github.com/iphydf/apidsl
There are some minimal requirements to contribute to tox.h:
astyle >=2.03apidsl (you can use provided service with curl instead)If you want to do it quickly and you don't have time for anything other than copypasting commands, you should have curl installed.
curl and >=astyle-2.03 installedtox.in.hCommand to run from toxcore directory (quick way, involves using curl):
rm toxcore/tox.h && \
( curl -X POST --data-binary @- https://criticism.herokuapp.com/apidsl < ./other/apidsl/tox.in.h > ./toxcore/tox.h ) && \
astyle --options=./other/astyle/astylerc ./toxcore/tox.h
When formatting will be complete, you should see output like:
Formatted ./toxcore/tox.h
You may want to make sure with git diff that changes made in tox.h reflect changes in tox.in.h.
And you're done.
If you prefer to have more control over what is happening, there are steps below:
apidslastyle, version 2.03 or later.tox.in.hapidsl ??tox.h with astyle, minimal command for it would be:astyle --options=./other/astyle/astylerc ./toxcore/tox.h
Always pass output from apidsl through astyle.