monotone

monotone Mtn Source Tree

Root/botan/init.h

1/*************************************************
2* Library Initialization Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_INIT_H__
7#define BOTAN_INIT_H__
8
9#include <botan/mutex.h>
10#include <botan/timers.h>
11#include <string>
12
13namespace Botan {
14
15// Should Botan be paranoid about memset(0) on allocated and freed memory?
16// Default, yes.
17extern bool paranoid_memory_clearing;
18
19namespace Init {
20
21/*************************************************
22* Main Library Initialization/Shutdown Functions *
23*************************************************/
24void initialize(const std::string& = "");
25void deinitialize();
26
27/*************************************************
28* Internal Initialization/Shutdown Functions *
29*************************************************/
30void set_mutex_type(Mutex*);
31void set_timer_type(Timer*);
32
33void startup_memory_subsystem();
34void shutdown_memory_subsystem();
35
36void startup_engines();
37void shutdown_engines();
38
39void startup_dl_cache();
40void shutdown_dl_cache();
41
42void startup_oids();
43void shutdown_oids();
44
45void startup_conf();
46void shutdown_conf();
47void set_default_options();
48
49}
50
51/*************************************************
52* Library Initialization/Shutdown Object *
53*************************************************/
54class LibraryInitializer
55 {
56 public:
57 LibraryInitializer(const std::string& = "");
58 ~LibraryInitializer();
59 };
60
61}
62
63#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status