1 /* === S Y N F I G ========================================================= */
3 ** \brief Template Header
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_VERSION_H
26 #define __SYNFIG_VERSION_H
28 /* === H E A D E R S ======================================================= */
30 /* === M A C R O S ========================================================= */
32 /*! \def SYNFIG_VERSION
33 ** \brief Synfig API Version
35 ** The macro SYNFIG_VERSION can be set to ensure
36 ** compile-time compatibility with future versions
37 ** of Synfig. The first two digits are the major
38 ** version, the second two digits are the minor
39 ** version, and the last two digits are the
42 #ifndef SYNFIG_VERSION
43 #define SYNFIG_VERSION (006000)
46 /*! Increment this value whenever
47 ** the library changes in a way
48 ** that breaks library compatibility
50 #define SYNFIG_LIBRARY_VERSION 47
53 #define SYNFIG_CHECK_VERSION() synfig::check_version_(SYNFIG_LIBRARY_VERSION,sizeof(synfig::Vector),sizeof(synfig::Color),sizeof(synfig::Canvas),sizeof(synfig::Layer))
55 /* === C L A S S E S & S T R U C T S ======================================= */
59 //! Version checker \internal
60 /*! Checks to make sure that the library
61 ** version matches with what the program
62 ** was compiled against.
63 ** \see SYNFIG_CHECK_VERSION()
65 extern bool check_version_(int v,int vec_size, int color_size,int canvas_size,int layer_size);
67 extern const char *get_version();
69 extern const char *get_build_date();
71 extern const char *get_build_time();
73 }; // END of namespace synfig
75 /* === E N D =============================================================== */