1. 07 Nov, 2015 1 commit
    • Philip Withnall's avatar
      glib: Add missing (nullable) and (optional) annotations · 25a7c817
      Philip Withnall authored
      Add various (nullable) and (optional) annotations which were missing
      from a variety of functions. Also port a couple of existing (allow-none)
      annotations in the same files to use (nullable) and (optional) as
      appropriate instead.
      Secondly, add various (not nullable) annotations as needed by the new
      default in gobject-introspection of marking gpointers as (nullable). See
      This includes adding some stub documentation comments for the
      assertion macro error functions, which weren’t previously documented.
      The new comments are purely to allow for annotations, and hence are
      marked as (skip) to prevent the symbols appearing in the GIR file.
  2. 30 Oct, 2014 1 commit
  3. 20 Feb, 2014 1 commit
  4. 15 Feb, 2014 1 commit
    • Matthias Clasen's avatar
      docs: let go of * · bc6ee788
      Matthias Clasen authored
      Since we are no longer using sgml mode, using /* */ to
      escape block comments inside examples does not work anymore.
      Switch to using line comments with //
  5. 01 Feb, 2014 1 commit
  6. 31 Jan, 2014 1 commit
  7. 15 Dec, 2013 1 commit
  8. 23 Oct, 2013 2 commits
    • Allison Karlitskaya's avatar
      GMemoryOutputStream: docs and whitespace fixes · 38dc8d4c
      Allison Karlitskaya authored
      Document the difference between resizable and fixed-sized streams,
      particularly with regards to sizing and seeking.
    • Allison Karlitskaya's avatar
      Change semantics of seek on memory output stream · fdc5cd8d
      Allison Karlitskaya authored
      It is our intention that memory output streams should operate in two
      distinct modes, depending on if a realloc function was provided or not.
      In the case that we have a realloc function (resizable mode), we want
      the stream to behave as if it were a file that started out empty.  In
      the case that we don't have a realloc function (fixed-sized mode), we
      want the stream to behave as a block device would.
      To this end, we introduce two changes in functionality:
       - seeking to SEEK_END on a resizable stream will now seek to the end of
         the valid data region, not to the end of the allocated memory (which
         is really just an implementation detail)
       - seeks past the end of the allocated memory size are now permitted,
         but only on resizable streams.  The next write will grow the buffer
         (inserting zeros between).
      Some tweaks to testcases were required in order not to break the build,
      which indicates that this is an API break, but it seems unlikely that
      anyone will be effected by these changes 'in the real world'.
      Updates to documentation and further testcases are in following commits.
      Based on a patch from Maciej Piechotka <uzytkownik2@gmail.com>.
  9. 08 Oct, 2013 1 commit
  10. 24 Jun, 2013 2 commits
  11. 18 Dec, 2012 1 commit
  12. 28 Nov, 2012 1 commit
    • Colin Walters's avatar
      GMemoryOutputStream: Add new _resizable() constructor usable from bindings · ed5c17e1
      Colin Walters authored
      Really, the memory output stream API is too warped around the model
      where it's a fixed size buffer that you've already allocated.  Even in
      C, I find myself always wanting to use it to just accumulate data into
      an arbitrary-sized buffer it allocates.
      Unfortunately, it's also not usable from bindings because it's not
      common to bind g_free() and g_realloc(), but if you just pass NULL, you
      get the default of a fixed size, which is useless as per above.
      I am going to use this from a gjs test case, and the GSubprocess test
      cases also will use it.
  13. 21 May, 2012 1 commit
  14. 17 Apr, 2012 2 commits
  15. 31 Mar, 2012 1 commit
  16. 01 Dec, 2011 1 commit
    • Dan Winship's avatar
      GMemoryInputStream/GMemoryOutputStream: fix bug in previous commit · e7983495
      Dan Winship authored
      A g_input_stream_read_async() implementation can't call
      g_input_stream_read() on itself directly because it will fail because
      the pending flag is already set. So fix that by invoking the vmethod
      directly rather than calling the wrapper. Likewise with
      Add a test to gio/tests/memory-input-stream.c to catch read_async
      failures in the future.
  17. 30 Nov, 2011 1 commit
  18. 27 Dec, 2010 1 commit
  19. 24 Sep, 2010 1 commit
  20. 17 Aug, 2010 1 commit
  21. 07 Jul, 2010 1 commit
  22. 08 Mar, 2010 1 commit
  23. 26 Jan, 2010 1 commit
  24. 06 Jan, 2010 1 commit
  25. 07 Sep, 2009 1 commit
  26. 26 Feb, 2009 1 commit
  27. 01 Jul, 2008 1 commit
    • Cody Russell's avatar
      Moved all relevant typedefs into these files. · 3d93bf69
      Cody Russell authored
      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
  28. 30 Jun, 2008 2 commits
    • Matthias Clasen's avatar
      Add some tests for GMemoryOutputStream. · e3313b26
      Matthias Clasen authored
      2008-06-29  Matthias Clasen  <mclasen@redhat.com>
              * tests/Makefile.am:
              * tests/memory-output-stream.c: Add some tests for
      2008-06-29  Matthias Clasen  <mclasen@redhat.com>
              Bug 540423 – unrecoverable error after g_seekable_truncate(seekable,
              0, ...)
              * gmemoryoutputstream.c (array_resize): Handle truncation to
              zero correctly. Reported by Akira Tagoh
      svn path=/trunk/; revision=7106
    • Matthias Clasen's avatar
      Trivial doc fixes · 19bf6826
      Matthias Clasen authored
      svn path=/trunk/; revision=7104
  29. 22 Jun, 2008 1 commit
  30. 16 Jun, 2008 2 commits
  31. 31 Mar, 2008 1 commit
  32. 21 Feb, 2008 1 commit
  33. 15 Jan, 2008 1 commit
  34. 07 Jan, 2008 2 commits
    • Alexander Larsson's avatar
      Build test subdir after . Remove gdirectorymonitor.[ch] · e23140cb
      Alexander Larsson authored
      2008-01-07  Alexander Larsson  <alexl@redhat.com>
              * Makefile.am:
      	Build test subdir after .
      	Remove gdirectorymonitor.[ch]
              * gdirectorymonitor.[ch]:
              * gfilemonitor.c:
              * gfile.[ch]:
              * gio.h:
      	Remove GDirectoryMonitor and make
      	GFileMonitor the baseclass for both file and
      	directory monitors. Lift the more generic
      	rate limiting code from GDirectoryMonitor
      	into GFileMonitor.
              * fam/fam-helper.c:
              * fam/gfamdirectorymonitor.[ch]:
              * inotify/ginotifydirectorymonitor.[ch]:
              * inotify/inotify-helper.c:
              * glocaldirectorymonitor.[ch]:
              * glocalfile.c:
              * gvolumemonitor.c:
      	Update for the removed GDirectoryMonitor.
              * gmemoryoutputstream.c:
      	Remove ununsed variable
      svn path=/trunk/; revision=6262
    • Alexander Larsson's avatar
      Translate error strings · 3fe87f01
      Alexander Larsson authored
      2008-01-07  Alexander Larsson  <alexl@redhat.com>
              * gmemoryinputstream.c:
      	Translate error strings
              * gio.symbols:
              * gmemoryoutputstream.[ch]:
      	New implementation that avoids using GByteArray
      	in implementation and API. (#506377)
      svn path=/trunk/; revision=6260