[build] be smarter at guessing when libs rebuild is needed
[platform/upstream/multipath-tools.git] / multipath / main.h
1 /*
2  * Soft:        Description here...
3  *
4  * Version:     $Id: main.h,v 0.0.1 2003/09/18 15:13:38 cvaroqui Exp $
5  *
6  * Author:      Copyright (C) 2003 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
19 #ifndef _MAIN_H
20 #define _MAIN_H
21
22 /*
23  * configurator actions
24  */
25 #define ACT_NOTHING_STR         "unchanged"
26 #define ACT_RELOAD_STR          "reload"
27 #define ACT_SWITCHPG_STR        "switchpg"
28 #define ACT_CREATE_STR          "create"
29
30 enum actions {
31         ACT_UNDEF,
32         ACT_NOTHING,
33         ACT_RELOAD,
34         ACT_SWITCHPG,
35         ACT_CREATE
36 };
37
38 #define FLUSH_ONE 1
39 #define FLUSH_ALL 2
40
41 /*
42  * Build version
43  */
44 #define PROG    "multipath"
45
46 #define VERSION_CODE 0x000405
47 #define DATE_CODE    0x100605
48
49 #define MULTIPATH_VERSION(version)      \
50         (version >> 16) & 0xFF,         \
51         (version >> 8) & 0xFF,          \
52         version & 0xFF
53
54 #define VERSION_STRING PROG" v%d.%d.%d (%.2d/%.2d, 20%.2d)\n",  \
55                 MULTIPATH_VERSION(VERSION_CODE),                \
56                 MULTIPATH_VERSION(DATE_CODE)
57
58 #endif