aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-12-14 11:12:32 +0000
committerlloyd <[email protected]>2006-12-14 11:12:32 +0000
commit2b32d88fabd0cf45cb42981dd03258b39d1828c4 (patch)
treedb8549290d367b6eef4ff62ff4bc62357135afe4 /src/ui.cpp
parent780243495bda65e52f8f1797a3db0a25e420998b (diff)
Move the UI pulse functions into the global library state. That is (as best
as I can tell) the last of the global data, with the exception of the single global_lib_state pointer in libstate.cpp
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index f8ce0c544..5bd51fb30 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -4,6 +4,7 @@
*************************************************/
#include <botan/ui.h>
+#include <botan/libstate.h>
namespace Botan {
@@ -31,32 +32,4 @@ User_Interface::User_Interface(const std::string& preset) :
first_try = true;
}
-namespace UI {
-
-/*************************************************
-* The current pulse function *
-*************************************************/
-pulse_func pulse_f = 0;
-void* pulse_f_data = 0;
-
-/*************************************************
-* Set the UI pulse function *
-*************************************************/
-void set_pulse(pulse_func p, void* p_data)
- {
- pulse_f = p;
- pulse_f_data = p_data;
- }
-
-/*************************************************
-* Call the UI pulse function *
-*************************************************/
-void pulse(Pulse_Type type)
- {
- if(pulse_f)
- pulse_f(type, pulse_f_data);
- }
-
-}
-
}