[vala] libgsf-1: Use uint8[] for InputMemory creation methods
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] libgsf-1: Use uint8[] for InputMemory creation methods
- Date: Thu, 29 Nov 2012 11:47:58 +0000 (UTC)
commit a7ce362604d71c088492b0cd1ef8a70471a7e708
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Nov 29 12:33:41 2012 +0100
libgsf-1: Use uint8[] for InputMemory creation methods
Based on patch by Hodong Kim.
Fixes bug 689026.
vapi/libgsf-1.vapi | 4 ++--
vapi/packages/libgsf-1/libgsf-1.metadata | 6 +++++-
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/vapi/libgsf-1.vapi b/vapi/libgsf-1.vapi
index b666398..6e1f2ab 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 61cc886..811e8aa 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]