[vala/staging: 3/7] gio-2.0: Use metadata for SocketConnection.factory_create_connection()



commit b9bfbe5141ccae9959b45f0bec8f6e6771aeafa0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Jan 8 13:27:34 2019 +0100

    gio-2.0: Use metadata for SocketConnection.factory_create_connection()

 vapi/metadata/Gio-2.0-custom.vala | 4 ----
 vapi/metadata/Gio-2.0.metadata    | 5 +----
 2 files changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index 0fe88c90d..0fd6dcbd3 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -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")]
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 6766461c3..704ce0206 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]