@@ -195,6 +195,8 @@ PSMAP_END
195195#define ROOT_NODE "/config "
196196#define MODULE_PATH_PREFIX "modules /"
197197
198+ #define DEFAULT_HEAP_SIZE 16777216
199+
198200const char * const inherited_nodes [] = {
199201 "develop ",
200202 "default ",
@@ -212,7 +214,17 @@ const char *const inherited_nodes[] = {
212214
213215void bootstrap_config_init (struct bootstrap_config * config )
214216{
215- memset (config , 0 , sizeof (* config ));
217+ log_assert (config );
218+
219+ memset (config , 0 , sizeof (* config ));
220+
221+ str_cpy (config -> startup .avs .config_file , sizeof (config -> startup .avs .config_file ), "prop/avs-config.xml" );
222+ config -> startup .avs .avs_heap_size = DEFAULT_HEAP_SIZE ;
223+ config -> startup .avs .std_heap_size = DEFAULT_HEAP_SIZE ;
224+
225+ str_cpy (config -> startup .log .level , sizeof (config -> startup .log .level ), "info" );
226+
227+ // TODO what else?
216228}
217229
218230bool bootstrap_config_from_property (
@@ -374,23 +386,6 @@ bool bootstrap_config_from_property(
374386 return true;
375387}
376388
377- void bootstrap_config_update_avs (
378- const struct bootstrap_config * config , struct property * avs_property )
379- {
380- avs_config_set_mode_product (avs_property , true);
381- avs_config_set_net_raw (avs_property , true);
382- avs_config_set_net_eaudp (avs_property , true);
383- avs_config_set_sntp_ea (avs_property , true);
384-
385- if (config -> startup .drm .device [0 ]) {
386- avs_config_set_fs_root_device (avs_property , config -> startup .drm .device );
387- }
388-
389- if (config -> log_node ) {
390- avs_config_set_logging (avs_property , config );
391- }
392- }
393-
394389bool bootstrap_config_iter_default_file (
395390 struct bootstrap_config * config ,
396391 struct bootstrap_default_file_config * default_file )
0 commit comments