gegl-version.h.in 1.8 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/* This file is the public GEGL API
 *
 * GEGL 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 3 of the License, or (at your option) any later version.
 *
 * GEGL 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 GEGL; if not, see <http://www.gnu.org/licenses/>.
 *
 * 2000-2008 © Calvin Williamson, Øyvind Kolås.
 */

#ifndef __GEGL_VERSION_H__
#define __GEGL_VERSION_H__


/***
24
 * GEGL version information:
25 26 27 28
 *
 * These macros tell the version of GEGL you are compiling against.
 * GEGL's version number consists of three parts: major, minor and
 * micro.
29 30 31 32 33
 *
 * ---Code sample:
 * #define GEGL_MAJOR_VERSION @GEGL_MAJOR_VERSION@
 * #define GEGL_MINOR_VERSION @GEGL_MINOR_VERSION@
 * #define GEGL_MICRO_VERSION @GEGL_MICRO_VERSION@
34 35 36 37 38 39 40 41
 */

#define GEGL_MAJOR_VERSION @GEGL_MAJOR_VERSION@
#define GEGL_MINOR_VERSION @GEGL_MINOR_VERSION@
#define GEGL_MICRO_VERSION @GEGL_MICRO_VERSION@

/**
 * gegl_get_version:
42 43 44
 * @major: (out caller-allocates): a pointer to a int where the major version number will be stored
 * @minor: (out caller-allocates): ditto for the minor version number
 * @micro: (out caller-allocates): ditto for the micro version number
45 46 47 48 49 50 51 52 53 54
 *
 * This function fetches the version of the GEGL library being used by
 * the running process.
 */
void           gegl_get_version          (int *major,
                                          int *minor,
                                          int *micro);


#endif