Alexander Afanasyev | a06fdda | 2014-04-29 19:15:00 -0700 | [diff] [blame^] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /** |
| 3 | * Copyright (c) 2013-2014, Regents of the University of California. |
| 4 | * All rights reserved. |
| 5 | * |
| 6 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
| 7 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
| 8 | * |
| 9 | * This file licensed under New BSD License. See COPYING for detailed information about |
| 10 | * ndn-cxx library copyright, permissions, and redistribution restrictions. |
| 11 | * |
| 12 | * Based on code originally written by Jeff Thompson <jefft0@remap.ucla.edu> |
| 13 | */ |
| 14 | |
| 15 | #ifndef NDN_VERSION_HPP |
| 16 | #define NDN_VERSION_HPP |
| 17 | |
| 18 | namespace nfd { |
| 19 | |
| 20 | /** ndn-cxx version follows Semantic Versioning 2.0.0 specification |
| 21 | * http://semver.org/ |
| 22 | */ |
| 23 | |
| 24 | /** \brief ndn-cxx version represented as an integer |
| 25 | * |
| 26 | * MAJOR*1000000 + MINOR*1000 + PATCH |
| 27 | */ |
| 28 | #define NDN_CXX_VERSION 1000 |
| 29 | |
| 30 | /** \brief ndn-cxx version represented as a string |
| 31 | * |
| 32 | * MAJOR.MINOR.PATCH |
| 33 | */ |
| 34 | #define NDN_CXX_VERSION_STRING "0.1.0" |
| 35 | |
| 36 | /// MAJOR version |
| 37 | #define NDN_CXX_VERSION_MAJOR (NDN_CXX_VERSION / 1000000) |
| 38 | /// MINOR version |
| 39 | #define NDN_CXX_VERSION_MINOR (NDN_CXX_VERSION % 1000000 / 1000) |
| 40 | /// PATCH version |
| 41 | #define NDN_CXX_VERSION_PATCH (NDN_CXX_VERSION % 1000) |
| 42 | |
| 43 | } // namespace nfd |
| 44 | |
| 45 | #endif // NDN_VERSION_HPP |