[sr-dev] git:tirpi/cfg_framework_multivalue: cfg framework: cfg_set_now() supports the group instances

Miklos Tirpak miklos at iptel.org
Tue Sep 14 16:46:29 CEST 2010


Module: sip-router
Branch: tirpi/cfg_framework_multivalue
Commit: 6a44d0bd28c2cb896b9e53f7974d1bad88654c24
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6a44d0bd28c2cb896b9e53f7974d1bad88654c24

Author: Miklos Tirpak <miklos at iptel.org>
Committer: Miklos Tirpak <miklos at iptel.org>
Date:   Tue Sep  7 17:09:07 2010 +0200

cfg framework: cfg_set_now() supports the group instances

cfg_set_now() can write the variables within both
the default and the additional group instances.
If the additional variable is not explicitely set, then
the default value overwrites it.

Note: the group instance must exist before cfg_set_now() is called,
it is not created dynamicaly.

The function does not work yet before the config is shmized.

---

 cfg/cfg.c        |    1 +
 cfg/cfg_ctx.c    |  228 +++++++++++++++++++++++++++++++++++++++++++-----------
 cfg/cfg_ctx.h    |   22 ++++--
 cfg/cfg_script.c |    1 +
 cfg/cfg_script.h |    1 +
 cfg/cfg_struct.c |   48 +++++++++++-
 cfg/cfg_struct.h |   50 +++++++++++-
 7 files changed, 293 insertions(+), 58 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=6a44d0bd28c2cb896b9e53f7974d1bad88654c24



More information about the sr-dev mailing list