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  * GLib provides version information, primarily useful in configure
68  * checks for builds that have a configure script. Applications will
69  * not typically use the features described here.
70  *
71  * The GLib headers annotate deprecated APIs in a way that produces
72  * compiler warnings if these deprecated APIs are used. The warnings
73  * can be turned off by defining the macro GLIB_DISABLE_DEPRECATION_WARNINGS
74  * before including the glib.h header.
75  *
76  * GLib also provides support for building applications against
77  * defined subsets of deprecated or new GLib APIs. Define the macro
78  * GLIB_VERSION_MIN_REQUIRED to specify up to what version of GLib
79  * you want to receive warnings about deprecated APIs. Define the
80  * macro GLIB_VERSION_MAX_ALLOWED to specify the newest version of
81  * GLib whose API you want to use.
82  */
83 public class Version
84 {
85 	
86 	/**
87 	 */
88 	
89 	/**
90 	 * Checks that the GLib library in use is compatible with the
91 	 * given version. Generally you would pass in the constants
92 	 * GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION
93 	 * as the three arguments to this function; that produces
94 	 * a check that the library in use is compatible with
95 	 * the version of GLib the application or module was compiled
96 	 * against.
97 	 * Compatibility is defined by two things: first the version
98 	 * of the running library is newer than the version
99 	 * required_major.required_minor.required_micro. Second
100 	 * the running library must be binary compatible with the
101 	 * version required_major.required_minor.required_micro
102 	 * (same major version.)
103 	 * Since 2.6
104 	 * Params:
105 	 * requiredMajor = the required major version.
106 	 * requiredMinor = the required minor version.
107 	 * requiredMicro = the required micro version.
108 	 * 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.
109 	 */
110 	public static string checkVersion(uint requiredMajor, uint requiredMinor, uint requiredMicro)
111 	{
112 		// const gchar * glib_check_version (guint required_major,  guint required_minor,  guint required_micro);
113 		return Str.toString(glib_check_version(requiredMajor, requiredMinor, requiredMicro));
114 	}
115 }