[sr-dev] git:tirpi/cfg_framework_multivalue: cfg framework: apply the additional variable list

Miklos Tirpak miklos at iptel.org
Tue Sep 28 11:51:08 CEST 2010


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

Author: Miklos Tirpak <miklos at iptel.org>
Committer: Miklos Tirpak <miklos at iptel.org>
Date:   Tue Sep 28 11:44:29 2010 +0200

cfg framework: apply the additional variable list

The additional variable list which is linked to the groups
is applied when the config is shmized. During this process,
the array of group instances is created, the values are fixed-up,
the changes are applied to each instance, and the list is freed.
Any change after the config is shmized is directly made in the
memory block as opposed to using the list.
(The list is necessary at the beginning because not even shm_malloc
is available, and the number of group instances is not known.)

---

 cfg/cfg_ctx.c    |  175 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 cfg/cfg_ctx.h    |    7 ++
 cfg/cfg_struct.c |  102 +++++++++++++++++++++++++++++++-
 cfg/cfg_struct.h |    3 +
 4 files changed, 286 insertions(+), 1 deletions(-)

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



More information about the sr-dev mailing list