ca628b2e8294a9e1e327c84488fa0a36f727083a
[platform/upstream/multipath-tools.git] / libmultipath / version.h
1 /*
2  * Soft:        multipath device mapper target autoconfig
3  *
4  * Version:     $Id: main.h,v 0.0.1 2003/09/18 15:13:38 cvaroqui Exp $
5  *
6  * Author:      Christophe Varoqui
7  *
8  *              This program is distributed in the hope that it will be useful,
9  *              but WITHOUT ANY WARRANTY; without even the implied warranty of
10  *              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  *              See the GNU General Public License for more details.
12  *
13  *              This program is free software; you can redistribute it and/or
14  *              modify it under the terms of the GNU General Public License
15  *              as published by the Free Software Foundation; either version
16  *              2 of the License, or (at your option) any later version.
17  *
18  * Copyright (c) 2006 Christophe Varoqui
19  */
20 #ifndef _VERSION_H
21 #define _VERSION_H
22
23 #define VERSION_CODE 0x000704
24 #define DATE_CODE    0x0b0f11
25
26 #define PROG    "multipath-tools"
27
28 #define MULTIPATH_VERSION(version)      \
29         (version >> 16) & 0xFF,         \
30         (version >> 8) & 0xFF,          \
31         version & 0xFF
32
33 #define VERSION_STRING PROG" v%d.%d.%d (%.2d/%.2d, 20%.2d)\n",  \
34                 MULTIPATH_VERSION(VERSION_CODE),                \
35                 MULTIPATH_VERSION(DATE_CODE)
36
37 #endif /* _VERSION_H */