debian: added giffgaff chatscripts
[barry.git] / src / version.cc
blobf78c9e0d5f953050e4af68479529082d405868ea
1 ///
2 /// \file version.cc
3 /// Provide access to library version information
4 ///
6 /*
7 Copyright (C) 2007-2013, Net Direct Inc. (http://www.netdirect.ca/)
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #include "version.h"
23 #include "config.h"
25 #ifdef WORDS_BIGENDIAN
26 #define BARRY_VERSION_STRING "Barry library version " BARRY_VER_STRING " (big endian)"
27 #else
28 #define BARRY_VERSION_STRING "Barry library version " BARRY_VER_STRING " (little endian)"
29 #endif
31 #define BARRY_VERSION_LOGICAL BARRY_LOGICAL
32 #define BARRY_VERSION_MAJOR BARRY_MAJOR
33 #define BARRY_VERSION_MINOR BARRY_MINOR
35 namespace Barry {
37 /// Fills major and minor with integer version numbers, and
38 /// returns a string containing human readable version
39 /// information in English.
40 const char* Version(int &logical, int &major, int &minor)
42 major = BARRY_VERSION_MAJOR;
43 minor = BARRY_VERSION_MINOR;
44 return BARRY_VERSION_STRING;
47 } // namespace Barry