1/* Copyright (C) 2018 Christoph Reiter 2 * 3 * This library is free software; you can redistribute it and/or 4 * modify it under the terms of the GNU Lesser General Public 5 * License as published by the Free Software Foundation; either 6 * version 2 of the License, or (at your option) any later version. 7 * 8 * This library 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. See the GNU 11 * Lesser General Public License for more details. 12 * 13 * You should have received a copy of the GNU Lesser General Public 14 * License along with this library; if not, write to the 15 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 16 * Boston, MA 02111-1307, USA. 17 */ 18 19#ifndef __GIVERISON_H__ 20#define __GIVERISON_H__ 21 22#if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION) 23#error "Only <girepository.h> can be included directly." 24#endif 25 26G_BEGIN_DECLS 27 28#define GI_MAJOR_VERSION @GI_MAJOR_VERSION@ 29#define GI_MINOR_VERSION @GI_MINOR_VERSION@ 30#define GI_MICRO_VERSION @GI_MICRO_VERSION@ 31 32#define GI_CHECK_VERSION(major,minor,micro) \ 33 (GI_MAJOR_VERSION > (major) || \ 34 (GI_MAJOR_VERSION == (major) && GI_MINOR_VERSION > (minor)) || \ 35 (GI_MAJOR_VERSION == (major) && GI_MINOR_VERSION == (minor) && \ 36 GI_MICRO_VERSION >= (micro))) 37 38GI_AVAILABLE_IN_1_60 39guint gi_get_major_version (void) G_GNUC_CONST; 40GI_AVAILABLE_IN_1_60 41guint gi_get_minor_version (void) G_GNUC_CONST; 42GI_AVAILABLE_IN_1_60 43guint gi_get_micro_version (void) G_GNUC_CONST; 44 45G_END_DECLS 46 47#endif /* __GIVERISON_H__ */ 48