1/* 2 * Copyright (C) 2008 Christian Dywan <christian@imendio.com> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Library General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Library General Public License for more details. 13 * 14 * You should have received a copy of the GNU Library General Public License 15 * along with this library; see the file COPYING.LIB. If not, write to 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 20#ifndef WEBKIT_VERSION_H 21#define WEBKIT_VERSION_H 22 23#include <glib.h> 24#include <webkit/webkitdefines.h> 25 26G_BEGIN_DECLS 27 28#define WEBKIT_MAJOR_VERSION (@WEBKIT_MAJOR_VERSION@) 29#define WEBKIT_MINOR_VERSION (@WEBKIT_MINOR_VERSION@) 30#define WEBKIT_MICRO_VERSION (@WEBKIT_MICRO_VERSION@) 31#define WEBKIT_USER_AGENT_MAJOR_VERSION (@WEBKIT_USER_AGENT_MAJOR_VERSION@) 32#define WEBKIT_USER_AGENT_MINOR_VERSION (@WEBKIT_USER_AGENT_MINOR_VERSION@) 33 34#define WEBKIT_CHECK_VERSION(major, minor, micro) \ 35 (WEBKIT_MAJOR_VERSION > (major) || \ 36 (WEBKIT_MAJOR_VERSION == (major) && WEBKIT_MINOR_VERSION > (minor)) || \ 37 (WEBKIT_MAJOR_VERSION == (major) && WEBKIT_MINOR_VERSION == (minor) && \ 38 WEBKIT_MICRO_VERSION >= (micro))) 39 40WEBKIT_API guint 41webkit_major_version (void); 42 43WEBKIT_API guint 44webkit_minor_version (void); 45 46WEBKIT_API guint 47webkit_micro_version (void); 48 49WEBKIT_API gboolean 50webkit_check_version (guint major, guint minor, guint micro); 51 52G_END_DECLS 53 54#endif 55