Alexander Larsson [Wed, 20 May 2009 09:28:27 +0000 (11:28 +0200)]
Actually implement max_threads for GThreadedSocketService
Alexander Larsson [Wed, 20 May 2009 09:19:47 +0000 (11:19 +0200)]
Add support for graceful disconnect to GTcpConnection
Alexander Larsson [Wed, 20 May 2009 09:18:34 +0000 (11:18 +0200)]
Call sync close function directly in async implementation
The g_io_stream_wrapper fails since there is already an outstanding
operation (the async close).
Alexander Larsson [Tue, 19 May 2009 11:44:11 +0000 (13:44 +0200)]
Add send-data, a g_socket_client test case
Alexander Larsson [Tue, 19 May 2009 10:06:29 +0000 (12:06 +0200)]
Set the listen backlog before calling listen.
If we set it after it won't be used.
Alexander Larsson [Tue, 19 May 2009 09:53:42 +0000 (11:53 +0200)]
Fix g_unix_socket_address_abstract_names_supported docs
The previous description was a cut-n-paste from another function.
Alexander Larsson [Tue, 19 May 2009 09:52:33 +0000 (11:52 +0200)]
Add g_socket_shutdown
Alexander Larsson [Tue, 19 May 2009 09:27:07 +0000 (11:27 +0200)]
Document GOutputVector and GInputVector
Alexander Larsson [Tue, 19 May 2009 08:57:58 +0000 (10:57 +0200)]
Rename g_socket_check_pending_error to g_socket_check_connect_result
This is only used for connect anyway, and this describes the operation
better.
Alexander Larsson [Tue, 19 May 2009 08:47:55 +0000 (10:47 +0200)]
Update docs on listen backlog
Mention g_socket_set_listen_backlog in g_socket_listen.
Explain that listen backlock needs to be set before calling
listen. Also verify this with a g_return_if_fail.
Alexander Larsson [Tue, 19 May 2009 08:40:27 +0000 (10:40 +0200)]
Read socket state in g_socket_get_local/remote_address
Previously we saved the location in various places which is unnecessary
and sometimes even wrong. For instance, we saved the address we bound to
which may not have the final port set.
Alexander Larsson [Tue, 19 May 2009 08:16:32 +0000 (10:16 +0200)]
Clean up refereces to @protocol_id in g_socket_new docs
This was not fully updated from the protocol to protocol_id change.
Alexander Larsson [Mon, 18 May 2009 21:24:13 +0000 (23:24 +0200)]
Ignore error when setting SO_REUSEADDR
The main error would be "not supported" which could happen for e.g.
unix domain sockets, we don't really care, as this is mainly something
for TCP to help out a bit.
Alexander Larsson [Mon, 18 May 2009 19:30:33 +0000 (21:30 +0200)]
Add support for abstract unix socket addresses
Alexander Larsson [Mon, 18 May 2009 12:10:07 +0000 (14:10 +0200)]
Add GError to g_socket_address_to_native
This is nice for some callers so they can report an error.
It is also required to support opional address types like
abstract paths for unix domain sockets.
Jorge Gonzalez [Mon, 18 May 2009 18:19:05 +0000 (20:19 +0200)]
Updated Spanish translation
Alexander Larsson [Mon, 18 May 2009 11:02:11 +0000 (13:02 +0200)]
Update the docs for the new network APIs
This imports the network APIs into the gio reference docs, and cleans
up a bunch of gtk-doc warnings and documentation issues.
Alexander Larsson [Mon, 18 May 2009 09:30:48 +0000 (11:30 +0200)]
Remove gtk-doc warnings
Some code was using gtk-doc comment blocks for non-gtk-doc contents, just
turn it into ordinary comments.
Alexander Larsson [Mon, 18 May 2009 09:29:11 +0000 (11:29 +0200)]
Add more internal headers for gtk-doc to ignore
This gives less bogus output in gio-unused.txt
Alexander Larsson [Mon, 18 May 2009 09:27:49 +0000 (11:27 +0200)]
Make all non-static functions start with underscore
We don't want to export a lot of non-namespaced internal symbols.
Alexander Larsson [Mon, 18 May 2009 07:28:26 +0000 (09:28 +0200)]
Remove g_socket_set/get_reuse_address from header
These functions have been removed.
Alexander Larsson [Mon, 18 May 2009 06:47:10 +0000 (08:47 +0200)]
Add max_threads argument to g_threaded_socket_service_new
Paul Pogonyshev [Sun, 17 May 2009 12:17:57 +0000 (15:17 +0300)]
Fix error message in set_mtime_atime()
Bug #578786.
Alexander Larsson [Fri, 15 May 2009 19:34:14 +0000 (21:34 +0200)]
Add test apps for highlevel socket classes
echo-server - simple echo server
httpd - simple http server
Alexander Larsson [Fri, 15 May 2009 19:27:54 +0000 (21:27 +0200)]
Add references to highlevel classes in GSocket docs
Alexander Larsson [Fri, 15 May 2009 19:26:24 +0000 (21:26 +0200)]
Import all the highlevel socket classes from gnio
Alexander Larsson [Fri, 15 May 2009 18:58:27 +0000 (20:58 +0200)]
Remove unused variable
Alexander Larsson [Fri, 15 May 2009 18:43:02 +0000 (20:43 +0200)]
Include stdlib.h to avoid warning
Fixes a "implicit declaration of function ‘strtol’" warning
Alexander Larsson [Fri, 15 May 2009 18:42:04 +0000 (20:42 +0200)]
Forgot to return the allocated data in async_op_wrapper_new
Alexander Larsson [Fri, 15 May 2009 08:42:28 +0000 (10:42 +0200)]
Make cancellable pipe fds close-on-exec
GCancellable is purely an in-process thing, so ensure that no cancellable
fds accidentally leak to child processes.
Alexander Larsson [Fri, 15 May 2009 08:28:30 +0000 (10:28 +0200)]
Add padding to new classes
Alexander Larsson [Fri, 15 May 2009 08:08:18 +0000 (10:08 +0200)]
Add test apps for GSocket API
Alexander Larsson [Fri, 15 May 2009 08:05:55 +0000 (10:05 +0200)]
Fix deadlock in threaded resolver
When you're using the threaded resolver and using a sync call
without a cancellable the resolve_sync forgot to unlock the
initial req->mutex lock, leading to a deadlock when unrefing
the request.
Alexander Larsson [Fri, 15 May 2009 07:10:23 +0000 (09:10 +0200)]
Store protocol by id, add lookup function for name
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.
Alexander Larsson [Thu, 14 May 2009 14:58:47 +0000 (16:58 +0200)]
Make GSocketSourceFunc return the GSocket
This is very useful when you have multiple sockets with sources.
Alexander Larsson [Thu, 14 May 2009 14:19:07 +0000 (16:19 +0200)]
Set optlen before calling getsockopt
We were sometimes failing in g_socket_check_pending_error because
we were not setting optlen on input and it was sometimes randomly
less than sizeof(int).
Alexander Larsson [Thu, 14 May 2009 13:26:37 +0000 (15:26 +0200)]
Import GInitable, GSocket and dependencies from gnio
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.
Alexander Larsson [Thu, 14 May 2009 08:53:53 +0000 (10:53 +0200)]
Add g_network_address_parse
This is useful if you want to allow users to specify
the hostname and optionally a port.
Alexander Larsson [Thu, 14 May 2009 13:32:55 +0000 (15:32 +0200)]
Add the new GFile ops to gio.symbols
This adds all the symbols related to GFile GIOStream support that was
recently added.
Alexander Larsson [Wed, 13 May 2009 11:06:58 +0000 (13:06 +0200)]
Add tests for local GIOStream GFile ops
Alexander Larsson [Wed, 13 May 2009 11:03:47 +0000 (13:03 +0200)]
Local file implementation of GFileIOStream and ops
This implements all the GIOStream file ops for local files.
We use the "fallback to output stream" for all GFileIOStream ops.
Some helpers stuff was added to the local input and output streams
so they could be reused.
Alexander Larsson [Wed, 13 May 2009 11:00:26 +0000 (13:00 +0200)]
Add GIOStream operations to GFile
g_file_open_readwrite, g_file_create_readwrite, g_file_replace_readwrite
and async variants, with default implementations using threads.
Alexander Larsson [Tue, 12 May 2009 14:59:36 +0000 (16:59 +0200)]
Add GFileIOStream class
This is similar to GFileInputStream and GFileOutputStream for GIOStreams.
The default implementations chain to the Output stream.
Alexander Larsson [Tue, 12 May 2009 17:31:19 +0000 (19:31 +0200)]
Add comment about lifecycle issues for GIOStreams
Alexander Larsson [Tue, 12 May 2009 14:30:15 +0000 (16:30 +0200)]
Import GIOStream from gnio
Based on gnio rev
84516a5f544d8d5f3da368a83844e84eca8ef771
Alexander Larsson [Tue, 12 May 2009 17:53:24 +0000 (19:53 +0200)]
Remove close in finalize, we do it in dispose
This is not needed, and in fact it may be a bad idea to call
it from finalize anyway since the object isn't fully alive then.
Alexander Larsson [Tue, 12 May 2009 11:57:52 +0000 (13:57 +0200)]
Remove not actually used member "cancelled"
Tor Lillqvist [Tue, 12 May 2009 11:54:12 +0000 (14:54 +0300)]
Make glibconfig.h.win32.in match the generated one.
Add G_GOFFSET_MODIFIER, G_GOFFSET_FORMAT and G_GOFFSET_CONSTANT.
Alexander Larsson [Wed, 6 May 2009 11:26:17 +0000 (13:26 +0200)]
Fix gcancellable.c build on non-win32
I forgot to add #ifdef G_OS_WIN32 in one place, sorry.
Alexander Larsson [Wed, 6 May 2009 11:10:58 +0000 (13:10 +0200)]
Simplify GCancellable support on win32
There is no need to have a GIOChannel in the GPollFD in
g_cancellable_create_pollfd. All we need is an Event object that
we signal when cancelling and reset when resetting.
Also, supporting g_cancellable_get_fd on Windows using _pipe is useless
as it doesn't work with any corresponding poll() function, so just don't
support that on win32.
I tested this with the cancellation support in GSocket from gnio.
Paul Pogonyshev [Mon, 4 May 2009 19:32:35 +0000 (22:32 +0300)]
Don't try to ref NULL pointer in g_desktop_app_info_dup()
Fixes bug #573246.
Carlos Garnacho [Tue, 5 May 2009 18:45:18 +0000 (14:45 -0400)]
Add a GMount::pre-unmount signal
This is the per-mount analogon to GVolumeMonitor::mount-pre-unmount.
Manoj Kumar Giri [Tue, 5 May 2009 07:04:44 +0000 (12:34 +0530)]
Updated Oriya Translation.
Matthias Clasen [Sun, 3 May 2009 22:08:01 +0000 (18:08 -0400)]
Bump version to 2.21.1
Matthias Clasen [Sun, 3 May 2009 22:04:31 +0000 (18:04 -0400)]
Release 2.21.0
Paul Pogonyshev [Sun, 3 May 2009 21:55:35 +0000 (00:55 +0300)]
Fix g_input_stream_skip_async() documentation
Remove mention of inexisting argument. Spotted in relation to bug
581229.
Matthias Clasen [Sun, 3 May 2009 21:10:16 +0000 (17:10 -0400)]
Fix up tests forgotten in Michaels commit
When Michael cleaned up after my fumbled commit of his gmarkup
optimizations, he fumbled himself and forgot to fix up the tests...
Matthias Clasen [Sun, 3 May 2009 20:58:22 +0000 (16:58 -0400)]
Add new functions
Petr Kovar [Sun, 3 May 2009 16:34:35 +0000 (18:34 +0200)]
Updated Czech translation
Ivar Smolin [Sun, 3 May 2009 09:03:46 +0000 (12:03 +0300)]
Updating Estonian translation
Matthias Clasen [Sun, 3 May 2009 03:17:29 +0000 (23:17 -0400)]
Match up parameter names to help gtk-doc
Matthias Clasen [Sun, 3 May 2009 03:02:41 +0000 (23:02 -0400)]
Add bug references
Matthias Clasen [Sun, 3 May 2009 02:59:02 +0000 (22:59 -0400)]
Plug a memory leak in g_simple_async_result_set_op_res_gpointer
Fixes bug 579272.
Matthias Clasen [Sun, 3 May 2009 02:44:52 +0000 (22:44 -0400)]
Correct g_utf8_to_utf16 docs
As pointed out in bug 580932, len is counting bytes here.
Matthias Clasen [Sun, 3 May 2009 02:41:19 +0000 (22:41 -0400)]
Accept NULL as empty string list
Fixes bug 580656.
Matthias Clasen [Sun, 3 May 2009 02:36:15 +0000 (22:36 -0400)]
Fix reference to g_strtoull
As pointed out in bug 580546, that function does not exit.
Matthias Clasen [Sun, 3 May 2009 02:30:19 +0000 (22:30 -0400)]
Update NEWS
Matthias Clasen [Sun, 3 May 2009 01:58:30 +0000 (21:58 -0400)]
Bump version to 2.21.0
Jorge Gonzalez [Fri, 1 May 2009 18:20:01 +0000 (20:20 +0200)]
Updated Spanish translation
Dan Winship [Fri, 1 May 2009 14:08:52 +0000 (10:08 -0400)]
Misc warning fixes
glib/pcre/pcre_ucp_search_funcs.c, glib/pcre/pcre_valid_utf8.c: add
back missing config.h includes, and this time add them to the copies
in glib/update-pcre/ too so they don't get lost again on the next PCRE
update.
glib/garray.c, glib/gbase64.c: fix signed/unsigned pointer casts
gio/xdgmime/xdgmimeglob.c: remove unused variable
gio/tests/live-g-file.c: fix printf args on x86_64
tests/Makefile.am, tests/regex-test.c: remove redundant -DENABLE_REGEX
Dan Winship [Fri, 1 May 2009 14:08:23 +0000 (10:08 -0400)]
Add README and INSTALL to .gitignore since they are autogenerated
Michael Meeks [Fri, 1 May 2009 14:23:23 +0000 (15:23 +0100)]
Patch originally committed only to the ChangeLog & tests ...
Bug 572508 – gmarkup speedup ...
* glib/gmarkup.c: Various optimizations: do less allocations by
keeping a pool of GStrings, do in-place unescaping, avoid redundant
utf-8 validation.
Alexander Larsson [Thu, 30 Apr 2009 08:46:37 +0000 (10:46 +0200)]
Ensure g_inet_address_get_type() call is not optimized away
Yet another place where the get_type call can be optimized away due
to the G_GNUC_CONST attribute. Use a volatile variable to ensure
its not.
David King [Wed, 29 Apr 2009 13:58:35 +0000 (15:58 +0200)]
Fix ginetaddress.c compile on Linux
The GType type definition belongs outside the G_OS_WIN32 typedef.
David Zeuthen [Wed, 29 Apr 2009 15:15:20 +0000 (11:15 -0400)]
Bug 580450 – Reference counting and boxed types for arrays
Add reference counting and boxed types for GArray, GByteArray and GPtrArray.
Signed-off-by: Matthias Clasen <mclasen@redhat.com>
Alexander Larsson [Wed, 29 Apr 2009 10:19:57 +0000 (12:19 +0200)]
Ensure we're actually initializing the winsock library
It turns out that just calling g_inet_address_get_type() isn't
enough, since its marked G_GNUC_CONST, so the call is optimized
away. If we assign the return value to a volatile location we ensure
it is called.
David Zeuthen [Sun, 26 Apr 2009 02:41:07 +0000 (22:41 -0400)]
Bug 580453 – Hash and equal functions for gint64 and gdouble
Jordi Mas i Hernandez [Sun, 26 Apr 2009 18:18:38 +0000 (20:18 +0200)]
Minor fixes to Catalan translation
paul [Sun, 26 Apr 2009 17:16:34 +0000 (13:16 -0400)]
Fix socket-related configure tests on old platforms
include <sys/types.h> in case <sys/socket.h> doesn't. #580299
Dan Winship [Sun, 26 Apr 2009 16:18:42 +0000 (12:18 -0400)]
Fix the networking stuff on (current) OS X
OS X's headers split up the current and old (BIND 4) nameserver stuff
slightly differently than Linux does, but explicitly including
arpa/nameser_compat.h does the right thing on both. Part of #580301
Dan Winship [Sun, 26 Apr 2009 13:59:28 +0000 (09:59 -0400)]
Fix ginetaddress.c compile on Solaris
In glibc, IN6_IS_ADDR_UNSPECIFIED() et al. cast their argument to a
uint32_t*, so it doesn't matter whether you pass them the in6_addr
itself (which is what you're supposed to do) or one of its union
members (which is what we were actually doing). Solaris's macro
accesses the in6_addr fields directly though, and so only works if you
pass the actual in6_addr. #580194.
Johan Bilien [Wed, 22 Apr 2009 18:09:34 +0000 (19:09 +0100)]
Fix translation from GIO's file attr to xattr attributes
Bug 579862 – requesting xattr::foo ends up calling getxattr(...,
user.:foo,...)
The patch makes sure we escape xattr::, not xattr:, before adding user.
and calling getxattr.
Christian Persch [Wed, 22 Apr 2009 13:12:37 +0000 (15:12 +0200)]
Use P_ for translatable param spec strings
Translatable param spec strings should be annotated with P_() instead of
plain _(). Bug #579830.
Dan Winship [Mon, 29 Dec 2008 18:38:28 +0000 (13:38 -0500)]
GResolver wrappers: GNetworkAddress, GNetworkService, GSocketConnectable
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.
Dan Winship [Mon, 29 Dec 2008 17:53:47 +0000 (12:53 -0500)]
Add GResolver, a glib-ish interface to DNS
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.
Dan Winship [Fri, 12 Dec 2008 18:13:55 +0000 (13:13 -0500)]
Add network address and socket types
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.
Dan Winship [Mon, 29 Dec 2008 14:00:17 +0000 (09:00 -0500)]
Add hostname-related utilities in glib/ghostutils.h
Functions for converting between UTF-8 IDNs (Internationalized Domain
Names) and their ASCII-Compatible Encodings, plus a function to recognize
IP addresses. Part of #548466.
Stefan Kost [Tue, 21 Apr 2009 20:21:28 +0000 (23:21 +0300)]
goption: format section docs according to gtk-doc rules and fixes broken xml
Stefan Kost [Tue, 14 Apr 2009 08:32:59 +0000 (11:32 +0300)]
goption: document that some option args need to be freed by the callee
Option arguments where the result is stored in a string or string array need to
be freed by the owner of the option group. Fixes #578363.
Stefan Kost [Tue, 14 Apr 2009 08:23:25 +0000 (11:23 +0300)]
goption: move docs from tmpl folder to inline comments
Alexander Larsson [Mon, 20 Apr 2009 11:14:32 +0000 (13:14 +0200)]
Use g_cancellable_connect/disconnect
Use the new cancellable helper functions to avoid races. (#572844)
Alexander Larsson [Mon, 20 Apr 2009 11:12:08 +0000 (13:12 +0200)]
Add helpers for connecting/disconnecting to cancelled signal
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)
zabeeh khan [Fri, 17 Apr 2009 05:57:38 +0000 (11:27 +0530)]
Pashto Translation committed as per the request made by Zabeeh Khan on the gnome-i18n list
Matthias Clasen [Sat, 11 Apr 2009 22:10:24 +0000 (18:10 -0400)]
Bump version
Matthias Clasen [Fri, 10 Apr 2009 01:34:49 +0000 (21:34 -0400)]
Add a note about handling non-hal backends
Matthias Clasen [Thu, 9 Apr 2009 22:47:28 +0000 (18:47 -0400)]
Release GLib 2.20.1
Matthias Clasen [Thu, 9 Apr 2009 21:43:59 +0000 (17:43 -0400)]
Update for 2.20.1
Matthias Clasen [Thu, 9 Apr 2009 18:56:49 +0000 (14:56 -0400)]
Fix G_DEFINE_TYPE_EXTENDED docs
Make the docs for G_DEFINE_TYPE_EXTENDED match the actual
definition of the macro. (#577985)
Gian Mario Tagliaretti [Thu, 9 Apr 2009 18:35:36 +0000 (14:35 -0400)]
Fix a typo in GFile docs
Fixed function name in GFile docs from g_set_display_name to
g_file_set_display_name so that gtk-doc can link correctly. (#578002)
Kenneth Nielsen [Thu, 9 Apr 2009 11:49:00 +0000 (13:49 +0200)]
Updated Danish translation\n\nUpdated Danish translation by Kenneth Nielsen.