From: Luca Bruno Date: Thu, 29 Nov 2012 11:33:41 +0000 (+0100) Subject: libgsf-1: Use uint8[] for InputMemory creation methods X-Git-Tag: 0.19.0~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7ce362604d71c088492b0cd1ef8a70471a7e708;p=thirdparty%2Fvala.git libgsf-1: Use uint8[] for InputMemory creation methods Based on patch by Hodong Kim. Fixes bug 689026. --- diff --git a/vapi/libgsf-1.vapi b/vapi/libgsf-1.vapi index b6663986b..6e1f2ab2b 100644 --- a/vapi/libgsf-1.vapi +++ b/vapi/libgsf-1.vapi @@ -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*")] diff --git a/vapi/packages/libgsf-1/libgsf-1.metadata b/vapi/packages/libgsf-1/libgsf-1.metadata index 61cc88658..811e8aaa3 100644 --- a/vapi/packages/libgsf-1/libgsf-1.metadata +++ b/vapi/packages/libgsf-1/libgsf-1.metadata @@ -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"