Projects
openEuler:Mainline
gobject-introspection
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:gobject-introspection.spec
Changed
@@ -1,12 +1,12 @@ -%global glib2_version 2.58.0 +%global glib2_version 2.74.0 Name: gobject-introspection -Version: 1.72.0 +Version: 1.74.0 Release: 1 Summary: Introspection system for GObject-based libraries License: GPLv2+ and LGPLv2+ and MIT URL: https://wiki.gnome.org/Projects/GObjectIntrospection -Source0: https://download.gnome.org/sources/gobject-introspection/1.72/%{name}-%{version}.tar.xz +Source0: https://download.gnome.org/sources/gobject-introspection/1.74/%{name}-%{version}.tar.xz BuildRequires: gcc bison cairo-gobject-devel chrpath flex fontconfig-devel freetype-devel gettext glib2-devel >= %{glib2_version} libxslt meson BuildRequires: gtk-doc libffi-devel libX11-devel libXfixes-devel libXft-devel libxml2-devel mesa-libGL-devel python3-devel python3-mako python3-markdown @@ -67,9 +67,16 @@ %files help %doc NEWS README.rst +%{_datadir}/gtk-doc/ %{_mandir}/man1/*.1* %changelog +* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 1.74.0-1 +- update to 1.74.0 + +* Tue Oct 25 2022 yanglongkang <yanglongkang@h-partners.com> - 1.72.0-2 +- rebuild for next release + * Fri Apr 22 2022 dillon chen <dillon.chen@gmail.com> - 1.72.0-1 - Update to 1.72.0 @@ -103,3 +110,4 @@ * Mon Oct 14 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.58.0-3 - Package init +
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/gobject-introspection.git</param> - <param name="revision">14bb649de139f3f92fde3636a53b19f581296dfb</param> + <param name="revision">master</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/.gitlab-ci.yml -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/.gitlab-ci.yml
Changed
@@ -2,7 +2,7 @@ - build - deploy -image: registry.gitlab.gnome.org/gnome/gobject-introspection:v10 +image: registry.gitlab.gnome.org/gnome/gobject-introspection:v11 cache: paths: @@ -71,7 +71,7 @@ - public fedora-x86_64-subprojects: - image: registry.gitlab.gnome.org/gnome/gobject-introspection:min-v3 + image: registry.gitlab.gnome.org/gnome/gobject-introspection:min-v4 stage: build variables: CCACHE_BASEDIR: "${CI_PROJECT_DIR}" @@ -143,6 +143,22 @@ paths: - _build/meson-logs +msys2-clang64-meson: + stage: build + tags: + - win32-ps + variables: + MSYSTEM: "CLANG64" + CHERE_INVOKING: "yes" + script: + - C:\msys64\usr\bin\pacman --noconfirm -Syyuu + - C:\msys64\usr\bin\bash -lc "bash -x ./.gitlab-ci/test-msys2-meson.sh" + artifacts: + when: on_failure + name: "gi-_${env:CI_COMMIT_REF_NAME}" + paths: + - _build/meson-logs + vs2017-x64-meson: stage: build tags:
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/.gitlab-ci/Dockerfile -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/.gitlab-ci/Dockerfile
Changed
@@ -1,4 +1,4 @@ -FROM fedora:34 +FROM fedora:36 RUN dnf -y install \ autoconf \ @@ -51,7 +51,7 @@ zlib-devel \ && dnf clean all -RUN pip3 install meson==0.58.2 +RUN pip3 install meson==0.60 ARG HOST_USER_ID=5555 ENV HOST_USER_ID ${HOST_USER_ID}
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/.gitlab-ci/minimal.Dockerfile -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/.gitlab-ci/minimal.Dockerfile
Changed
@@ -1,4 +1,4 @@ -FROM fedora:34 +FROM fedora:36 RUN dnf -y install \ flex \ @@ -14,9 +14,10 @@ python3-devel \ python3-pip \ python3-wheel \ + zlib-devel \ && dnf clean all -RUN pip3 install meson==0.58.2 +RUN pip3 install meson==0.60 ARG HOST_USER_ID=5555 ENV HOST_USER_ID ${HOST_USER_ID}
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/.gitlab-ci/run-docker-minimal.sh -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/.gitlab-ci/run-docker-minimal.sh
Changed
@@ -16,7 +16,7 @@ set -e REGISTRY="registry.gitlab.gnome.org/gnome/gobject-introspection" -TAG="${REGISTRY}:min-v3" +TAG="${REGISTRY}:min-v4" ${CMD} build \ ${format} \
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/.gitlab-ci/run-docker.sh -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/.gitlab-ci/run-docker.sh
Changed
@@ -16,7 +16,7 @@ set -e REGISTRY="registry.gitlab.gnome.org/gnome/gobject-introspection" -TAG="${REGISTRY}:v10" +TAG="${REGISTRY}:v11" ${CMD} build \ ${format} \
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/.gitlab-ci/test-msvc.bat -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/.gitlab-ci/test-msvc.bat
Changed
@@ -11,14 +11,14 @@ SET PKG_CONFIG=%CD%\pkg-config.exe SET PKG_CONFIG_PATH=%CD%\_build\meson-uninstalled -pip3 install --upgrade --user meson==0.58.2 || goto :error +pip3 install --upgrade --user meson==0.60 || goto :error meson subprojects download glib meson wrap promote subprojects\glib\subprojects\pcre.wrap meson setup _build || goto :error meson compile -C _build || goto :error -meson test -C _build --suite=gobject-introspection || goto :error +::meson test -C _build --suite=gobject-introspection || goto :error goto :EOF :error
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/.gitlab-ci/test-msys2-meson.sh -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/.gitlab-ci/test-msys2-meson.sh
Changed
@@ -2,44 +2,46 @@ set -e -if "$MSYSTEM" == "MINGW32" ; then - export MSYS2_ARCH="i686" -else - export MSYS2_ARCH="x86_64" -fi - pacman --noconfirm -Suy pacman --noconfirm -S --needed \ git \ base-devel \ - mingw-w64-$MSYS2_ARCH-toolchain \ - mingw-w64-$MSYS2_ARCH-ccache \ - mingw-w64-$MSYS2_ARCH-meson \ - mingw-w64-$MSYS2_ARCH-python3 \ - mingw-w64-$MSYS2_ARCH-python3-pip \ - mingw-w64-$MSYS2_ARCH-python3-mako \ - mingw-w64-$MSYS2_ARCH-python3-markdown \ - mingw-w64-$MSYS2_ARCH-libffi \ - mingw-w64-$MSYS2_ARCH-pkg-config \ - mingw-w64-$MSYS2_ARCH-cairo \ - mingw-w64-$MSYS2_ARCH-pcre \ - mingw-w64-$MSYS2_ARCH-zlib \ - mingw-w64-$MSYS2_ARCH-gettext + ${MINGW_PACKAGE_PREFIX}-toolchain \ + ${MINGW_PACKAGE_PREFIX}-ccache \ + ${MINGW_PACKAGE_PREFIX}-meson \ + ${MINGW_PACKAGE_PREFIX}-python3 \ + ${MINGW_PACKAGE_PREFIX}-python3-pip \ + ${MINGW_PACKAGE_PREFIX}-python3-mako \ + ${MINGW_PACKAGE_PREFIX}-python3-markdown \ + ${MINGW_PACKAGE_PREFIX}-libffi \ + ${MINGW_PACKAGE_PREFIX}-pkg-config \ + ${MINGW_PACKAGE_PREFIX}-cairo \ + ${MINGW_PACKAGE_PREFIX}-pcre2 \ + ${MINGW_PACKAGE_PREFIX}-zlib \ + ${MINGW_PACKAGE_PREFIX}-gettext export CCACHE_BASEDIR="${CI_PROJECT_DIR}" export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache" -pip3 install --upgrade --user meson==0.58.2 flake8 mypy==0.931 types-Markdown +pip3 install --upgrade --user meson==0.60 flake8 mypy==0.931 types-Markdown export PATH="$HOME/.local/bin:$PATH" -export CFLAGS="-Werror" -meson -Dcairo=enabled -Ddoctool=enabled --buildtype debug _build -cd _build -ninja - -meson test --print-errorlogs --suite=gobject-introspection --no-suite=glib -cd .. +meson setup \ + -Dwerror=true \ + -Dglib:werror=false \ + -Dcairo=enabled \ + -Ddoctool=enabled \ + --buildtype debug \ + _build + +meson compile -C _build + +meson test \ + --print-errorlogs \ + --suite=gobject-introspection \ + --no-suite=glib \ + -C _build python3 -m flake8 --count python3 -m mypy _build
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/NEWS -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/NEWS
Changed
@@ -1,3 +1,28 @@ +1.74.0 - 2022-09-17 +------------------- + +* Update the GIR data for GLib, GObject, GModule, and GIO + +1.73.1 - 2022-09-03 +------------------- + +* Update the GIR data for GLib, GObject, GModule, and GIO +* Disable rpath on Windows Christoph Reiter +* Add llvm/mingw support on Windows Christoph Reiter +* Fix annotations in libgirepository Philip Chimento +* Support C99 designated initializers when parsing C declarations Jan Tojnar +* Add some more types to win32 GIR Marc-André Lureau +* Let doctool prepend emitting objects in GJS signals Andy Holmes +* Require a C99 toolchain like GLib + +1.73.0 - 2022-07-13 +------------------- + +* Update the GIR data for GLib, GObject, GModule, and GIO +* scanner: Support pre-processor macros with zero arguments Philip Withnall +* scanner: Support ISO C varargs in macros Philip Withnall +* Fix subproject build Andoni Morales Alastruey + 1.72.0 - 2022-03-18 -------------------
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/docs/gir-1.2.rnc -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/docs/gir-1.2.rnc
Changed
@@ -471,7 +471,7 @@ } TransferOwnership = - ## attributes used by many elements for the transfer of ownership, with for example, a returned value. "none" if the recipient does not own the value, "container" if the recipient owns the container but not the value (for arrays or lists for example) , "full" the recipient owns the entire value. For details, see https://wiki.gnome.org/Projects/GObjectIntrospection/Annotations#Memory_and_lifecycle_management + ## attributes used by many elements for the transfer of ownership, with for example, a returned value. "none" if the recipient does not own the value, "container" if the recipient owns the container but not the value (for arrays or lists for example) , "full" the recipient owns the entire value. For details, see https://gi.readthedocs.io/en/latest/annotations/giannotations.html#memory-and-lifecycle-management attribute transfer-ownership { "none" | "container" | "full" } Constructor = @@ -507,7 +507,7 @@ empty } - # Refer to https://wiki.gnome.org/Projects/GObjectIntrospection/Annotations#Support_for_GObject_closures + # Refer to https://gi.readthedocs.io/en/latest/annotations/giannotations.html#support-for-gobject-closures Callable.params = ## parameters element of a callable, that is in general parameters of a function or similar element parameters {
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/examples/girepository/glib-print.c -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/examples/girepository/glib-print.c
Changed
@@ -20,7 +20,7 @@ base_info = g_irepository_find_by_name (repository, "GLib", "assertion_message"); if (!base_info) { - g_error ("ERROR: %s\n", "Could not find GLib.warn_message"); + g_error ("ERROR: %s\n", "Could not find GLib.assertion_message"); return 1; }
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/gir/fontconfig-2.0.gir -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/gir/fontconfig-2.0.gir
Changed
@@ -7,6 +7,7 @@ c:symbol-prefixes="fc"> <record name="Pattern" c:type="FcPattern"/> <record name="CharSet" c:type="FcCharSet"/> + <record name="Config" c:type="FcConfig"/> <function name="init" c:identifier="FcInit"> <return-value transfer-ownership="none"> <type name="none" c:type="void"/>
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/gir/gio-2.0.c -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/gir/gio-2.0.c
Changed
@@ -243,6 +243,10 @@ * fails. The startup notification id is provided, so that the launcher * can cancel the startup notification. * + * Because a launch operation may involve spawning multiple instances of the + * target application, you should expect this signal to be emitted multiple + * times, one for each spawned instance. + * * Since: 2.36 */ @@ -268,6 +272,10 @@ * It is guaranteed that this signal is followed by either a #GAppLaunchContext::launched or * #GAppLaunchContext::launch-failed signal. * + * Because a launch operation may involve spawning multiple instances of the + * target application, you should expect this signal to be emitted multiple + * times, one for each spawned instance. + * * Since: 2.72 */ @@ -279,7 +287,13 @@ * @platform_data: additional platform-specific data for this launch * * The #GAppLaunchContext::launched signal is emitted when a #GAppInfo is successfully - * launched. The @platform_data is an GVariant dictionary mapping + * launched. + * + * Because a launch operation may involve spawning multiple instances of the + * target application, you should expect this signal to be emitted multiple + * times, one time for each spawned instance. + * + * The @platform_data is an GVariant dictionary mapping * strings to variants (ie `a{sv}`), which contains additional, * platform-specific data about this launch. On UNIX, at least the * `pid` and `startup-notification-id` keys will be present. @@ -288,6 +302,11 @@ * example if the process was launched via D-Bus). The `pid` may not be * set at all in subsequent releases. * + * On Windows, `pid` is guaranteed to be valid only for the duration of the + * #GAppLaunchContext::launched signal emission; after the signal is emitted, + * GLib will call g_spawn_close_pid(). If you need to keep the #GPid after the + * signal has been emitted, then you can duplicate `pid` using `DuplicateHandle()`. + * * Since: 2.36 */ @@ -1681,7 +1700,20 @@ * ways indicated here will be rejected unless the application * overrides the default via #GDtlsConnection::accept-certificate. * + * GLib guarantees that if certificate verification fails, at least one + * flag will be set, but it does not guarantee that all possible flags + * will be set. Accordingly, you may not safely decide to ignore any + * particular type of error. For example, it would be incorrect to mask + * %G_TLS_CERTIFICATE_EXPIRED if you want to allow expired certificates, + * because this could potentially be the only error flag set even if + * other problems exist with the certificate. Therefore, there is no + * safe way to use this property. This is not a horrible problem, + * though, because you should not be attempting to ignore validation + * errors anyway. If you really must ignore TLS certificate errors, + * connect to #GDtlsConnection::accept-certificate. + * * Since: 2.48 + * Deprecated: 2.74: Do not attempt to ignore validation errors. */ @@ -2251,6 +2283,15 @@ /** + * GListStore:n-items: + * + * The number of items contained in this list store. + * + * Since: 2.74 + */ + + +/** * GMemoryMonitor: * * #GMemoryMonitor monitors system memory and indicates when @@ -3381,7 +3422,7 @@ /** - * GSimpleProxyResolver:default-proxy: + * GSimpleProxyResolver:default-proxy: (nullable) * * The default proxy URI that will be used for any URI that doesn't * match #GSimpleProxyResolver:ignore-hosts, and doesn't match any @@ -6739,6 +6780,8 @@ * - g_file_new_for_uri() if you have a URI. * - g_file_new_for_commandline_arg() for a command line argument. * - g_file_new_tmp() to create a temporary file from a template. + * - g_file_new_tmp_async() to asynchronously create a temporary file. + * - g_file_new_tmp_dir_async() to asynchronously create a temporary directory. * - g_file_parse_name() from a UTF-8 string gotten from g_file_get_parse_name(). * - g_file_new_build_filename() to create a file from path elements. * @@ -7420,6 +7463,21 @@ * implementation, but typically it will be from the thread that owns * the thread-default main contextg-main-context-push-thread-default * in effect at the time that the model was created. + * + * Over time, it has established itself as good practice for listmodel + * implementations to provide properties `item-type` and `n-items` to + * ease working with them. While it is not required, it is recommended + * that implementations provide these two properties. They should return + * the values of g_list_model_get_item_type() and g_list_model_get_n_items() + * respectively and be defined as such: + * |<!-- language="C" --> + * propertiesPROP_ITEM_TYPE = + * g_param_spec_gtype ("item-type", "", "", G_TYPE_OBJECT, + * G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + * propertiesPROP_N_ITEMS = + * g_param_spec_uint ("n-items", "", "", 0, G_MAXUINT, 0, + * G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); + * | */ @@ -7981,10 +8039,10 @@ * some systems). * * When in “Low Power” mode, it is recommended that applications: - * - disabling automatic downloads + * - disable automatic downloads; * - reduce the rate of refresh from online sources such as calendar or - * email synchronisation - * - if the application has expensive visual effects, reduce them + * email synchronisation; + * - reduce the use of expensive visual effects. * * It is also likely that OS components providing services to applications will * lower their own background activity, for the sake of the system. @@ -10340,9 +10398,11 @@ * the %G_SOCKET_FAMILY_UNIX family by using g_socket_send_message() * and received using g_socket_receive_message(). * - * Note that `<gio/gunixfdlist.h>` belongs to the UNIX-specific GIO - * interfaces, thus you have to use the `gio-unix-2.0.pc` pkg-config - * file when using it. + * Before 2.74, `<gio/gunixfdlist.h>` belonged to the UNIX-specific GIO + * interfaces, thus you had to use the `gio-unix-2.0.pc` pkg-config file when + * using it. + * + * Since 2.74, the API is available for Windows. */ @@ -11379,8 +11439,8 @@ * @action_group: a #GActionGroup * @action_name: the name of an action in the group * @enabled: (out): if the action is presently enabled - * @parameter_type: (out) (optional): the parameter type, or %NULL if none needed - * @state_type: (out) (optional): the state type, or %NULL if stateless + * @parameter_type: (out) (transfer none) (optional): the parameter type, or %NULL if none needed + * @state_type: (out) (transfer none) (optional): the state type, or %NULL if stateless * @state_hint: (out) (optional): the state hint, or %NULL if none * @state: (out) (optional): the current state, or %NULL if stateless * @@ -11737,6 +11797,37 @@ /** + * g_app_info_get_default_for_type_async: + * @content_type: the content type to find a #GAppInfo for + * @must_support_uris: if %TRUE, the #GAppInfo is expected to + * support URIs + * @cancellable: optional #GCancellable object, %NULL to ignore + * @callback: (nullable): a #GAsyncReadyCallback to call when the request is done + * @user_data: (nullable): data to pass to @callback + * + * Asynchronously gets the default #GAppInfo for a given content type. + * + * Since: 2.74 + */ + + +/** + * g_app_info_get_default_for_type_finish: + * @result: a #GAsyncResult + * @error: (nullable): a #GError + * + * Finishes a default #GAppInfo lookup started by + * g_app_info_get_default_for_type_async(). + * + * If no #GAppInfo is found, then @error will be set to %G_IO_ERROR_NOT_FOUND. + * + * Returns: (transfer full): #GAppInfo for given @content_type or + * %NULL on error. + * Since: 2.74 + */ + + +/** * g_app_info_get_default_for_uri_scheme: * @uri_scheme: a string containing a URI scheme. * @@ -11751,6 +11842,38 @@ /** + * g_app_info_get_default_for_uri_scheme_async: + * @uri_scheme: a string containing a URI scheme. + * @cancellable: optional #GCancellable object, %NULL to ignore + * @callback: (nullable): a #GAsyncReadyCallback to call when the request is done + * @user_data: (nullable): data to pass to @callback + * + * Asynchronously gets the default application for handling URIs with + * the given URI scheme. A URI scheme is the initial part + * of the URI, up to but not including the ':', e.g. "http", + * "ftp" or "sip". + * + * Since: 2.74 + */ + + +/** + * g_app_info_get_default_for_uri_scheme_finish: + * @result: a #GAsyncResult + * @error: (nullable): a #GError + * + * Finishes a default #GAppInfo lookup started by + * g_app_info_get_default_for_uri_scheme_async(). + * + * If no #GAppInfo is found, then @error will be set to %G_IO_ERROR_NOT_FOUND. + * + * Returns: (transfer full): #GAppInfo for given @uri_scheme or + * %NULL on error. + * Since: 2.74 + */ + + +/** * g_app_info_get_description: * @appinfo: a #GAppInfo. * @@ -11973,7 +12096,9 @@ * Launches the application. This passes the @uris to the launched application * as arguments, using the optional @context to get information * about the details of the launcher (like what screen it is on). - * On error, @error will be set accordingly. + * On error, @error will be set accordingly. If the application only supports + * one URI per invocation as part of their command-line, multiple instances + * of the application will be spawned. * * To launch the application without arguments pass a %NULL @uris list. * @@ -21244,8 +21369,13 @@ * * Gets @conn's validation flags * + * This function does not work as originally designed and is impossible + * to use correctly. See #GDtlsClientConnection:validation-flags for more + * information. + * * Returns: the validation flags * Since: 2.48 + * Deprecated: 2.74: Do not attempt to ignore validation errors. */ @@ -21287,7 +21417,12 @@ * checks performed when validating a server certificate. By default, * %G_TLS_CERTIFICATE_VALIDATE_ALL is used. * + * This function does not work as originally designed and is impossible + * to use correctly. See #GDtlsClientConnection:validation-flags for more + * information. + * * Since: 2.48 + * Deprecated: 2.74: Do not attempt to ignore validation errors. */ @@ -23369,6 +23504,9 @@ * %G_FILE_ATTRIBUTE_TIME_ACCESS_USEC is provided, the resulting #GDateTime * will have microsecond precision. * + * If nanosecond precision is needed, %G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC must + * be queried separately using g_file_info_get_attribute_uint32(). + * * Returns: (transfer full) (nullable): access time, or %NULL if unknown * Since: 2.70 */ @@ -23568,6 +23706,9 @@ * %G_FILE_ATTRIBUTE_TIME_CREATED_USEC is provided, the resulting #GDateTime * will have microsecond precision. * + * If nanosecond precision is needed, %G_FILE_ATTRIBUTE_TIME_CREATED_NSEC must + * be queried separately using g_file_info_get_attribute_uint32(). + * * Returns: (transfer full) (nullable): creation time, or %NULL if unknown * Since: 2.70 */ @@ -23679,6 +23820,9 @@ * %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC is provided, the resulting #GDateTime * will have microsecond precision. * + * If nanosecond precision is needed, %G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC must + * be queried separately using g_file_info_get_attribute_uint32(). + * * Returns: (transfer full) (nullable): modification time, or %NULL if unknown * Since: 2.62 */ @@ -23818,6 +23962,8 @@ * %G_FILE_ATTRIBUTE_TIME_ACCESS_USEC attributes in the file info to the * given date/time value. * + * %G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC will be cleared. + * * Since: 2.70 */ @@ -23982,6 +24128,8 @@ * %G_FILE_ATTRIBUTE_TIME_CREATED_USEC attributes in the file info to the * given date/time value. * + * %G_FILE_ATTRIBUTE_TIME_CREATED_NSEC will be cleared. + * * Since: 2.70 */ @@ -24055,6 +24203,8 @@ * %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the * given date/time value. * + * %G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC will be cleared. + * * Since: 2.62 */ @@ -24068,6 +24218,8 @@ * %G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC attributes in the file info to the * given time value. * + * %G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC will be cleared. + * * Deprecated: 2.62: Use g_file_info_set_modification_date_time() instead, as * #GTimeVal is deprecated due to the year 2038 problem. */ @@ -24577,6 +24729,39 @@ /** + * g_file_make_symbolic_link_async: (virtual make_symbolic_link_async) + * @file: a #GFile with the name of the symlink to create + * @symlink_value: (type filename): a string with the path for the target + * of the new symlink + * @io_priority: the I/O priorityio-priority of the request + * @cancellable: (nullable): optional #GCancellable object, + * %NULL to ignore + * @callback: a #GAsyncReadyCallback to call + * when the request is satisfied + * @user_data: the data to pass to callback function + * + * Asynchronously creates a symbolic link named @file which contains the + * string @symlink_value. + * + * Since: 2.74 + */ + + +/** + * g_file_make_symbolic_link_finish: (virtual make_symbolic_link_finish) + * @file: input #GFile + * @result: a #GAsyncResult + * @error: a #GError, or %NULL + * + * Finishes an asynchronous symbolic link creation, started with + * g_file_make_symbolic_link_async(). + * + * Returns: %TRUE on successful directory creation, %FALSE otherwise. + * Since: 2.74 + */ + + +/** * g_file_measure_disk_usage: * @file: a #GFile * @flags: #GFileMeasureFlags @@ -25069,6 +25254,74 @@ /** + * g_file_new_tmp_async: + * @tmpl: (type filename) (nullable): Template for the file + * name, as in g_file_open_tmp(), or %NULL for a default template + * @io_priority: the I/O priorityio-priority of the request + * @cancellable: optional #GCancellable object, %NULL to ignore + * @callback: (nullable): a #GAsyncReadyCallback to call when the request is done + * @user_data: (nullable): data to pass to @callback + * + * Asynchronously opens a file in the preferred directory for temporary files + * (as returned by g_get_tmp_dir()) as g_file_new_tmp(). + * + * @tmpl should be a string in the GLib file name encoding + * containing a sequence of six 'X' characters, and containing no + * directory components. If it is %NULL, a default template is used. + * + * Since: 2.74 + */ + + +/** + * g_file_new_tmp_dir_async: + * @tmpl: (type filename) (nullable): Template for the file + * name, as in g_dir_make_tmp(), or %NULL for a default template + * @io_priority: the I/O priorityio-priority of the request + * @cancellable: optional #GCancellable object, %NULL to ignore + * @callback: (nullable): a #GAsyncReadyCallback to call when the request is done + * @user_data: (nullable): data to pass to @callback + * + * Asynchronously creates a directory in the preferred directory for + * temporary files (as returned by g_get_tmp_dir()) as g_dir_make_tmp(). + * + * @tmpl should be a string in the GLib file name encoding + * containing a sequence of six 'X' characters, and containing no + * directory components. If it is %NULL, a default template is used. + * + * Since: 2.74 + */ + + +/** + * g_file_new_tmp_dir_finish: + * @result: a #GAsyncResult + * @error: a #GError, or %NULL + * + * Finishes a temporary directory creation started by + * g_file_new_tmp_dir_async(). + * + * Returns: (transfer full): a new #GFile. + * Free the returned object with g_object_unref(). + * Since: 2.74 + */ + + +/** + * g_file_new_tmp_finish: + * @result: a #GAsyncResult + * @iostream: (out) (not nullable) (transfer full): on return, a #GFileIOStream for the created file + * @error: a #GError, or %NULL + * + * Finishes a temporary file creation started by g_file_new_tmp_async(). + * + * Returns: (transfer full): a new #GFile. + * Free the returned object with g_object_unref(). + * Since: 2.74 + */ + + +/** * g_file_open_readwrite: * @file: #GFile to open * @cancellable: (nullable): a #GCancellable @@ -27631,6 +27884,17 @@ /** + * g_io_error_from_file_error: + * @file_error: a #GFileError. + * + * Converts #GFileError error codes into GIO error codes. + * + * Returns: #GIOErrorEnum value for the given #GFileError error value. + * Since: 2.74 + */ + + +/** * g_io_error_from_win32_error: * @error_code: Windows error number. * @@ -28398,7 +28662,7 @@ * @position: (out) (optional): the first position of @item, if it was found. * * Looks up the given @item in the list store by looping over the items and - * comparing them with @compare_func until the first occurrence of @item which + * comparing them with @equal_func until the first occurrence of @item which * matches. If @item was not found, then @position will not be set, and this * method will return %FALSE. * @@ -28409,6 +28673,23 @@ /** + * g_list_store_find_with_equal_func_full: + * @store: a #GListStore + * @item: (type GObject): an item + * @equal_func: (scope call): A custom equality check function + * @user_data: (closure): user data for @equal_func + * @position: (out) (optional): the first position of @item, if it was found. + * + * Like g_list_store_find_with_equal_func() but with an additional @user_data + * that is passed to @equal_func. + * + * Returns: Whether @store contains @item. If it was found, @position will be + * set to the position where @item occurred for the first time. + * Since: 2.74 + */ + + +/** * g_list_store_insert: * @store: a #GListStore * @position: the position at which to insert the new item @@ -35543,7 +35824,7 @@ /** * g_simple_proxy_resolver_set_default_proxy: * @resolver: a #GSimpleProxyResolver - * @default_proxy: the default proxy to use + * @default_proxy: (nullable): the default proxy to use * * Sets the default proxy on @resolver, to be used for any URIs that * don't match #GSimpleProxyResolver:ignore-hosts or a proxy set @@ -35634,7 +35915,7 @@ * internal errors (other than @cancellable being triggered) will be * ignored. * - * Returns: (transfer full): a #GSocketAddress (owned by the caller), or %NULL on + * Returns: (transfer full) (nullable): a #GSocketAddress (owned by the caller), or %NULL on * error (in which case *@error will be set) or if there are no * more addresses. */ @@ -35667,7 +35948,7 @@ * g_socket_address_enumerator_next() for more information about * error handling. * - * Returns: (transfer full): a #GSocketAddress (owned by the caller), or %NULL on + * Returns: (transfer full) (nullable): a #GSocketAddress (owned by the caller), or %NULL on * error (in which case *@error will be set) or if there are no * more addresses. */ @@ -40584,6 +40865,8 @@ * check a certificate against a CA that is not part of the system * CA database. * + * If @cert is valid, %G_TLS_CERTIFICATE_NO_FLAGS is returned. + * * If @identity is not %NULL, @cert's name(s) will be compared against * it, and %G_TLS_CERTIFICATE_BAD_IDENTITY will be set in the return * value if it does not match. If @identity is %NULL, that bit will @@ -41131,7 +41414,7 @@ * #GTlsClientConnection:validation-flags). * * There are nonintuitive security implications when using a non-default - * database. See #GDtlsConnection:database for details. + * database. See #GTlsConnection:database for details. * * Since: 2.30 */
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/gir/glib-2.0.c -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/gir/glib-2.0.c
Changed
@@ -539,6 +539,12 @@ * Network and storage sizes should be reported in the normal SI units. * @G_FORMAT_SIZE_BITS: set the size as a quantity in bits, rather than * bytes, and return units in bits. For example, ‘Mb’ rather than ‘MB’. + * @G_FORMAT_SIZE_ONLY_VALUE: return only value, without unit; this should + * not be used together with @G_FORMAT_SIZE_LONG_FORMAT + * nor @G_FORMAT_SIZE_ONLY_UNIT. Since: 2.74 + * @G_FORMAT_SIZE_ONLY_UNIT: return only unit, without value; this should + * not be used together with @G_FORMAT_SIZE_LONG_FORMAT + * nor @G_FORMAT_SIZE_ONLY_VALUE. Since: 2.74 * * Flags to modify the format of the string returned by g_format_size_full(). */ @@ -676,7 +682,7 @@ /** * GHookCheckMarshaller: * @hook: a #GHook - * @marshal_data: user data + * @user_data: user data * * Defines the type of function used by g_hook_list_marshal_check(). * @@ -709,7 +715,7 @@ /** * GHookFindFunc: * @hook: a #GHook - * @data: user data passed to g_hook_find_func() + * @user_data: user data passed to g_hook_find_func() * * Defines the type of the function passed to g_hook_find(). * @@ -755,7 +761,7 @@ /** * GHookMarshaller: * @hook: a #GHook - * @marshal_data: user data + * @user_data: user data * * Defines the type of function used by g_hook_list_marshal(). */ @@ -988,6 +994,7 @@ /** * GIOFlags: + * @G_IO_FLAG_NONE: no special flags set. Since: 2.74 * @G_IO_FLAG_APPEND: turns on append mode, corresponds to %O_APPEND * (see the documentation of the UNIX open() syscall) * @G_IO_FLAG_NONBLOCK: turns on nonblocking mode, corresponds to @@ -1019,7 +1026,7 @@ * GIOFunc: * @source: the #GIOChannel event source * @condition: the condition which has been satisfied - * @data: user data set in g_io_add_watch() or g_io_add_watch_full() + * @user_data: user data set in g_io_add_watch() or g_io_add_watch_full() * * Specifies the type of function passed to g_io_add_watch() or * g_io_add_watch_full(), which is called when the requested condition @@ -1121,8 +1128,10 @@ * @minor: the minor version to check for * @micro: the micro version to check for * - * Checks the version of the GLib library that is being compiled - * against. See glib_check_version() for a runtime check. + * Checks whether the version of the GLib library that is being compiled + * against is greater than or equal to the given one. + * + * 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. @@ -1378,7 +1387,7 @@ /** * GNodeForeachFunc: * @node: a #GNode. - * @data: user data passed to g_node_children_foreach(). + * @user_data: user data passed to g_node_children_foreach(). * * Specifies the type of function passed to g_node_children_foreach(). * The function is called with each child node, together with the user @@ -1389,7 +1398,7 @@ /** * GNodeTraverseFunc: * @node: a #GNode. - * @data: user data passed to g_node_traverse(). + * @user_data: user data passed to g_node_traverse(). * * Specifies the type of function passed to g_node_traverse(). The * function is called with each of the nodes visited, together with the @@ -1849,7 +1858,7 @@ * GSequenceIterCompareFunc: * @a: a #GSequenceIter * @b: a #GSequenceIter - * @data: user data + * @user_data: user data * * A #GSequenceIterCompareFunc is a function used to compare iterators. * It must return zero if the iterators compare equal, a negative value @@ -1985,6 +1994,7 @@ /** * GTestSubprocessFlags: + * @G_TEST_SUBPROCESS_DEFAULT: Default behaviour. Since: 2.74 * @G_TEST_SUBPROCESS_INHERIT_STDIN: If this flag is given, the child * process will inherit the parent's stdin. Otherwise, the child's * stdin is redirected to `/dev/null`. @@ -2041,7 +2051,7 @@ /** * GThreadFunc: - * @data: data passed to the thread + * @user_data: data passed to the thread * * Specifies the type of the @func functions passed to g_thread_new() * or g_thread_try_new(). @@ -2214,7 +2224,7 @@ * GTraverseFunc: * @key: a key of a #GTree node * @value: the value corresponding to the key - * @data: user data passed to g_tree_traverse() + * @user_data: user data passed to g_tree_traverse() * * Specifies the type of function passed to g_tree_traverse(). It is * passed the key and value of each node, together with the @user_data @@ -9223,6 +9233,9 @@ * alignment value. Additionally, it will detect possible overflow during * multiplication. * + * If the allocation fails (because the system is out of memory), + * the program is terminated. + * * Aligned memory allocations returned by this function can only be * freed using g_aligned_free(). * @@ -11148,6 +11161,31 @@ /** + * g_atomic_int_compare_and_exchange_full: + * @atomic: a pointer to a #gint or #guint + * @oldval: the value to compare with + * @newval: the value to conditionally replace with + * @preval: (out): the contents of @atomic before this operation + * + * Compares @atomic to @oldval and, if equal, sets it to @newval. + * If @atomic was not equal to @oldval then no change occurs. + * In any case the value of @atomic before this operation is stored in @preval. + * + * This compare and exchange is done atomically. + * + * Think of this operation as an atomic version of + * `{ *preval = *atomic; if (*atomic == oldval) { *atomic = newval; return TRUE; } else return FALSE; }`. + * + * This call acts as a full compiler and hardware memory barrier. + * + * See also g_atomic_int_compare_and_exchange() + * + * Returns: %TRUE if the exchange took place + * Since: 2.74 + */ + + +/** * g_atomic_int_dec_and_test: * @atomic: a pointer to a #gint or #guint * @@ -11167,6 +11205,25 @@ /** + * g_atomic_int_exchange: + * @atomic: a pointer to a #gint or #guint + * @newval: the value to replace with + * + * Sets the @atomic to @newval and returns the old value from @atomic. + * + * This exchange is done atomically. + * + * Think of this operation as an atomic version of + * `{ tmp = *atomic; *atomic = val; return tmp; }`. + * + * This call acts as a full compiler and hardware memory barrier. + * + * Returns: the value of @atomic before the exchange, signed + * Since: 2.74 + */ + + +/** * g_atomic_int_exchange_and_add: * @atomic: a pointer to a #gint * @val: the value to add @@ -11340,6 +11397,50 @@ /** + * g_atomic_pointer_compare_and_exchange_full: + * @atomic: (not nullable): a pointer to a #gpointer-sized value + * @oldval: the value to compare with + * @newval: the value to conditionally replace with + * @preval: (not nullable) (out): the contents of @atomic before this operation + * + * Compares @atomic to @oldval and, if equal, sets it to @newval. + * If @atomic was not equal to @oldval then no change occurs. + * In any case the value of @atomic before this operation is stored in @preval. + * + * This compare and exchange is done atomically. + * + * Think of this operation as an atomic version of + * `{ *preval = *atomic; if (*atomic == oldval) { *atomic = newval; return TRUE; } else return FALSE; }`. + * + * This call acts as a full compiler and hardware memory barrier. + * + * See also g_atomic_pointer_compare_and_exchange() + * + * Returns: %TRUE if the exchange took place + * Since: 2.74 + */ + + +/** + * g_atomic_pointer_exchange: + * @atomic: a pointer to a #gpointer-sized value + * @newval: the value to replace with + * + * Sets the @atomic to @newval and returns the old value from @atomic. + * + * This exchange is done atomically. + * + * Think of this operation as an atomic version of + * `{ tmp = *atomic; *atomic = val; return tmp; }`. + * + * This call acts as a full compiler and hardware memory barrier. + * + * Returns: the value of @atomic before the exchange + * Since: 2.74 + */ + + +/** * g_atomic_pointer_get: * @atomic: (not nullable): a pointer to a #gpointer-sized value * @@ -14567,6 +14668,21 @@ /** + * g_datalist_id_remove_multiple: + * @datalist: a datalist + * @keys: (array length=n_keys): keys to remove + * @n_keys: length of @keys, must be <= 16 + * + * Removes multiple keys from a datalist. + * + * This is more efficient than calling g_datalist_id_remove_data() + * multiple times in a row. + * + * Since: 2.74 + */ + + +/** * g_datalist_id_remove_no_notify: (skip) * @datalist: a datalist. * @key_id: the #GQuark identifying a data element. @@ -15612,7 +15728,8 @@ * - \%c: the preferred date and time representation for the current locale * - \%C: the century number (year/100) as a 2-digit integer (00-99) * - \%d: the day of the month as a decimal number (range 01 to 31) - * - \%e: the day of the month as a decimal number (range 1 to 31) + * - \%e: the day of the month as a decimal number (range 1 to 31); + * single digits are preceded by a figure space * - \%F: equivalent to `%Y-%m-%d` (the ISO 8601 date format) * - \%g: the last two digits of the ISO 8601 week-based year as a * decimal number (00-99). This works well with \%V and \%u. @@ -15623,9 +15740,9 @@ * - \%I: the hour as a decimal number using a 12-hour clock (range 01 to 12) * - \%j: the day of the year as a decimal number (range 001 to 366) * - \%k: the hour (24-hour clock) as a decimal number (range 0 to 23); - * single digits are preceded by a blank + * single digits are preceded by a figure space * - \%l: the hour (12-hour clock) as a decimal number (range 1 to 12); - * single digits are preceded by a blank + * single digits are preceded by a figure space * - \%m: the month as a decimal number (range 01 to 12) * - \%M: the minute as a decimal number (range 00 to 59) * - \%f: the microsecond as a decimal number (range 000000 to 999999) @@ -19342,9 +19459,9 @@ * g_iconv: (skip) * @converter: conversion descriptor from g_iconv_open() * @inbuf: bytes to convert - * @inbytes_left: inout parameter, bytes remaining to convert in @inbuf + * @inbytes_left: (inout): inout parameter, bytes remaining to convert in @inbuf * @outbuf: converted output bytes - * @outbytes_left: inout parameter, bytes available to fill in @outbuf + * @outbytes_left: (inout): inout parameter, bytes available to fill in @outbuf * * Same as the standard UNIX routine iconv(), but * may be implemented via libiconv on UNIX flavors that lack @@ -19450,6 +19567,25 @@ /** + * g_idle_add_once: + * @function: function to call + * @data: data to pass to @function + * + * Adds a function to be called whenever there are no higher priority + * events pending to the default main loop. The function is given the + * default idle priority, %G_PRIORITY_DEFAULT_IDLE. + * + * The function will only be called once and then the source will be + * automatically removed from the main context. + * + * This function otherwise behaves like g_idle_add(). + * + * Returns: the ID (greater than 0) of the event source + * Since: 2.74 + */ + + +/** * g_idle_remove_by_data: * @data: the data for the idle source's callback. * @@ -23162,6 +23298,9 @@ * Allocates @n_bytes bytes of memory. * If @n_bytes is 0 it returns %NULL. * + * If the allocation fails (because the system is out of memory), + * the program is terminated. + * * Returns: a pointer to the allocated memory */ @@ -23173,6 +23312,9 @@ * Allocates @n_bytes bytes of memory, initialized to 0's. * If @n_bytes is 0 it returns %NULL. * + * If the allocation fails (because the system is out of memory), + * the program is terminated. + * * Returns: a pointer to the allocated memory */ @@ -23185,6 +23327,9 @@ * This function is similar to g_malloc0(), allocating (@n_blocks * @n_block_bytes) bytes, * but care is taken to detect possible overflow during multiplication. * + * If the allocation fails (because the system is out of memory), + * the program is terminated. + * * Since: 2.24 * Returns: a pointer to the allocated memory */ @@ -23198,6 +23343,9 @@ * This function is similar to g_malloc(), allocating (@n_blocks * @n_block_bytes) bytes, * but care is taken to detect possible overflow during multiplication. * + * If the allocation fails (because the system is out of memory), + * the program is terminated. + * * Since: 2.24 * Returns: a pointer to the allocated memory */ @@ -23950,7 +24098,7 @@ * and must not be freed. Use g_regex_ref() if you need to keep it * after you free @match_info object. * - * Returns: #GRegex object used in @match_info + * Returns: (transfer none): #GRegex object used in @match_info * Since: 2.14 */ @@ -24322,7 +24470,7 @@ * Calling g_mutex_clear() on a locked mutex leads to undefined * behaviour. * - * Sine: 2.32 + * Since: 2.32 */ @@ -25993,7 +26141,8 @@ * pointing to) are copied to the new #GPtrArray. * * The copy of @array will have the same #GDestroyNotify for its elements as - * @array. + * @array. The copy will also be %NULL terminated if (and only if) the source + * array is. * * Returns: (transfer full): a deep copy of the initial #GPtrArray. * Since: 2.62 @@ -26020,6 +26169,8 @@ * If @func is %NULL, then only the pointers (and not what they are * pointing to) are copied to the new #GPtrArray. * + * Whether @array_to_extend is %NULL terminated stays unchanged by this function. + * * Since: 2.62 */ @@ -26116,6 +26267,10 @@ * be freed separately if @free_seg is %TRUE and no #GDestroyNotify * function has been set for @array. * + * Note that if the array is %NULL terminated and @free_seg is %FALSE + * then this will always return an allocated %NULL terminated buffer. + * If pdata is previously %NULL, a new buffer will be allocated. + * * This function is not thread-safe. If using a #GPtrArray from multiple * threads, use only the atomic g_ptr_array_ref() and g_ptr_array_unref() * functions. @@ -26153,6 +26308,22 @@ /** + * g_ptr_array_is_null_terminated: + * @array: the #GPtrArray + * + * Gets whether the @array was constructed as %NULL-terminated. + * + * This will only return %TRUE for arrays constructed by passing %TRUE to the + * `null_terminated` argument of g_ptr_array_new_null_terminated(). It will not + * return %TRUE for normal arrays which have had a %NULL element appended to + * them. + * + * Returns: %TRUE if the array is made to be %NULL terminated. + * Since: 2.74 + */ + + +/** * g_ptr_array_new: * * Creates a new #GPtrArray with a reference count of 1. @@ -26175,12 +26346,43 @@ * g_ptr_array_unref(), when g_ptr_array_free() is called with * @free_segment set to %TRUE or when removing elements. * - * Returns: A new #GPtrArray + * Returns: (transfer full): A new #GPtrArray * Since: 2.30 */ /** + * g_ptr_array_new_null_terminated: + * @reserved_size: number of pointers preallocated. + * If @null_terminated is %TRUE, the actually allocated + * buffer size is @reserved_size plus 1, unless @reserved_size + * is zero, in which case no initial buffer gets allocated. + * @element_free_func: (nullable): A function to free elements with + * destroy @array or %NULL + * @null_terminated: whether to make the array as %NULL terminated. + * + * Like g_ptr_array_new_full() but also allows to set the array to + * be %NULL terminated. A %NULL terminated pointer array has an + * additional %NULL pointer after the last element, beyond the + * current length. + * + * #GPtrArray created by other constructors are not automatically %NULL + * terminated. + * + * Note that if the @array's length is zero and currently no + * data array is allocated, then pdata will still be %NULL. + * %GPtrArray will only %NULL terminate pdata, if an actual + * array is allocated. It does not guarantee that an array + * is always allocated. In other words, if the length is zero, + * then pdata may either point to a %NULL terminated array of length + * zero or be %NULL. + * + * Returns: (transfer full): A new #GPtrArray + * Since: 2.74 + */ + + +/** * g_ptr_array_new_with_free_func: * @element_free_func: (nullable): A function to free elements with * destroy @array or %NULL @@ -26190,7 +26392,7 @@ * either via g_ptr_array_unref(), when g_ptr_array_free() is called with * @free_segment set to %TRUE or when removing elements. * - * Returns: A new #GPtrArray + * Returns: (transfer full): A new #GPtrArray * Since: 2.22 */ @@ -26445,6 +26647,10 @@ * the underlying array is preserved for use elsewhere and returned * to the caller. * + * Note that if the array is %NULL terminated this may still return + * %NULL if the length of the array was zero and pdata was not yet + * allocated. + * * Even if set, the #GDestroyNotify function will never be called * on the current contents of the array and the caller is * responsible for freeing the array elements. @@ -26482,8 +26688,9 @@ * g_assert (chunk_buffer->len == 0); * | * - * Returns: (transfer full): the element data, which should be - * freed using g_free(). + * Returns: (transfer full) (nullable): the element data, which should be + * freed using g_free(). This may be %NULL if the array doesn’t have any + * elements (i.e. if `*len` is zero). * Since: 2.64 */ @@ -27505,6 +27712,9 @@ * have zero-length. @n_bytes may be 0, in which case %NULL will be returned * and @mem will be freed unless it is %NULL. * + * If the allocation fails (because the system is out of memory), + * the program is terminated. + * * Returns: the new address of the allocated memory */ @@ -27518,6 +27728,9 @@ * This function is similar to g_realloc(), allocating (@n_blocks * @n_block_bytes) bytes, * but care is taken to detect possible overflow during multiplication. * + * If the allocation fails (because the system is out of memory), + * the program is terminated. + * * Since: 2.24 * Returns: the new address of the allocated memory */ @@ -27536,7 +27749,7 @@ * Calling g_rec_mutex_clear() on a locked recursive mutex leads * to undefined behaviour. * - * Sine: 2.32 + * Since: 2.32 */ @@ -27930,7 +28143,7 @@ * GRegex *regex; * GMatchInfo *match_info; * - * regex = g_regex_new ("A-Z+", 0, 0, NULL); + * regex = g_regex_new ("A-Z+", G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL); * g_regex_match (regex, string, 0, &match_info); * while (g_match_info_matches (match_info)) * { @@ -28080,7 +28293,7 @@ * GMatchInfo *match_info; * GError *error = NULL; * - * regex = g_regex_new ("A-Z+", 0, 0, NULL); + * regex = g_regex_new ("A-Z+", G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL); * g_regex_match_full (regex, string, -1, 0, 0, &match_info, &error); * while (g_match_info_matches (match_info)) * { @@ -28246,7 +28459,7 @@ * g_hash_table_insert (h, "3", "THREE"); * g_hash_table_insert (h, "4", "FOUR"); * - * reg = g_regex_new ("1|2|3|4", 0, 0, NULL); + * reg = g_regex_new ("1|2|3|4", G_REGEX_DEFAULT, G_REGEX_MATCH_DEFAULT, NULL); * res = g_regex_replace_eval (reg, text, -1, 0, 0, eval_cb, h, NULL); * g_hash_table_destroy (h); * @@ -28505,7 +28718,7 @@ * Calling g_rw_lock_clear() when any thread holds the lock * leads to undefined behaviour. * - * Sine: 2.32 + * Since: 2.32 */ @@ -31450,17 +31663,23 @@ * @envp. If both %G_SPAWN_SEARCH_PATH and %G_SPAWN_SEARCH_PATH_FROM_ENVP * are used, the value from @envp takes precedence over the environment. * + * %G_SPAWN_CHILD_INHERITS_STDIN means that the child will inherit the parent's + * standard input (by default, the child's standard input is attached to + * `/dev/null`). %G_SPAWN_STDIN_FROM_DEV_NULL explicitly imposes the default + * behavior. Both flags cannot be enabled at the same time and, in both cases, + * the @stdin_pipe_out argument is ignored. + * * %G_SPAWN_STDOUT_TO_DEV_NULL means that the child's standard output - * will be discarded, instead of going to the same location as the parent's - * standard output. If you use this flag, @stdout_pipe_out must be %NULL. + * will be discarded (by default, it goes to the same location as the parent's + * standard output). %G_SPAWN_CHILD_INHERITS_STDOUT explicitly imposes the + * default behavior. Both flags cannot be enabled at the same time and, in + * both cases, the @stdout_pipe_out argument is ignored. * * %G_SPAWN_STDERR_TO_DEV_NULL means that the child's standard error - * will be discarded, instead of going to the same location as the parent's - * standard error. If you use this flag, @stderr_pipe_out must be %NULL. - * - * %G_SPAWN_CHILD_INHERITS_STDIN means that the child will inherit the parent's - * standard input (by default, the child's standard input is attached to - * `/dev/null`). If you use this flag, @stdin_pipe_out must be %NULL. + * will be discarded (by default, it goes to the same location as the parent's + * standard error). %G_SPAWN_CHILD_INHERITS_STDERR explicitly imposes the + * default behavior. Both flags cannot be enabled at the same time and, in + * both cases, the @stderr_pipe_out argument is ignored. * * It is valid to pass the same FD in multiple parameters (e.g. you can pass * a single FD for both @stdout_fd and @stderr_fd, and include it in @@ -32276,7 +32495,7 @@ * | * * Returns: a UTF-8 string describing the error code. If the error code - * is unknown, it returns a string like "unknown error (<code>)". + * is unknown, it returns a string like "Unknown error: <code>". */ @@ -34572,7 +34791,7 @@ * } * * // Reruns this same test in a subprocess - * g_test_trap_subprocess (NULL, 0, 0); + * g_test_trap_subprocess (NULL, 0, G_TEST_SUBPROCESS_DEFAULT); * g_test_trap_assert_failed (); * g_test_trap_assert_stderr ("*ERROR*too large*"); * } @@ -35417,7 +35636,13 @@ * This is equivalent to calling g_time_zone_new() with a string in the form * `+|-hh:mm:ss`. * - * Returns: (transfer full): a timezone at the given offset from UTC + * It is possible for this function to fail if @seconds is too big (greater than + * 24 hours), in which case this function will return the UTC timezone for + * backwards compatibility. To detect failures like this, use + * g_time_zone_new_identifier() directly. + * + * Returns: (transfer full): a timezone at the given offset from UTC, or UTC on + * failure * Since: 2.58 */ @@ -35543,6 +35768,26 @@ /** + * g_timeout_add_once: + * @interval: the time after which the function will be called, in + * milliseconds (1/1000ths of a second) + * @function: function to call + * @data: data to pass to @function + * + * Sets a function to be called after @interval milliseconds have elapsed, + * with the default priority, %G_PRIORITY_DEFAULT. + * + * The given @function is called once and then the source will be automatically + * removed from the main context. + * + * This function otherwise behaves like g_timeout_add(). + * + * Returns: the ID (greater than 0) of the event source + * Since: 2.74 + */ + + +/** * g_timeout_add_seconds: * @interval: the time between calls to the function, in seconds * @function: function to call @@ -37122,7 +37367,7 @@ /** * g_unix_open_pipe: - * @fds: Array of two integers + * @fds: (array fixed-size=2): Array of two integers * @flags: Bitfield of file descriptor flags, as for fcntl() * @error: a #GError * @@ -37203,11 +37448,11 @@ * * For example, an effective use of this function is to handle `SIGTERM` * cleanly; flushing any outstanding files, and then calling - * g_main_loop_quit (). It is not safe to do any of this a regular - * UNIX signal handler; your handler may be invoked while malloc() or - * another library function is running, causing reentrancy if you - * attempt to use it from the handler. None of the GLib/GObject API - * is safe against this kind of reentrancy. + * g_main_loop_quit(). It is not safe to do any of this from a regular + * UNIX signal handler; such a handler may be invoked while malloc() or + * another library function is running, causing reentrancy issues if the + * handler attempts to use those functions. None of the GLib/GObject + * API is safe against this kind of reentrancy. * * The interaction of this source when combined with native UNIX * functions like sigprocmask() is not defined. @@ -38474,7 +38719,7 @@ * must be valid UTF-8 encoded text. (Use g_utf8_validate() on all * text before trying to use UTF-8 utility functions with it.) * - * Note you must ensure @dest is at least 4 * @n to fit the + * Note you must ensure @dest is at least 4 * @n + 1 to fit the * largest possible UTF-8 characters * * Returns: (transfer none): @dest @@ -39254,7 +39499,7 @@ * returned. If @expected_type was specified then any non-%NULL return * value will have this type. * - * Returns: (transfer full): the value of the dictionary key, or %NULL + * Returns: (transfer full) (nullable): the value of the dictionary key, or %NULL * Since: 2.40 */
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/gir/gobject-2.0.c -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/gir/gobject-2.0.c
Changed
@@ -2879,9 +2879,11 @@ * class initialization: * * |<!-- language="C" --> - * enum { - * PROP_0, PROP_FOO, PROP_BAR, N_PROPERTIES - * }; + * typedef enum { + * PROP_FOO = 1, + * PROP_BAR, + * N_PROPERTIES + * } MyObjectProperty; * * static GParamSpec *obj_propertiesN_PROPERTIES = { NULL, }; * @@ -2894,17 +2896,17 @@ * g_param_spec_int ("foo", "Foo", "Foo", * -1, G_MAXINT, * 0, - * G_PARAM_READWRITE); + * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); * * obj_propertiesPROP_BAR = * g_param_spec_string ("bar", "Bar", "Bar", * NULL, - * G_PARAM_READWRITE); + * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); * * gobject_class->set_property = my_object_set_property; * gobject_class->get_property = my_object_get_property; * g_object_class_install_properties (gobject_class, - * N_PROPERTIES, + * G_N_ELEMENTS (obj_properties), * obj_properties); * } * | @@ -2998,8 +3000,8 @@ * * The signal specs expected by this function have the form * "modifier::signal_name", where modifier can be one of the following: - * - signal: equivalent to g_signal_connect_data (..., NULL, 0) - * - object-signal, object_signal: equivalent to g_signal_connect_object (..., 0) + * - signal: equivalent to g_signal_connect_data (..., NULL, G_CONNECT_DEFAULT) + * - object-signal, object_signal: equivalent to g_signal_connect_object (..., G_CONNECT_DEFAULT) * - swapped-signal, swapped_signal: equivalent to g_signal_connect_data (..., NULL, G_CONNECT_SWAPPED) * - swapped_object_signal, swapped-object-signal: equivalent to g_signal_connect_object (..., G_CONNECT_SWAPPED) * - signal_after, signal-after: equivalent to g_signal_connect_data (..., NULL, G_CONNECT_AFTER) @@ -3451,12 +3453,11 @@ * g_object_class_install_property() inside a static array, e.g.: * * |<!-- language="C" --> - * enum + * typedef enum * { - * PROP_0, - * PROP_FOO, + * PROP_FOO = 1, * PROP_LAST - * }; + * } MyObjectProperty; * * static GParamSpec *propertiesPROP_LAST; * @@ -3466,7 +3467,7 @@ * propertiesPROP_FOO = g_param_spec_int ("foo", "Foo", "The foo", * 0, 100, * 50, - * G_PARAM_READWRITE); + * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); * g_object_class_install_property (gobject_class, * PROP_FOO, * propertiesPROP_FOO); @@ -3925,8 +3926,8 @@ /** * g_param_spec_boolean: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @default_value: default value for the property specified * @flags: flags for the property specified * @@ -3945,8 +3946,8 @@ /** * g_param_spec_boxed: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @boxed_type: %G_TYPE_BOXED derived type of this property * @flags: flags for the property specified * @@ -3962,8 +3963,8 @@ /** * g_param_spec_char: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -3978,8 +3979,8 @@ /** * g_param_spec_double: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -3997,8 +3998,8 @@ /** * g_param_spec_enum: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @enum_type: a #GType derived from %G_TYPE_ENUM * @default_value: default value for the property specified * @flags: flags for the property specified @@ -4015,8 +4016,8 @@ /** * g_param_spec_flags: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @flags_type: a #GType derived from %G_TYPE_FLAGS * @default_value: default value for the property specified * @flags: flags for the property specified @@ -4033,8 +4034,8 @@ /** * g_param_spec_float: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -4137,8 +4138,8 @@ /** * g_param_spec_gtype: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @is_a_type: a #GType whose subtypes are allowed as values * of the property (use %G_TYPE_NONE for any type) * @flags: flags for the property specified @@ -4156,8 +4157,8 @@ /** * g_param_spec_int: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -4174,8 +4175,8 @@ /** * g_param_spec_int64: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -4193,8 +4194,8 @@ * g_param_spec_internal: (skip) * @param_type: the #GType for the property; must be derived from %G_TYPE_PARAM * @name: the canonical name of the property - * @nick: the nickname of the property - * @blurb: a short description of the property + * @nick: (nullable): the nickname of the property + * @blurb: (nullable): a short description of the property * @flags: a combination of #GParamFlags * * Creates a new #GParamSpec instance. @@ -4203,11 +4204,12 @@ * the rules for @name. Names which violate these rules lead to undefined * behaviour. * - * Beyond the name, #GParamSpecs have two more descriptive - * strings associated with them, the @nick, which should be suitable - * for use as a label for the property in a property editor, and the - * @blurb, which should be a somewhat longer description, suitable for - * e.g. a tooltip. The @nick and @blurb should ideally be localized. + * Beyond the name, #GParamSpecs have two more descriptive strings, the + * @nick and @blurb, which may be used as a localized label and description. + * For GTK and related libraries these are considered deprecated and may be + * omitted, while for other libraries such as GStreamer and its plugins they + * are essential. When in doubt, follow the conventions used in the + * surrounding code and supporting libraries. * * Returns: (type GObject.ParamSpec): (transfer floating): a newly allocated * #GParamSpec instance, which is initially floating @@ -4233,8 +4235,8 @@ /** * g_param_spec_long: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -4251,8 +4253,8 @@ /** * g_param_spec_object: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @object_type: %G_TYPE_OBJECT derived type of this property * @flags: flags for the property specified * @@ -4282,8 +4284,8 @@ /** * g_param_spec_param: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @param_type: a #GType derived from %G_TYPE_PARAM * @flags: flags for the property specified * @@ -4299,8 +4301,8 @@ /** * g_param_spec_pointer: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @flags: flags for the property specified * * Creates a new #GParamSpecPointer instance specifying a pointer property. @@ -4474,8 +4476,8 @@ /** * g_param_spec_string: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @default_value: (nullable): default value for the property specified * @flags: flags for the property specified * @@ -4490,8 +4492,8 @@ /** * g_param_spec_uchar: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -4506,8 +4508,8 @@ /** * g_param_spec_uint: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -4524,8 +4526,8 @@ /** * g_param_spec_uint64: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -4543,8 +4545,8 @@ /** * g_param_spec_ulong: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @minimum: minimum value for the property specified * @maximum: maximum value for the property specified * @default_value: default value for the property specified @@ -4562,8 +4564,8 @@ /** * g_param_spec_unichar: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @default_value: default value for the property specified * @flags: flags for the property specified * @@ -4588,8 +4590,8 @@ /** * g_param_spec_value_array: (skip) * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @element_spec: a #GParamSpec describing the elements contained in * arrays of this property, may be %NULL * @flags: flags for the property specified @@ -4608,8 +4610,8 @@ /** * g_param_spec_variant: * @name: canonical name of the property specified - * @nick: nick name for the property specified - * @blurb: description of the property specified + * @nick: (nullable): nick name for the property specified + * @blurb: (nullable): description of the property specified * @type: a #GVariantType * @default_value: (nullable) (transfer full): a #GVariant of type @type to * use as the default value, or %NULL @@ -4676,6 +4678,20 @@ /** + * g_param_value_is_valid: + * @pspec: a valid #GParamSpec + * @value: a #GValue of correct type for @pspec + * + * Return whether the contents of @value comply with the specifications + * set out by @pspec. + * + * Returns: whether the contents of @value comply with the specifications + * set out by @pspec. + * Since: 2.74 + */ + + +/** * g_param_value_set_default: * @pspec: a valid #GParamSpec * @value: a #GValue of correct type for @pspec; since 2.64, you @@ -5017,6 +5033,22 @@ /** + * g_signal_group_connect_closure: + * @self: a #GSignalGroup + * @detailed_signal: a string of the form `signal-name` with optional `::signal-detail` + * @closure: (not nullable): the closure to connect. + * @after: whether the handler should be called before or after the + * default handler of the signal. + * + * Connects @closure to the signal @detailed_signal on #GSignalGroup:target. + * + * You cannot connect a signal handler after #GSignalGroup:target has been set. + * + * Since: 2.74 + */ + + +/** * g_signal_group_connect_data: * @self: a #GSignalGroup * @detailed_signal: a string of the form "signal-name::detail" @@ -5457,7 +5489,7 @@ * an object definition, instead the function pointer is passed * directly and can be overridden by derived classes with * g_signal_override_class_closure() or - * g_signal_override_class_handler()and chained to with + * g_signal_override_class_handler() and chained to with * g_signal_chain_from_overridden() or * g_signal_chain_from_overridden_handler(). *
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/gir/meson.build -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/gir/meson.build
Changed
@@ -1,3 +1,24 @@ +gir_files = + 'DBus-1.0.gir', + 'DBusGLib-1.0.gir', + 'fontconfig-2.0.gir', + 'freetype2-2.0.gir', + 'GL-1.0.gir', + 'libxml2-2.0.gir', + 'Vulkan-1.0.gir', + 'xft-2.0.gir', + 'xlib-2.0.gir', + 'xfixes-4.0.gir', + 'xrandr-1.3.gir', + 'win32-1.0.gir', + +# Copy gir files to build directory to have them all in a single place. +# This is needed when gobject-introspection is a subproject because Meson +# will add --includedir pointing to build directory automatically. +foreach gir : gir_files + configure_file(input: gir, output: gir, copy: true) +endforeach + cairo_conf = configuration_data() if get_option('cairo_libname') != '' cairo_library_name = get_option('cairo_libname') @@ -21,22 +42,7 @@ output: 'cairo-1.0.gir', configuration: cairo_conf, ) - -gir_files = - cairo_gir, - 'DBus-1.0.gir', - 'DBusGLib-1.0.gir', - 'fontconfig-2.0.gir', - 'freetype2-2.0.gir', - 'GL-1.0.gir', - 'libxml2-2.0.gir', - 'Vulkan-1.0.gir', - 'xft-2.0.gir', - 'xlib-2.0.gir', - 'xfixes-4.0.gir', - 'xrandr-1.3.gir', - 'win32-1.0.gir', - +gir_files += cairo_gir typelibdir = join_paths(get_option('libdir'), 'girepository-1.0') install_data(gir_files, install_dir: girdir) @@ -107,7 +113,7 @@ glib_files += join_paths(glib_incdir, 'glib-unix.h') endif # Parse glob to get installed header list - ret = run_command(python, '-c', globber.format(join_paths(glib_incdir, 'glib', '*.h'))) + ret = run_command(python, '-c', globber.format(join_paths(glib_incdir, 'glib', '*.h')), check: true) if ret.returncode() != 0 error('Failed to get glib header list') endif @@ -115,7 +121,7 @@ # Get a list of all source files glib_srcdir = get_option('glib_src_dir') if glib_srcdir != '' - ret = run_command(python, '-c', globber.format(join_paths(glib_srcdir, 'glib', '*.c'))) + ret = run_command(python, '-c', globber.format(join_paths(glib_srcdir, 'glib', '*.c')), check: true) if ret.returncode() != 0 error('Failed to get glib source list') endif @@ -133,20 +139,20 @@ # We know exactly what headers will be installed, so just fetch that glib_subproject = subproject('glib') - glibproj_sourcedir = join_paths(meson.project_source_root(), subprojdir, 'glib') - glibproj_builddir = join_paths(meson.project_build_root(), subprojdir, 'glib') + glibproj_sourcedir = join_paths(meson.global_source_root(), subprojdir, 'glib') + glibproj_builddir = join_paths(meson.global_build_root(), subprojdir, 'glib') - glib_files += join_paths(glibproj_sourcedir, 'gobject', 'glib-types.h') + glib_files += glib_subproject.get_variable('glib_types_h') # Generated files, relative to the build directory glib_files += - join_paths(glibproj_builddir, 'glib', 'glibconfig.h'), + glib_subproject.get_variable('glibconfig_h'), glib_subproject.get_variable('glib_enumtypes_h'), if giounix_dep.found() glib_files += - join_paths(glibproj_sourcedir, 'glib', 'glib-unix.h'), + glib_subproject.get_variable('glib_unix_h') endif @@ -184,13 +190,13 @@ # XXX: We need include paths to all glib dependencies too. We assume that the # dependencies are only libffi and proxy-libintl, and that they are used as # subprojects. In the worst case we add paths to non-existent directories. - ffi_incdir = join_paths(meson.project_build_root(), subprojdir, 'libffi', 'include') + ffi_incdir = join_paths(meson.global_build_root(), subprojdir, 'libffi', 'include') glib_includes += '-I' + ffi_incdir - intl_incdir = join_paths(meson.project_source_root(), subprojdir, 'proxy-libintl') + intl_incdir = join_paths(meson.global_source_root(), subprojdir, 'proxy-libintl') glib_includes += '-I' + intl_incdir - ffi_libdir = join_paths(meson.project_build_root(), subprojdir, 'libffi', 'src') - intl_libdir = join_paths(meson.project_build_root(), subprojdir, 'proxy-libintl') + ffi_libdir = join_paths(meson.global_build_root(), subprojdir, 'libffi', 'src') + intl_libdir = join_paths(meson.global_build_root(), subprojdir, 'proxy-libintl') glib_libpaths = '-L' + ffi_libdir, '-L' + intl_libdir, @@ -257,13 +263,13 @@ if dep_type == 'pkgconfig' gobject_command += '--external-library', '--pkg=gobject-2.0' # Get the installed header list - ret = run_command(python, '-c', globber.format(join_paths(glib_incdir, 'gobject', '*.h'))) + ret = run_command(python, '-c', globber.format(join_paths(glib_incdir, 'gobject', '*.h')), check: true) if ret.returncode() != 0 error('Failed to get gobject header list') endif gobject_headers = ret.stdout().strip().split('\n') if glib_srcdir != '' - ret = run_command(python, '-c', globber.format(join_paths(glib_srcdir, 'gobject', '*.c'))) + ret = run_command(python, '-c', globber.format(join_paths(glib_srcdir, 'gobject', '*.c')), check: true) if ret.returncode() != 0 error('Failed to get gobject source list') endif @@ -332,8 +338,8 @@ gmodule_command += '--pkg-export=gmodule-2.0' gmodule_command += glib_libpaths gmodule_files += - join_paths(glibproj_sourcedir, 'gmodule', 'gmodule.h'), - join_paths(glibproj_sourcedir, 'gmodule', 'gmodule.c'), + glib_subproject.get_variable('gmodule_h'), + glib_subproject.get_variable('gmodule_c'), glib_subproject.get_variable('gmoduleconf_h'), gmodule_gir_dep = glib_subproject.get_variable('libgmodule') @@ -373,7 +379,7 @@ if dep_type == 'pkgconfig' gio_command += '--external-library', '--pkg=gio-2.0' # Get the installed header list - ret = run_command(python, '-c', globber.format(join_paths(glib_incdir, 'gio', '*.h'))) + ret = run_command(python, '-c', globber.format(join_paths(glib_incdir, 'gio', '*.h')), check: true) if ret.returncode() != 0 error('Failed to get gio header list') endif @@ -382,7 +388,7 @@ # probably fine since it matches what Autotools does. We are more exact in # the subproject case. if glib_srcdir != '' - ret = run_command(python, '-c', globber.format(join_paths(glib_srcdir, 'gio', '*.c'))) + ret = run_command(python, '-c', globber.format(join_paths(glib_srcdir, 'gio', '*.c')), check: true) if ret.returncode() != 0 error('Failed to get gio source list') endif @@ -414,7 +420,7 @@ gio_command += '--pkg=gio-unix-2.0' giounix_includedir = get_option('gi_cross_pkgconfig_sysroot_path') + join_paths(giounix_dep.get_variable(pkgconfig: 'includedir'), 'gio-unix-2.0') # Get the installed gio-unix header list - ret = run_command(python, '-c', globber.format(join_paths(giounix_includedir, 'gio', '*.h'))) + ret = run_command(python, '-c', globber.format(join_paths(giounix_includedir, 'gio', '*.h')), check: true) if ret.returncode() != 0 error('Failed to get gio-unix header list') endif
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/gir/win32-1.0.gir -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/gir/win32-1.0.gir
Changed
@@ -11,9 +11,14 @@ <alias name="HICON" c:type="HICON"> <type name="gulong" c:type="gulong"/> </alias> + <alias name="HCURSOR" c:type="HCURSOR"> + <type name="gulong" c:type="gulong"/> + </alias> <alias name="HGDIOBJ" c:type="HGDIOBJ"> <type name="gulong" c:type="gulong"/> </alias> + + <record name="MSG" c:type="MSG"/> </namespace> </repository>
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/girepository/cmph/meson.build -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/girepository/cmph/meson.build
Changed
@@ -43,6 +43,7 @@ '-Wno-cast-align', '-Wno-unused-function', '-Wno-return-type', + '-Wno-sometimes-uninitialized', ) endif
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/girepository/gicallableinfo.c -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/girepository/gicallableinfo.c
Changed
@@ -574,8 +574,8 @@ g_base_info_unref (interface_info); } - return gi_type_tag_extract_ffi_return_value (return_tag, interface_type, - ffi_value, arg); + gi_type_tag_extract_ffi_return_value (return_tag, interface_type, + ffi_value, arg); } /**
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/girepository/gifunctioninfo.c -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/girepository/gifunctioninfo.c
Changed
@@ -237,8 +237,7 @@ * may be %NULL * @n_out_args: the length of the @out_args array * @return_value: return location for the return value of the - * function. If the function returns void, @return_value may be - * %NULL + * function. * @error: return location for detailed error information, or %NULL * * Invokes the function described in @info with the given
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/girepository/gitypeinfo.c -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/girepository/gitypeinfo.c
Changed
@@ -470,8 +470,8 @@ GIArgument *arg) { GITypeTag storage_type = g_type_info_get_storage_type (info); - return gi_type_tag_argument_from_hash_pointer (storage_type, hash_pointer, - arg); + gi_type_tag_argument_from_hash_pointer (storage_type, hash_pointer, + arg); } /**
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/giscanner/ccompiler.py -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/giscanner/ccompiler.py
Changed
@@ -95,6 +95,41 @@ compiler.shared_lib_extension = shlib_suffix +def resolve_mingw_lib(implib, libtool=None): + """Returns a DLL name given a path to an import lib + + /full/path/to/libgtk-3.dll.a -> libgtk-3-0.dll + """ + + args = + if libtool: + args.extend(libtool) + args.append('--mode=execute') + + # Figure out if we have a gcc toolchain or llvm one + dlltool = os.environ.get('DLLTOOL', 'dlltool.exe') + dlltool_output = subprocess.run( + dlltool, stdout=subprocess.PIPE, + stderr=subprocess.STDOUT, + universal_newlines=True).stdout + is_llvm = 'llvm-dlltool' in dlltool_output + + if not is_llvm: + # gcc dlltool provides this via --identify + dlltool_args = args + dlltool, '--identify' + output = subprocess.check_output(dlltool_args + implib, universal_newlines=True) + for line in output.splitlines(): + return line + else: + # for llvm we need to parse the output of nm + # https://github.com/msys2/MINGW-packages/issues/11994#issuecomment-1176691216 + output = subprocess.check_output(args + 'nm', implib, universal_newlines=True) + for line in output.splitlines(): + if line.endswith(':'): + return line:-1 + return None + + # Flags that retain macros in preprocessed output. FLAGS_RETAINING_MACROS = '-g3', '-ggdb3', '-gstabs3', '-gcoff3', '-gxcoff3', '-gvms3' @@ -208,7 +243,7 @@ args.append('-libpath:' + library_path) else: args.append('-L' + library_path) - if os.path.isabs(library_path): + if os.name != 'nt' and os.path.isabs(library_path): if libtool: args.append('-rpath') args.append(library_path) @@ -341,10 +376,6 @@ # When we are not using Visual C++ nor clang-cl (i.e. we are using GCC)... else: libtool = utils.get_libtool_command(options) - if libtool: - args.extend(libtool) - args.append('--mode=execute') - args.extend(os.environ.get('DLLTOOL', 'dlltool.exe'), '--identify') proc = subprocess.Popen(self.compiler_cmd, '-print-search-dirs', stdout=subprocess.PIPE) o, e = proc.communicate() @@ -400,13 +431,10 @@ tmp_fileobj.close() os.unlink(tmp_filename) else: - proc = subprocess.Popen(args + implib, - stdout=subprocess.PIPE) - o, e = proc.communicate() - for line in o.decode('ascii').splitlines(): - shlibs.append(line) + shlib = resolve_mingw_lib(implib, libtool) + if shlib is not None: + shlibs.append(shlib) found = True - break if not found: not_resolved.append(lib) if len(not_resolved) > 0:
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/giscanner/doctemplates/devdocs/Gjs/_index.tmpl -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/giscanner/doctemplates/devdocs/Gjs/_index.tmpl
Changed
@@ -141,7 +141,7 @@ <tr> <td class="${doc.deprecated_class(s)}"> <a href="#${formatter.make_anchor(s)}">${s.name}</a><!-- no space - -->(${formatter.format_in_parameters(s)}) + -->(${formatter.format_signal_parameters(s)}) </td> </tr> </%doc:introspectable>
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/giscanner/doctemplates/devdocs/Gjs/_method.tmpl -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/giscanner/doctemplates/devdocs/Gjs/_method.tmpl
Changed
@@ -13,10 +13,17 @@ in_params = formatter.get_in_parameters(m) out_params = formatter.get_out_parameters(m) %> - % if in_params: + % if in_params or isinstance(m, ast.Signal): <dt>Parameters:</dt> <dd> <ul> + % if isinstance(m, ast.Signal): + <li> + <strong>${formatter.to_lower_camel_case(m.parent.name)}</strong> + (<code>${m.parent.gi_name}</code>) + — the emitting object + </li> + %endif % for p in in_params: <li> <strong>${p.argname}</strong>
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/giscanner/doctemplates/devdocs/Gjs/_signals.tmpl -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/giscanner/doctemplates/devdocs/Gjs/_signals.tmpl
Changed
@@ -9,7 +9,7 @@ id="${formatter.make_anchor(s)}"> ${s.name}<!-- no space --></span><!-- - -->(${formatter.format_in_parameters(s)}) + -->(${formatter.format_signal_parameters(s)}) </h3> <dl> <dt>Flags</dt>
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/giscanner/docwriter.py -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/giscanner/docwriter.py
Changed
@@ -1274,6 +1274,12 @@ def format_in_parameters(self, node): return ', '.join(p.argname for p in self.get_in_parameters(node)) + def format_signal_parameters(self, node): + emitter = self.to_lower_camel_case(node.parent.name) + in_params = self.format_in_parameters(node) + + return '%s, %s' % (emitter, in_params) if in_params else emitter + LANGUAGES = { "devdocs": {
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/giscanner/dumper.py -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/giscanner/dumper.py
Changed
@@ -34,6 +34,10 @@ # we want to introspect, in order to call its get_type functions. _PROGRAM_TEMPLATE = """/* This file is generated, do not edit */ + +#undef GLIB_VERSION_MIN_REQUIRED +#undef GLIB_VERSION_MAX_ALLOWED + #include <glib.h> #include <string.h> #include <stdlib.h>
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/giscanner/meson.build -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/giscanner/meson.build
Changed
@@ -83,6 +83,7 @@ custom_c_args = cc.get_supported_arguments( '-Wno-missing-field-initializers', '-Wno-unused-parameter', + '-Wno-misleading-indentation', ) endif
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/giscanner/scannerparser.y -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/giscanner/scannerparser.y
Changed
@@ -307,6 +307,7 @@ %type <symbol> parameter_declaration %type <symbol> struct_declarator %type <list> enumerator_list +%type <list> function_macro_argument_list %type <list> identifier_list %type <list> init_declarator_list %type <list> parameter_list @@ -1405,8 +1406,23 @@ ; initializer_list - : initializer - | initializer_list ',' initializer + : initializer_list_item + | initializer_list ',' initializer_list_item + ; + +initializer_list_item + : designator_list '=' initializer + | initializer + ; + +designator_list + : designator + | designator_list designator + ; + +designator + : '' constant_expression '' + | '.' identifier ; /* A.2.3 Statements. */ @@ -1513,8 +1529,28 @@ } ; +function_macro_argument_list + : identifier + { + GISourceSymbol *sym = gi_source_symbol_new (CSYMBOL_TYPE_INVALID, scanner->current_file, lineno); + sym->ident = $1; + $$ = g_list_append (NULL, sym); + } + | ELLIPSIS + { + GISourceSymbol *sym = gi_source_symbol_new (CSYMBOL_TYPE_ELLIPSIS, scanner->current_file, lineno); + $$ = g_list_append (NULL, sym); + } + | identifier ',' function_macro_argument_list + { + GISourceSymbol *sym = gi_source_symbol_new (CSYMBOL_TYPE_INVALID, scanner->current_file, lineno); + sym->ident = $1; + $$ = g_list_prepend ($3, sym); + } + ; + function_macro_define - : function_macro '(' identifier_list ')' + : function_macro '(' function_macro_argument_list ')' { GISourceSymbol *sym = gi_source_symbol_new (CSYMBOL_TYPE_FUNCTION_MACRO, scanner->current_file, lineno); GISourceType *func = gi_source_function_new (); @@ -1524,6 +1560,16 @@ gi_source_scanner_add_symbol (scanner, sym); gi_source_symbol_unref (sym); } + | function_macro '(' ')' + { + GISourceSymbol *sym = gi_source_symbol_new (CSYMBOL_TYPE_FUNCTION_MACRO, scanner->current_file, lineno); + GISourceType *func = gi_source_function_new (); + sym->ident = g_strdup ($1); + func->child_list = NULL; + gi_source_symbol_merge_type (sym, func); + gi_source_scanner_add_symbol (scanner, sym); + gi_source_symbol_unref (sym); + } ; object_macro_define
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/meson.build -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/meson.build
Changed
@@ -1,7 +1,8 @@ project('gobject-introspection', 'c', - version: '1.72.0', - meson_version: '>= 0.58.2', + version: '1.74.0', + meson_version: '>= 0.60.0', default_options: + 'c_std=gnu99', 'warning_level=2', 'buildtype=debugoptimized', , @@ -31,7 +32,6 @@ project_c_args += '-Warray-bounds', '-Wcast-align', - '-Wdeclaration-after-statement', '-Wduplicated-branches', '-Wformat=2', '-Wformat-nonliteral', @@ -124,9 +124,7 @@ endif -# FIXME: Always bumped to match our version -#glib_version = '>=2.@0@.@1@'.format(gi_versions1, gi_versions2) -glib_version = '>= 2.58.0' +glib_version = '>=2.@0@.@1@'.format(gi_versions1, gi_versions2) glib_dep = dependency('glib-2.0', version : glib_version, fallback: 'glib', 'libglib_dep') @@ -200,8 +198,8 @@ if doctool_option.disabled() with_doctool = false else - has_mako = run_command(python, '-c', 'import mako').returncode() == 0 - has_markdown = run_command(python, '-c', 'import markdown').returncode() == 0 + has_mako = run_command(python, '-c', 'import mako', check: false).returncode() == 0 + has_markdown = run_command(python, '-c', 'import markdown', check: false).returncode() == 0 if not has_mako or not has_markdown if doctool_option.enabled() error('doctool requires markdown and mako') @@ -290,10 +288,7 @@ # be named girepo_dep for backward compatibility with projects that where already # using that name as fallback: dependency('gobject-introspection-1.0', # fallback : 'gobject-introspection', 'girepo_dep') -# FIXME: meson.override_dependency() and declare_dependency()'s variable arguments -# are new in Meson 0.54.0, older versions of Meson won't be able to use g-i as -# subproject anyway -if meson.version().version_compare('>=0.54.0') and get_option('build_introspection_data') == true +if get_option('build_introspection_data') == true girepo_dep = declare_dependency( sources: typelibs, dependencies: girepo_dep,
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/subprojects/zlib.wrap -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/subprojects/zlib.wrap
Changed
@@ -1,5 +1,12 @@ -wrap-git -directory=zlib -url=https://github.com/centricular/zlib.git -revision=meson -depth=1 +wrap-file +directory = zlib-1.2.12 +source_url = http://zlib.net/fossils/zlib-1.2.12.tar.gz +source_filename = zlib-1.2.12.tar.gz +source_hash = 91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9 +patch_filename = zlib_1.2.12-1_patch.zip +patch_url = https://wrapdb.mesonbuild.com/v2/zlib_1.2.12-1/get_patch +patch_hash = 8ec8344f3fe7b06ad4be768fd416694bc56cb4545ce78b0f1c18b3e72b3ec936 + +provide +zlib = zlib_dep +
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/tests/gimarshallingtests.c -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/tests/gimarshallingtests.c
Changed
@@ -3577,7 +3577,7 @@ * gi_marshalling_tests_gvalue_copy: * @value: The first GValue * - * Returns: (transfer none): + * Returns: (transfer full): */ GValue * gi_marshalling_tests_gvalue_copy (GValue *value)
View file
_service:tar_scm:gobject-introspection-1.72.0.tar.xz/tests/scanner/meson.build -> _service:tar_scm:gobject-introspection-1.74.0.tar.xz/tests/scanner/meson.build
Changed
@@ -102,7 +102,7 @@ dependencies: gobject_dep, gio_dep + regress_deps, ) -python_path = run_command(python, '-c', 'import sys; sys.stdout.write(sys.executable)').stdout() +python_path = run_command(python, '-c', 'import sys; sys.stdout.write(sys.executable)', check: true).stdout() gircompiler_command = test_gircompiler, '-o', '@OUTPUT@', '@INPUT@',
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2