1. 15 May, 2009 1 commit
    • Alexander Larsson's avatar
      Store protocol by id, add lookup function for name · f662e7e8
      Alexander Larsson authored
      We want to use the protocol id for lookup in the GSocketConnection
      code, so we expose it. We also make GSocket store the protocol
      as an int for less memory use and to allow platform specific protocols
      to be specified.
      
      Also added g_socket_protocol_id_lookup_by_name() to allow the higher
      level code to specify the name by string, and g_socket_get_protocol_name()
      to get it.
      f662e7e8
  2. 14 May, 2009 3 commits
    • Alexander Larsson's avatar
      Import GInitable, GSocket and dependencies from gnio · 145cec3c
      Alexander Larsson authored
      This adds:
      GInitable - failable object constructor interface
      GAsyncInitable - async failable object constructor interface
      GSocket - Platform independent lowlevel berkely socket style object
      GSocketControlMessage - For passing control messages over GSocket
      GUnixFDMessage - unix fd passing socket control message
      
      Some changes were done during the import from gnio to make things
      work in glib. For instance, types were moved to other headers, header
      file boiler plate were updated to glib style and gio.symbols stuff
      was added.
      145cec3c
    • Alexander Larsson's avatar
      Add g_network_address_parse · 33c00e5c
      Alexander Larsson authored
      This is useful if you want to allow users to specify
      the hostname and optionally a port.
      33c00e5c
    • Alexander Larsson's avatar
      Add the new GFile ops to gio.symbols · 80a484ad
      Alexander Larsson authored
      This adds all the symbols related to GFile GIOStream support that was
      recently added.
      80a484ad
  3. 13 May, 2009 2 commits
  4. 22 Apr, 2009 3 commits
    • Dan Winship's avatar
      GResolver wrappers: GNetworkAddress, GNetworkService, GSocketConnectable · 9a3d18d2
      Dan Winship authored
      Higher-level wrappers around GResolver. GSocketConnectable provides an
      interface for synchronously or asynchronously iterating multiple
      socket addresses, with GNetworkAddress and GNetworkService providing
      interfaces based on hostname and SRV record resolution.
      Part of #548466.
      9a3d18d2
    • Dan Winship's avatar
      Add GResolver, a glib-ish interface to DNS · c94d3f92
      Dan Winship authored
      GResolver provides asynchronous (and synchronous-but-cancellable) APIs
      for resolving hostnames, reverse-resolving IP addresses back to
      hostnames, and resolving SRV records. Part of #548466.
      c94d3f92
    • Dan Winship's avatar
      Add network address and socket types · 68fc0556
      Dan Winship authored
      Types and methods for dealing with IPv4 and IPv6 addresses (and UNIX
      domain socket addresses under UNIX). This does not include code for
      actual socket I/O.
      
      Originally from "gnio". Much of the code was written by Christian
      Kellner, Samuel Cormier-Iijima, and Ryan Lortie.
      
      Part of #548466.
      68fc0556
  5. 20 Apr, 2009 1 commit
    • Alexander Larsson's avatar
      Add helpers for connecting/disconnecting to cancelled signal · 0001014c
      Alexander Larsson authored
      There are race conditions when connecting and disconnecting from the
      "cancelled" signal on GCancellable which you need to do when
      implementing cancellable operations. This adds helper functions that
      avoid these races and mentions these races in the docs. (#572844)
      0001014c
  6. 17 Feb, 2009 1 commit
  7. 28 Jan, 2009 1 commit
    • Allison Karlitskaya's avatar
      Bug 568575 – _async functions for GDataInputStream · 129e86cf
      Allison Karlitskaya authored
      2009-01-28  Ryan Lortie  <desrt@desrt.ca>
      
              Bug 568575 – _async functions for GDataInputStream
      
              * gdatainputstream.h:
              * gdatainputstream.c: add _async versions of read_line and read_until.
              * gio.symbols:
              * ../docs/reference/gio/gio-sections.txt: add new functions
              * tests/sleepy-stream.c: new test case for async read line
              * tests/Makefile.am: add new test
      
      
      svn path=/trunk/; revision=7835
      129e86cf
  8. 21 Jan, 2009 1 commit
    • Allison Karlitskaya's avatar
      Bug 568394 – dropping the last reference to a stream filter closes the · a9c978a3
      Allison Karlitskaya authored
      2009-01-20  Ryan Lortie  <desrt@desrt.ca>
      
              Bug 568394 – dropping the last reference to a stream filter closes the
              base stream
      
              * gfilterinputstream.h:
              * gfilterinputstream.c: add "close-base-stream" property and only
              close the base stream if it is true.  issue async close callbacks from
              correct source object.
              * gfilteroutputstream.h:
              * gfilteroutputstream.c: add a "close-base-stream" property and only
              close the base stream if it is true.  issue async close callbacks from
              correct source object.
              * gbufferedoutputstream: check g_filter_output_stream_get_close_base()
              before closing the base stream.  fix invalid source tag comparison in
              close_async (was comparing to flush_async).
              * ../docs/reference/gio/gio-sections.txt:
              * gio.symbols: add
              g_filter_{in,out}put_stream_{g,s}et_close_base_stream
              * tests/filter-streams.c: new test cases
              * tests/Makefile.am: add new test
              * tests/.gitignore: add new test
      
      
      svn path=/trunk/; revision=7825
      a9c978a3
  9. 05 Jan, 2009 1 commit
  10. 08 Dec, 2008 1 commit
  11. 01 Dec, 2008 1 commit
  12. 28 Nov, 2008 1 commit
  13. 21 Oct, 2008 1 commit
    • Alexander Larsson's avatar
      Bug 555740 - gicon serialization Based on patch from David Zeuthen · 4f0b18d2
      Alexander Larsson authored
      2008-10-21  Alexander Larsson  <alexl@redhat.com>
      
      	Bug 555740 - gicon serialization
      	Based on patch from David Zeuthen
      	
              * gicon.[ch]:
              * gio.symbols:
      	Add g_icon_to_string() and g_icon_new_for_string().
      	
              * gemblem.c:
              * gemblemedicon.c:
              * gfileicon.c:
              * gthemedicon.c:
      	Implement icon serialization for built-in icon types
      	
              * tests/Makefile.am:
              * tests/g-icon.c:
      	Added GIcon serialization test
      
      
      
      svn path=/trunk/; revision=7618
      4f0b18d2
  14. 15 Oct, 2008 1 commit
  15. 12 Oct, 2008 1 commit
  16. 26 Sep, 2008 2 commits
    • Matthias Clasen's avatar
      Bug 545350 – GAppInfo deletion Bug 545351 – Reset associations for · 764e187f
      Matthias Clasen authored
      2008-09-26  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 545350 – GAppInfo deletion
              Bug 545351 – Reset associations for content type
      
              * gio.symbols:
              * gappinfo.[hc]: New functions g_app_info_can_delete,
              g_app_info_delete and g_app_info_reset_type_associations.
      
              * gdesktopappinfo.c:
              * gwin32appinfo.c: Implementations of these.
      
              * tests/Makefile.am:
              * tests/desktop-app-info.c: Tests for GAppInfo functionality.
      
      
      svn path=/trunk/; revision=7554
      764e187f
    • Dan Winship's avatar
      Bug 505361 - gunixinputstream.c assumes poll() available · 7f4864e5
      Dan Winship authored
      	Bug 509446 - portable blocking gio cancellation
      
      	* gcancellable.c (g_cancellable_make_pollfd): New method to make a
      	GPollFD for a cancellable (which is slightly more complicated on
      	Windows than Unix).
      
      	* gunixinputstream.c (g_unix_input_stream_read):
      	* gunixoutputstream.c (g_unix_output_stream_write): Use
      	g_cancellable_make_pollfd() and g_poll() rather than using poll()
      	directly.
      
      	* tests/unix-streams.c: test of GUnixInputStream,
      	GUnixOutputStream, and GCancellable.
      
      svn path=/trunk/; revision=7553
      7f4864e5
  17. 04 Aug, 2008 1 commit
  18. 28 Jul, 2008 1 commit
    • Matthias Clasen's avatar
      Add a GIcon implementation that can add an emblem to another icon. · a2b61b1e
      Matthias Clasen authored
      2008-07-28  Matthias Clasen  <mclasen@redhat.com>
      
              * gemblemedicon.[hc]: Add a GIcon implementation that can
              add an emblem to another icon.
      
              * gio.h:
              * Makefile.am:
              * gio.symbols: Glue
      
              * gloadableicon.c:
              * gfileicon.c: Small documenatation additions.
      
      
      svn path=/trunk/; revision=7263
      a2b61b1e
  19. 24 Jul, 2008 1 commit
  20. 18 Jul, 2008 1 commit
  21. 08 Jul, 2008 1 commit
  22. 07 Jul, 2008 1 commit
  23. 02 Jul, 2008 2 commits
  24. 16 Jun, 2008 1 commit
    • Ross Burton's avatar
      Bug 536252 – GFileEnumerator should allow access to the containing GFile · 3480685d
      Ross Burton authored
      2008-06-16  Ross Burton  <ross@burtonini.com>
      
      	Bug 536252 – GFileEnumerator should allow access to the containing
      	GFile
      	
      	* gio/gfileenumerator.c:
      	* gio/gfileenumerator.h:
      	* gio/gfile.h:
      	Add g_file_enumerator_get_container() and a container writeable
      	construct-only property.  Also shuffle around typedefs to make it
      	compile.
      	
      	* gio/glocalfileenumerator.c:
      	* gio/glocalfileenumerator.h:
      	* gio/glocalfile.c:
      	Instead of a string filename take a GFile in the constructor and
      	use it to set the container property.
      	
      	* gio/gio.symbols:
      	* docs/reference/gio/gio-sections.txt:
      	Update with new API.
      
      svn path=/trunk/; revision=7044
      3480685d
  25. 11 Jun, 2008 1 commit
    • Ross Burton's avatar
      Bug 511367 - add g_file_make_directory_with_parents. · 7653f500
      Ross Burton authored
      2008-06-11  Ross Burton  <ross@burtonini.com>
      
      	Bug 511367 - add g_file_make_directory_with_parents.
      	
      	* gio/gfile.c:
      	* gio/gfile.h:
      	* gio/gio.symbols: Add g_file_make_directory_with_parents.
      
      svn path=/trunk/; revision=7001
      7653f500
  26. 10 Jun, 2008 1 commit
  27. 26 May, 2008 1 commit
  28. 18 May, 2008 1 commit
  29. 05 May, 2008 1 commit
    • Michael Natterer's avatar
      Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent code from · d922bf63
      Michael Natterer authored
      2008-05-05  Michael Natterer  <mitch@imendio.com>
      
      	* Makefile.am. build with G_DISABLE_SINGLE_INCLUDES to prevent
      	code from being checked in that breaks the build of applications
      	which use G_DISABLE_SINGLE_INCLUDES.
      
      	* makegioalias.pl: make the alias file include "glib.h" instead of
      	"glibconfig.h".
      
      	* gio.symbols: whitespace change to force regeneration of the
      	alias file after above script change.
      
      	* gfileinfo.h: remove inlcusion of <glib/gfileutils.h>.
      
      	* gfilenamecompleter.c: remove inclusion of "gurifuncs.h".
      
      	* gioerror.h: #include <glib.h> instead of <glib/gerror.h>.
      
      	* glocalfileinfo.c: remove inclusion of <glib/gchecksum>.
      
      
      svn path=/trunk/; revision=6879
      d922bf63
  30. 31 Mar, 2008 1 commit
  31. 14 Mar, 2008 1 commit
  32. 10 Mar, 2008 1 commit
  33. 25 Feb, 2008 1 commit