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 
61 private import glib.Str;
62 
63 
64 
65 
66 /**
67  * Description
68  * GLib provides version information, primarily useful in configure checks
69  * for builds that have a configure script. Applications will not
70  * typically use the features described here.
71  */
72 public class Version
73 {
74 	
75 	/**
76 	 */
77 	
78 	/**
79 	 * Checks that the GLib library in use is compatible with the
80 	 * given version. Generally you would pass in the constants
81 	 * GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION
82 	 * as the three arguments to this function; that produces
83 	 * a check that the library in use is compatible with
84 	 * the version of GLib the application or module was compiled
85 	 * against.
86 	 * Compatibility is defined by two things: first the version
87 	 * of the running library is newer than the version
88 	 * required_major.required_minor.required_micro. Second
89 	 * the running library must be binary compatible with the
90 	 * version required_major.required_minor.required_micro
91 	 * (same major version.)
92 	 * Since 2.6
93 	 * Params:
94 	 * requiredMajor = the required major version.
95 	 * requiredMinor = the required minor version.
96 	 * requiredMicro = the required micro version.
97 	 * 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.
98 	 */
99 	public static string checkVersion(uint requiredMajor, uint requiredMinor, uint requiredMicro)
100 	{
101 		// const gchar * glib_check_version (guint required_major,  guint required_minor,  guint required_micro);
102 		return Str.toString(glib_check_version(requiredMajor, requiredMinor, requiredMicro));
103 	}
104 }