Botan  1.11.15
src/lib/base/init.h
Go to the documentation of this file.
00001 /*
00002 * Library Initialization
00003 * (C) 1999-2008,2015 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #ifndef BOTAN_LIBRARY_INITIALIZER_H__
00009 #define BOTAN_LIBRARY_INITIALIZER_H__
00010 
00011 #include <botan/types.h>
00012 #include <string>
00013 
00014 namespace Botan {
00015 
00016 /*
00017 * Previously botan had state whose lifetime had to be explicitly
00018 * managed by the application. As of 1.11.14 this is no longer the
00019 * case, and this class is no longer needed and kept only for backwards
00020 * compatability.
00021 */
00022 class BOTAN_DLL LibraryInitializer
00023    {
00024    public:
00025       LibraryInitializer(const std::string& = "") {}
00026       ~LibraryInitializer() {}
00027       static void initialize(const std::string& = "") {}
00028       static void deinitialize() {}
00029    };
00030 
00031 }
00032 
00033 #endif