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 webkitversion_h 21#define webkitversion_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#define WEBKITGTK_API_VERSION (@WEBKITGTK_API_VERSION@) 34 35#define WEBKIT_CHECK_VERSION(major, minor, micro) \ 36 (WEBKIT_MAJOR_VERSION > (major) || \ 37 (WEBKIT_MAJOR_VERSION == (major) && WEBKIT_MINOR_VERSION > (minor)) || \ 38 (WEBKIT_MAJOR_VERSION == (major) && WEBKIT_MINOR_VERSION == (minor) && \ 39 WEBKIT_MICRO_VERSION >= (micro))) 40 41WEBKIT_API guint 42webkit_major_version (void); 43 44WEBKIT_API guint 45webkit_minor_version (void); 46 47WEBKIT_API guint 48webkit_micro_version (void); 49 50WEBKIT_API gboolean 51webkit_check_version (guint major, guint minor, guint micro); 52 53G_END_DECLS 54 55#endif 56