[vala/0.34] json-glib-1.0: Mark return-type of gvariant_deserialize*() as nullable
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.34] json-glib-1.0: Mark return-type of gvariant_deserialize*() as nullable
- Date: Mon, 16 Apr 2018 20:02:07 +0000 (UTC)
commit a75ed61eea23a24f9c812871ed154f245fffe88f
Author: David Hewitt <davidmhewitt gmail com>
Date: Sat Apr 14 19:18:22 2018 +0100
json-glib-1.0: Mark return-type of gvariant_deserialize*() as nullable
https://bugzilla.gnome.org/show_bug.cgi?id=795265
vapi/json-glib-1.0.vapi | 4 ++--
vapi/metadata/Json-1.0.metadata | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vapi/json-glib-1.0.vapi b/vapi/json-glib-1.0.vapi
index 7ac4dc2..8ad1d43 100644
--- a/vapi/json-glib-1.0.vapi
+++ b/vapi/json-glib-1.0.vapi
@@ -425,10 +425,10 @@ namespace Json {
public static string gobject_to_data (GLib.Object gobject, out size_t length);
[CCode (cheader_filename = "json-glib/json-glib.h", returns_floating_reference = true)]
[Version (since = "0.14")]
- public static GLib.Variant gvariant_deserialize (Json.Node json_node, string? signature) throws
GLib.Error;
+ public static GLib.Variant? gvariant_deserialize (Json.Node json_node, string? signature) throws
GLib.Error;
[CCode (cheader_filename = "json-glib/json-glib.h", returns_floating_reference = true)]
[Version (since = "0.14")]
- public static GLib.Variant gvariant_deserialize_data (string json, ssize_t length, string? signature)
throws GLib.Error;
+ public static GLib.Variant? gvariant_deserialize_data (string json, ssize_t length, string?
signature) throws GLib.Error;
[CCode (cheader_filename = "json-glib/json-glib.h")]
[Version (since = "0.14")]
public static Json.Node gvariant_serialize (GLib.Variant variant);
diff --git a/vapi/metadata/Json-1.0.metadata b/vapi/metadata/Json-1.0.metadata
index 1994116..79df8a0 100644
--- a/vapi/metadata/Json-1.0.metadata
+++ b/vapi/metadata/Json-1.0.metadata
@@ -21,8 +21,8 @@ boxed_register_serialize_func skip=false
boxed_register_deserialize_func skip=false
// Floating references
-gvariant_deserialize unowned=false floating
-gvariant_deserialize_data unowned=false floating
+gvariant_deserialize unowned=false nullable floating
+gvariant_deserialize_data unowned=false nullable floating
Object.add_member replacement="Json.Object.set_member"
Serializable cheader_filename="json-glib/json-glib.h,json-glib/json-gobject.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]