[gitg/wip/albfan/bookmarkfile-api: 3/4] Use correct array-length-type in BookmarkFile API
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/wip/albfan/bookmarkfile-api: 3/4] Use correct array-length-type in BookmarkFile API
- Date: Sat, 5 Jan 2019 08:42:41 +0000 (UTC)
commit 4fee4e3fcd5c5dd8e267d83cf6e33144bdc36b8b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Jan 2 21:50:34 2019 +0100
Use correct array-length-type in BookmarkFile API
vapi/glib-2.0.vapi | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index b115860f..33b9a602 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -4315,6 +4315,7 @@ namespace GLib {
public bool has_group (string uri, string group) throws BookmarkFileError;
public bool has_application (string uri, string name) throws BookmarkFileError;
public int get_size ();
+ [CCode (array_length_type = "gsize")]
public string[] get_uris ();
public string get_title (string uri) throws BookmarkFileError;
public string get_description (string uri) throws BookmarkFileError;
@@ -4324,7 +4325,9 @@ namespace GLib {
public time_t get_added (string uri) throws BookmarkFileError;
public time_t get_modified (string uri) throws BookmarkFileError;
public time_t get_visited (string uri) throws BookmarkFileError;
+ [CCode (array_length_type = "gsize")]
public string[] get_groups (string uri) throws BookmarkFileError;
+ [CCode (array_length_type = "gsize")]
public string[] get_applications (string uri) throws BookmarkFileError;
public bool get_app_info (string uri, string name, out string exec, out uint count, out
time_t stamp) throws BookmarkFileError;
public void set_title (string uri, string title);
@@ -4827,6 +4830,7 @@ namespace GLib {
[Version (since = "2.14")]
public List<unowned K> get_keys ();
#if VALA_0_26
+ [CCode (array_length_type = "guint")]
[Version (since = "2.40")]
public (unowned K)[] get_keys_as_array ();
#endif
@@ -4931,8 +4935,6 @@ namespace GLib {
public static GLib.EqualFunc<string> str_equal;
[CCode (cname = "g_free")]
public static GLib.DestroyNotify g_free;
- [CCode (cname = "g_object_unref")]
- public static GLib.DestroyNotify g_object_unref;
[CCode (cname = "g_list_free")]
public static GLib.DestroyNotify g_list_free;
[CCode (cname = "((GDestroyNotify) g_variant_unref)")]
@@ -5113,6 +5115,7 @@ namespace GLib {
public size_t get_size ();
public uint hash ();
public int compare (GLib.Bytes bytes2);
+ [CCode (array_length_type = "gsize")]
public static uint8[] unref_to_data (owned GLib.Bytes bytes);
public static GLib.ByteArray unref_to_array (owned GLib.Bytes bytes);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]