~ubuntu-branches/debian/sid/botan/sid

« back to all changes in this revision

Viewing changes to include/version.h

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2018-03-01 22:23:25 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20180301222325-7p7vc45gu3hta34d
Tags: 2.4.0-2
* Don't remove .doctrees from the manual if it doesn't exist.
* Don't specify parallel to debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*************************************************
2
 
* Version Information Header File                *
3
 
* (C) 1999-2007 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
 
 
12
 
namespace Botan {
13
 
 
14
 
/*************************************************
15
 
* Get information describing the version         *
16
 
*************************************************/
17
 
std::string version_string();
18
 
u32bit version_major();
19
 
u32bit version_minor();
20
 
u32bit 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