aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-10 23:15:00 +0000
committerlloyd <[email protected]>2008-11-10 23:15:00 +0000
commit33495befa5bdd549ff47295a45271942dc2fe081 (patch)
tree026902638337846ad2b919a1e07110399c8abef8 /src/libstate
parentf947cfbd1523f2bd1930fccbd4a5586f633661ed (diff)
Add back Library_State::add_engine for Monotone
Diffstat (limited to 'src/libstate')
-rw-r--r--src/libstate/libstate.cpp8
-rw-r--r--src/libstate/libstate.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/libstate/libstate.cpp b/src/libstate/libstate.cpp
index c4d81de7a..7c3105752 100644
--- a/src/libstate/libstate.cpp
+++ b/src/libstate/libstate.cpp
@@ -284,6 +284,14 @@ void Library_State::initialize(bool thread_safe)
algorithm_factory->add_engine(new Default_Engine);
}
+/**
+* Add a new engine
+*/
+void Library_State::add_engine(Engine* engine)
+ {
+ algorithm_factory->add_engine(engine);
+ }
+
/*************************************************
* Library_State Constructor *
*************************************************/
diff --git a/src/libstate/libstate.h b/src/libstate/libstate.h
index b5881dc62..3ca97a53c 100644
--- a/src/libstate/libstate.h
+++ b/src/libstate/libstate.h
@@ -29,6 +29,8 @@ class BOTAN_DLL Library_State
Algorithm_Factory& algo_factory();
+ void add_engine(class Engine*);
+
Allocator* get_allocator(const std::string& = "") const;
void add_allocator(Allocator*);
void set_default_allocator(const std::string&);