- make ParameterInfo flat structure, and not HoH
- version bump [0.12]
git-svn-id: https://perl-cwmp.googlecode.com/svn/trunk@213
836a5e1a-633d-0410-964b-
294494ad4392
use inc::Module::Install;
name 'CWMP';
-version '0.11';
+version '0.12';
license 'GPL';
requires 'Net::Server';
requires 'HTTP::Daemon';
confess "need state" unless ( $state ); # don't remove!
+=for obsolete
+
# XXX dragons ahead: convert name to tree rewriting it into perl
my $s = '$state->{ParameterInfo}->' . $tree->name2perl( $name ) . "->{writable} = $writable;";
eval "$s";
confess "can't eval $s : $@" if ($@);
+=cut
+
+ $state->{ParameterInfo}->{$name} = $writable;
+
#warn "## state = dump( $state ), "\n";
$state->{_trigger} = 'GetParameterNamesResponse';