[vala/staging] gio-2.0: SocketAddress.from_native() is a factory method not a constructor
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] gio-2.0: SocketAddress.from_native() is a factory method not a constructor
- Date: Tue, 12 Mar 2019 10:26:42 +0000 (UTC)
commit 2bd25b65a406a9669e2d9142d748917350aeec25
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Mar 12 10:50:04 2019 +0100
gio-2.0: SocketAddress.from_native() is a factory method not a constructor
vapi/gio-2.0.vapi | 4 ++--
vapi/metadata/Gio-2.0.metadata | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 0f69608a9..8a8879a67 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2570,9 +2570,9 @@ namespace GLib {
public abstract class SocketAddress : GLib.Object, GLib.SocketConnectable {
[CCode (has_construct_function = false)]
protected SocketAddress ();
- [CCode (has_construct_function = false)]
+ [CCode (cname = "g_socket_address_new_from_native")]
[Version (since = "2.22")]
- public SocketAddress.from_native (void* native, size_t len);
+ public static GLib.SocketAddress? from_native (void* native, size_t len);
[Version (since = "2.22")]
public virtual GLib.SocketFamily get_family ();
[Version (since = "2.22")]
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 9271e724c..a0e2e67de 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -375,6 +375,9 @@ LoadableIcon
.load_finish.type nullable default=null
Socket
.receive_message.address nullable
+SocketAddress
+ // Factory method
+ .new_from_native symbol_type="function" name="from_native" nullable
Task
.get_source_object name="get_unowned_source_object" nullable
TlsBackend
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]