monotone

monotone Mtn Source Tree

Root/botan/version.h

1/*************************************************
2* Version Information Header File *
3* (C) 1999-2006 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_VERSION_H__
7#define BOTAN_VERSION_H__
8
9#include <botan/types.h>
10#include <string>
11
12namespace Botan {
13
14/*************************************************
15* Get information describing the version *
16*************************************************/
17std::string version_string();
18u32bit version_major();
19u32bit version_minor();
20u32bit version_patch();
21
22/*************************************************
23* Macros for compile-time version checks *
24*************************************************/
25#define BOTAN_VERSION_CODE_FOR(a,b,c) ((a << 16) | (b << 8) | (c))
26
27#define BOTAN_VERSION_CODE BOTAN_VERSION_CODE_FOR(BOTAN_VERSION_MAJOR, \
28 BOTAN_VERSION_MINOR, \
29 BOTAN_VERSION_PATCH)
30
31}
32
33#endif

Archive Download this file

Branches

Tags

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