File: daq_version.h

package info (click to toggle)
daq 3.0.0-alpha5-1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 2,712 kB
  • sloc: ansic: 9,302; sh: 4,442; cpp: 495; makefile: 234
file content (48 lines) | stat: -rw-r--r-- 1,600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
** Copyright (C) 2016-2019 Cisco and/or its affiliates. All rights reserved.
** Author: Michael R. Altizer <mialtize@cisco.com>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License Version 2 as
** published by the Free Software Foundation.  You may not use, modify or
** distribute this program under any other version of the GNU General
** Public License.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#ifndef _DAQ_VERSION_H
#define _DAQ_VERSION_H

#ifdef __cplusplus
extern "C" {
#endif

#define DAQ_VERSION_MAJOR 3
#define DAQ_VERSION_MINOR 0
#define DAQ_VERSION_PATCH 0

#define DAQ_VERSION_NUMERIC ((DAQ_VERSION_MAJOR << 24) | (DAQ_VERSION_MINOR << 16) | (DAQ_VERSION_PATCH << 8) | 0)

#define DAQ_VERSION_STRING_C_(major, minor, patch) \
            #major "." #minor "." #patch

#define DAQ_VERSION_STRING_C(major, minor, patch) \
            DAQ_VERSION_STRING_C_(major, minor, patch)

#define DAQ_VERSION_STRING DAQ_VERSION_STRING_C( \
                DAQ_VERSION_MAJOR, DAQ_VERSION_MINOR, \
                DAQ_VERSION_PATCH)

#ifdef __cplusplus
}
#endif

#endif /* _DAQ_VERSION_H */