comparison src/config/settings-get.pl @ 10181:4dc080520769 HEAD

config: Added support for dynamically loaded settings.
author Timo Sirainen <tss@iki.fi>
date Mon, 26 Oct 2009 13:47:27 -0400
parents afe52d60989c
children e18645b47984
comparison
equal deleted inserted replaced
10180:2571cbc88302 10181:4dc080520769
103 print "};\n"; 103 print "};\n";
104 print "buffer_t config_all_services_buf = {\n"; 104 print "buffer_t config_all_services_buf = {\n";
105 print "\tconfig_all_services, sizeof(config_all_services), { 0, }\n"; 105 print "\tconfig_all_services, sizeof(config_all_services), { 0, }\n";
106 print "};\n"; 106 print "};\n";
107 107
108 print "const struct setting_parser_info *all_roots[] = {\n"; 108 print "const struct setting_parser_info *all_default_roots[] = {\n";
109 foreach my $name (keys %parsers) { 109 foreach my $name (keys %parsers) {
110 my $module = $parsers{$name}; 110 my $module = $parsers{$name};
111 next if (!$module); 111 next if (!$module);
112 112
113 print "\t&".$name.", \n"; 113 print "\t&".$name.", \n";
114 } 114 }
115 print "\tNULL\n"; 115 print "\tNULL\n";
116 print "};\n"; 116 print "};\n";
117 print "const struct setting_parser_info *const *all_roots = all_default_roots;\n";