Browse Source

vapi: use modified gio-2.0 bindings

GLib.Socket implements GLib.DatagramBased, hence calling
Socket.create_source() results in a C call to
g_socket_datagram_based_create_source() insted of
g_socket_create_source() as one my expect. The former works only for
datagram based sockets (as implemented in gio/gsocket.c), hence
Socket.create_source() for TCP socket will always return null. To
workaround this, export g_socket_create_source() as
Socket.create_socket_source() method.

The change is expected to be a part of vala 0.34 release.
bboozzoo/socket-source
Maciek Borzecki 9 years ago
parent
commit
700ec1913d
2 changed files with 5091 additions and 0 deletions
  1. +2
    -0
      Makefile.am
  2. +5089
    -0
      vapi/gio-2.0.vapi

+ 2
- 0
Makefile.am View File

@ -39,6 +39,8 @@ noinst_LTLIBRARIES = \
VALAFLAGS = \
--no-color \
-g \
--vapidir=vapi \
--pkg=gio-2.0 \
--pkg=json-glib-1.0 \
--pkg=gee-0.8 \
--pkg=libnotify \


+ 5089
- 0
vapi/gio-2.0.vapi
File diff suppressed because it is too large
View File


Loading…
Cancel
Save