Commit 7d7b3303 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

renamed from gio-standalone and updated to current svn trunk regenerated

2007-10-09  Juerg Billeter  <j@bitron.ch>

	* vapi/packages/gio-2.0/: renamed from gio-standalone and updated to
	  current svn trunk
	* vapi/gio-2.0.vala: regenerated
	* vapi/Makefile.am: updated

svn path=/trunk/; revision=643
parent 3169d482
2007-10-09 Jürg Billeter <j@bitron.ch>
* vapi/packages/gio-2.0/: renamed from gio-standalone and updated to
current svn trunk
* vapi/gio-2.0.vala: regenerated
* vapi/Makefile.am: updated
2007-10-08 Jürg Billeter <j@bitron.ch>
* vala/valaparser.vala, compiler/valacompiler.vala: use .vapi as file
......
......@@ -18,7 +18,7 @@ dist_vapi_DATA = \
glib-2.0.vala \
gdk-2.0.deps \
gdk-2.0.vala \
gio-standalone.vala \
gio-2.0.vala \
gnome-desktop-2.0.vala \
gnome-vfs-2.0.vala \
gstreamer-0.10.vala \
......
/* gio-standalone.vala generated by lt-vapigen, do not modify. */
/* gio-2.0.vala generated by lt-vapigen, do not modify. */
[CCode (cprefix = "G", lower_case_cprefix = "g_")]
namespace GLib {
[CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gvfs.h")]
public enum AppInfoCreateFlags {
FLAGS_NONE,
NEEDS_TERMINAL,
}
[CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gvfs.h")]
public enum DataStreamByteOrder {
BIG_ENDIAN,
......@@ -46,9 +51,10 @@ namespace GLib {
NOFOLLOW_SYMLINKS,
ALL_METADATA,
}
[CCode (cprefix = "G_FILE_GET_INFO_NOFOLLOW_", cheader_filename = "gio/gvfs.h")]
public enum FileGetInfoFlags {
SYMLINKS,
[CCode (cprefix = "G_FILE_CREATE_FLAGS_", cheader_filename = "gio/gvfs.h")]
public enum FileCreateFlags {
NONE,
PRIVATE,
}
[CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gvfs.h")]
public enum FileMonitorEvent {
......@@ -65,6 +71,10 @@ namespace GLib {
NONE,
MONITOR_MOUNTS,
}
[CCode (cprefix = "G_FILE_QUERY_INFO_NOFOLLOW_", cheader_filename = "gio/gvfs.h")]
public enum FileQueryInfoFlags {
SYMLINKS,
}
[CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gvfs.h")]
public enum FileType {
UNKNOWN,
......@@ -85,7 +95,7 @@ namespace GLib {
NOT_EMPTY,
NOT_REGULAR_FILE,
NOT_SYMBOLIC_LINK,
NOT_MOUNTABLE,
NOT_MOUNTABLE_FILE,
FILENAME_TOO_LONG,
INVALID_FILENAME,
TOO_MANY_LINKS,
......@@ -105,6 +115,7 @@ namespace GLib {
WOULD_RECURSE,
BUSY,
WOULD_BLOCK,
HOST_NOT_FOUND,
}
[CCode (cprefix = "G_PASSWORD_FLAGS_", cheader_filename = "gio/gvfs.h")]
public enum PasswordFlags {
......@@ -182,19 +193,19 @@ namespace GLib {
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class DataInputStream : GLib.BufferedInputStream {
public uchar get_byte (GLib.Cancellable cancellable) throws GLib.Error;
public GLib.DataStreamByteOrder get_byte_order ();
public short get_int16 (GLib.Cancellable cancellable) throws GLib.Error;
public int get_int32 (GLib.Cancellable cancellable) throws GLib.Error;
public int64 get_int64 (GLib.Cancellable cancellable) throws GLib.Error;
public weak string get_line (ulong length, GLib.Cancellable cancellable) throws GLib.Error;
public GLib.DataStreamNewlineType get_newline_type ();
public static GLib.Type get_type ();
public ushort get_uint16 (GLib.Cancellable cancellable) throws GLib.Error;
public uint get_uint32 (GLib.Cancellable cancellable) throws GLib.Error;
public uint64 get_uint64 (GLib.Cancellable cancellable) throws GLib.Error;
public weak string get_until (char stop_char, ulong length, GLib.Cancellable cancellable) throws GLib.Error;
public DataInputStream (GLib.InputStream base_stream);
public uchar read_byte (GLib.Cancellable cancellable) throws GLib.Error;
public short read_int16 (GLib.Cancellable cancellable) throws GLib.Error;
public int read_int32 (GLib.Cancellable cancellable) throws GLib.Error;
public int64 read_int64 (GLib.Cancellable cancellable) throws GLib.Error;
public weak string read_line (ulong length, GLib.Cancellable cancellable) throws GLib.Error;
public ushort read_uint16 (GLib.Cancellable cancellable) throws GLib.Error;
public uint read_uint32 (GLib.Cancellable cancellable) throws GLib.Error;
public uint64 read_uint64 (GLib.Cancellable cancellable) throws GLib.Error;
public weak string read_until (char stop_char, ulong length, GLib.Cancellable cancellable) throws GLib.Error;
public void set_byte_order (GLib.DataStreamByteOrder order);
public void set_newline_type (GLib.DataStreamNewlineType type);
}
......@@ -216,12 +227,15 @@ namespace GLib {
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class DesktopAppInfo : GLib.Object, GLib.AppInfo {
public bool get_is_hidden ();
public static GLib.Type get_type ();
public DesktopAppInfo (string desktop_id);
public DesktopAppInfo.from_filename (string filename);
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class DirectoryMonitor : GLib.Object {
public virtual bool cancel ();
public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
public static GLib.Type get_type ();
public bool is_cancelled ();
public void set_rate_limit (int limit_msecs);
......@@ -272,6 +286,7 @@ namespace GLib {
public weak string get_etag ();
public GLib.FileType get_file_type ();
public weak GLib.Icon get_icon ();
public bool get_is_backup ();
public bool get_is_hidden ();
public bool get_is_symlink ();
public void get_modification_time (out GLib.TimeVal result);
......@@ -311,16 +326,19 @@ namespace GLib {
[CCode (cheader_filename = "gio/gvfs.h")]
public class FileInputStream : GLib.InputStream, GLib.Seekable {
public virtual bool can_seek ();
public virtual weak GLib.FileInfo get_file_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
public static GLib.Type get_type ();
public virtual weak GLib.FileInfo query_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error;
public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable) throws GLib.Error;
public virtual int64 tell ();
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class FileMonitor : GLib.Object {
public virtual bool cancel ();
public static weak GLib.DirectoryMonitor directory (GLib.File file, GLib.FileMonitorFlags flags);
public static weak GLib.FileMonitor file (GLib.File file, GLib.FileMonitorFlags flags);
public static weak GLib.DirectoryMonitor directory (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable cancellable);
public void emit_event (GLib.File file, GLib.File other_file, GLib.FileMonitorEvent event_type);
public static weak GLib.FileMonitor file (GLib.File file, GLib.FileMonitorFlags flags, GLib.Cancellable cancellable);
public static GLib.Type get_type ();
public bool is_cancelled ();
public void set_rate_limit (int limit_msecs);
......@@ -330,9 +348,11 @@ namespace GLib {
public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
public virtual bool can_seek ();
public virtual bool can_truncate ();
public virtual weak string get_etag (GLib.Cancellable cancellable) throws GLib.Error;
public virtual weak GLib.FileInfo get_file_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
public virtual weak string get_etag ();
public static GLib.Type get_type ();
public virtual weak GLib.FileInfo query_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
public virtual void query_info_async (string attributes, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public virtual weak GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error;
public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable cancellable) throws GLib.Error;
public virtual int64 tell ();
public virtual bool truncate (int64 size, GLib.Cancellable cancellable) throws GLib.Error;
......@@ -381,7 +401,7 @@ namespace GLib {
[CCode (cheader_filename = "gio/gvfs.h")]
public class LocalFileEnumerator : GLib.FileEnumerator {
public static GLib.Type get_type ();
public LocalFileEnumerator (string filename, string attributes, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public LocalFileEnumerator (string filename, string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class LocalFileInputStream : GLib.FileInputStream {
......@@ -395,10 +415,10 @@ namespace GLib {
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class LocalFileOutputStream : GLib.FileOutputStream {
public static weak GLib.FileOutputStream append (string filename, GLib.Cancellable cancellable) throws GLib.Error;
public static weak GLib.FileOutputStream create (string filename, GLib.Cancellable cancellable) throws GLib.Error;
public static weak GLib.FileOutputStream append (string filename, GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public static weak GLib.FileOutputStream create (string filename, GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public static GLib.Type get_type ();
public static weak GLib.FileOutputStream replace (string filename, string etag, bool make_backup, GLib.Cancellable cancellable) throws GLib.Error;
public static weak GLib.FileOutputStream replace (string filename, string etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class LocalVfs : GLib.Vfs {
......@@ -408,13 +428,17 @@ namespace GLib {
[CCode (cheader_filename = "gio/gvfs.h")]
public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
public static weak GLib.InputStream from_data (pointer data, long len);
public pointer get_data ();
public ulong get_data_size ();
public static GLib.Type get_type ();
public void set_free_data (bool free_data);
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
public weak GLib.ByteArray get_data ();
public static GLib.Type get_type ();
public MemoryOutputStream (GLib.ByteArray data);
public void set_free_on_close (bool free_on_close);
public void set_max_size (uint max_size);
[NoAccessorMethod]
public weak pointer data { get; set construct; }
......@@ -560,6 +584,7 @@ namespace GLib {
public static weak GLib.Vfs get_local ();
public weak string get_name ();
public virtual int get_priority ();
public weak string get_supported_uri_schemes ();
public static GLib.Type get_type ();
public virtual weak GLib.File parse_name (string parse_name);
}
......@@ -654,37 +679,46 @@ namespace GLib {
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class UnixMount {
public weak string mount_path;
public weak string device_path;
public weak string filesystem_type;
public bool is_read_only;
public int compare (GLib.UnixMount mount_entry2);
public weak string get_device_path ();
public weak string get_fs_type ();
public weak string get_mount_path ();
public GLib.UnixMountType guess_type ();
public bool is_readonly ();
}
[CCode (cheader_filename = "gio/gvfs.h")]
public class UnixMountPoint {
public weak string mount_path;
public weak string device_path;
public weak string filesystem_type;
public weak string dev_opt;
public bool is_read_only;
public bool is_user_mountable;
public bool is_loopback;
public int compare (GLib.UnixMountPoint mount_point2);
public weak string get_device_path ();
public weak string get_fs_type ();
public weak string get_mount_path ();
public GLib.UnixMountType guess_type ();
public bool is_loopback ();
public bool is_readonly ();
public bool is_user_mountable ();
}
[CCode (cheader_filename = "gio/gvfs.h")]
public interface AppInfo {
public static weak GLib.AppInfo create_from_commandline (string commandline, string application_name) throws GLib.Error;
public abstract bool add_supports_type (string content_type) throws GLib.Error;
public abstract bool can_remove_supports_type ();
public static weak GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
public abstract weak GLib.AppInfo dup ();
public abstract bool equal (GLib.AppInfo appinfo2);
public static weak GLib.List get_all ();
public static weak GLib.List get_all_for_type (string content_type);
public static weak GLib.AppInfo get_default_for_type (string content_type);
public abstract weak string get_description ();
public static weak GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
public weak string get_description ();
public weak string get_executable ();
public abstract weak GLib.Icon get_icon ();
public abstract weak string get_name ();
public weak string get_id ();
public weak string get_name ();
public static GLib.Type get_type ();
[NoArrayLength]
public abstract bool launch (GLib.List filenames, string[] envp) throws GLib.Error;
public abstract bool launch (GLib.List files, string[] envp) throws GLib.Error;
[NoArrayLength]
public abstract bool launch_uris (GLib.List uris, string[] envp) throws GLib.Error;
public abstract bool remove_supports_type (string content_type) throws GLib.Error;
public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
public abstract bool should_show (string desktop_env);
public abstract bool supports_uris ();
......@@ -713,36 +747,38 @@ namespace GLib {
}
[CCode (cheader_filename = "gio/gfile.h")]
public interface File {
public abstract weak GLib.FileOutputStream append_to (GLib.Cancellable cancellable) throws GLib.Error;
public abstract void append_to_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract weak GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void append_to_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract weak GLib.FileOutputStream append_to_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract bool contains_file (GLib.File descendant);
public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback, pointer progress_callback_data) throws GLib.Error;
public abstract weak GLib.FileOutputStream create (GLib.Cancellable cancellable) throws GLib.Error;
public abstract void create_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract weak GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void create_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract weak GLib.FileOutputStream create_finish (GLib.AsyncResult res) throws GLib.Error;
public bool delete (GLib.Cancellable cancellable) throws GLib.Error;
public abstract weak GLib.File dup ();
public abstract void eject_mountable (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract bool eject_mountable_finish (GLib.AsyncResult result) throws GLib.Error;
public abstract weak GLib.FileEnumerator enumerate_children (string attributes, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract weak GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract weak GLib.FileEnumerator enumerate_children_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract bool equal (GLib.File file2);
public abstract weak string get_basename ();
public weak GLib.File get_child (string name);
public abstract weak GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
public abstract weak GLib.FileInfo get_filesystem_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
public abstract weak GLib.FileInfo get_info (string attributes, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void get_info_async (string attributes, GLib.FileGetInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract weak GLib.FileInfo get_info_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract weak GLib.File get_parent ();
public abstract weak string get_parse_name ();
public abstract weak string get_path ();
public abstract weak string get_relative_path (GLib.File descendant);
public static GLib.Type get_type ();
public abstract weak string get_uri ();
public static uint hash (pointer file);
public abstract bool is_native ();
public bool load_contents (GLib.Cancellable cancellable, out string contents, ulong length) throws GLib.Error;
public bool load_contents (GLib.Cancellable cancellable, out string contents, ulong length, out string etag_out) throws GLib.Error;
public void load_contents_async (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public bool load_contents_finish (GLib.AsyncResult res, out string contents, ulong length) throws GLib.Error;
public bool load_contents_finish (GLib.AsyncResult res, out string contents, ulong length, out string etag_out) throws GLib.Error;
public void load_partial_contents_async (GLib.Cancellable cancellable, GLib.FileReadMoreCallback read_more_callback, GLib.AsyncReadyCallback callback, pointer user_data);
public bool load_partial_contents_finish (GLib.AsyncResult res, out string contents, ulong length, out string etag_out) throws GLib.Error;
public abstract bool make_directory (GLib.Cancellable cancellable) throws GLib.Error;
public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void mount_mountable (GLib.MountOperation mount_operation, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
......@@ -752,27 +788,35 @@ namespace GLib {
public static weak GLib.File new_for_path (string path);
public static weak GLib.File new_for_uri (string uri);
public static weak GLib.File parse_name (string parse_name);
public abstract weak GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable cancellable) throws GLib.Error;
public abstract weak GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract weak GLib.FileInfo query_info_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract weak GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable cancellable) throws GLib.Error;
public abstract weak GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable cancellable) throws GLib.Error;
public abstract weak GLib.FileInputStream read (GLib.Cancellable cancellable) throws GLib.Error;
public abstract void read_async (int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract weak GLib.FileInputStream read_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract weak GLib.FileOutputStream replace (string etag, bool make_backup, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void replace_async (string etag, bool make_backup, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public bool replace_contents (string contents, ulong length, string etag, bool make_backup, GLib.Cancellable cancellable) throws GLib.Error;
public void replace_contents_async (string contents, ulong length, string etag, bool make_backup, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public bool replace_contents_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract weak GLib.FileOutputStream replace (string etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void replace_async (string etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public bool replace_contents (string contents, ulong length, string etag, bool make_backup, GLib.FileCreateFlags flags, out string new_etag, GLib.Cancellable cancellable) throws GLib.Error;
public void replace_contents_async (string contents, ulong length, string etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public bool replace_contents_finish (GLib.AsyncResult res, out string new_etag) throws GLib.Error;
public abstract weak GLib.FileOutputStream replace_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract weak GLib.File resolve_relative (string relative_path);
public abstract bool set_attribute (string attribute, GLib.FileAttributeValue value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_byte_string (string attribute, string value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_int32 (string attribute, int value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_int64 (string attribute, int64 value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_string (string attribute, string value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_uint32 (string attribute, uint value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileGetInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract weak GLib.File resolve_relative_path (string relative_path);
public abstract bool set_attribute (string attribute, GLib.FileAttributeValue value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_int32 (string attribute, int value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_uint32 (string attribute, uint value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract bool set_attributes_finish (GLib.AsyncResult result, GLib.FileInfo info) throws GLib.Error;
public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable cancellable) throws GLib.Error;
public abstract weak GLib.File set_display_name (string display_name, GLib.Cancellable cancellable) throws GLib.Error;
public abstract void set_display_name_async (string display_name, int io_priority, GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract weak GLib.File set_display_name_finish (GLib.AsyncResult res) throws GLib.Error;
public abstract bool trash (GLib.Cancellable cancellable) throws GLib.Error;
public abstract void unmount_mountable (GLib.Cancellable cancellable, GLib.AsyncReadyCallback callback, pointer user_data);
public abstract bool unmount_mountable_finish (GLib.AsyncResult result) throws GLib.Error;
......@@ -817,6 +861,7 @@ namespace GLib {
public static delegate void AsyncReadyCallback (GLib.Object source_object, GLib.AsyncResult res, pointer user_data);
public static delegate bool FDSourceFunc (pointer user_data, GLib.IOCondition condition, int fd);
public static delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes, pointer user_data);
public static delegate bool FileReadMoreCallback (string file_contents, int64 file_size, pointer callback_data);
public static delegate void IODataFunc (pointer user_data);
public static delegate void IOJobFunc (GLib.IOJob job, GLib.Cancellable cancellable, pointer user_data);
public static delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
......
......@@ -7,6 +7,10 @@
-->
<namespace name="GLib">
<enum name="GAppInfoCreateFlags" type-name="GAppInfoCreateFlags" type="flags">
<member name="G_APP_INFO_CREATE_FLAGS_NONE" value=""/>
<member name="G_APP_INFO_CREATE_NEEDS_TERMINAL" value=""/>
</enum>
<enum name="GDataStreamByteOrder" type-name="GDataStreamByteOrder" type="enum">
<member name="G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN" value=""/>
<member name="G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN" value=""/>
......@@ -45,8 +49,9 @@
<member name="G_FILE_COPY_NOFOLLOW_SYMLINKS" value=""/>
<member name="G_FILE_COPY_ALL_METADATA" value=""/>
</enum>
<enum name="GFileGetInfoFlags" type-name="GFileGetInfoFlags" type="flags">
<member name="G_FILE_GET_INFO_NOFOLLOW_SYMLINKS" value="(1&lt;&lt;0)"/>
<enum name="GFileCreateFlags" type-name="GFileCreateFlags" type="flags">
<member name="G_FILE_CREATE_FLAGS_NONE" value=""/>
<member name="G_FILE_CREATE_FLAGS_PRIVATE" value=""/>
</enum>
<enum name="GFileMonitorEvent" type-name="GFileMonitorEvent" type="enum">
<member name="G_FILE_MONITOR_EVENT_CHANGED" value=""/>
......@@ -61,6 +66,9 @@
<member name="G_FILE_MONITOR_FLAGS_NONE" value=""/>
<member name="G_FILE_MONITOR_FLAGS_MONITOR_MOUNTS" value=""/>
</enum>
<enum name="GFileQueryInfoFlags" type-name="GFileQueryInfoFlags" type="flags">
<member name="G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS" value="(1&lt;&lt;0)"/>
</enum>
<enum name="GFileType" type-name="GFileType" type="enum">
<member name="G_FILE_TYPE_UNKNOWN" value=""/>
<member name="G_FILE_TYPE_REGULAR" value=""/>
......@@ -79,7 +87,7 @@
<member name="G_IO_ERROR_NOT_EMPTY" value=""/>
<member name="G_IO_ERROR_NOT_REGULAR_FILE" value=""/>
<member name="G_IO_ERROR_NOT_SYMBOLIC_LINK" value=""/>
<member name="G_IO_ERROR_NOT_MOUNTABLE" value=""/>
<member name="G_IO_ERROR_NOT_MOUNTABLE_FILE" value=""/>
<member name="G_IO_ERROR_FILENAME_TOO_LONG" value=""/>
<member name="G_IO_ERROR_INVALID_FILENAME" value=""/>
<member name="G_IO_ERROR_TOO_MANY_LINKS" value=""/>
......@@ -99,6 +107,7 @@
<member name="G_IO_ERROR_WOULD_RECURSE" value=""/>
<member name="G_IO_ERROR_BUSY" value=""/>
<member name="G_IO_ERROR_WOULD_BLOCK" value=""/>
<member name="G_IO_ERROR_HOST_NOT_FOUND" value=""/>
</enum>
<enum name="GPasswordFlags" type-name="GPasswordFlags" type="flags">
<member name="G_PASSWORD_FLAGS_NEED_PASSWORD" value=""/>
......@@ -151,6 +160,14 @@
<parameter type="gpointer" name="user_data"/>
</parameters>
</callback>
<callback name="GFileReadMoreCallback" type-name="GFileReadMoreCallback">
<return-type type="gboolean"/>
<parameters>
<parameter type="const-char*" name="file_contents"/>
<parameter type="goffset" name="file_size"/>
<parameter type="gpointer" name="callback_data"/>
</parameters>
</callback>
<callback name="GIODataFunc" type-name="GIODataFunc">
<return-type type="void"/>
<parameters>
......@@ -193,18 +210,6 @@
<parameter type="GAppInfo*" name="appinfo2"/>
</parameters>
</vfunc>
<vfunc name="get_name">
<return-type type="char*"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
</parameters>
</vfunc>
<vfunc name="get_description">
<return-type type="char*"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
</parameters>
</vfunc>
<vfunc name="get_icon">
<return-type type="GIcon*"/>
<parameters>
......@@ -256,11 +261,56 @@
<parameter type="GError**" name="error"/>
</parameters>
</vfunc>
<vfunc name="set_as_default_for_extension">
<return-type type="gboolean"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
<parameter type="const-char*" name="extension"/>
<parameter type="GError**" name="error"/>
</parameters>
</vfunc>
<vfunc name="add_supports_type">
<return-type type="gboolean"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
<parameter type="const-char*" name="content_type"/>
<parameter type="GError**" name="error"/>
</parameters>
</vfunc>
<vfunc name="can_remove_supports_type">
<return-type type="gboolean"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
</parameters>
</vfunc>
<vfunc name="remove_supports_type">
<return-type type="gboolean"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
<parameter type="const-char*" name="content_type"/>
<parameter type="GError**" name="error"/>
</parameters>
</vfunc>
<method name="add_supports_type" symbol="g_app_info_add_supports_type">
<return-type type="gboolean"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
<parameter type="const-char*" name="content_type"/>
<parameter type="GError**" name="error"/>
</parameters>
</method>
<method name="can_remove_supports_type" symbol="g_app_info_can_remove_supports_type">
<return-type type="gboolean"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
</parameters>
</method>
<method name="create_from_commandline" symbol="g_app_info_create_from_commandline">
<return-type type="GAppInfo*"/>
<parameters>
<parameter type="const-char*" name="commandline"/>
<parameter type="const-char*" name="application_name"/>
<parameter type="GAppInfoCreateFlags" name="flags"/>
<parameter type="GError**" name="error"/>
</parameters>
</method>
......@@ -290,10 +340,17 @@
<return-type type="GAppInfo*"/>
<parameters>
<parameter type="const-char*" name="content_type"/>
<parameter type="gboolean" name="must_support_uris"/>
</parameters>
</method>
<method name="get_description" symbol="g_app_info_get_description">
<return-type type="char*"/>
<return-type type="const-char*"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
</parameters>
</method>
<method name="get_executable" symbol="g_app_info_get_executable">
<return-type type="const-char*"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
</parameters>
......@@ -304,8 +361,14 @@
<parameter type="GAppInfo*" name="appinfo"/>
</parameters>
</method>
<method name="get_id" symbol="g_app_info_get_id">
<return-type type="const-char*"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
</parameters>
</method>
<method name="get_name" symbol="g_app_info_get_name">
<return-type type="char*"/>
<return-type type="const-char*"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
</parameters>
......@@ -317,7 +380,7 @@
<return-type type="gboolean"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
<parameter type="GList*" name="filenames"/>
<parameter type="GList*" name="files"/>
<parameter type="char**" name="envp"/>
<parameter type="GError**" name="error"/>
</parameters>
......@@ -331,6 +394,22 @@
<parameter type="GError**" name="error"/>
</parameters>
</method>
<method name="remove_supports_type" symbol="g_app_info_remove_supports_type">
<return-type type="gboolean"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
<parameter type="const-char*" name="content_type"/>
<parameter type="GError**" name="error"/>
</parameters>
</method>
<method name="set_as_default_for_extension" symbol="g_app_info_set_as_default_for_extension">
<return-type type="gboolean"/>
<parameters>
<parameter type="GAppInfo*" name="appinfo"/>
<parameter type="const-char*" name="extension"/>
<parameter type="GError**" name="error"/>
</parameters>
</m