]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libgsf-1: Use uint8[] for InputMemory creation methods
authorLuca Bruno <lucabru@src.gnome.org>
Thu, 29 Nov 2012 11:33:41 +0000 (12:33 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Thu, 29 Nov 2012 11:47:18 +0000 (12:47 +0100)
Based on patch by Hodong Kim.

Fixes bug 689026.

vapi/libgsf-1.vapi
vapi/packages/libgsf-1/libgsf-1.metadata

index b6663986b3ced02b89ee4a4607096583b2b43120..6e1f2ab2bf899c455ae44de4143392890b07054c 100644 (file)
@@ -171,9 +171,9 @@ namespace Gsf {
        [CCode (cheader_filename = "gsf/gsf-input-memory.h", type_id = "GSF_INPUT_MEMORY_TYPE")]
        public class InputMemory : Gsf.Input {
                [CCode (has_construct_function = false, type = "GsfInput*")]
-               public InputMemory (uchar buf, Gsf.off_t length, bool needs_free);
+               public InputMemory ([CCode (array_length_type = "Gsf.off_t")] uint8[] buf, bool needs_free);
                [CCode (has_construct_function = false, type = "GsfInput*")]
-               public InputMemory.clone (uchar buf, Gsf.off_t length);
+               public InputMemory.clone ([CCode (array_length_type = "Gsf.off_t")] 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*")]
index 61cc88658554880e56fc1041761b345c68634334..811e8aaa3397b078f50ba6a3014f9ac5f3605d77 100644 (file)
@@ -69,6 +69,10 @@ gsf_docprop_vector_as_string transfer_ownership="1"
 gsf_doc_prop_swap_val transfer_ownership="1"
 gsf_input_uncompress.src transfer_ownership="1"
 gsf_input_sibling transfer_ownership="1"
+gsf_input_memory_new.buf type_name="uint8[]" array_length_type="Gsf.off_t"
+gsf_input_memory_new.length hidden="1"
+gsf_input_memory_new_clone.buf type_name="uint8[]" array_length_type="Gsf.off_t"
+gsf_input_memory_new_clone.length hidden="1"
 gsf_input_mmap_new transfer_ownership="1"
 gsf_input_dup transfer_ownership="1"
 gsf_infile_child_by_aname.names no_array_length="1"
@@ -193,4 +197,4 @@ gsf_value_get_docprop_vector cheader_filename="gsf/gsf-docprop-vector.h"
 gsf_value_set_timestamp cheader_filename="gsf/gsf-timestamp.h"
 gsf_xmlDocFormatDump cheader_filename="gsf/gsf-libxml.h"
 gsf_xml_gvalue_from_str cheader_filename="gsf/gsf-libxml.h"
-gsf_xml_parser_context transfer_ownership="1" cheader_filename="gsf/gsf-libxml.h"
\ No newline at end of file
+gsf_xml_parser_context transfer_ownership="1" cheader_filename="gsf/gsf-libxml.h"