X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=glib%2Fgversion.c;h=0a2feed11b593812d38da877cdb22216b765fd3a;hb=d0083f7e2dd621c6b78496bdb6ecf5d580c5e110;hp=d80e262e8fdf856d944b4a1c22641c4fa30d13a3;hpb=d85b722734a6fcfe94032f6113de9e5c190fd7c3;p=platform%2Fupstream%2Fglib.git diff --git a/glib/gversion.c b/glib/gversion.c index d80e262..0a2feed 100644 --- a/glib/gversion.c +++ b/glib/gversion.c @@ -12,9 +12,7 @@ * 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., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library; if not, see . */ /* @@ -36,6 +34,27 @@ * GLib provides version information, primarily useful in configure * checks for builds that have a configure script. Applications will * not typically use the features described here. + * + * The GLib headers annotate deprecated APIs in a way that produces + * compiler warnings if these deprecated APIs are used. The warnings + * can be turned off by defining the macro %GLIB_DISABLE_DEPRECATION_WARNINGS + * before including the glib.h header. + * + * GLib also provides support for building applications against + * defined subsets of deprecated or new GLib APIs. Define the macro + * %GLIB_VERSION_MIN_REQUIRED to specify up to what version of GLib + * you want to receive warnings about deprecated APIs. Define the + * macro %GLIB_VERSION_MAX_ALLOWED to specify the newest version of + * GLib whose API you want to use. + */ + +/** + * glib_major_version: + * + * The major version of the GLib library. + * + * An integer variable exported from the library linked + * against at application run time. */ /** @@ -49,6 +68,15 @@ */ /** + * glib_minor_version: + * + * The minor version number of the GLib library. + * + * An integer variable exported from the library linked + * against at application run time. + */ + +/** * GLIB_MINOR_VERSION: * * The minor version number of the GLib library. @@ -59,6 +87,15 @@ */ /** + * glib_micro_version: + * + * The micro version number of the GLib library. + * + * An integer variable exported from the library linked + * against at application run time. + */ + +/** * GLIB_MICRO_VERSION: * * The micro version number of the GLib library. @@ -75,22 +112,32 @@ * @micro: the micro version to check for * * Checks the version of the GLib library that is being compiled - * against. - * - * - * Checking the version of the GLib library - * - * if (!GLIB_CHECK_VERSION (1, 2, 0)) - * g_error ("GLib version 1.2.0 or above is needed"); - * - * - * - * See glib_check_version() for a runtime check. + * against. See glib_check_version() for a runtime check. * * Returns: %TRUE if the version of the GLib header files * is the same as or newer than the passed-in version. */ +/** + * glib_binary_age: + * + * The binary age of the GLib library. + * Defines how far back backwards compatibility reaches. + * + * An integer variable exported from the library linked + * against at application run time. + */ + +/** + * glib_interface_age: + * + * The interface age of the GLib library. + * Defines how far back the API has last been extended. + * + * An integer variable exported from the library linked + * against at application run time. + */ + const guint glib_major_version = GLIB_MAJOR_VERSION; const guint glib_minor_version = GLIB_MINOR_VERSION; const guint glib_micro_version = GLIB_MICRO_VERSION; @@ -99,9 +146,9 @@ const guint glib_binary_age = GLIB_BINARY_AGE; /** * glib_check_version: - * @required_major: the required major version. - * @required_minor: the required minor version. - * @required_micro: the required micro version. + * @required_major: the required major version + * @required_minor: the required minor version + * @required_micro: the required micro version * * Checks that the GLib library in use is compatible with the * given version. Generally you would pass in the constants @@ -118,10 +165,10 @@ const guint glib_binary_age = GLIB_BINARY_AGE; * version @required_major.required_minor.@required_micro * (same major version.) * - * Return value: %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. + * 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. * * Since: 2.6 */