|
rpm-build |
4f3c61 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
rpm-build |
4f3c61 |
/*
|
|
rpm-build |
4f3c61 |
* soup-version.c: Version information
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Copyright (C) 2012 Igalia S.L.
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#ifdef HAVE_CONFIG_H
|
|
rpm-build |
4f3c61 |
#include <config.h>
|
|
rpm-build |
4f3c61 |
#endif
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
#include "soup-version.h"
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SECTION:soup-version
|
|
rpm-build |
4f3c61 |
* @short_description: Variables and functions to check the libsoup version
|
|
rpm-build |
4f3c61 |
**/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_MAJOR_VERSION:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Like soup_get_major_version(), but from the headers used at
|
|
rpm-build |
4f3c61 |
* application compile time, rather than from the library linked
|
|
rpm-build |
4f3c61 |
* against at application run time.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_MINOR_VERSION:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Like soup_get_minor_version(), but from the headers used at
|
|
rpm-build |
4f3c61 |
* application compile time, rather than from the library linked
|
|
rpm-build |
4f3c61 |
* against at application run time.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_MICRO_VERSION:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Like soup_get_micro_version(), but from the headers used at
|
|
rpm-build |
4f3c61 |
* application compile time, rather than from the library linked
|
|
rpm-build |
4f3c61 |
* against at application run time.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_CHECK_VERSION:
|
|
rpm-build |
4f3c61 |
* @major: major version (e.g. 2 for version 2.42.0)
|
|
rpm-build |
4f3c61 |
* @minor: minor version (e.g. 42 for version 2.42.0)
|
|
rpm-build |
4f3c61 |
* @micro: micro version (e.g. 0 for version 2.42.0)
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Macro to test the version of libsoup being compiled against.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Returns: %TRUE if the version of the libsoup header files
|
|
rpm-build |
4f3c61 |
* is the same as or newer than the passed-in version.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* soup_get_major_version:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Returns the major version number of the libsoup library.
|
|
rpm-build |
4f3c61 |
* (e.g. in libsoup version 2.42.0 this is 2.)
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* This function is in the library, so it represents the libsoup library
|
|
rpm-build |
4f3c61 |
* your code is running against. Contrast with the #SOUP_MAJOR_VERSION
|
|
rpm-build |
4f3c61 |
* macro, which represents the major version of the libsoup headers you
|
|
rpm-build |
4f3c61 |
* have included when compiling your code.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Returns: the major version number of the libsoup library
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
guint
|
|
rpm-build |
4f3c61 |
soup_get_major_version (void)
|
|
rpm-build |
4f3c61 |
{
|
|
rpm-build |
4f3c61 |
return SOUP_MAJOR_VERSION;
|
|
rpm-build |
4f3c61 |
}
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* soup_get_minor_version:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Returns the minor version number of the libsoup library.
|
|
rpm-build |
4f3c61 |
* (e.g. in libsoup version 2.42.0 this is 42.)
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* This function is in the library, so it represents the libsoup library
|
|
rpm-build |
4f3c61 |
* your code is running against. Contrast with the #SOUP_MINOR_VERSION
|
|
rpm-build |
4f3c61 |
* macro, which represents the minor version of the libsoup headers you
|
|
rpm-build |
4f3c61 |
* have included when compiling your code.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Returns: the minor version number of the libsoup library
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
guint
|
|
rpm-build |
4f3c61 |
soup_get_minor_version (void)
|
|
rpm-build |
4f3c61 |
{
|
|
rpm-build |
4f3c61 |
return SOUP_MINOR_VERSION;
|
|
rpm-build |
4f3c61 |
}
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* soup_get_micro_version:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Returns the micro version number of the libsoup library.
|
|
rpm-build |
4f3c61 |
* (e.g. in libsoup version 2.42.0 this is 0.)
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* This function is in the library, so it represents the libsoup library
|
|
rpm-build |
4f3c61 |
* your code is running against. Contrast with the #SOUP_MICRO_VERSION
|
|
rpm-build |
4f3c61 |
* macro, which represents the micro version of the libsoup headers you
|
|
rpm-build |
4f3c61 |
* have included when compiling your code.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Returns: the micro version number of the libsoup library
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
guint
|
|
rpm-build |
4f3c61 |
soup_get_micro_version (void)
|
|
rpm-build |
4f3c61 |
{
|
|
rpm-build |
4f3c61 |
return SOUP_MICRO_VERSION;
|
|
rpm-build |
4f3c61 |
}
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* soup_check_version:
|
|
rpm-build |
4f3c61 |
* @major: the major version to check
|
|
rpm-build |
4f3c61 |
* @minor: the minor version to check
|
|
rpm-build |
4f3c61 |
* @micro: the micro version to check
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Like SOUP_CHECK_VERSION, but the check for soup_check_version is
|
|
rpm-build |
4f3c61 |
* at runtime instead of compile time. This is useful for compiling
|
|
rpm-build |
4f3c61 |
* against older versions of libsoup, but using features from newer
|
|
rpm-build |
4f3c61 |
* versions.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Returns: %TRUE if the version of the libsoup currently loaded
|
|
rpm-build |
4f3c61 |
* is the same as or newer than the passed-in version.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
gboolean
|
|
rpm-build |
4f3c61 |
soup_check_version (guint major,
|
|
rpm-build |
4f3c61 |
guint minor,
|
|
rpm-build |
4f3c61 |
guint micro)
|
|
rpm-build |
4f3c61 |
{
|
|
rpm-build |
4f3c61 |
return SOUP_CHECK_VERSION (major, minor, micro);
|
|
rpm-build |
4f3c61 |
}
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_MIN_REQUIRED:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that should be defined by the user prior to including
|
|
rpm-build |
4f3c61 |
* libsoup.h. The definition should be one of the predefined libsoup
|
|
rpm-build |
4f3c61 |
* version macros: %SOUP_VERSION_2_24, %SOUP_VERSION_2_26, ...
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* This macro defines the earliest version of libsoup that the package
|
|
rpm-build |
4f3c61 |
* is required to be able to compile against.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* If the compiler is configured to warn about the use of deprecated
|
|
rpm-build |
4f3c61 |
* functions, then using functions that were deprecated in version
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MIN_REQUIRED or earlier will cause warnings (but
|
|
rpm-build |
4f3c61 |
* using functions deprecated in later releases will not).
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_MAX_ALLOWED:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that should be defined by the user prior to including
|
|
rpm-build |
4f3c61 |
* libsoup.h. The definition should be one of the predefined libsoup
|
|
rpm-build |
4f3c61 |
* version macros: %SOUP_VERSION_2_24, %SOUP_VERSION_2_26, ...
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* This macro defines the latest version of the libsoup API that the
|
|
rpm-build |
4f3c61 |
* package is allowed to make use of.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* If the compiler is configured to warn about the use of deprecated
|
|
rpm-build |
4f3c61 |
* functions, then using functions added after version
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED will cause warnings.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Unless you are using SOUP_CHECK_VERSION() or the like to compile
|
|
rpm-build |
4f3c61 |
* different code depending on the libsoup version, then this should be
|
|
rpm-build |
4f3c61 |
* set to the same value as %SOUP_VERSION_MIN_REQUIRED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_24:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.24 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_26:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.26 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_28:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.28 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_30:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.30 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_32:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.32 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_34:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.34 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_36:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.36 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_38:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.38 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_40:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.40 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_42:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.42 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.42
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_44:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.44 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.44
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_46:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.46 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.46
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_48:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.48 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.48
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_50:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.50 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.50
|
|
rpm-build |
4f3c61 |
*/
|
|
rpm-build |
4f3c61 |
|
|
rpm-build |
4f3c61 |
/**
|
|
rpm-build |
4f3c61 |
* SOUP_VERSION_2_52:
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* A macro that evaluates to the 2.52 version of libsoup, in a format
|
|
rpm-build |
4f3c61 |
* that can be used by %SOUP_VERSION_MIN_REQUIRED and
|
|
rpm-build |
4f3c61 |
* %SOUP_VERSION_MAX_ALLOWED.
|
|
rpm-build |
4f3c61 |
*
|
|
rpm-build |
4f3c61 |
* Since: 2.52
|
|
rpm-build |
4f3c61 |
*/
|