Module: sip-router
Branch: andrei/cdefs2doc
Commit: 2b37b2df33aeec32448fa2a765538e561507720b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2b37b2d…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Oct 19 18:22:55 2009 +0200
doc: script to generate rpc lists from C code
Added a perl script that generates the list of RPCs defined in a C
file. The list contains also the RPC documentation.
The script works by looking for the first rpc_export_t array in
the file that has an initializer and using it to get all the rpc
definitions. Then it looks for all the corresponding *doc
variables (char* arrays holding the help message and the
signature) and extracts the doc string from their initializer.
E.g.:
dump_rpcs.pl --file ../../../core_cmd.c
...
37. dst_blacklist.view
dst blacklist dump in human-readable format.
...
---
doc/scripts/cdefs2doc/dump_rpcs.pl | 389 ++++++++++++++++++++++++++++++++++++
1 files changed, 389 insertions(+), 0 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=2b3…