1 #ifndef NETSCHEDULE_VERSION__HPP
2 #define NETSCHEDULE_VERSION__HPP
3 
4 /*  $Id: netschedule_version.hpp 551551 2017-11-20 14:26:03Z satskyse $
5  * ===========================================================================
6  *
7  *                            PUBLIC DOMAIN NOTICE
8  *               National Center for Biotechnology Information
9  *
10  *  This software/database is a "United States Government Work" under the
11  *  terms of the United States Copyright Act.  It was written as part of
12  *  the author's official duties as a United States Government employee and
13  *  thus cannot be copyrighted.  This software/database is freely available
14  *  to the public for use. The National Library of Medicine and the U.S.
15  *  Government have not placed any restriction on its use or reproduction.
16  *
17  *  Although all reasonable efforts have been taken to ensure the accuracy
18  *  and reliability of the software and data, the NLM and the U.S.
19  *  Government do not and cannot warrant the performance or results that
20  *  may be obtained by using this software or data. The NLM and the U.S.
21  *  Government disclaim all warranties, express or implied, including
22  *  warranties of performance, merchantability or fitness for any particular
23  *  purpose.
24  *
25  *  Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors:  Victor Joukov
30  *
31  * File Description: Network scheduler daemon version
32  *
33  */
34 #include <common/ncbi_package_ver.h>
35 
36 #define NETSCHEDULE_STRINGIFY(x)    #x
37 #define NETSCHEDULE_VERSION_COMPOSE_STR(a, b, c)  \
38             NETSCHEDULE_STRINGIFY(a) "." \
39             NETSCHEDULE_STRINGIFY(b) "." \
40             NETSCHEDULE_STRINGIFY(c)
41 
42 #define NETSCHEDULED_VERSION        NCBI_PACKAGE_VERSION
43 #define NETSCHEDULED_BUILD_DATE     __DATE__ " " __TIME__
44 
45 // Storage
46 #define NETSCHEDULED_STORAGE_VERSION_MAJOR  5
47 #define NETSCHEDULED_STORAGE_VERSION_MINOR  1
48 #define NETSCHEDULED_STORAGE_VERSION_PATCH  0
49 #define NETSCHEDULED_STORAGE_VERSION        \
50             NETSCHEDULE_VERSION_COMPOSE_STR( \
51                 NETSCHEDULED_STORAGE_VERSION_MAJOR, \
52                 NETSCHEDULED_STORAGE_VERSION_MINOR, \
53                 NETSCHEDULED_STORAGE_VERSION_PATCH)
54 
55 
56 // Protocol
57 #define NETSCHEDULED_PROTOCOL_VERSION_MAJOR 1
58 #define NETSCHEDULED_PROTOCOL_VERSION_MINOR 4
59 #define NETSCHEDULED_PROTOCOL_VERSION_PATCH 7
60 #define NETSCHEDULED_PROTOCOL_VERSION       \
61             NETSCHEDULE_VERSION_COMPOSE_STR( \
62                 NETSCHEDULED_PROTOCOL_VERSION_MAJOR, \
63                 NETSCHEDULED_PROTOCOL_VERSION_MINOR, \
64                 NETSCHEDULED_PROTOCOL_VERSION_PATCH)
65 
66 
67 #define NETSCHEDULED_FULL_VERSION \
68     "NCBI NetSchedule server Version " NETSCHEDULED_VERSION \
69     " Storage version " NETSCHEDULED_STORAGE_VERSION \
70     " Protocol version " NETSCHEDULED_PROTOCOL_VERSION \
71     " build " NETSCHEDULED_BUILD_DATE
72 
73 #define NETSCHEDULED_FEATURES \
74     "fast_status=1;dyn_queues=1;read_confirm=1;version=" NETSCHEDULED_VERSION
75 
76 
77 #endif /* NETSCHEDULE_VERSION__HPP */
78 
79