Module: sip-router Branch: master Commit: a4550975f4e5d767039cf9ad731d4eeb4c631619 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a4550975...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Nov 25 18:39:14 2011 +0100
doc/rpc_list: get module interface to extract the list of rpc commands
---
doc/rpc_list/Makefile | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/doc/rpc_list/Makefile b/doc/rpc_list/Makefile index 927903e..1ec6911 100644 --- a/doc/rpc_list/Makefile +++ b/doc/rpc_list/Makefile @@ -24,29 +24,32 @@ files_list= \ $(COREPATH)/modules/ctl/ctl.c:ctl \ $(COREPATH)/modules/db_flatstore/flat_rpc.c:db_flatstore \ $(COREPATH)/modules/debugger/debugger_api.c:debugger \ + $(COREPATH)/modules/dialplan/dialplan.c:dialplan \ $(COREPATH)/modules/lcr/lcr_rpc.c:lcr \ $(COREPATH)/modules/malloc_test/malloc_test.c:malloc_test \ $(COREPATH)/modules/mi_rpc/mi_rpc_mod.c:mi_rpc \ + $(COREPATH)/modules/prefix_route/pr_rpc.c:prefix_route \ + $(COREPATH)/modules/ratelimit/ratelimit.c:ratelimit \ $(COREPATH)/modules/sl/sl_stats.c:sl \ $(COREPATH)/modules/tls/tls_rpc.c:tls \ $(COREPATH)/modules/tm/tm.c:tm \ $(COREPATH)/modules_k/dialog/dialog.c:dialog \ + $(COREPATH)/modules_k/dispatcher/dispatcher.c:dispatcher \ + $(COREPATH)/modules_k/domain/domain_mod.c:domain \ $(COREPATH)/modules_k/htable/htable.c:htable \ - $(COREPATH)/modules/ratelimit/ratelimit.c:ratelimit \ + $(COREPATH)/modules_k/kex/pkg_stats.c:kex \ $(COREPATH)/modules_k/uac/uac_reg.c:uac \ - $(COREPATH)/modules_k/usrloc/ul_rpc.c:usrloc_k \ + $(COREPATH)/modules_k/usrloc/ul_rpc.c:usrloc \ $(COREPATH)/modules_s/cpl-c/cpl_rpc.c:cpl-c \ - $(COREPATH)/modules_s/dispatcher/ds_rpc.c:dispatcher \ - $(COREPATH)/modules_s/domain/domain_rpc.c:domain \ + $(COREPATH)/modules_s/dispatcher/ds_rpc.c:dispatcher_s \ + $(COREPATH)/modules_s/domain/domain_rpc.c:domain_s \ $(COREPATH)/modules_s/gflags/gflags.c:gflags \ $(COREPATH)/modules_s/pdt/pdt.c:pdt \ $(COREPATH)/modules_s/pike/rpc.c:pike \ - $(COREPATH)/modules/prefix_route/pr_rpc.c:prefix_route \ $(COREPATH)/modules_s/presence_b2b/rpc.c:presence_b2b \ $(COREPATH)/modules_s/usrloc/ul_rpc.c:usrloc_s
- # list of excluded groups grp_exclude=pa # list of file prefixes to exclude (full path needed) @@ -106,6 +109,9 @@ get_prereq=$(firstword $(subst :, ,$(1))) # get grp from file:grp (get_grp(file:grp) => grp) get_listed_grp=$(word 2, $(subst :, ,$(1)))
+# get module interface define +get_modiface=$(shell make -C $(shell dirname $(1)) printmiface) + # get base file name from file:grp: get_bname(file:grp) # => basename(file) without extension (e.g. get_bname(foo/bar.c:x) => bar) # @@ -195,7 +201,7 @@ $(docbook_output_dir)/$$(call get_target,$(1)).xml: \ $$(call get_prereq,$(1)) Makefile $(CFG2TXT) $(CFG2DOCBOOK) --file $$< --$(force_grp)grp=$$(call get_grp,$(1)) \ --gcc="$(gcc)" --docbook \ - --defs="$(c_defs) $$(e_idefs_$$(call get_grp,$(1)))" \ + --defs="$(c_defs) $$(call get_modiface,$(1)) $$(e_idefs_$$(call get_grp,$(1)))" \ > "$$@" || (rm -f "$$@"; exit 1)