]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gio-2.0: Use metadata for SocketConnection.factory_create_connection()
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 8 Jan 2019 12:27:34 +0000 (13:27 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 8 Jan 2019 15:36:04 +0000 (16:36 +0100)
vapi/metadata/Gio-2.0-custom.vala
vapi/metadata/Gio-2.0.metadata

index 0fe88c90d355904d9602a866e7d5b9eecaa41fba..0fd6dcbd39f890acc01dcbff12c2b7ac29d7c5cf 100644 (file)
@@ -130,10 +130,6 @@ namespace GLib {
                public void set_callback ([CCode (type = "GSourceFunc")] owned SocketSourceFunc func);
        }
 
-       public class SocketConnection : GLib.IOStream {
-               public static GLib.SocketConnection factory_create_connection (GLib.Socket socket);
-       }
-
        public class Task : GLib.Object {
                [CCode (has_construct_function = false)]
                [Version (since = "2.36")]
index 6766461c390f5f875d0b0d9afcf73bf5ec880440..704ce0206b024ac85ac7246ecb34f6aaa636dbc2 100644 (file)
@@ -221,6 +221,7 @@ SimpleProxyResolver
   .new symbol_type="constructor"
 Socket
   .condition_wait throws="GLib.IOError"
+  .connection_factory_create_connection parent="GLib.SocketConnection" name="factory_create_connection" symbol_type="function"
   .create_source skip=false type="GLib.SocketSource"
 SocketControlMessage
   .serialize.data type="uint8[]"
@@ -338,10 +339,6 @@ DBusConnection
 DBusConnection
   .register_object skip
 
-// Bug #: Reparenting instance method breaks arguments
-Socket
-  .connection_factory_create_connection skip // parent="GLib.SocketConnection" name="factory_create_connection"
-
 // Bug #: out + allow-none parameters missing ? in vapi
 LoadableIcon
   .load.type nullable