blob: 748ef7ed77b00c747938ec8317546dc26de5a660 [file] [log] [blame]
Junxiao Shif124d752014-03-01 21:26:43 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
7#ifndef NFD_CORE_VERSION_HPP
8#define NFD_CORE_VERSION_HPP
9
10#include "common.hpp"
11
12namespace nfd {
13
14/** NFD version follows Semantic Versioning 2.0.0 specification
15 * http://semver.org/
16 */
17
18/** \brief NFD version represented as an integer
19 *
20 * MAJOR*1000000 + MINOR*1000 + PATCH
21 */
22#define NFD_VERSION 1000
23
24/** \brief NFD version represented as a string
25 *
26 * MAJOR.MINOR.PATCH
27 */
28#define NFD_VERSION_STRING "0.1.0"
29
30/// MAJOR version
31#define NFD_VERSION_MAJOR (NFD_VERSION / 1000000)
32/// MINOR version
33#define NFD_VERSION_MINOR (NFD_VERSION % 1000000 / 1000)
34/// PATCH version
35#define NFD_VERSION_PATCH (NFD_VERSION % 1000)
36
37} // namespace nfd
38
39#endif // NFD_CORE_VERSION_HPP