1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 /*
25  * Conversion parameters:
26  * inFile  = glib-Version-Information.html
27  * outPack = glib
28  * outFile = GLib
29  * strct   = 
30  * realStrct=
31  * ctorStrct=
32  * clss    = Version
33  * interf  = 
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- glib_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * 	- glib.Str
47  * structWrap:
48  * module aliases:
49  * local aliases:
50  * overrides:
51  */
52 
53 module glib.GLib;
54 
55 public  import gtkc.glibtypes;
56 
57 private import gtkc.glib;
58 private import glib.ConstructionException;
59 
60 private import glib.Str;
61 
62 
63 
64 /**
65  * GLib provides version information, primarily useful in configure
66  * checks for builds that have a configure script. Applications will
67  * not typically use the features described here.
68  *
69  * The GLib headers annotate deprecated APIs in a way that produces
70  * compiler warnings if these deprecated APIs are used. The warnings
71  * can be turned off by defining the macro GLIB_DISABLE_DEPRECATION_WARNINGS
72  * before including the glib.h header.
73  *
74  * GLib also provides support for building applications against
75  * defined subsets of deprecated or new GLib APIs. Define the macro
76  * GLIB_VERSION_MIN_REQUIRED to specify up to what version of GLib
77  * you want to receive warnings about deprecated APIs. Define the
78  * macro GLIB_VERSION_MAX_ALLOWED to specify the newest version of
79  * GLib whose API you want to use.
80  */
81 public class Version
82 {
83 	
84 	/**
85 	 */
86 	
87 	/**
88 	 * Checks that the GLib library in use is compatible with the
89 	 * given version. Generally you would pass in the constants
90 	 * GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION
91 	 * as the three arguments to this function; that produces
92 	 * a check that the library in use is compatible with
93 	 * the version of GLib the application or module was compiled
94 	 * against.
95 	 * Compatibility is defined by two things: first the version
96 	 * of the running library is newer than the version
97 	 * required_major.required_minor.required_micro. Second
98 	 * the running library must be binary compatible with the
99 	 * version required_major.required_minor.required_micro
100 	 * (same major version.)
101 	 * Since 2.6
102 	 * Params:
103 	 * requiredMajor = the required major version.
104 	 * requiredMinor = the required minor version.
105 	 * requiredMicro = the required micro version.
106 	 * Returns: NULL if the GLib library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by GLib and must not be modified or freed.
107 	 */
108 	public static string checkVersion(uint requiredMajor, uint requiredMinor, uint requiredMicro)
109 	{
110 		// const gchar * glib_check_version (guint required_major,  guint required_minor,  guint required_micro);
111 		return Str.toString(glib_check_version(requiredMajor, requiredMinor, requiredMicro));
112 	}
113 }