gsocket: add getsockopt/setsockopt wrappers

Add g_socket_get_option() and g_socket_set_option(), wrapping
getsockopt/setsockopt for the case of integer-valued options. Update
code to use these instead of the underlying calls.

https://bugzilla.gnome.org/show_bug.cgi?id=623187
This commit is contained in:
Dan Winship
2012-02-13 21:12:34 -05:00
parent b377e69685
commit 211ed1775d
7 changed files with 288 additions and 208 deletions

View File

@@ -1900,6 +1900,8 @@ g_socket_set_ttl
g_socket_get_ttl
g_socket_get_broadcast
g_socket_set_broadcast
g_socket_get_option
g_socket_set_option
g_socket_get_family
g_socket_get_fd
g_socket_get_local_address