summaryrefslogtreecommitdiff
path: root/gio/gsimpleasyncresult.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename all visibility macrosXavier Claessens2022-10-131-26/+26
|
* gio: Add SPDX license headers automaticallyPhilip Withnall2022-05-181-0/+2
| | | | | | | | | | | | | | Add SPDX license (but not copyright) headers to all files which follow a certain pattern in their existing non-machine-readable header comment. This commit was entirely generated using the command: ``` git ls-files gio/*.[ch] | xargs perl -0777 -pi -e 's/\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/\n \*\n \* SPDX-License-Identifier: LGPL-2.1-or-later\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/igs' ``` Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1415
* Revert "headers: Add various missing G_DISABLE_DEPRECATED guards"Emmanuele Bassi2019-03-161-3/+0
| | | | | | | | | | | | | | | | | This reverts commit 80fcb1bc26edca17a996ee293153f8e07cfc9198. G_DISABLE_DEPRECATED should never be used by anybody, least of all by GLib. We have deprecation annotations for the compiler, these days, and they are much better suited than a macro that makes symbols appear and disappear. The fact that gtk-doc doesn't understand the deprecation annotations is a limitation of gtk-doc, and it's gtk-doc that ought to be fixed. Commit 80fcb1bc broke GStreamer, which disables old API that was deprecated before the introduction of the deprecation annotations, but still uses newly deprecated one, and relies on the deprecation annotations to do their thing. It also broke libsoup, as it uses GValueArray in its own API.
* headers: Add various missing G_DISABLE_DEPRECATED guardsPhilip Withnall2019-03-151-0/+3
| | | | | | | | | | | | As pointed out by gtk-doc, these are all symbols which have been marked as deprecated, but which aren’t protected by a deprecation guard. We can’t use G_DEPRECATED_IN_* for them, as they are all non-function symbols. Instead, wrap them in #ifndef G_DISABLE_DEPRECATED. In some cases, we also need to wrap one or two functions which use the deprecated types in G_DISABLE_DEPRECATED too. Signed-off-by: Philip Withnall <withnall@endlessm.com>
* gio/: LGPLv2+ -> LGPLv2.1+Sébastien Wilmet2017-05-291-1/+1
| | | | | | | | | | | | | | | | | Sub-directories inside gio/ already processed in a previous commit: - fam/ - gdbus-2.0/ (which contains only codegen/) - gvdb/ - inotify/ - tests/ - win32/ - xdgmime/ Other sub-directories inside gio/: - completion/: no license headers - kqueue/: not LGPL, BSD-style license https://bugzilla.gnome.org/show_bug.cgi?id=776504
* gio: deprecate GSimpleAsyncResultDan Winship2015-04-041-25/+25
| | | | | | | GTask has been around for a long time now, everything in GLib is using it, and the run-in-thread deadlock problems should be fixed now. https://bugzilla.gnome.org/show_bug.cgi?id=661767
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* various: add GLIB_AVAILABLE_IN_ALL everywhere elseRyan Lortie2013-01-131-0/+25
| | | | | | | | | | | Add the GLIB_AVAILABLE_IN_ALL annotation to all old functions (that haven't already been annotated with the GLIB_AVAILABLE_IN_* macros or a deprecation macro). If we discover in the future that we cannot use only one macro on Windows, it will be an easy sed patch to fix that. https://bugzilla.gnome.org/show_bug.cgi?id=688681
* Add G_GNUC_PRINTF on all functions with format stringsHenrique Dante de Almeida2013-01-131-2/+3
| | | | | | | | This allows compilation with clang without errors, even when -Wformat-nonliteral is active (as long as there are no real cases of non literal formatting). https://bugzilla.gnome.org/show_bug.cgi?id=691608
* Move single-include guards inside include guardsMatthias Clasen2012-12-271-3/+3
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Annotate API introduced for 2.32 with GLIB_AVAILABLE_IN_2_32Colin Walters2012-05-261-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=676816
* GSimpleAsyncResult: support reliable cancellationRyan Lortie2012-03-141-0/+2
| | | | | | | | | | | | | Add a function g_simple_async_result_set_check_cancellable() to provide a GCancellable that is checked for being cancelled during the call to g_simple_async_result_propagate_error(). This gives asynchronous operation implementations an easy way to provide reliable cancellation of those operations -- even in the case that a positive result has occured and is pending dispatch at the time the operation is cancelled. https://bugzilla.gnome.org/show_bug.cgi?id=672013
* Add g_simple_async_report_take_gerror_in_idleChristian Persch2010-11-031-1/+5
| | | | | | ... and use it where appropriate. Saves an extra GError copy. Bug #633686.
* GSimpleAsyncResult: add error-taking variantsMatthias Clasen2010-10-311-0/+6
| | | | | | | | Add g_simple_async_result_new_take_error and g_simple_async_result_take_error, which take over ownership of the given error. Based on a patch by Christian Persch. https://bugzilla.gnome.org/show_bug.cgi?id=629247
* Make the error const for g_simple_async_result_set_from_errorRichard Hughes2009-09-111-1/+1
|
* Add g_simple_async_result_is_valid(). Implementation by Dan Winship.Ryan Lortie2009-01-051-0/+3
| | | | | | | | | | | | | 2009-01-05 Ryan Lortie <desrt@desrt.ca> * gio.symbols: * ../docs/reference/gio/gio-sections.txt: * gsimpleasyncresult.h: * gsimpleasyncresult.c: Add g_simple_async_result_is_valid(). Implementation by Dan Winship. Closes #566170. svn path=/trunk/; revision=7766
* big header formatting cleanup: indentation, vtable formatting, consistentMichael Natterer2008-09-021-13/+13
| | | | | | | | | | | | 2008-09-02 Michael Natterer <mitch@imendio.com> * *.h: big header formatting cleanup: indentation, vtable formatting, consistent spacing in (* vfunc), trailing whitespace removal. Formatting should be pretty consistent in all GIO headers now. svn path=/trunk/; revision=7433
* Moved all relevant typedefs into these files.Cody Russell2008-07-011-16/+1
| | | | | | | | | | | | | | | | 2008-07-01 Cody Russell <bratsche@gnome.org> * gio/gioenums.h: * gio/giotypes.h: Moved all relevant typedefs into these files. * gio/*.[ch]: Updated wrt added files. Split types into separate file for easier maintainership. (#538564) svn path=/trunk/; revision=7127
* Only allow including <gio/gio.h> from appsAlexander Larsson2007-12-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-12-14 Alexander Larsson <alexl@redhat.com> * Makefile.am: * fam/Makefile.am: * gappinfo.h: * gasyncresult.h: * gbufferedinputstream.h: * gbufferedoutputstream.h: * gcancellable.h: * gcontenttype.h: * gdatainputstream.h: * gdataoutputstream.h: * gdesktopappinfo.h: * gdirectorymonitor.h: * gdrive.h: * gfile.h: * gfileattribute.h: * gfileenumerator.h: * gfileicon.h: * gfileinfo.h: * gfileinputstream.h: * gfilemonitor.h: * gfilenamecompleter.h: * gfileoutputstream.h: * gfilterinputstream.h: * gfilteroutputstream.h: * gicon.h: * ginputstream.h: * gio.h: * gioerror.h: * giomodule.h: * gioscheduler.h: * gloadableicon.h: * gmemoryinputstream.h: * gmemoryoutputstream.h: * gmount.h: * gmountoperation.h: * goutputstream.h: * gseekable.h: * gsimpleasyncresult.h: * gthemedicon.h: * gunixinputstream.h: * gunixmounts.h: * gunixoutputstream.h: * gvfs.h: * gvolume.h: * gvolumemonitor.h: * inotify/Makefile.am: Only allow including <gio/gio.h> from apps svn path=/trunk/; revision=6117
* Make this take a GError and return a gboolean, and do the "outstandingDan Winship2007-12-041-7/+11
| | | | | | | | | | | | | | | | | | | | | | | 2007-11-30 Dan Winship <danw@gnome.org> * ginputstream.c (g_input_stream_set_pending): Make this take a GError and return a gboolean, and do the "outstanding operation" check (and the "stream is already closed" check) itself. (g_input_stream_clear_pending): Formerly set_pending(FALSE). * goutputstream.c (g_output_stream_set_pending) (g_output_stream_clear_pending): Likewise * gbufferedinputstream.c: * gfileinputstream.c: * gfileoutputstream.c: Update for that * gsimpleasyncresult.c (g_simple_async_report_gerror_in_idle): Like g_simple_async_report_error_in_idle, but takes a GError rather than building one. svn path=/trunk/; revision=6039
* Bumps documentation to 93% symbol coverage, touching most Andrew Walton2007-11-271-0/+14
| | | | | | | | of the public files. Fixes broken function documentation prototypes. Fixes GCancellable inaccuracies. Removes unnecessary incomplete gtk-doc headers in private files. svn path=/trunk/; revision=5953
* gio/ docs/reference/gio Merged gio-standalone into glib.Alexander Larsson2007-11-261-0/+115
2007-11-26 Alexander Larsson <alexl@redhat.com> * Makefile.am: * configure.in: * gio-2.0-uninstalled.pc.in: * gio-2.0.pc.in: * gio-unix-2.0-uninstalled.pc.in: * gio-unix-2.0.pc.in: * gio/ * docs/reference/gio Merged gio-standalone into glib. * glib/glibintl.h: * glib/gutils.c: Export glib_gettext so that gio can use it Add P_ (using same domain for now) Add I_ as g_intern_static_string svn path=/trunk/; revision=5941