os: Move Genode::Config into 'config' library

Originally, the convenience utility for accessing a process
configuration came in the form of a header file. But this causes
aliasing problems if multiple compilation units access the config while
the configuration gets dynamically updated. Moving the implementation of
the accessor to the singleton object into a library solves those
problems.
This commit is contained in:
Norman Feske
2013-09-08 02:44:30 +02:00
parent a1effc5ad8
commit 8243329ad4
58 changed files with 191 additions and 153 deletions

View File

@ -1,5 +1,5 @@
TARGET = nic_bridge
LIBS = base net
LIBS = base net config
SRC_CC = component.cc env.cc mac.cc main.cc nic.cc packet_handler.cc
vpath *.cc $(REP_DIR)/src/server/proxy_arp

View File

@ -1,3 +1,3 @@
TARGET = nit_fb
SRC_CC = main.cc
LIBS = base
LIBS = base config

View File

@ -1,5 +1,5 @@
TARGET = nitpicker
LIBS = base blit
LIBS = base blit config
SRC_CC = main.cc \
view_stack.cc \
view.cc \

View File

@ -1,3 +1,3 @@
TARGET = part_blk
LIBS = base
LIBS = base config
SRC_CC = main.cc back_end.cc

View File

@ -635,7 +635,6 @@ int main(int, char **)
Xml_node content = config()->xml_node().sub_node("content");
preload_content(*env()->heap(), content, root_dir); }
catch (Xml_node::Nonexistent_sub_node) { }
catch (Config::Invalid) { }
static File_system::Root root(ep, sliced_heap, sig_rec, root_dir);

View File

@ -1,4 +1,4 @@
TARGET = ram_fs
SRC_CC = main.cc
LIBS = base
LIBS = base config
INC_DIR += $(PRG_DIR)

View File

@ -1,3 +1,3 @@
TARGET = rom_loopdev
SRC_CC = main.cc
LIBS = base
LIBS = base config

View File

@ -1,3 +1,3 @@
TARGET = rom_prefetcher
SRC_CC = main.cc
LIBS += base
LIBS += base config

View File

@ -1,4 +1,4 @@
TARGET = tar_fs
SRC_CC = main.cc
LIBS = base
LIBS = base config
INC_DIR += $(PRG_DIR)

View File

@ -1,3 +1,3 @@
TARGET = tar_rom
SRC_CC = main.cc
LIBS = base
LIBS = base config