/usr/include/libgxps/gxps-version.h is in libgxps-dev 0.2.2-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | /*
* Copyright (C) 2011 Carlos Garcia Campos <carlosgc@gnome.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* SECTION:gxps-version
* @Short_description: Variables and functions to check the GXPS version
* @Title: Version Information
*
* GXPS provides version information, primarily useful in configure checks
* for builds that have a configure script. Applications will not typically
* use the features described here.
*/
#if !defined (__GXPS_H_INSIDE__) && !defined (GXPS_COMPILATION)
#error "Only <libgxps/gxps.h> can be included directly."
#endif
#ifndef __GXPS_VERSION_H__
#define __GXPS_VERSION_H__
/**
* GXPS_MAJOR_VERSION:
*
* The major version number of the GXPS header files (e.g. in GXPS version
* 0.1.2 this is 0.)
*/
#define GXPS_MAJOR_VERSION (0)
/**
* GXPS_MINOR_VERSION:
*
* The major version number of the GXPS header files (e.g. in GXPS version
* 0.1.2 this is 1.)
*/
#define GXPS_MINOR_VERSION (2)
/**
* GXPS_MICRO_VERSION:
*
* The micro version number of the GXPS header files (e.g. in GXPS version
* 0.1.2 this is 2.)
*/
#define GXPS_MICRO_VERSION (2)
/**
* GXPS_VERSION_STRING:
*
* The version number of the GXPS library as a string
*
* Since: 0.2.1
*/
#define GXPS_VERSION_STRING "0.2.2"
/**
* GXPS_CHECK_VERSION:
* @major: major version (e.g. 0 for version 0.1.2)
* @minor: minor version (e.g. 1 for version 0.1.2)
* @micro: micro version (e.g. 2 for version 0.1.2)
*
* Checks the version fo the GXPS library
*
* Returns: %TRUE if the version of the GXPS header files is the same
* as or newer than the passed-in version
*/
#define GXPS_CHECK_VERSION(major,minor,micro) \
(GXPS_MAJOR_VERSION > (major) || \
(GXPS_MAJOR_VERSION == (major) && GXPS_MINOR_VERSION > (minor)) || \
(GXPS_MAJOR_VERSION == (major) && GXPS_MINOR_VERSION == (minor) && GXPS_MICRO_VERSION >= (micro)))
#endif /* __GXPS_VERSION_H__ */
|