bareos: master 3d09d782
Author | Committer | Branch | Timestamp | Parent | |
---|---|---|---|---|---|
Marco van Wieringen | Marco van Wieringen | master | 2014-04-05 12:10 | master 6d4e8c88 | Pending |
Changeset | Bring config engine to 2014 and don't polute namespace. Implement a TODO from June 2008 and get ride of a slack of global variables used by the config engine. The code seems to be have been refactored in 2008 to access most configfile parsing via the CONFIG class and it already has most of the needed structures which also were kept as global variables. From now on the config engine is accessed via the CONFIG class and only res_all is left as global variable. As a side effect the config CLASS is now available as my_config and is a global variable. Global variable introduced: - CLASS CONFIG *my_config (Global configuration) Global variables removed: - res_all_size - r_first - r_last - resources - res_head It should be possible also to get ride of res_all but that needs some more testing. And is currently not very high on my urgency map. |
||||
mod - src/console/console_conf.c | Diff File | ||||
mod - src/dird/dird.c | Diff File | ||||
mod - src/dird/dird_conf.c | Diff File | ||||
mod - src/dird/ua_output.c | Diff File | ||||
mod - src/filed/filed_conf.c | Diff File | ||||
mod - src/lib/parse_conf.c | Diff File | ||||
mod - src/lib/parse_conf.h | Diff File | ||||
mod - src/lib/res.c | Diff File | ||||
mod - src/qt-console/bat_conf.cpp | Diff File | ||||
mod - src/qt-tray-monitor/tray_conf.cpp | Diff File | ||||
mod - src/stored/status.c | Diff File | ||||
mod - src/stored/stored_conf.c | Diff File |