1 /* libgsf-1.vapi generated by vapigen, do not modify. */
4 [CCode (cheader_filename = "gsf/gsf-blob.h", type_id = "GSF_BLOB_TYPE")]
5 public class Blob : GLib.Object {
6 [CCode (has_construct_function = false)]
7 public Blob (size_t size, void* data_to_copy) throws GLib.Error;
8 public size_t get_size ();
9 public void* peek_data ();
11 [CCode (cheader_filename = "gsf/gsf-clip-data.h", type_id = "GSF_CLIP_DATA_TYPE")]
12 public class ClipData : GLib.Object {
13 [CCode (has_construct_function = false)]
14 public ClipData (Gsf.ClipFormat format, Gsf.Blob data_blob);
15 public unowned Gsf.Blob get_data_blob ();
16 public Gsf.ClipFormat get_format ();
17 public Gsf.ClipFormatWindows get_windows_clipboard_format () throws GLib.Error;
18 public void* peek_real_data (size_t ret_size) throws GLib.Error;
20 [CCode (cheader_filename = "gsf/gsf-doc-meta-data.h", type_id = "GSF_DOC_META_DATA_TYPE")]
21 public class DocMetaData : GLib.Object {
22 [CCode (has_construct_function = false)]
23 public DocMetaData ();
24 public void @foreach (GLib.HFunc<string,Gsf.DocProp> func);
25 public void insert (string name, GLib.Value value);
26 public unowned Gsf.DocProp? lookup (string name);
27 public void remove (string name);
28 public size_t size ();
29 public unowned Gsf.DocProp? steal (string name);
30 public void store (Gsf.DocProp prop);
32 [CCode (cheader_filename = "gsf/gsf-doc-meta-data.h")]
34 public class DocProp {
35 [CCode (has_construct_function = false)]
36 public DocProp (owned string name);
38 public unowned string? get_link ();
39 public unowned string get_name ();
40 public unowned GLib.Value? get_val ();
41 public void set_link (owned string link);
42 public void set_val (owned GLib.Value val);
43 public GLib.Value swap_val (GLib.Value val);
45 [CCode (cheader_filename = "gsf/gsf-docprop-vector.h", type_id = "GSF_DOC_PROP_VECTOR_TYPE")]
46 public class DocPropVector : GLib.Object {
47 [CCode (cname = "gsf_docprop_vector_new", has_construct_function = false)]
48 public DocPropVector ();
49 [CCode (cname = "gsf_docprop_vector_append")]
50 public void append (GLib.Value value);
51 [CCode (cname = "gsf_docprop_vector_as_string")]
52 public string as_string ();
54 [CCode (cheader_filename = "gsf/gsf-infile-impl.h", type_id = "GSF_INFILE_TYPE")]
55 public class Infile : Gsf.Input {
56 [CCode (has_construct_function = false)]
58 public unowned Gsf.Input child_by_aname ([CCode (array_length = false)] string[] names);
59 public virtual unowned Gsf.Input? child_by_index (int i);
60 public virtual unowned Gsf.Input? child_by_name (string name);
61 public unowned Gsf.Input child_by_vaname (void* names);
62 public unowned Gsf.Input? child_by_vname ();
63 public virtual unowned string? name_by_index (int i);
64 public virtual int num_children ();
66 [CCode (cheader_filename = "gsf/gsf-infile-msole.h", type_id = "GSF_INFILE_MSOLE_TYPE")]
67 public class InfileMSOle : Gsf.Infile {
68 [CCode (cname = "gsf_infile_msole_new", has_construct_function = false, type = "GsfInfile*")]
69 public InfileMSOle (Gsf.Input source) throws GLib.Error;
70 [CCode (cname = "gsf_infile_msole_get_class_id")]
71 public bool get_class_id (uchar res);
73 [CCode (cheader_filename = "gsf/gsf-infile-msvba.h", type_id = "GSF_INFILE_MSVBA_TYPE")]
74 public class InfileMSVBA : Gsf.Infile {
75 [CCode (has_construct_function = false, type = "GsfInfile*")]
76 public InfileMSVBA (Gsf.Infile source) throws GLib.Error;
77 public unowned GLib.HashTable get_modules ();
78 public unowned GLib.HashTable steal_modules ();
80 [CCode (cheader_filename = "gsf/gsf-infile-stdio.h", type_id = "GSF_INFILE_STDIO_TYPE")]
81 public class InfileStdio : Gsf.Infile {
82 [CCode (has_construct_function = false, type = "GsfInfile*")]
83 public InfileStdio (string root) throws GLib.Error;
85 [CCode (cheader_filename = "gsf/gsf.h")]
86 public class InfileTar : Gsf.Infile {
87 [CCode (has_construct_function = false, type = "GsfInfile*")]
88 public InfileTar (Gsf.Input source) throws GLib.Error;
90 public Gsf.Input source { owned get; construct; }
92 [CCode (cheader_filename = "gsf/gsf-infile-zip.h", type_id = "GSF_INFILE_GZIP_TYPE")]
93 public class InfileZip : Gsf.Infile {
94 [CCode (has_construct_function = false, type = "GsfInfile*")]
95 public InfileZip (Gsf.Input source) throws GLib.Error;
97 public int compression_level { get; }
98 public Gsf.InfileZip internal_parent { construct; }
100 public Gsf.Input source { owned get; construct; }
102 [CCode (cheader_filename = "gsf/gsf-input-impl.h", type_id = "GSF_INPUT_TYPE")]
103 public class Input : GLib.Object {
104 public Gsf.off_t cur_offset;
105 [CCode (has_construct_function = false)]
108 public virtual Gsf.Input Dup () throws GLib.Error;
110 public virtual Gsf.Input OpenSibling (string path) throws GLib.Error;
111 [CCode (array_length = false)]
113 public virtual unowned uchar[]? Read (size_t num_bytes, [CCode (array_length = false)] uchar[]? optional_buffer);
115 public virtual bool Seek (Gsf.off_t offset, GLib.SeekType whence);
116 public unowned Gsf.Infile? container ();
117 public bool copy (Gsf.Output output);
118 public void dump (bool dump_as_hex);
119 public Gsf.Input dup () throws GLib.Error;
121 public static GLib.Quark error ();
122 public static GLib.Quark error_id ();
123 public unowned Gsf.InfileMSVBA find_vba () throws GLib.Error;
124 public static Gsf.Input mmap_new (string filename) throws GLib.Error;
125 public unowned string? name ();
126 [CCode (array_length = false)]
127 public unowned uchar[]? read (size_t num_bytes, [CCode (array_length = false)] uchar[]? optional_buffer);
128 public Gsf.off_t remaining ();
129 public bool seek (Gsf.off_t offset, GLib.SeekType whence);
130 public bool seek_emulate (Gsf.off_t pos);
131 public bool set_container (Gsf.Infile? container);
132 public bool set_name (string? name);
133 public bool set_name_from_filename (string filename);
134 public bool set_size (Gsf.off_t size);
135 public unowned Gsf.Input? sibling (string name) throws GLib.Error;
136 public Gsf.off_t size ();
137 public Gsf.off_t tell ();
138 public unowned Gsf.Input uncompress ();
140 public int64 position { get; }
142 [CCode (cheader_filename = "gsf/gsf-input-gzip.h", type_id = "GSF_INPUT_GZIP_TYPE")]
143 public class InputGZip : Gsf.Input {
144 [CCode (has_construct_function = false, type = "GsfInput*")]
145 public InputGZip (Gsf.Input source) throws GLib.Error;
147 public bool raw { get; construct; }
149 public Gsf.Input source { owned get; construct; }
151 public int64 uncompressed_size { get; construct; }
153 [CCode (cheader_filename = "gsf/gsf.h")]
154 public class InputGio : Gsf.Input {
155 [CCode (has_construct_function = false, type = "GsfInput*")]
156 public InputGio (GLib.File file) throws GLib.Error;
157 [CCode (has_construct_function = false, type = "GsfInput*")]
158 public InputGio.for_path (string path) throws GLib.Error;
159 [CCode (has_construct_function = false, type = "GsfInput*")]
160 public InputGio.for_uri (string uri) throws GLib.Error;
162 [CCode (cheader_filename = "gsf/gsf-input-http.h", type_id = "GSF_INPUT_HTTP_TYPE")]
163 public class InputHTTP : Gsf.Input {
164 [CCode (has_construct_function = false, type = "GsfInput*")]
165 public InputHTTP (string url) throws GLib.Error;
166 public unowned string get_content_type ();
167 public unowned string get_url ();
168 public string content_type { get; construct; }
169 public string url { get; construct; }
171 [CCode (cheader_filename = "gsf/gsf-input-memory.h", type_id = "GSF_INPUT_MEMORY_TYPE")]
172 public class InputMemory : Gsf.Input {
173 [CCode (has_construct_function = false, type = "GsfInput*")]
174 public InputMemory ([CCode (array_length_type = "Gsf.off_t")] uint8[] buf, bool needs_free);
175 [CCode (has_construct_function = false, type = "GsfInput*")]
176 public InputMemory.clone ([CCode (array_length_type = "Gsf.off_t")] uint8[] buf);
177 [CCode (has_construct_function = false, type = "GsfInput*")]
178 public InputMemory.from_bzip (Gsf.Input source) throws GLib.Error;
179 [CCode (has_construct_function = false, type = "GsfInput*")]
180 public InputMemory.from_iochannel (GLib.IOChannel channel) throws GLib.Error;
182 [CCode (cheader_filename = "gsf/gsf-input-proxy.h", type_id = "GSF_INPUT_PROXY_TYPE")]
183 public class InputProxy : Gsf.Input {
184 [CCode (has_construct_function = false, type = "GsfInput*")]
185 public InputProxy (Gsf.Input source);
186 [CCode (has_construct_function = false, type = "GsfInput*")]
187 public InputProxy.section (Gsf.Input source, Gsf.off_t offset, Gsf.off_t size);
189 [CCode (cheader_filename = "gsf/gsf-input-stdio.h", type_id = "GSF_INPUT_STDIO_TYPE")]
190 public class InputStdio : Gsf.Input {
191 [CCode (has_construct_function = false, type = "GsfInput*")]
192 public InputStdio (string filename) throws GLib.Error;
194 [CCode (cheader_filename = "gsf/gsf-input-textline.h", type_id = "GSF_INPUT_TEXTLINE_TYPE")]
195 public class InputTextline : Gsf.Input {
196 [CCode (has_construct_function = false, type = "GsfInput*")]
197 public InputTextline (Gsf.Input source);
198 [CCode (array_length = false)]
199 public unowned uint[]? ascii_gets ();
200 [CCode (array_length = false)]
201 public unowned uchar[]? utf8_gets ();
203 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
205 public class OpenPkgRel {
206 public unowned string get_target ();
207 public bool is_extern ();
209 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
211 public class OpenPkgRels {
213 [CCode (cheader_filename = "gsf/gsf-outfile-impl.h")]
214 public class Outfile : Gsf.Output {
215 [CCode (has_construct_function = false)]
216 protected Outfile ();
217 public Gsf.Output new_child (string name, bool is_dir);
218 public Gsf.Output new_child_full (string name, bool is_dir, ...);
220 [CCode (cheader_filename = "gsf/gsf-outfile-msole.h", type_id = "GSF_OUTFILE_MSOLE_TYPE")]
221 public class OutfileMSOle : Gsf.Outfile {
222 [CCode (cname = "gsf_outfile_msole_new", has_construct_function = false, type = "GsfOutfile*")]
223 public OutfileMSOle (Gsf.Output sink);
224 [CCode (cname = "gsf_outfile_msole_new_full", has_construct_function = false, type = "GsfOutfile*")]
225 public OutfileMSOle.full (Gsf.Output sink, uint bb_size, uint sb_size);
226 [CCode (cname = "gsf_outfile_msole_set_class_id")]
227 public bool set_class_id (uchar clsid);
229 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
230 public class OutfileOpenPkg : Gsf.Outfile {
231 [CCode (has_construct_function = false, type = "GsfOutfile*")]
232 public OutfileOpenPkg (Gsf.Outfile sink);
233 public unowned string add_extern_rel (string target, string content_type);
234 public static Gsf.Output add_rel (Gsf.Outfile dir, string name, string content_type, Gsf.Outfile parent, string type);
235 public unowned string relate (Gsf.OutfileOpenPkg parent, string type);
236 public void set_content_type (string content_type);
237 public void set_sink (Gsf.Output sink);
239 public string content_type { owned get; construct; }
241 public bool is_dir { get; construct; }
243 public Gsf.Outfile sink { owned get; construct; }
245 [CCode (cheader_filename = "gsf/gsf-outfile-stdio.h", type_id = "GSF_OUTFILE_STDIO_TYPE")]
246 public class OutfileStdio : Gsf.Outfile {
247 [CCode (has_construct_function = false, type = "GsfOutfile*")]
248 public OutfileStdio (string root) throws GLib.Error;
249 [CCode (has_construct_function = false, type = "GsfOutfile*")]
250 public OutfileStdio.full (string root, ...) throws GLib.Error;
252 [CCode (cheader_filename = "gsf/gsf-outfile-zip.h", type_id = "GSF_OUTFILE_ZIP_TYPE")]
253 public class OutfileZip : Gsf.Outfile {
254 [CCode (has_construct_function = false, type = "GsfOutfile*")]
255 public OutfileZip (Gsf.Output sink) throws GLib.Error;
256 public bool set_compression_method (Gsf.ZipCompressionMethod method);
258 public int compression_level { get; construct; }
260 public string entry_name { owned get; construct; }
262 public Gsf.Output sink { owned get; construct; }
264 [CCode (cheader_filename = "gsf/gsf-output-impl.h", type_id = "GSF_OUTPUT_TYPE")]
265 public class Output : GLib.Object {
266 public Gsf.off_t cur_offset;
267 public Gsf.off_t cur_size;
268 public weak GLib.Error err;
269 public weak string printf_buf;
270 public int printf_buf_size;
271 public weak GLib.Object wrapped_by;
272 [CCode (has_construct_function = false)]
275 public virtual bool Close ();
277 public virtual bool Seek (Gsf.off_t offset, GLib.SeekType whence);
279 public virtual bool Write (size_t num_bytes, [CCode (array_length = false)] uchar[] data);
280 public bool close ();
281 public unowned Gsf.Outfile? container ();
282 public unowned GLib.Error error ();
283 public static GLib.Quark error_id ();
284 public bool is_closed ();
285 public unowned string? name ();
286 public bool printf (string format, ...);
287 public bool puts (string line);
288 public bool seek (Gsf.off_t offset, GLib.SeekType whence);
289 public bool set_container (Gsf.Outfile? container);
290 public bool set_error (int code, string format);
291 public bool set_name (string? name);
292 public bool set_name_from_filename (string filename);
293 public Gsf.off_t size ();
294 public Gsf.off_t tell ();
295 public static bool unwrap (GLib.Object wrapper, Gsf.Output wrapee);
296 public static bool wrap (GLib.Object wrapper, Gsf.Output wrapee);
297 public bool write (size_t num_bytes, [CCode (array_length = false)] uchar[] data);
299 public int64 position { get; }
301 [CCode (cheader_filename = "gsf/gsf-output-bzip.h", type_id = "GSF_OUTPUT_BZIP_TYPE")]
302 public class OutputBzip : Gsf.Output {
303 [CCode (has_construct_function = false, type = "GsfOutput*")]
304 public OutputBzip (Gsf.Output sink) throws GLib.Error;
306 [CCode (cheader_filename = "gsf/gsf-output-csv.h", type_id = "GSF_OUTPUT_CSV_TYPE")]
307 public class OutputCsv : Gsf.Output {
308 public weak GLib.StringBuilder buf;
309 public size_t eol_len;
310 public bool fields_on_line;
311 public size_t quote_len;
312 public size_t separator_len;
313 [CCode (has_construct_function = false)]
314 protected OutputCsv ();
315 public bool write_eol ();
316 public bool write_field (string field, size_t len);
318 public string eol { owned get; set construct; }
320 public string quote { owned get; set construct; }
322 public Gsf.OutputCsvQuotingMode quoting_mode { get; set construct; }
324 public bool quoting_on_whitespace { get; set; }
326 public string quoting_triggers { owned get; set; }
328 public string separator { owned get; set construct; }
330 public Gsf.Output sink { owned get; set; }
332 [CCode (cheader_filename = "gsf/gsf-output-gzip.h", type_id = "GSF_OUTPUT_GZIP_TYPE")]
333 public class OutputGZip : Gsf.Output {
334 [CCode (has_construct_function = false, type = "GsfOutput*")]
335 public OutputGZip (Gsf.Output sink) throws GLib.Error;
337 public bool raw { get; construct; }
339 public Gsf.Output sink { owned get; construct; }
341 [CCode (cheader_filename = "gsf/gsf-output-gio.h", type_id = "GSF_OUTPUT_GIO_TYPE")]
342 public class OutputGio : Gsf.Output {
343 [CCode (has_construct_function = false, type = "GsfOutput*")]
344 public OutputGio (GLib.File file);
345 [CCode (has_construct_function = false, type = "GsfOutput*")]
346 public OutputGio.for_path (string path) throws GLib.Error;
347 [CCode (has_construct_function = false, type = "GsfOutput*")]
348 public OutputGio.for_uri (string uri) throws GLib.Error;
350 [CCode (cheader_filename = "gsf/gsf-output-iochannel.h", type_id = "GSF_OUTPUT_IOCHANNEL_TYPE")]
351 public class OutputIOChannel : Gsf.Output {
352 [CCode (cname = "gsf_output_iochannel_new", has_construct_function = false, type = "GsfOutput*")]
353 public OutputIOChannel (GLib.IOChannel channel);
355 [CCode (cheader_filename = "gsf/gsf-output-iconv.h", type_id = "GSF_OUTPUT_ICONV_TYPE")]
356 public class OutputIconv : Gsf.Output {
357 [CCode (has_construct_function = false, type = "GsfOutput*")]
358 public OutputIconv (Gsf.Output sink, string dst, string src);
360 public string fallback { owned get; set; }
362 public string input_charset { owned get; construct; }
364 public string output_charset { owned get; construct; }
366 public Gsf.Output sink { owned get; construct; }
368 [CCode (cheader_filename = "gsf/gsf-output-memory.h", type_id = "GSF_OUTPUT_MEMORY_TYPE")]
369 public class OutputMemory : Gsf.Output {
370 [CCode (has_construct_function = false, type = "GsfOutput*")]
371 public OutputMemory ();
372 [CCode (array_length = false)]
373 public unowned uchar[] get_bytes ();
375 [CCode (cheader_filename = "gsf/gsf-output-stdio.h", type_id = "GSF_OUTPUT_STDIO_TYPE")]
376 public class OutputStdio : Gsf.Output {
377 [CCode (has_construct_function = false, type = "GsfOutput*")]
378 public OutputStdio (string filename) throws GLib.Error;
379 [CCode (has_construct_function = false, type = "GsfOutput*")]
380 public OutputStdio.full (string filename, ...) throws GLib.Error;
382 [CCode (cheader_filename = "gsf/gsf-infile-msvba.h", type_id = "GSF_SHARED_MEMORY_TYPE")]
383 public class SharedMemory : GLib.Object {
385 public bool needs_free;
386 public bool needs_unmap;
387 public Gsf.off_t size;
388 [CCode (has_construct_function = false)]
389 public SharedMemory (void* buf, Gsf.off_t size, bool needs_free);
390 public static unowned Gsf.SharedMemory mmapped_new (void* buf, Gsf.off_t size);
392 [CCode (cheader_filename = "gsf/gsf-structured-blob.h", type_id = "GSF_STRUCTURED_BLOB_TYPE")]
393 public class StructuredBlob : Gsf.Infile {
394 [CCode (has_construct_function = false)]
395 protected StructuredBlob ();
396 public static Gsf.StructuredBlob read (Gsf.Input input);
397 public bool write (Gsf.Outfile container);
399 [CCode (cheader_filename = "gsf/gsf-timestamp.h", copy_function = "gsf_timestamp_copy", type_id = "gsf_timestamp_get_type ()")]
401 public class Timestamp {
402 public GLib.Date date;
404 public weak GLib.StringBuilder time_zone;
406 [CCode (has_construct_function = false)]
408 public string as_string ();
409 public Gsf.Timestamp copy ();
410 public bool equal (Gsf.Timestamp b);
411 public static int from_string (string spec, Gsf.Timestamp stamp);
413 public static int parse (string spec, Gsf.Timestamp stamp);
414 public void set_time (uint64 t);
416 [CCode (cheader_filename = "gsf/gsf-libxml.h")]
418 public class XMLBlob {
420 [CCode (cheader_filename = "gsf/gsf-libxml.h")]
423 public weak GLib.StringBuilder content;
424 public weak Gsf.XMLInDoc doc;
425 public weak Gsf.XMLInNode node;
426 public weak GLib.SList node_stack;
427 public void* user_state;
428 public unowned string check_ns (string str, uint ns_id);
429 public unowned Gsf.Input get_input ();
430 public bool namecmp (string str, uint ns_id, string name);
431 public void push_state (Gsf.XMLInDoc doc, void* new_state, Gsf.XMLInExtDtor dtor, [CCode (array_length = false)] string[] attrs);
433 [CCode (cheader_filename = "gsf/gsf-libxml.h")]
435 public class XMLInDoc {
436 [CCode (has_construct_function = false)]
437 public XMLInDoc ([CCode (array_length = false)] Gsf.XMLInNode[] nodes, Gsf.XMLInNS ns);
438 public void add_nodes (Gsf.XMLInNode nodes);
439 public bool parse (Gsf.Input input, void* user_state);
440 public void set_unknown_handler (Gsf.XMLInUnknownFunc handler);
442 [CCode (cheader_filename = "gsf/gsf-libxml.h")]
444 public class XMLInNS {
446 public weak string uri;
448 [CCode (cheader_filename = "gsf/gsf-libxml.h")]
450 public class XMLInNode {
451 public uint check_children_for_ns;
452 public weak GLib.Callback end;
453 public Gsf.XMLContent has_content;
454 public weak string id;
455 public weak string name;
457 public weak string parent_id;
458 public uint share_children_with_parent;
459 public weak GLib.Callback start;
460 public void* user_data;
462 [CCode (cheader_filename = "gsf/gsf-libxml.h", type_id = "GSF_XML_OUT_TYPE")]
463 public class XMLOut : GLib.Object {
464 [CCode (has_construct_function = false)]
465 public XMLOut (Gsf.Output output);
466 public void add_base64 (string id, uchar data, uint len);
467 public void add_bool (string id, bool val);
468 public void add_color (string id, uint r, uint g, uint b);
469 public void add_cstr (string id, string val_utf8);
470 public void add_cstr_unchecked (string id, string val_utf8);
471 public void add_enum (string id, GLib.Type etype, int val);
472 public void add_float (string id, double val, int precision);
473 public void add_gvalue (string id, GLib.Value val);
474 public void add_int (string id, int val);
475 public void add_uint (string id, uint val);
476 public unowned string end_element ();
477 public unowned Gsf.Output get_output ();
478 public void set_doc_type (string type);
479 public void simple_element (string id, string content);
480 public void simple_float_element (string id, double val, int precision);
481 public void simple_int_element (string id, int val);
482 public void start_element (string id);
484 public bool pretty_print { get; set; }
486 [CCode (cheader_filename = "glib.h", cname = "gint64", default_value = "0LL", get_value_function = "g_value_get_int64", marshaller_type_name = "INT64", set_value_function = "g_value_set_int64", type_id = "G_TYPE_INT64", type_signature = "x")]
487 [IntegerType (rank = 10)]
489 public struct off_t : int64 {
491 [CCode (cheader_filename = "gsf/gsf-clip-data.h", cprefix = "GSF_CLIP_FORMAT_", has_type_id = false)]
492 public enum ClipFormat {
497 CLIPBOARD_FORMAT_NAME,
500 [CCode (cheader_filename = "gsf/gsf-clip-data.h", cprefix = "GSF_CLIP_FORMAT_WINDOWS_", has_type_id = false)]
501 public enum ClipFormatWindows {
508 [CCode (cheader_filename = "gsf/gsf-output-csv.h", cprefix = "GSF_OUTPUT_CSV_QUOTING_MODE_")]
509 public enum OutputCsvQuotingMode {
514 [CCode (cheader_filename = "gsf/gsf-libxml.h", cprefix = "GSF_XML_", has_type_id = false)]
515 public enum XMLContent {
520 [CCode (cheader_filename = "gsf/gsf-outfile-zip.h", cprefix = "GSF_ZIP_", has_type_id = false)]
521 public enum ZipCompressionMethod {
534 [CCode (cheader_filename = "gsf/gsf-utils.h", cprefix = "GSF_ERROR_")]
535 public errordomain Error {
539 [CCode (cheader_filename = "gsf/gsf.h")]
540 public delegate void OpenPkgIter (Gsf.Input opkg, Gsf.OpenPkgRel rel);
541 [CCode (cheader_filename = "gsf/gsf-libxml.h", has_target = false)]
542 public delegate void XMLInExtDtor (Gsf.XMLIn xin, void* old_state);
543 [CCode (cheader_filename = "gsf/gsf-libxml.h", has_target = false)]
544 public delegate bool XMLInUnknownFunc (Gsf.XMLIn xin, string elem, out unowned string attrs);
545 [CCode (cheader_filename = "gsf/gsf.h", has_target = false)]
546 public delegate bool XMLProbeFunc (string name, string prefix, string URI, int nb_namespaces, out unowned string namespaces, int nb_attributes, int nb_defaulted, out unowned string attributes);
547 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
548 public const string META_NAME_BYTE_COUNT;
549 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
550 public const string META_NAME_CASE_SENSITIVE;
551 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
552 public const string META_NAME_CATEGORY;
553 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
554 public const string META_NAME_CELL_COUNT;
555 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
556 public const string META_NAME_CHARACTER_COUNT;
557 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
558 public const string META_NAME_CODEPAGE;
559 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
560 public const string META_NAME_COMPANY;
561 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
562 public const string META_NAME_CREATOR;
563 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
564 public const string META_NAME_DATE_CREATED;
565 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
566 public const string META_NAME_DATE_MODIFIED;
567 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
568 public const string META_NAME_DESCRIPTION;
569 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
570 public const string META_NAME_DICTIONARY;
571 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
572 public const string META_NAME_DOCUMENT_PARTS;
573 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
574 public const string META_NAME_EDITING_DURATION;
575 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
576 public const string META_NAME_GENERATOR;
577 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
578 public const string META_NAME_HEADING_PAIRS;
579 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
580 public const string META_NAME_HIDDEN_SLIDE_COUNT;
581 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
582 public const string META_NAME_IMAGE_COUNT;
583 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
584 public const string META_NAME_INITIAL_CREATOR;
585 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
586 public const string META_NAME_KEYWORD;
587 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
588 public const string META_NAME_KEYWORDS;
589 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
590 public const string META_NAME_LANGUAGE;
591 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
592 public const string META_NAME_LAST_PRINTED;
593 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
594 public const string META_NAME_LAST_SAVED_BY;
595 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
596 public const string META_NAME_LINE_COUNT;
597 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
598 public const string META_NAME_LINKS_DIRTY;
599 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
600 public const string META_NAME_LOCALE_SYSTEM_DEFAULT;
601 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
602 public const string META_NAME_MANAGER;
603 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
604 public const string META_NAME_MM_CLIP_COUNT;
605 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
606 public const string META_NAME_MSOLE_UNKNOWN_17;
607 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
608 public const string META_NAME_MSOLE_UNKNOWN_18;
609 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
610 public const string META_NAME_MSOLE_UNKNOWN_19;
611 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
612 public const string META_NAME_MSOLE_UNKNOWN_20;
613 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
614 public const string META_NAME_MSOLE_UNKNOWN_21;
615 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
616 public const string META_NAME_MSOLE_UNKNOWN_22;
617 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
618 public const string META_NAME_MSOLE_UNKNOWN_23;
619 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
620 public const string META_NAME_NOTE_COUNT;
621 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
622 public const string META_NAME_OBJECT_COUNT;
623 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
624 public const string META_NAME_PAGE_COUNT;
625 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
626 public const string META_NAME_PARAGRAPH_COUNT;
627 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
628 public const string META_NAME_PRESENTATION_FORMAT;
629 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
630 public const string META_NAME_PRINTED_BY;
631 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
632 public const string META_NAME_PRINT_DATE;
633 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
634 public const string META_NAME_REVISION_COUNT;
635 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
636 public const string META_NAME_SCALE;
637 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
638 public const string META_NAME_SECURITY;
639 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
640 public const string META_NAME_SLIDE_COUNT;
641 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
642 public const string META_NAME_SPREADSHEET_COUNT;
643 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
644 public const string META_NAME_SUBJECT;
645 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
646 public const string META_NAME_TABLE_COUNT;
647 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
648 public const string META_NAME_TEMPLATE;
649 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
650 public const string META_NAME_THUMBNAIL;
651 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
652 public const string META_NAME_TITLE;
653 [CCode (cheader_filename = "gsf/gsf-meta-names.h")]
654 public const string META_NAME_WORD_COUNT;
655 [CCode (cheader_filename = "gsf/gsf-outfile-ole.h")]
656 public const int OLE_DEFAULT_BB_SHIFT;
657 [CCode (cheader_filename = "gsf/gsf-outfile-ole.h")]
658 public const int OLE_DEFAULT_SB_SHIFT;
659 [CCode (cheader_filename = "gsf/gsf-utils.h")]
660 public static size_t base64_decode_simple ([CCode (array_length = false)] uchar[] data, size_t len);
661 [CCode (cheader_filename = "gsf/gsf-utils.h")]
662 public static size_t base64_decode_step ([CCode (array_length = false)] uchar[] @in, size_t len, [CCode (array_length = false)] uchar[] @out, out int state, out uint save);
663 [CCode (cheader_filename = "gsf/gsf-utils.h")]
664 public static size_t base64_encode_close ([CCode (array_length = false)] uchar[] @in, size_t inlen, bool break_lines, [CCode (array_length = false)] uchar[] @out, out int state, out uint save);
665 [CCode (array_length = false, cheader_filename = "gsf/gsf-utils.h")]
666 public static unowned uchar[] base64_encode_simple ([CCode (array_length = false)] uchar[] data, size_t len);
667 [CCode (cheader_filename = "gsf/gsf-utils.h")]
668 public static size_t base64_encode_step ([CCode (array_length = false)] uchar[] @in, size_t len, bool break_lines, [CCode (array_length = false)] uchar[] @out, out int state, out uint save);
669 [CCode (cheader_filename = "gsf/gsf-doc-meta-data.h")]
670 public static void doc_meta_dump (Gsf.DocMetaData meta);
671 [CCode (cheader_filename = "gsf/gsf-utils.h")]
672 public static GLib.Quark error_quark ();
673 [CCode (cheader_filename = "gsf/gsf-utils.h")]
674 public static unowned string extension_pointer (string path);
675 [CCode (cheader_filename = "gsf/gsf-utils.h")]
676 public static string filename_to_utf8 (string filename, bool quoted);
677 [CCode (cheader_filename = "gsf/gsf.h", cname = "get_gsf_odf_version")]
678 public static short get_gsf_odf_version ();
679 [CCode (cheader_filename = "gsf/gsf.h", cname = "get_gsf_odf_version_string")]
680 public static unowned string get_gsf_odf_version_string ();
681 [CCode (cheader_filename = "gsf/gsf.h", cname = "get_gsf_ooo_ns")]
682 public static unowned Gsf.XMLInNS get_gsf_ooo_ns ();
683 [CCode (cheader_filename = "gsf/gsf-utils.h")]
684 public static void iconv_close (GLib.IConv handle);
685 [CCode (cheader_filename = "gsf/gsf-utils.h")]
686 public static void init ();
687 [CCode (cheader_filename = "gsf/gsf-utils.h")]
688 public static void init_dynamic (GLib.TypeModule module);
689 [CCode (cheader_filename = "gsf/gsf-utils.h")]
690 public static double le_get_double (void* p);
691 [CCode (cheader_filename = "gsf/gsf-utils.h")]
692 public static float le_get_float (void* p);
693 [CCode (cheader_filename = "gsf/gsf-utils.h")]
694 public static uint64 le_get_guint64 (void* p);
695 [CCode (cheader_filename = "gsf/gsf-utils.h")]
696 public static void le_set_double (void* p, double d);
697 [CCode (cheader_filename = "gsf/gsf-utils.h")]
698 public static void le_set_float (void* p, float f);
699 [CCode (cheader_filename = "gsf/gsf-utils.h")]
700 public static void mem_dump ([CCode (array_length = false)] uchar[] ptr, size_t len);
701 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
702 public static uint msole_codepage_to_lid (int codepage);
703 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
704 public static GLib.IConv msole_iconv_open_codepage_for_export (int codepage_to);
705 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
706 public static GLib.IConv msole_iconv_open_codepage_for_import (string to, int codepage);
707 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
708 public static GLib.IConv msole_iconv_open_codepages_for_export (int codepage_to, string from);
709 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
710 public static GLib.IConv msole_iconv_open_for_export ();
711 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
712 public static GLib.IConv msole_iconv_open_for_import (int codepage);
713 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
714 public static int msole_iconv_win_codepage ();
715 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
716 public static unowned GLib.ByteArray msole_inflate (Gsf.Input input, Gsf.off_t offset);
717 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
718 public static unowned string msole_language_for_lid (uint lid);
719 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
720 public static uint msole_lid_for_language (string lang);
721 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
722 public static int msole_lid_to_codepage (uint lid);
723 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
724 public static unowned string msole_lid_to_codepage_str (uint lid);
725 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
726 public static unowned GLib.Error msole_metadata_read (Gsf.Input @in, Gsf.DocMetaData accum);
727 [CCode (cheader_filename = "gsf/gsf-msole-utils.h")]
728 public static bool msole_metadata_write (Gsf.Output @out, Gsf.DocMetaData meta_data, bool doc_not_component);
729 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
730 public static int open_pkg_error_id ();
731 [CCode (cheader_filename = "gsf/gsf.h")]
732 public static void open_pkg_foreach_rel (Gsf.Input opkg, Gsf.OpenPkgIter func);
733 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
734 public static Gsf.Input open_pkg_get_rel_by_id (Gsf.Input opkg, string id);
735 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
736 public static Gsf.Input open_pkg_get_rel_by_type (Gsf.Input opkg, string type);
737 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
738 public static unowned Gsf.OpenPkgRel open_pkg_lookup_rel_by_id (Gsf.Input opkg, string id);
739 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
740 public static unowned Gsf.OpenPkgRel open_pkg_lookup_rel_by_type (Gsf.Input opkg, string type);
741 [CCode (cheader_filename = "gsf/gsf.h")]
742 public static unowned Gsf.Input open_pkg_open_rel (Gsf.Input opkg, Gsf.OpenPkgRel rel) throws GLib.Error;
743 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
744 public static Gsf.Input open_pkg_open_rel_by_id (Gsf.Input opkg, string id) throws GLib.Error;
745 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
746 public static Gsf.Input open_pkg_open_rel_by_type (Gsf.Input opkg, string type) throws GLib.Error;
747 [CCode (cheader_filename = "gsf/gsf-open-pkg-utils.h")]
748 public static unowned GLib.Error open_pkg_parse_rel_by_id (Gsf.XMLIn xin, string id, Gsf.XMLInNode dtd, Gsf.XMLInNS ns);
749 [CCode (cheader_filename = "gsf/gsf-opendoc-utils.h")]
750 public static unowned GLib.Error opendoc_metadata_read (Gsf.Input input, Gsf.DocMetaData md);
751 [CCode (cheader_filename = "gsf/gsf-opendoc-utils.h")]
752 public static void opendoc_metadata_subtree (Gsf.XMLIn doc, Gsf.DocMetaData md);
753 [CCode (cheader_filename = "gsf/gsf-opendoc-utils.h")]
754 public static bool opendoc_metadata_write (Gsf.XMLOut output, Gsf.DocMetaData md);
755 [CCode (cheader_filename = "gsf/gsf-utils.h")]
756 public static void property_settings_collect (GLib.Type object_type, [CCode (array_length = false)] GLib.Parameter[] p_params, ref size_t p_n_params, ...);
757 [CCode (cheader_filename = "gsf/gsf-utils.h")]
758 public static void property_settings_free (GLib.Parameter[] @params);
759 [CCode (cheader_filename = "gsf/gsf-utils.h")]
760 public static void shutdown ();
761 [CCode (cheader_filename = "gsf/gsf-utils.h")]
762 public static void shutdown_dynamic (GLib.TypeModule module);
763 [CCode (cheader_filename = "gsf/gsf-docprop-vector.h")]
764 public static unowned GLib.ValueArray value_get_docprop_varray (GLib.Value value);
765 [CCode (cheader_filename = "gsf/gsf-docprop-vector.h")]
766 public static unowned Gsf.DocPropVector value_get_docprop_vector (GLib.Value value);
767 [CCode (cheader_filename = "gsf/gsf-timestamp.h")]
768 public static void value_set_timestamp (GLib.Value value, Gsf.Timestamp stamp);
769 [CCode (cheader_filename = "gsf/gsf-libxml.h")]
770 public static int xmlDocFormatDump (Gsf.Output output, Xml.Doc cur, string encoding, bool format);
771 [CCode (cheader_filename = "gsf/gsf-libxml.h")]
772 public static bool xml_gvalue_from_str (GLib.Value res, GLib.Type t, string str);
773 [CCode (cheader_filename = "gsf/gsf-libxml.h")]
774 public static Xml.ParserCtxt xml_parser_context (Gsf.Input input);
775 [CCode (cheader_filename = "gsf/gsf.h")]
776 public static bool xml_probe (Gsf.Input input, Gsf.XMLProbeFunc startElement);