diff options
author | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-07-01 21:09:54 +0000 |
commit | 6d3a4de1efcb6b04a1ab87037d487f979d7ca445 (patch) | |
tree | 02342b193a3808d2010b441480f65aa45a23dc92 /include/libstate.h | |
parent | 3d1d14cf405111e30643cf4c7674d441cc07a2e0 (diff) |
Access the global configuration through an object reference instead
of stand-alone functions. Store the configuration in a distinct
object, rather than just a map inside the library state.
Diffstat (limited to 'include/libstate.h')
-rw-r--r-- | include/libstate.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/libstate.h b/include/libstate.h index a7972b7b3..ebc42ac01 100644 --- a/include/libstate.h +++ b/include/libstate.h @@ -45,10 +45,7 @@ class Library_State void set_timer(class Timer*); u64bit system_clock() const; - void set_option(const std::string&, const std::string&, - const std::string&, bool = true); - std::string get_option(const std::string&, const std::string&) const; - bool option_set(const std::string&, const std::string&) const; + class Config& config() const; void add_engine(class Engine*); @@ -73,10 +70,10 @@ class Library_State class Mutex_Factory* mutex_factory; class Timer* timer; + class Config* config_obj; class X509_GlobalState* x509_state_obj; std::map<std::string, class Mutex*> locks; - std::map<std::string, std::string> settings; std::map<std::string, Allocator*> alloc_factory; mutable Allocator* cached_default_allocator; |