Store protocol by id, add lookup function for name
authorAlexander Larsson <alexl@redhat.com>
Fri, 15 May 2009 07:10:23 +0000 (09:10 +0200)
committerAlexander Larsson <alexl@redhat.com>
Fri, 15 May 2009 07:10:23 +0000 (09:10 +0200)
commitf662e7e86bc27102948683c0925815efefb43bbc
tree87de1a55257f4dedc448866e97f83687a23ee55b
parentbd87df9e73272c72a1f45cc606d010e8c4961363
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.
gio/gio.symbols
gio/gsocket.c
gio/gsocket.h