Re: [naviserver-devel] nsconfigrw: persistence

2007-10-25 Thread Vasiljevic Zoran
On 24.10.2007, at 23:41, Stephen Deasey wrote: > But perhaps it could become something like this: > > > struct { > int enabled; /* default disabled */ > ... > } config; > > Ns_ModuleInit(char *server, char *module) > { > int def = 0; > > if (Cfg_Get

Re: [naviserver-devel] nsconfigrw: persistence

2007-10-25 Thread Vasiljevic Zoran
On 24.10.2007, at 23:41, Stephen Deasey wrote: > The basic idea of a callback seem to fit fairly naturaly to how the > code currently works. And I like the idea more than a hard dependency > on some DBM library. > > I also like the idea that it serves two functions: it's a hook which > can be use

[naviserver-devel] nsconfigrw: persistence

2007-10-24 Thread Stephen Deasey
On 10/23/07, Vasiljevic Zoran <[EMAIL PROTECTED]> wrote: > > What we haven't figured out is: how the changed > params are saved (made persistent) when a change > occurs? This is by no means trivial to do. > Perhaps the easiest would be to have some kind of > dbm-like storage (qdbm is nice and LGPL)