diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-02-28 12:12:56 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2022-02-28 12:12:56 +0100 |
commit | 0474d01a4129d7ee0c9d5f99736291bd8e1c8cb6 (patch) | |
tree | f2b5bb068fee1695342134de22cca9da80a1a11e /vapi | |
parent | b575891887a3aa16ea96a20af5beb141f433c55a (diff) | |
download | vala-0474d01a4129d7ee0c9d5f99736291bd8e1c8cb6.tar.gz |
libgsf-1: Fix a few binding errors
Diffstat (limited to 'vapi')
-rw-r--r-- | vapi/libgsf-1.vapi | 12 | ||||
-rw-r--r-- | vapi/metadata/Gsf-1.metadata | 12 |
2 files changed, 18 insertions, 6 deletions
diff --git a/vapi/libgsf-1.vapi b/vapi/libgsf-1.vapi index b199849fd..119706950 100644 --- a/vapi/libgsf-1.vapi +++ b/vapi/libgsf-1.vapi @@ -16,7 +16,7 @@ namespace Gsf { public Gsf.Blob get_data_blob (); public Gsf.ClipFormat get_format (); public Gsf.ClipFormatWindows get_windows_clipboard_format () throws GLib.Error; - public void* peek_real_data (size_t ret_size) throws GLib.Error; + public void* peek_real_data (out size_t ret_size) throws GLib.Error; } [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_doc_meta_data_get_type ()")] public class DocMetaData : GLib.Object { @@ -77,7 +77,7 @@ namespace Gsf { public class InfileMSOle : Gsf.Infile { [CCode (has_construct_function = false, type = "GsfInfile*")] public InfileMSOle (Gsf.Input source) throws GLib.Error; - public bool get_class_id (uint8 res); + public bool get_class_id (out uint8 res); } [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_infile_msvba_get_type ()")] public class InfileMSVBA : Gsf.Infile { @@ -194,7 +194,7 @@ namespace Gsf { public InputMemory.clone ([CCode (array_length_cname = "length", array_length_pos = 1.1)] uint8[] buf); [CCode (has_construct_function = false, type = "GsfInput*")] public InputMemory.from_bzip (Gsf.Input source) throws GLib.Error; - [CCode (has_construct_function = false, type = "GsfInput*")] + [CCode (cheader_filename = "gsf/gsf-input-iochannel.h", has_construct_function = false, type = "GsfInput*")] public InputMemory.from_iochannel (GLib.IOChannel channel) throws GLib.Error; } [CCode (cheader_filename = "gsf/gsf.h", type_id = "gsf_input_proxy_get_type ()")] @@ -772,7 +772,7 @@ namespace Gsf { [CCode (cheader_filename = "gsf/gsf.h")] public static void le_set_float (void* p, float f); [CCode (cheader_filename = "gsf/gsf.h")] - public static void mem_dump (uint8 ptr, size_t len); + public static void mem_dump ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "gsize", type = "const guint8*")] uint8[] ptr); [CCode (cheader_filename = "gsf/gsf.h")] public static uint msole_codepage_to_lid (int codepage); [CCode (cheader_filename = "gsf/gsf.h")] @@ -822,8 +822,8 @@ namespace Gsf { public static GLib.ValueArray value_get_docprop_varray (GLib.Value value); [CCode (cheader_filename = "gsf/gsf.h")] public static unowned Gsf.DocPropVector value_get_docprop_vector (GLib.Value value); - [CCode (cheader_filename = "gsf/gsf.h")] - public static uint8 vba_inflate (Gsf.Input input, Gsf.off_t offset, int size, bool add_null_terminator); + [CCode (array_length_pos = 2.5, cheader_filename = "gsf/gsf.h")] + public static uint8[] vba_inflate (Gsf.Input input, Gsf.off_t offset, bool add_null_terminator); [CCode (cheader_filename = "gsf/gsf.h")] public static int xmlDocFormatDump (Gsf.Output output, Xml.Doc cur, string? encoding, bool format); [CCode (cheader_filename = "gsf/gsf.h")] diff --git a/vapi/metadata/Gsf-1.metadata b/vapi/metadata/Gsf-1.metadata index c5a2c8aef..63471d889 100644 --- a/vapi/metadata/Gsf-1.metadata +++ b/vapi/metadata/Gsf-1.metadata @@ -4,12 +4,21 @@ Gsf cheader_filename="gsf/gsf.h" gsf_off_t name="off_t" +mem_dump.ptr array array_length_idx=1 +vba_inflate array array_length_idx=2 unowned=false + +ClipData + .peek_real_data.ret_size out + DocMetaData .foreach.func type="GLib.HFunc<string,Gsf.DocProp>" Infile .child_by_vaname skip=false +InfileMSOle + .get_class_id.res out + InfileMSVBA .get_modules type="unowned GLib.HashTable<string,void*>" .steal_modules type="GLib.HashTable<string,void*>" @@ -17,6 +26,9 @@ InfileMSVBA Input .* skip=false +InputMemory + .new_from_iochannel cheader_filename="gsf/gsf-input-iochannel.h" + Outfile .* skip=false .new_child skip |