mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
big header formatting cleanup: indentation, vtable formatting, consistent
2008-09-02 Michael Natterer <mitch@imendio.com> * *.h: big header formatting cleanup: indentation, vtable formatting, consistent spacing in (* vfunc), trailing whitespace removal. Formatting should be pretty consistent in all GIO headers now. svn path=/trunk/; revision=7433
This commit is contained in:
parent
920f3bffb3
commit
f2a2d6c9ac
@ -1,3 +1,10 @@
|
||||
2008-09-02 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* *.h: big header formatting cleanup: indentation, vtable
|
||||
formatting, consistent spacing in (* vfunc), trailing whitespace
|
||||
removal. Formatting should be pretty consistent in all GIO headers
|
||||
now.
|
||||
|
||||
2008-09-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gmount.h: Document guess_content_type sync vfunc.
|
||||
|
@ -86,45 +86,43 @@ struct _GAppInfoIface
|
||||
|
||||
/* Virtual Table */
|
||||
|
||||
GAppInfo * (*dup) (GAppInfo *appinfo);
|
||||
gboolean (*equal) (GAppInfo *appinfo1,
|
||||
GAppInfo *appinfo2);
|
||||
const char * (*get_id) (GAppInfo *appinfo);
|
||||
const char * (*get_name) (GAppInfo *appinfo);
|
||||
const char * (*get_description) (GAppInfo *appinfo);
|
||||
const char * (*get_executable) (GAppInfo *appinfo);
|
||||
GIcon * (*get_icon) (GAppInfo *appinfo);
|
||||
gboolean (*launch) (GAppInfo *appinfo,
|
||||
GList *filenames,
|
||||
GAppLaunchContext *launch_context,
|
||||
GError **error);
|
||||
gboolean (*supports_uris) (GAppInfo *appinfo);
|
||||
gboolean (*supports_files) (GAppInfo *appinfo);
|
||||
gboolean (*launch_uris) (GAppInfo *appinfo,
|
||||
GList *uris,
|
||||
GAppLaunchContext *launch_context,
|
||||
GError **error);
|
||||
gboolean (*should_show) (GAppInfo *appinfo);
|
||||
GAppInfo * (* dup) (GAppInfo *appinfo);
|
||||
gboolean (* equal) (GAppInfo *appinfo1,
|
||||
GAppInfo *appinfo2);
|
||||
const char * (* get_id) (GAppInfo *appinfo);
|
||||
const char * (* get_name) (GAppInfo *appinfo);
|
||||
const char * (* get_description) (GAppInfo *appinfo);
|
||||
const char * (* get_executable) (GAppInfo *appinfo);
|
||||
GIcon * (* get_icon) (GAppInfo *appinfo);
|
||||
gboolean (* launch) (GAppInfo *appinfo,
|
||||
GList *filenames,
|
||||
GAppLaunchContext *launch_context,
|
||||
GError **error);
|
||||
gboolean (* supports_uris) (GAppInfo *appinfo);
|
||||
gboolean (* supports_files) (GAppInfo *appinfo);
|
||||
gboolean (* launch_uris) (GAppInfo *appinfo,
|
||||
GList *uris,
|
||||
GAppLaunchContext *launch_context,
|
||||
GError **error);
|
||||
gboolean (* should_show) (GAppInfo *appinfo);
|
||||
|
||||
/* For changing associations */
|
||||
gboolean (*set_as_default_for_type) (GAppInfo *appinfo,
|
||||
const char *content_type,
|
||||
GError **error);
|
||||
gboolean (*set_as_default_for_extension) (GAppInfo *appinfo,
|
||||
const char *extension,
|
||||
GError **error);
|
||||
gboolean (*add_supports_type) (GAppInfo *appinfo,
|
||||
const char *content_type,
|
||||
GError **error);
|
||||
gboolean (*can_remove_supports_type) (GAppInfo *appinfo);
|
||||
gboolean (*remove_supports_type) (GAppInfo *appinfo,
|
||||
const char *content_type,
|
||||
GError **error);
|
||||
gboolean (* set_as_default_for_type) (GAppInfo *appinfo,
|
||||
const char *content_type,
|
||||
GError **error);
|
||||
gboolean (* set_as_default_for_extension) (GAppInfo *appinfo,
|
||||
const char *extension,
|
||||
GError **error);
|
||||
gboolean (* add_supports_type) (GAppInfo *appinfo,
|
||||
const char *content_type,
|
||||
GError **error);
|
||||
gboolean (* can_remove_supports_type) (GAppInfo *appinfo);
|
||||
gboolean (* remove_supports_type) (GAppInfo *appinfo,
|
||||
const char *content_type,
|
||||
GError **error);
|
||||
};
|
||||
|
||||
GType g_app_info_get_type (void) G_GNUC_CONST;
|
||||
GType g_app_launch_context_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GType g_app_info_get_type (void) G_GNUC_CONST;
|
||||
GAppInfo * g_app_info_create_from_commandline (const char *commandline,
|
||||
const char *application_name,
|
||||
GAppInfoCreateFlags flags,
|
||||
@ -193,14 +191,14 @@ struct _GAppLaunchContextClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
|
||||
char * (*get_display) (GAppLaunchContext *context,
|
||||
GAppInfo *info,
|
||||
GList *files);
|
||||
char * (*get_startup_notify_id) (GAppLaunchContext *context,
|
||||
GAppInfo *info,
|
||||
GList *files);
|
||||
void (*launch_failed) (GAppLaunchContext *context,
|
||||
const char *startup_notify_id);
|
||||
char * (* get_display) (GAppLaunchContext *context,
|
||||
GAppInfo *info,
|
||||
GList *files);
|
||||
char * (* get_startup_notify_id) (GAppLaunchContext *context,
|
||||
GAppInfo *info,
|
||||
GList *files);
|
||||
void (* launch_failed) (GAppLaunchContext *context,
|
||||
const char *startup_notify_id);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_g_reserved1) (void);
|
||||
@ -210,6 +208,7 @@ struct _GAppLaunchContextClass
|
||||
void (*_g_reserved5) (void);
|
||||
};
|
||||
|
||||
GType g_app_launch_context_get_type (void) G_GNUC_CONST;
|
||||
GAppLaunchContext *g_app_launch_context_new (void);
|
||||
char * g_app_launch_context_get_display (GAppLaunchContext *context,
|
||||
GAppInfo *info,
|
||||
|
@ -27,15 +27,16 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef struct {
|
||||
typedef struct
|
||||
{
|
||||
gpointer async_object;
|
||||
GError * error;
|
||||
gpointer user_data;
|
||||
} GAsyncResultData;
|
||||
|
||||
typedef gboolean (*GFDSourceFunc) (gpointer user_data,
|
||||
typedef gboolean (*GFDSourceFunc) (gpointer user_data,
|
||||
GIOCondition condition,
|
||||
int fd);
|
||||
int fd);
|
||||
|
||||
void _g_queue_async_result (GAsyncResultData *result,
|
||||
gpointer async_object,
|
||||
|
@ -59,11 +59,11 @@ struct _GAsyncResultIface
|
||||
|
||||
/* Virtual Table */
|
||||
|
||||
gpointer (*get_user_data) (GAsyncResult *async_result);
|
||||
GObject * (*get_source_object) (GAsyncResult *async_result);
|
||||
gpointer (* get_user_data) (GAsyncResult *async_result);
|
||||
GObject * (* get_source_object) (GAsyncResult *async_result);
|
||||
};
|
||||
|
||||
GType g_async_result_get_type (void) G_GNUC_CONST;
|
||||
GType g_async_result_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gpointer g_async_result_get_user_data (GAsyncResult *res);
|
||||
GObject *g_async_result_get_source_object (GAsyncResult *res);
|
||||
|
@ -56,7 +56,7 @@ struct _GBufferedInputStream
|
||||
|
||||
struct _GBufferedInputStreamClass
|
||||
{
|
||||
GFilterInputStreamClass parent_class;
|
||||
GFilterInputStreamClass parent_class;
|
||||
|
||||
gssize (* fill) (GBufferedInputStream *stream,
|
||||
gssize count,
|
||||
@ -118,7 +118,6 @@ int g_buffered_input_stream_read_byte (GBufferedInputStream *st
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_BUFFERED_INPUT_STREAM_H__ */
|
||||
|
@ -60,9 +60,9 @@ struct _GCancellableClass
|
||||
void (*_g_reserved5) (void);
|
||||
};
|
||||
|
||||
GType g_cancellable_get_type (void) G_GNUC_CONST;
|
||||
GType g_cancellable_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GCancellable *g_cancellable_new (void);
|
||||
GCancellable *g_cancellable_new (void);
|
||||
|
||||
/* These are only safe to call inside a cancellable op */
|
||||
gboolean g_cancellable_is_cancelled (GCancellable *cancellable);
|
||||
|
@ -27,7 +27,6 @@
|
||||
#ifndef __G_CONTENT_TYPE_H__
|
||||
#define __G_CONTENT_TYPE_H__
|
||||
|
||||
#include <glib.h>
|
||||
#include <gio/giotypes.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
@ -49,7 +48,7 @@ char * g_content_type_guess (const char *filename,
|
||||
gsize data_size,
|
||||
gboolean *result_uncertain);
|
||||
|
||||
char ** g_content_type_guess_for_tree (GFile *root);
|
||||
char ** g_content_type_guess_for_tree (GFile *root);
|
||||
|
||||
GList * g_content_types_get_registered (void);
|
||||
|
||||
|
@ -58,7 +58,8 @@ struct _GDataInputStream
|
||||
|
||||
struct _GDataInputStreamClass
|
||||
{
|
||||
GBufferedInputStreamClass parent_class;
|
||||
GBufferedInputStreamClass parent_class;
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
void (*_g_reserved1) (void);
|
||||
@ -68,8 +69,8 @@ struct _GDataInputStreamClass
|
||||
void (*_g_reserved5) (void);
|
||||
};
|
||||
|
||||
GType g_data_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GDataInputStream* g_data_input_stream_new (GInputStream *base_stream);
|
||||
GType g_data_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GDataInputStream * g_data_input_stream_new (GInputStream *base_stream);
|
||||
|
||||
void g_data_input_stream_set_byte_order (GDataInputStream *stream,
|
||||
GDataStreamByteOrder order);
|
||||
|
@ -59,7 +59,8 @@ struct _GDataOutputStream
|
||||
|
||||
struct _GDataOutputStreamClass
|
||||
{
|
||||
GFilterOutputStreamClass parent_class;
|
||||
GFilterOutputStreamClass parent_class;
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
void (*_g_reserved1) (void);
|
||||
@ -70,8 +71,8 @@ struct _GDataOutputStreamClass
|
||||
};
|
||||
|
||||
|
||||
GType g_data_output_stream_get_type (void) G_GNUC_CONST;
|
||||
GDataOutputStream* g_data_output_stream_new (GOutputStream *base_stream);
|
||||
GType g_data_output_stream_get_type (void) G_GNUC_CONST;
|
||||
GDataOutputStream * g_data_output_stream_new (GOutputStream *base_stream);
|
||||
|
||||
void g_data_output_stream_set_byte_order (GDataOutputStream *stream,
|
||||
GDataStreamByteOrder order);
|
||||
|
@ -43,7 +43,7 @@ struct _GDesktopAppInfoClass
|
||||
};
|
||||
|
||||
|
||||
GType g_desktop_app_info_get_type (void) G_GNUC_CONST;
|
||||
GType g_desktop_app_info_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GDesktopAppInfo *g_desktop_app_info_new_from_filename (const char *filename);
|
||||
GDesktopAppInfo *g_desktop_app_info_new_from_keyfile (GKeyFile *key_file);
|
||||
@ -51,7 +51,7 @@ GDesktopAppInfo *g_desktop_app_info_new_from_keyfile (GKeyFile *key_file
|
||||
GDesktopAppInfo *g_desktop_app_info_new (const char *desktop_id);
|
||||
gboolean g_desktop_app_info_get_is_hidden (GDesktopAppInfo *info);
|
||||
|
||||
void g_desktop_app_info_set_desktop_env (const char *desktop_env);
|
||||
void g_desktop_app_info_set_desktop_env (const char *desktop_env);
|
||||
|
||||
|
||||
#define G_TYPE_DESKTOP_APP_INFO_LOOKUP (g_desktop_app_info_lookup_get_type ())
|
||||
@ -80,15 +80,15 @@ struct _GDesktopAppInfoLookupIface
|
||||
{
|
||||
GTypeInterface g_iface;
|
||||
|
||||
GAppInfo * (*get_default_for_uri_scheme) (GDesktopAppInfoLookup *lookup,
|
||||
const char *uri_scheme);
|
||||
GAppInfo * (* get_default_for_uri_scheme) (GDesktopAppInfoLookup *lookup,
|
||||
const char *uri_scheme);
|
||||
};
|
||||
|
||||
GType g_desktop_app_info_lookup_get_type (void) G_GNUC_CONST;
|
||||
GType g_desktop_app_info_lookup_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GAppInfo *g_desktop_app_info_lookup_get_default_for_uri_scheme (GDesktopAppInfoLookup *lookup,
|
||||
const char *uri_scheme);
|
||||
const char *uri_scheme);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
#endif /* __G_DESKTOP_APP_INFO_H__ */
|
||||
|
63
gio/gdrive.h
63
gio/gdrive.h
@ -61,7 +61,6 @@ G_BEGIN_DECLS
|
||||
* @enumerate_identifiers: Returns an array strings listing the kinds
|
||||
* of identifiers which the #GDrive has.
|
||||
*
|
||||
*
|
||||
* Interface for creating #GDrive implementations.
|
||||
*/
|
||||
typedef struct _GDriveIface GDriveIface;
|
||||
@ -71,42 +70,42 @@ struct _GDriveIface
|
||||
GTypeInterface g_iface;
|
||||
|
||||
/* signals */
|
||||
void (*changed) (GDrive *drive);
|
||||
void (*disconnected) (GDrive *drive);
|
||||
void (*eject_button) (GDrive *drive);
|
||||
void (* changed) (GDrive *drive);
|
||||
void (* disconnected) (GDrive *drive);
|
||||
void (* eject_button) (GDrive *drive);
|
||||
|
||||
/* Virtual Table */
|
||||
char * (*get_name) (GDrive *drive);
|
||||
GIcon * (*get_icon) (GDrive *drive);
|
||||
gboolean (*has_volumes) (GDrive *drive);
|
||||
GList * (*get_volumes) (GDrive *drive);
|
||||
gboolean (*is_media_removable) (GDrive *drive);
|
||||
gboolean (*has_media) (GDrive *drive);
|
||||
gboolean (*is_media_check_automatic) (GDrive *drive);
|
||||
gboolean (*can_eject) (GDrive *drive);
|
||||
gboolean (*can_poll_for_media) (GDrive *drive);
|
||||
void (*eject) (GDrive *drive,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*eject_finish) (GDrive *drive,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (*poll_for_media) (GDrive *drive,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*poll_for_media_finish) (GDrive *drive,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
char * (* get_name) (GDrive *drive);
|
||||
GIcon * (* get_icon) (GDrive *drive);
|
||||
gboolean (* has_volumes) (GDrive *drive);
|
||||
GList * (* get_volumes) (GDrive *drive);
|
||||
gboolean (* is_media_removable) (GDrive *drive);
|
||||
gboolean (* has_media) (GDrive *drive);
|
||||
gboolean (* is_media_check_automatic) (GDrive *drive);
|
||||
gboolean (* can_eject) (GDrive *drive);
|
||||
gboolean (* can_poll_for_media) (GDrive *drive);
|
||||
void (* eject) (GDrive *drive,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* eject_finish) (GDrive *drive,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* poll_for_media) (GDrive *drive,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* poll_for_media_finish) (GDrive *drive,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
char * (*get_identifier) (GDrive *drive,
|
||||
const char *kind);
|
||||
char ** (*enumerate_identifiers) (GDrive *drive);
|
||||
char * (* get_identifier) (GDrive *drive,
|
||||
const char *kind);
|
||||
char ** (* enumerate_identifiers) (GDrive *drive);
|
||||
};
|
||||
|
||||
GType g_drive_get_type (void) G_GNUC_CONST;
|
||||
GType g_drive_get_type (void) G_GNUC_CONST;
|
||||
|
||||
char * g_drive_get_name (GDrive *drive);
|
||||
GIcon * g_drive_get_icon (GDrive *drive);
|
||||
|
@ -42,9 +42,9 @@ struct _GDummyFileClass
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
GType _g_dummy_file_get_type (void) G_GNUC_CONST;
|
||||
GType _g_dummy_file_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFile * _g_dummy_file_new (const char *uri);
|
||||
GFile * _g_dummy_file_new (const char *uri);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -19,9 +19,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "gicon.h"
|
||||
#include "gemblem.h"
|
||||
#include "glibintl.h"
|
||||
#include "gioenums.h"
|
||||
|
@ -26,10 +26,8 @@
|
||||
#ifndef __G_EMBLEM_H__
|
||||
#define __G_EMBLEM_H__
|
||||
|
||||
#include <gio/gicon.h>
|
||||
#include <gio/gioenums.h>
|
||||
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define G_TYPE_EMBLEM (g_emblem_get_type ())
|
||||
|
@ -29,8 +29,7 @@
|
||||
#define __G_EMBLEMED_ICON_H__
|
||||
|
||||
#include <gio/gicon.h>
|
||||
|
||||
#include "gemblem.h"
|
||||
#include <gio/gemblem.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
@ -58,7 +57,6 @@ GList *g_emblemed_icon_get_emblems (GEmblemedIcon *emblemed);
|
||||
void g_emblemed_icon_add_emblem (GEmblemedIcon *emblemed,
|
||||
GEmblem *emblem);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_EMBLEMED_ICON_H__ */
|
||||
|
535
gio/gfile.h
535
gio/gfile.h
@ -141,302 +141,299 @@ struct _GFileIface
|
||||
|
||||
/* Virtual Table */
|
||||
|
||||
GFile * (*dup) (GFile *file);
|
||||
guint (*hash) (GFile *file);
|
||||
gboolean (*equal) (GFile *file1,
|
||||
GFile *file2);
|
||||
gboolean (*is_native) (GFile *file);
|
||||
gboolean (*has_uri_scheme) (GFile *file,
|
||||
const char *uri_scheme);
|
||||
char * (*get_uri_scheme) (GFile *file);
|
||||
char * (*get_basename) (GFile *file);
|
||||
char * (*get_path) (GFile *file);
|
||||
char * (*get_uri) (GFile *file);
|
||||
char * (*get_parse_name) (GFile *file);
|
||||
GFile * (*get_parent) (GFile *file);
|
||||
gboolean (*prefix_matches) (GFile *prefix,
|
||||
GFile *file);
|
||||
char * (*get_relative_path) (GFile *parent,
|
||||
GFile *descendant);
|
||||
GFile * (*resolve_relative_path) (GFile *file,
|
||||
const char *relative_path);
|
||||
GFile * (*get_child_for_display_name) (GFile *file,
|
||||
const char *display_name,
|
||||
GError **error);
|
||||
GFile * (* dup) (GFile *file);
|
||||
guint (* hash) (GFile *file);
|
||||
gboolean (* equal) (GFile *file1,
|
||||
GFile *file2);
|
||||
gboolean (* is_native) (GFile *file);
|
||||
gboolean (* has_uri_scheme) (GFile *file,
|
||||
const char *uri_scheme);
|
||||
char * (* get_uri_scheme) (GFile *file);
|
||||
char * (* get_basename) (GFile *file);
|
||||
char * (* get_path) (GFile *file);
|
||||
char * (* get_uri) (GFile *file);
|
||||
char * (* get_parse_name) (GFile *file);
|
||||
GFile * (* get_parent) (GFile *file);
|
||||
gboolean (* prefix_matches) (GFile *prefix,
|
||||
GFile *file);
|
||||
char * (* get_relative_path) (GFile *parent,
|
||||
GFile *descendant);
|
||||
GFile * (* resolve_relative_path) (GFile *file,
|
||||
const char *relative_path);
|
||||
GFile * (* get_child_for_display_name) (GFile *file,
|
||||
const char *display_name,
|
||||
GError **error);
|
||||
|
||||
GFileEnumerator * (*enumerate_children) (GFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*enumerate_children_async) (GFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileEnumerator * (*enumerate_children_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
GFileInfo * (*query_info) (GFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*query_info_async) (GFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInfo * (*query_info_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
GFileInfo * (*query_filesystem_info)(GFile *file,
|
||||
const char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*query_filesystem_info_async) (GFile *file,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInfo * (*query_filesystem_info_finish) (GFile *file,
|
||||
GFileEnumerator * (* enumerate_children) (GFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* enumerate_children_async) (GFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileEnumerator * (* enumerate_children_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
GMount * (*find_enclosing_mount)(GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*find_enclosing_mount_async)(GFile *file,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GMount * (*find_enclosing_mount_finish)(GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
GFileInfo * (* query_info) (GFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* query_info_async) (GFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInfo * (* query_info_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
GFile * (*set_display_name) (GFile *file,
|
||||
const char *display_name,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*set_display_name_async) (GFile *file,
|
||||
const char *display_name,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFile * (*set_display_name_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
GFileInfo * (* query_filesystem_info) (GFile *file,
|
||||
const char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* query_filesystem_info_async) (GFile *file,
|
||||
const char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInfo * (* query_filesystem_info_finish)(GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
GFileAttributeInfoList * (*query_settable_attributes) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*_query_settable_attributes_async) (void);
|
||||
void (*_query_settable_attributes_finish) (void);
|
||||
GMount * (* find_enclosing_mount) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* find_enclosing_mount_async) (GFile *file,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GMount * (* find_enclosing_mount_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
GFileAttributeInfoList * (*query_writable_namespaces) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*_query_writable_namespaces_async) (void);
|
||||
void (*_query_writable_namespaces_finish) (void);
|
||||
GFile * (* set_display_name) (GFile *file,
|
||||
const char *display_name,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* set_display_name_async) (GFile *file,
|
||||
const char *display_name,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFile * (* set_display_name_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
gboolean (*set_attribute) (GFile *file,
|
||||
const char *attribute,
|
||||
GFileAttributeType type,
|
||||
gpointer value_p,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (*set_attributes_from_info) (GFile *file,
|
||||
GFileInfo *info,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*set_attributes_async) (GFile *file,
|
||||
GFileInfo *info,
|
||||
GFileQueryInfoFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*set_attributes_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GFileInfo **info,
|
||||
GError **error);
|
||||
GFileAttributeInfoList * (* query_settable_attributes) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* _query_settable_attributes_async) (void);
|
||||
void (* _query_settable_attributes_finish) (void);
|
||||
|
||||
GFileInputStream * (*read_fn) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*read_async) (GFile *file,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInputStream * (*read_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
GFileAttributeInfoList * (* query_writable_namespaces) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* _query_writable_namespaces_async) (void);
|
||||
void (* _query_writable_namespaces_finish) (void);
|
||||
|
||||
GFileOutputStream * (*append_to) (GFile *file,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*append_to_async) (GFile *file,
|
||||
GFileCreateFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileOutputStream * (*append_to_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
gboolean (* set_attribute) (GFile *file,
|
||||
const char *attribute,
|
||||
GFileAttributeType type,
|
||||
gpointer value_p,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (* set_attributes_from_info) (GFile *file,
|
||||
GFileInfo *info,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* set_attributes_async) (GFile *file,
|
||||
GFileInfo *info,
|
||||
GFileQueryInfoFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* set_attributes_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GFileInfo **info,
|
||||
GError **error);
|
||||
|
||||
GFileOutputStream * (*create) (GFile *file,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*create_async) (GFile *file,
|
||||
GFileCreateFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileOutputStream * (*create_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
GFileInputStream * (* read_fn) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* read_async) (GFile *file,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInputStream * (* read_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
GFileOutputStream * (*replace) (GFile *file,
|
||||
const char *etag,
|
||||
gboolean make_backup,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*replace_async) (GFile *file,
|
||||
const char *etag,
|
||||
gboolean make_backup,
|
||||
GFileCreateFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileOutputStream * (*replace_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
GFileOutputStream * (* append_to) (GFile *file,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* append_to_async) (GFile *file,
|
||||
GFileCreateFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileOutputStream * (* append_to_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
gboolean (*delete_file) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*_delete_file_async) (void);
|
||||
void (*_delete_file_finish) (void);
|
||||
GFileOutputStream * (* create) (GFile *file,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* create_async) (GFile *file,
|
||||
GFileCreateFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileOutputStream * (* create_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
gboolean (*trash) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*_trash_async) (void);
|
||||
void (*_trash_finish) (void);
|
||||
GFileOutputStream * (* replace) (GFile *file,
|
||||
const char *etag,
|
||||
gboolean make_backup,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* replace_async) (GFile *file,
|
||||
const char *etag,
|
||||
gboolean make_backup,
|
||||
GFileCreateFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileOutputStream * (* replace_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
gboolean (*make_directory) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*_make_directory_async) (void);
|
||||
void (*_make_directory_finish) (void);
|
||||
gboolean (* delete_file) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* _delete_file_async) (void);
|
||||
void (* _delete_file_finish) (void);
|
||||
|
||||
gboolean (*make_symbolic_link) (GFile *file,
|
||||
const char *symlink_value,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*_make_symbolic_link_async) (void);
|
||||
void (*_make_symbolic_link_finish) (void);
|
||||
gboolean (* trash) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* _trash_async) (void);
|
||||
void (* _trash_finish) (void);
|
||||
|
||||
gboolean (*copy) (GFile *source,
|
||||
GFile *destination,
|
||||
GFileCopyFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GFileProgressCallback progress_callback,
|
||||
gpointer progress_callback_data,
|
||||
GError **error);
|
||||
void (*copy_async) (GFile *source,
|
||||
GFile *destination,
|
||||
GFileCopyFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GFileProgressCallback progress_callback,
|
||||
gpointer progress_callback_data,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*copy_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
gboolean (* make_directory) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* _make_directory_async) (void);
|
||||
void (* _make_directory_finish) (void);
|
||||
|
||||
gboolean (*move) (GFile *source,
|
||||
GFile *destination,
|
||||
GFileCopyFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GFileProgressCallback progress_callback,
|
||||
gpointer progress_callback_data,
|
||||
GError **error);
|
||||
gboolean (* make_symbolic_link) (GFile *file,
|
||||
const char *symlink_value,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* _make_symbolic_link_async) (void);
|
||||
void (* _make_symbolic_link_finish) (void);
|
||||
|
||||
void (*_move_async) (void);
|
||||
void (*_move_finish) (void);
|
||||
gboolean (* copy) (GFile *source,
|
||||
GFile *destination,
|
||||
GFileCopyFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GFileProgressCallback progress_callback,
|
||||
gpointer progress_callback_data,
|
||||
GError **error);
|
||||
void (* copy_async) (GFile *source,
|
||||
GFile *destination,
|
||||
GFileCopyFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GFileProgressCallback progress_callback,
|
||||
gpointer progress_callback_data,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* copy_finish) (GFile *file,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
gboolean (* move) (GFile *source,
|
||||
GFile *destination,
|
||||
GFileCopyFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GFileProgressCallback progress_callback,
|
||||
gpointer progress_callback_data,
|
||||
GError **error);
|
||||
void (* _move_async) (void);
|
||||
void (* _move_finish) (void);
|
||||
|
||||
void (*mount_mountable) (GFile *file,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFile * (*mount_mountable_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (*unmount_mountable) (GFile *file,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*unmount_mountable_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (*eject_mountable) (GFile *file,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*eject_mountable_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* mount_mountable) (GFile *file,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFile * (* mount_mountable_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
void (* unmount_mountable) (GFile *file,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* unmount_mountable_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
void (*mount_enclosing_volume) (GFile *location,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*mount_enclosing_volume_finish) (GFile *location,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* eject_mountable) (GFile *file,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* eject_mountable_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
GFileMonitor* (*monitor_dir) (GFile *file,
|
||||
GFileMonitorFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
GFileMonitor* (*monitor_file) (GFile *file,
|
||||
GFileMonitorFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* mount_enclosing_volume) (GFile *location,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* mount_enclosing_volume_finish) (GFile *location,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
GFileMonitor * (* monitor_dir) (GFile *file,
|
||||
GFileMonitorFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileMonitor * (* monitor_file) (GFile *file,
|
||||
GFileMonitorFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
};
|
||||
|
||||
GType g_file_get_type (void) G_GNUC_CONST;
|
||||
GType g_file_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFile * g_file_new_for_path (const char *path);
|
||||
GFile * g_file_new_for_uri (const char *uri);
|
||||
|
@ -39,10 +39,11 @@ G_BEGIN_DECLS
|
||||
*
|
||||
* Information about a specific attribute.
|
||||
**/
|
||||
struct _GFileAttributeInfo {
|
||||
char *name;
|
||||
GFileAttributeType type;
|
||||
GFileAttributeInfoFlags flags;
|
||||
struct _GFileAttributeInfo
|
||||
{
|
||||
char *name;
|
||||
GFileAttributeType type;
|
||||
GFileAttributeInfoFlags flags;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -53,9 +54,10 @@ struct _GFileAttributeInfo {
|
||||
* Acts as a lightweight registry for possible valid file attributes.
|
||||
* The registry stores Key-Value pair formats as #GFileAttributeInfo<!-- -->s.
|
||||
**/
|
||||
struct _GFileAttributeInfoList {
|
||||
struct _GFileAttributeInfoList
|
||||
{
|
||||
GFileAttributeInfo *infos;
|
||||
int n_infos;
|
||||
int n_infos;
|
||||
};
|
||||
|
||||
GFileAttributeInfoList * g_file_attribute_info_list_new (void);
|
||||
@ -71,5 +73,4 @@ void g_file_attribute_info_list_add (GFileAttributeInfoL
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
#endif /* __G_FILE_INFO_H__ */
|
||||
|
@ -31,7 +31,6 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
#define G_TYPE_FILE_ENUMERATOR (g_file_enumerator_get_type ())
|
||||
#define G_FILE_ENUMERATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_FILE_ENUMERATOR, GFileEnumerator))
|
||||
#define G_FILE_ENUMERATOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_FILE_ENUMERATOR, GFileEnumeratorClass))
|
||||
@ -62,30 +61,30 @@ struct _GFileEnumeratorClass
|
||||
|
||||
/* Virtual Table */
|
||||
|
||||
GFileInfo *(*next_file) (GFileEnumerator *enumerator,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (*close_fn) (GFileEnumerator *enumerator,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileInfo * (* next_file) (GFileEnumerator *enumerator,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (* close_fn) (GFileEnumerator *enumerator,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
void (*next_files_async) (GFileEnumerator *enumerator,
|
||||
int num_files,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GList * (*next_files_finish) (GFileEnumerator *enumerator,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
void (*close_async) (GFileEnumerator *enumerator,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*close_finish) (GFileEnumerator *enumerator,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
void (* next_files_async) (GFileEnumerator *enumerator,
|
||||
int num_files,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GList * (* next_files_finish) (GFileEnumerator *enumerator,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
void (* close_async) (GFileEnumerator *enumerator,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* close_finish) (GFileEnumerator *enumerator,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -98,7 +97,7 @@ struct _GFileEnumeratorClass
|
||||
void (*_g_reserved7) (void);
|
||||
};
|
||||
|
||||
GType g_file_enumerator_get_type (void) G_GNUC_CONST;
|
||||
GType g_file_enumerator_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFileInfo *g_file_enumerator_next_file (GFileEnumerator *enumerator,
|
||||
GCancellable *cancellable,
|
||||
|
@ -45,11 +45,11 @@ G_BEGIN_DECLS
|
||||
**/
|
||||
typedef struct _GFileIconClass GFileIconClass;
|
||||
|
||||
GType g_file_icon_get_type (void) G_GNUC_CONST;
|
||||
GType g_file_icon_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GIcon *g_file_icon_new (GFile *file);
|
||||
GIcon * g_file_icon_new (GFile *file);
|
||||
|
||||
GFile *g_file_icon_get_file (GFileIcon *icon);
|
||||
GFile * g_file_icon_get_file (GFileIcon *icon);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -683,7 +683,7 @@ typedef struct _GFileInfoClass GFileInfoClass;
|
||||
**/
|
||||
#define G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT "trash::item-count" /* uint32 */
|
||||
|
||||
GType g_file_info_get_type (void) G_GNUC_CONST;
|
||||
GType g_file_info_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFileInfo * g_file_info_new (void);
|
||||
GFileInfo * g_file_info_dup (GFileInfo *other);
|
||||
@ -814,5 +814,4 @@ const char * g_file_attribute_matcher_enumerate_next (GFileAttributeMa
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
||||
#endif /* __G_FILE_INFO_H__ */
|
||||
|
@ -61,26 +61,27 @@ struct _GFileInputStreamClass
|
||||
{
|
||||
GInputStreamClass parent_class;
|
||||
|
||||
goffset (*tell) (GFileInputStream *stream);
|
||||
gboolean (*can_seek) (GFileInputStream *stream);
|
||||
gboolean (*seek) (GFileInputStream *stream,
|
||||
goffset offset,
|
||||
GSeekType type,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileInfo *(*query_info) (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*query_info_async) (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInfo *(*query_info_finish) (GFileInputStream *stream,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
goffset (* tell) (GFileInputStream *stream);
|
||||
gboolean (* can_seek) (GFileInputStream *stream);
|
||||
gboolean (* seek) (GFileInputStream *stream,
|
||||
goffset offset,
|
||||
GSeekType type,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileInfo * (* query_info) (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* query_info_async) (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInfo * (* query_info_finish) (GFileInputStream *stream,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
void (*_g_reserved1) (void);
|
||||
@ -90,7 +91,7 @@ struct _GFileInputStreamClass
|
||||
void (*_g_reserved5) (void);
|
||||
};
|
||||
|
||||
GType g_file_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GType g_file_input_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFileInfo *g_file_input_stream_query_info (GFileInputStream *stream,
|
||||
char *attributes,
|
||||
@ -106,7 +107,6 @@ GFileInfo *g_file_input_stream_query_info_finish (GFileInputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_FILE_FILE_INPUT_STREAM_H__ */
|
||||
|
@ -59,13 +59,13 @@ struct _GFileMonitorClass
|
||||
GObjectClass parent_class;
|
||||
|
||||
/* Signals */
|
||||
void (* changed) (GFileMonitor* monitor,
|
||||
GFile* file,
|
||||
GFile* other_file,
|
||||
GFileMonitorEvent event_type);
|
||||
void (* changed) (GFileMonitor *monitor,
|
||||
GFile *file,
|
||||
GFile *other_file,
|
||||
GFileMonitorEvent event_type);
|
||||
|
||||
/* Virtual Table */
|
||||
gboolean (*cancel)(GFileMonitor* monitor);
|
||||
gboolean (* cancel) (GFileMonitor *monitor);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -76,19 +76,19 @@ struct _GFileMonitorClass
|
||||
void (*_g_reserved5) (void);
|
||||
};
|
||||
|
||||
GType g_file_monitor_get_type (void) G_GNUC_CONST;
|
||||
GType g_file_monitor_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean g_file_monitor_cancel (GFileMonitor *monitor);
|
||||
gboolean g_file_monitor_is_cancelled (GFileMonitor *monitor);
|
||||
void g_file_monitor_set_rate_limit (GFileMonitor *monitor,
|
||||
int limit_msecs);
|
||||
gboolean g_file_monitor_cancel (GFileMonitor *monitor);
|
||||
gboolean g_file_monitor_is_cancelled (GFileMonitor *monitor);
|
||||
void g_file_monitor_set_rate_limit (GFileMonitor *monitor,
|
||||
int limit_msecs);
|
||||
|
||||
|
||||
/* For implementations */
|
||||
void g_file_monitor_emit_event (GFileMonitor *monitor,
|
||||
GFile *child,
|
||||
GFile *other_file,
|
||||
GFileMonitorEvent event_type);
|
||||
void g_file_monitor_emit_event (GFileMonitor *monitor,
|
||||
GFile *child,
|
||||
GFile *other_file,
|
||||
GFileMonitorEvent event_type);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -45,12 +45,13 @@ G_BEGIN_DECLS
|
||||
**/
|
||||
typedef struct _GFilenameCompleterClass GFilenameCompleterClass;
|
||||
|
||||
struct _GFilenameCompleterClass {
|
||||
struct _GFilenameCompleterClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
|
||||
/*< public >*/
|
||||
/* signals */
|
||||
void (* got_completion_data) (GFilenameCompleter *filename_completer);
|
||||
void (* got_completion_data) (GFilenameCompleter *filename_completer);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -59,16 +60,16 @@ struct _GFilenameCompleterClass {
|
||||
void (*_g_reserved3) (void);
|
||||
};
|
||||
|
||||
GType g_filename_completer_get_type (void) G_GNUC_CONST;
|
||||
GType g_filename_completer_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFilenameCompleter *g_filename_completer_new (void);
|
||||
|
||||
char * g_filename_completer_get_completion_suffix (GFilenameCompleter *completer,
|
||||
const char *initial_text);
|
||||
const char *initial_text);
|
||||
char ** g_filename_completer_get_completions (GFilenameCompleter *completer,
|
||||
const char *initial_text);
|
||||
const char *initial_text);
|
||||
void g_filename_completer_set_dirs_only (GFilenameCompleter *completer,
|
||||
gboolean dirs_only);
|
||||
gboolean dirs_only);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -61,32 +61,32 @@ struct _GFileOutputStreamClass
|
||||
{
|
||||
GOutputStreamClass parent_class;
|
||||
|
||||
goffset (*tell) (GFileOutputStream *stream);
|
||||
gboolean (*can_seek) (GFileOutputStream *stream);
|
||||
gboolean (*seek) (GFileOutputStream *stream,
|
||||
goffset offset,
|
||||
GSeekType type,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (*can_truncate) (GFileOutputStream *stream);
|
||||
gboolean (*truncate_fn) (GFileOutputStream *stream,
|
||||
goffset size,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileInfo *(*query_info) (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*query_info_async) (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInfo *(*query_info_finish) (GFileOutputStream *stream,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
char *(*get_etag) (GFileOutputStream *stream);
|
||||
goffset (* tell) (GFileOutputStream *stream);
|
||||
gboolean (* can_seek) (GFileOutputStream *stream);
|
||||
gboolean (* seek) (GFileOutputStream *stream,
|
||||
goffset offset,
|
||||
GSeekType type,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (* can_truncate) (GFileOutputStream *stream);
|
||||
gboolean (* truncate_fn) (GFileOutputStream *stream,
|
||||
goffset size,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileInfo * (* query_info) (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* query_info_async) (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInfo * (* query_info_finish) (GFileOutputStream *stream,
|
||||
GAsyncResult *res,
|
||||
GError **error);
|
||||
char * (* get_etag) (GFileOutputStream *stream);
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_g_reserved1) (void);
|
||||
@ -96,23 +96,23 @@ struct _GFileOutputStreamClass
|
||||
void (*_g_reserved5) (void);
|
||||
};
|
||||
|
||||
GType g_file_output_stream_get_type (void) G_GNUC_CONST;
|
||||
GType g_file_output_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
|
||||
GFileInfo *g_file_output_stream_query_info (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void g_file_output_stream_query_info_async (GFileOutputStream *stream,
|
||||
GFileInfo *g_file_output_stream_query_info (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void g_file_output_stream_query_info_async (GFileOutputStream *stream,
|
||||
char *attributes,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GFileInfo *g_file_output_stream_query_info_finish (GFileOutputStream *stream,
|
||||
GFileInfo *g_file_output_stream_query_info_finish (GFileOutputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
char * g_file_output_stream_get_etag (GFileOutputStream *stream);
|
||||
char * g_file_output_stream_get_etag (GFileOutputStream *stream);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -66,8 +66,9 @@ struct _GFilterInputStreamClass
|
||||
};
|
||||
|
||||
|
||||
GType g_filter_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GInputStream *g_filter_input_stream_get_base_stream (GFilterInputStream *stream);
|
||||
GType g_filter_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GInputStream * g_filter_input_stream_get_base_stream (GFilterInputStream *stream);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_FILTER_INPUT_STREAM_H__ */
|
||||
|
@ -56,7 +56,7 @@ struct _GFilterOutputStream
|
||||
|
||||
struct _GFilterOutputStreamClass
|
||||
{
|
||||
GOutputStreamClass parent_class;
|
||||
GOutputStreamClass parent_class;
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -66,8 +66,9 @@ struct _GFilterOutputStreamClass
|
||||
};
|
||||
|
||||
|
||||
GType g_filter_output_stream_get_type (void) G_GNUC_CONST;
|
||||
GOutputStream *g_filter_output_stream_get_base_stream (GFilterOutputStream *stream);
|
||||
GType g_filter_output_stream_get_type (void) G_GNUC_CONST;
|
||||
GOutputStream * g_filter_output_stream_get_base_stream (GFilterOutputStream *stream);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_FILTER_OUTPUT_STREAM_H__ */
|
||||
|
16
gio/gicon.h
16
gio/gicon.h
@ -41,7 +41,7 @@ G_BEGIN_DECLS
|
||||
*
|
||||
* An abstract type that specifies an icon.
|
||||
**/
|
||||
typedef struct _GIconIface GIconIface;
|
||||
typedef struct _GIconIface GIconIface;
|
||||
|
||||
/**
|
||||
* GIconIface:
|
||||
@ -59,16 +59,16 @@ struct _GIconIface
|
||||
|
||||
/* Virtual Table */
|
||||
|
||||
guint (*hash) (GIcon *icon);
|
||||
gboolean (*equal) (GIcon *icon1,
|
||||
GIcon *icon2);
|
||||
guint (* hash) (GIcon *icon);
|
||||
gboolean (* equal) (GIcon *icon1,
|
||||
GIcon *icon2);
|
||||
};
|
||||
|
||||
GType g_icon_get_type (void) G_GNUC_CONST;
|
||||
GType g_icon_get_type (void) G_GNUC_CONST;
|
||||
|
||||
guint g_icon_hash (gconstpointer icon);
|
||||
gboolean g_icon_equal (GIcon *icon1,
|
||||
GIcon *icon2);
|
||||
guint g_icon_hash (gconstpointer icon);
|
||||
gboolean g_icon_equal (GIcon *icon1,
|
||||
GIcon *icon2);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -60,47 +60,47 @@ struct _GInputStreamClass
|
||||
|
||||
/* Sync ops: */
|
||||
|
||||
gssize (* read_fn) (GInputStream *stream,
|
||||
void *buffer,
|
||||
gsize count,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gssize (* skip) (GInputStream *stream,
|
||||
gsize count,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (* close_fn) (GInputStream *stream,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gssize (* read_fn) (GInputStream *stream,
|
||||
void *buffer,
|
||||
gsize count,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gssize (* skip) (GInputStream *stream,
|
||||
gsize count,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (* close_fn) (GInputStream *stream,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
/* Async ops: (optional in derived classes) */
|
||||
void (* read_async) (GInputStream *stream,
|
||||
void *buffer,
|
||||
gsize count,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gssize (* read_finish) (GInputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* skip_async) (GInputStream *stream,
|
||||
gsize count,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gssize (* skip_finish) (GInputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* close_async) (GInputStream *stream,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* close_finish)(GInputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* read_async) (GInputStream *stream,
|
||||
void *buffer,
|
||||
gsize count,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gssize (* read_finish) (GInputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* skip_async) (GInputStream *stream,
|
||||
gsize count,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gssize (* skip_finish) (GInputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* close_async) (GInputStream *stream,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* close_finish) (GInputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -111,7 +111,7 @@ struct _GInputStreamClass
|
||||
void (*_g_reserved5) (void);
|
||||
};
|
||||
|
||||
GType g_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GType g_input_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gssize g_input_stream_read (GInputStream *stream,
|
||||
void *buffer,
|
||||
|
@ -32,8 +32,6 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GQuark g_io_error_quark (void);
|
||||
|
||||
/**
|
||||
* G_IO_ERROR:
|
||||
*
|
||||
@ -42,6 +40,7 @@ GQuark g_io_error_quark (void);
|
||||
**/
|
||||
#define G_IO_ERROR g_io_error_quark()
|
||||
|
||||
GQuark g_io_error_quark (void);
|
||||
GIOErrorEnum g_io_error_from_errno (gint err_no);
|
||||
|
||||
G_END_DECLS
|
||||
|
@ -46,10 +46,10 @@ G_BEGIN_DECLS
|
||||
**/
|
||||
typedef struct _GIOModuleClass GIOModuleClass;
|
||||
|
||||
GType g_io_module_get_type (void) G_GNUC_CONST;
|
||||
GIOModule *g_io_module_new (const gchar *filename);
|
||||
GType g_io_module_get_type (void) G_GNUC_CONST;
|
||||
GIOModule *g_io_module_new (const gchar *filename);
|
||||
|
||||
GList *g_io_modules_load_all_in_directory (const char *dirname);
|
||||
GList *g_io_modules_load_all_in_directory (const gchar *dirname);
|
||||
|
||||
GIOExtensionPoint *g_io_extension_point_register (const char *name);
|
||||
GIOExtensionPoint *g_io_extension_point_lookup (const char *name);
|
||||
@ -64,12 +64,14 @@ GIOExtension * g_io_extension_point_implement (const char
|
||||
const char *extension_name,
|
||||
gint priority);
|
||||
|
||||
GType g_io_extension_get_type (GIOExtension *extension);
|
||||
const char * g_io_extension_get_name (GIOExtension *extension);
|
||||
gint g_io_extension_get_priority (GIOExtension *extension);
|
||||
GTypeClass* g_io_extension_ref_class (GIOExtension *extension);
|
||||
GType g_io_extension_get_type (GIOExtension *extension);
|
||||
const char * g_io_extension_get_name (GIOExtension *extension);
|
||||
gint g_io_extension_get_priority (GIOExtension *extension);
|
||||
GTypeClass* g_io_extension_ref_class (GIOExtension *extension);
|
||||
|
||||
|
||||
/* API for the modules to implement */
|
||||
|
||||
/**
|
||||
* g_io_module_load:
|
||||
* @module: a #GIOModule.
|
||||
@ -78,7 +80,7 @@ GTypeClass* g_io_extension_ref_class (GIOExtension *extension);
|
||||
* This function is ran after the module has been loaded into GIO,
|
||||
* to initialize the module.
|
||||
**/
|
||||
void g_io_module_load (GIOModule *module);
|
||||
void g_io_module_load (GIOModule *module);
|
||||
|
||||
/**
|
||||
* g_io_module_unload:
|
||||
@ -88,7 +90,7 @@ void g_io_module_load (GIOModule *module);
|
||||
* This function is ran when the module is being unloaded from GIO,
|
||||
* to finalize the module.
|
||||
**/
|
||||
void g_io_module_unload (GIOModule *module);
|
||||
void g_io_module_unload (GIOModule *module);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
#ifndef __G_IO_SCHEDULER_H__
|
||||
#define __G_IO_SCHEDULER_H__
|
||||
|
||||
#include <glib.h>
|
||||
#include <gio/giotypes.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
@ -27,7 +27,6 @@
|
||||
#ifndef __GIO_TYPES_H__
|
||||
#define __GIO_TYPES_H__
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gio/gioenums.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
@ -59,24 +59,23 @@ struct _GLoadableIconIface
|
||||
|
||||
/* Virtual Table */
|
||||
|
||||
GInputStream * (*load) (GLoadableIcon *icon,
|
||||
int size,
|
||||
char **type,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (*load_async) (GLoadableIcon *icon,
|
||||
int size,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GInputStream * (*load_finish) (GLoadableIcon *icon,
|
||||
GAsyncResult *res,
|
||||
char **type,
|
||||
GError **error);
|
||||
GInputStream * (* load) (GLoadableIcon *icon,
|
||||
int size,
|
||||
char **type,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* load_async) (GLoadableIcon *icon,
|
||||
int size,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
GInputStream * (* load_finish) (GLoadableIcon *icon,
|
||||
GAsyncResult *res,
|
||||
char **type,
|
||||
GError **error);
|
||||
};
|
||||
|
||||
GType g_loadable_icon_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GType g_loadable_icon_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GInputStream *g_loadable_icon_load (GLoadableIcon *icon,
|
||||
int size,
|
||||
|
@ -43,23 +43,27 @@ typedef struct _GLocalDirectoryMonitorClass GLocalDirectoryMonitorClass;
|
||||
struct _GLocalDirectoryMonitor
|
||||
{
|
||||
GFileMonitor parent_instance;
|
||||
gchar *dirname;
|
||||
|
||||
gchar *dirname;
|
||||
/* For mount emulation */
|
||||
GUnixMountMonitor *mount_monitor;
|
||||
gboolean was_mounted;
|
||||
gboolean was_mounted;
|
||||
};
|
||||
|
||||
struct _GLocalDirectoryMonitorClass {
|
||||
struct _GLocalDirectoryMonitorClass
|
||||
{
|
||||
GFileMonitorClass parent_class;
|
||||
|
||||
gboolean mount_notify;
|
||||
gboolean (*is_supported) (void);
|
||||
|
||||
gboolean (* is_supported) (void);
|
||||
};
|
||||
|
||||
GType g_local_directory_monitor_get_type (void) G_GNUC_CONST;
|
||||
GType g_local_directory_monitor_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFileMonitor* _g_local_directory_monitor_new (const char *dirname,
|
||||
GFileMonitorFlags flags,
|
||||
GError **error);
|
||||
GFileMonitor * _g_local_directory_monitor_new (const char *dirname,
|
||||
GFileMonitorFlags flags,
|
||||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -42,9 +42,9 @@ struct _GLocalFileClass
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
GType _g_local_file_get_type (void) G_GNUC_CONST;
|
||||
GType _g_local_file_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFile * _g_local_file_new (const char *filename);
|
||||
GFile * _g_local_file_new (const char *filename);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -39,20 +39,18 @@ typedef struct _GLocalFileEnumerator GLocalFileEnumerator;
|
||||
typedef struct _GLocalFileEnumeratorClass GLocalFileEnumeratorClass;
|
||||
typedef struct _GLocalFileEnumeratorPrivate GLocalFileEnumeratorPrivate;
|
||||
|
||||
|
||||
struct _GLocalFileEnumeratorClass
|
||||
{
|
||||
GFileEnumeratorClass parent_class;
|
||||
|
||||
};
|
||||
|
||||
GType _g_local_file_enumerator_get_type (void) G_GNUC_CONST;
|
||||
GType _g_local_file_enumerator_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFileEnumerator *_g_local_file_enumerator_new (GLocalFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileEnumerator * _g_local_file_enumerator_new (GLocalFile *file,
|
||||
const char *attributes,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -32,12 +32,13 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef struct {
|
||||
typedef struct
|
||||
{
|
||||
gboolean writable;
|
||||
gboolean is_sticky;
|
||||
gboolean has_trash_dir;
|
||||
int owner;
|
||||
dev_t device;
|
||||
int owner;
|
||||
dev_t device;
|
||||
} GLocalParentFileInfo;
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
@ -47,33 +48,33 @@ typedef struct {
|
||||
#define GLocalFileStat struct stat
|
||||
#endif
|
||||
|
||||
gboolean _g_local_file_has_trash_dir (const char *dirname,
|
||||
dev_t dir_dev);
|
||||
void _g_local_file_info_get_parent_info (const char *dir,
|
||||
GFileAttributeMatcher *attribute_matcher,
|
||||
GLocalParentFileInfo *parent_info);
|
||||
GFileInfo *_g_local_file_info_get (const char *basename,
|
||||
const char *path,
|
||||
GFileAttributeMatcher *attribute_matcher,
|
||||
GFileQueryInfoFlags flags,
|
||||
GLocalParentFileInfo *parent_info,
|
||||
GError **error);
|
||||
GFileInfo *_g_local_file_info_get_from_fd (int fd,
|
||||
char *attributes,
|
||||
GError **error);
|
||||
char * _g_local_file_info_create_etag (GLocalFileStat *statbuf);
|
||||
gboolean _g_local_file_info_set_attribute (char *filename,
|
||||
const char *attribute,
|
||||
GFileAttributeType type,
|
||||
gpointer value_p,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean _g_local_file_info_set_attributes (char *filename,
|
||||
GFileInfo *info,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean _g_local_file_has_trash_dir (const char *dirname,
|
||||
dev_t dir_dev);
|
||||
void _g_local_file_info_get_parent_info (const char *dir,
|
||||
GFileAttributeMatcher *attribute_matcher,
|
||||
GLocalParentFileInfo *parent_info);
|
||||
GFileInfo *_g_local_file_info_get (const char *basename,
|
||||
const char *path,
|
||||
GFileAttributeMatcher *attribute_matcher,
|
||||
GFileQueryInfoFlags flags,
|
||||
GLocalParentFileInfo *parent_info,
|
||||
GError **error);
|
||||
GFileInfo *_g_local_file_info_get_from_fd (int fd,
|
||||
char *attributes,
|
||||
GError **error);
|
||||
char * _g_local_file_info_create_etag (GLocalFileStat *statbuf);
|
||||
gboolean _g_local_file_info_set_attribute (char *filename,
|
||||
const char *attribute,
|
||||
GFileAttributeType type,
|
||||
gpointer value_p,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean _g_local_file_info_set_attributes (char *filename,
|
||||
GFileInfo *info,
|
||||
GFileQueryInfoFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -51,9 +51,9 @@ struct _GLocalFileInputStreamClass
|
||||
GFileInputStreamClass parent_class;
|
||||
};
|
||||
|
||||
GType _g_local_file_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GType _g_local_file_input_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFileInputStream *_g_local_file_input_stream_new (int fd);
|
||||
GFileInputStream * _g_local_file_input_stream_new (int fd);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -41,19 +41,22 @@ typedef struct _GLocalFileMonitorClass GLocalFileMonitorClass;
|
||||
struct _GLocalFileMonitor
|
||||
{
|
||||
GFileMonitor parent_instance;
|
||||
|
||||
gchar *filename;
|
||||
};
|
||||
|
||||
struct _GLocalFileMonitorClass {
|
||||
struct _GLocalFileMonitorClass
|
||||
{
|
||||
GFileMonitorClass parent_class;
|
||||
gboolean (*is_supported) (void);
|
||||
|
||||
gboolean (* is_supported) (void);
|
||||
};
|
||||
|
||||
GType g_local_file_monitor_get_type (void) G_GNUC_CONST;
|
||||
GType g_local_file_monitor_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFileMonitor* _g_local_file_monitor_new (const char *pathname,
|
||||
GFileMonitorFlags flags,
|
||||
GError **error);
|
||||
GFileMonitor * _g_local_file_monitor_new (const char *pathname,
|
||||
GFileMonitorFlags flags,
|
||||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -51,21 +51,21 @@ struct _GLocalFileOutputStreamClass
|
||||
GFileOutputStreamClass parent_class;
|
||||
};
|
||||
|
||||
GType _g_local_file_output_stream_get_type (void) G_GNUC_CONST;
|
||||
GFileOutputStream *_g_local_file_output_stream_create (const char *filename,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileOutputStream *_g_local_file_output_stream_append (const char *filename,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileOutputStream *_g_local_file_output_stream_replace (const char *filename,
|
||||
const char *etag,
|
||||
gboolean create_backup,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GType _g_local_file_output_stream_get_type (void) G_GNUC_CONST;
|
||||
GFileOutputStream * _g_local_file_output_stream_create (const char *filename,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileOutputStream * _g_local_file_output_stream_append (const char *filename,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GFileOutputStream * _g_local_file_output_stream_replace (const char *filename,
|
||||
const char *etag,
|
||||
gboolean create_backup,
|
||||
GFileCreateFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -27,20 +27,19 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define G_TYPE_LOCAL_VFS (_g_local_vfs_get_type ())
|
||||
#define G_LOCAL_VFS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_LOCAL_VFS, GLocalVfs))
|
||||
#define G_LOCAL_VFS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_LOCAL_VFS, GLocalVfsClass))
|
||||
#define G_IS_LOCAL_VFS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_LOCAL_VFS))
|
||||
#define G_IS_LOCAL_VFS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_LOCAL_VFS))
|
||||
#define G_LOCAL_VFS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_LOCAL_VFS, GLocalVfsClass))
|
||||
#define G_TYPE_LOCAL_VFS (_g_local_vfs_get_type ())
|
||||
#define G_LOCAL_VFS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_LOCAL_VFS, GLocalVfs))
|
||||
#define G_LOCAL_VFS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_LOCAL_VFS, GLocalVfsClass))
|
||||
#define G_IS_LOCAL_VFS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_LOCAL_VFS))
|
||||
#define G_IS_LOCAL_VFS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_LOCAL_VFS))
|
||||
#define G_LOCAL_VFS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_LOCAL_VFS, GLocalVfsClass))
|
||||
|
||||
typedef struct _GLocalVfs GLocalVfs;
|
||||
typedef struct _GLocalVfsClass GLocalVfsClass;
|
||||
|
||||
GType _g_local_vfs_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GVfs *_g_local_vfs_new (void);
|
||||
|
||||
GVfs * _g_local_vfs_new (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -56,7 +56,7 @@ struct _GMemoryInputStream
|
||||
|
||||
struct _GMemoryInputStreamClass
|
||||
{
|
||||
GInputStreamClass parent_class;
|
||||
GInputStreamClass parent_class;
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_g_reserved1) (void);
|
||||
@ -67,15 +67,15 @@ struct _GMemoryInputStreamClass
|
||||
};
|
||||
|
||||
|
||||
GType g_memory_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GInputStream * g_memory_input_stream_new (void);
|
||||
GInputStream * g_memory_input_stream_new_from_data (const void *data,
|
||||
gssize len,
|
||||
GDestroyNotify destroy);
|
||||
void g_memory_input_stream_add_data (GMemoryInputStream *stream,
|
||||
const void *data,
|
||||
gssize len,
|
||||
GDestroyNotify destroy);
|
||||
GType g_memory_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GInputStream * g_memory_input_stream_new (void);
|
||||
GInputStream * g_memory_input_stream_new_from_data (const void *data,
|
||||
gssize len,
|
||||
GDestroyNotify destroy);
|
||||
void g_memory_input_stream_add_data (GMemoryInputStream *stream,
|
||||
const void *data,
|
||||
gssize len,
|
||||
GDestroyNotify destroy);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -56,7 +56,7 @@ struct _GMemoryOutputStream
|
||||
|
||||
struct _GMemoryOutputStreamClass
|
||||
{
|
||||
GOutputStreamClass parent_class;
|
||||
GOutputStreamClass parent_class;
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -79,8 +79,8 @@ struct _GMemoryOutputStreamClass
|
||||
*
|
||||
* Returns: a pointer to the reallocated memory
|
||||
*/
|
||||
typedef gpointer (*GReallocFunc) (gpointer data,
|
||||
gsize size);
|
||||
typedef gpointer (* GReallocFunc) (gpointer data,
|
||||
gsize size);
|
||||
|
||||
GType g_memory_output_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
|
183
gio/gmount.h
183
gio/gmount.h
@ -72,107 +72,110 @@ struct _GMountIface
|
||||
|
||||
/* signals */
|
||||
|
||||
void (*changed) (GMount *mount);
|
||||
void (*unmounted) (GMount *mount);
|
||||
void (* changed) (GMount *mount);
|
||||
void (* unmounted) (GMount *mount);
|
||||
|
||||
/* Virtual Table */
|
||||
|
||||
GFile * (*get_root) (GMount *mount);
|
||||
char * (*get_name) (GMount *mount);
|
||||
GIcon * (*get_icon) (GMount *mount);
|
||||
char * (*get_uuid) (GMount *mount);
|
||||
GVolume * (*get_volume) (GMount *mount);
|
||||
GDrive * (*get_drive) (GMount *mount);
|
||||
gboolean (*can_unmount) (GMount *mount);
|
||||
gboolean (*can_eject) (GMount *mount);
|
||||
void (*unmount) (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*unmount_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (*eject) (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*eject_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (*remount) (GMount *mount,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*remount_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
GFile * (* get_root) (GMount *mount);
|
||||
char * (* get_name) (GMount *mount);
|
||||
GIcon * (* get_icon) (GMount *mount);
|
||||
char * (* get_uuid) (GMount *mount);
|
||||
GVolume * (* get_volume) (GMount *mount);
|
||||
GDrive * (* get_drive) (GMount *mount);
|
||||
gboolean (* can_unmount) (GMount *mount);
|
||||
gboolean (* can_eject) (GMount *mount);
|
||||
|
||||
void (*guess_content_type) (GMount *mount,
|
||||
gboolean force_rescan,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
void (* unmount) (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* unmount_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
gchar ** (*guess_content_type_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* eject) (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* eject_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
gchar ** (*guess_content_type_sync) (GMount *mount,
|
||||
gboolean force_rescan,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* remount) (GMount *mount,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* remount_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
void (* guess_content_type) (GMount *mount,
|
||||
gboolean force_rescan,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gchar ** (* guess_content_type_finish) (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
gchar ** (* guess_content_type_sync) (GMount *mount,
|
||||
gboolean force_rescan,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
};
|
||||
|
||||
GType g_mount_get_type (void) G_GNUC_CONST;
|
||||
GType g_mount_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFile * g_mount_get_root (GMount *mount);
|
||||
char * g_mount_get_name (GMount *mount);
|
||||
GIcon * g_mount_get_icon (GMount *mount);
|
||||
char * g_mount_get_uuid (GMount *mount);
|
||||
GVolume * g_mount_get_volume (GMount *mount);
|
||||
GDrive * g_mount_get_drive (GMount *mount);
|
||||
gboolean g_mount_can_unmount (GMount *mount);
|
||||
gboolean g_mount_can_eject (GMount *mount);
|
||||
void g_mount_unmount (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean g_mount_unmount_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void g_mount_eject (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean g_mount_eject_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void g_mount_remount (GMount *mount,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean g_mount_remount_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
GFile * g_mount_get_root (GMount *mount);
|
||||
char * g_mount_get_name (GMount *mount);
|
||||
GIcon * g_mount_get_icon (GMount *mount);
|
||||
char * g_mount_get_uuid (GMount *mount);
|
||||
GVolume * g_mount_get_volume (GMount *mount);
|
||||
GDrive * g_mount_get_drive (GMount *mount);
|
||||
gboolean g_mount_can_unmount (GMount *mount);
|
||||
gboolean g_mount_can_eject (GMount *mount);
|
||||
|
||||
void g_mount_guess_content_type (GMount *mount,
|
||||
gboolean force_rescan,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gchar ** g_mount_guess_content_type_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void g_mount_unmount (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean g_mount_unmount_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
gchar ** g_mount_guess_content_type_sync (GMount *mount,
|
||||
void g_mount_eject (GMount *mount,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean g_mount_eject_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
void g_mount_remount (GMount *mount,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean g_mount_remount_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
void g_mount_guess_content_type (GMount *mount,
|
||||
gboolean force_rescan,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gchar ** g_mount_guess_content_type_finish (GMount *mount,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
gchar ** g_mount_guess_content_type_sync (GMount *mount,
|
||||
gboolean force_rescan,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
@ -60,18 +60,18 @@ struct _GMountOperationClass
|
||||
|
||||
/* signals: */
|
||||
|
||||
void (* ask_password) (GMountOperation *op,
|
||||
const char *message,
|
||||
const char *default_user,
|
||||
const char *default_domain,
|
||||
GAskPasswordFlags flags);
|
||||
void (* ask_password) (GMountOperation *op,
|
||||
const char *message,
|
||||
const char *default_user,
|
||||
const char *default_domain,
|
||||
GAskPasswordFlags flags);
|
||||
|
||||
void (* ask_question) (GMountOperation *op,
|
||||
const char *message,
|
||||
const char *choices[]);
|
||||
void (* ask_question) (GMountOperation *op,
|
||||
const char *message,
|
||||
const char *choices[]);
|
||||
|
||||
void (* reply) (GMountOperation *op,
|
||||
GMountOperationResult result);
|
||||
void (* reply) (GMountOperation *op,
|
||||
GMountOperationResult result);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -89,9 +89,8 @@ struct _GMountOperationClass
|
||||
void (*_g_reserved12) (void);
|
||||
};
|
||||
|
||||
GType g_mount_operation_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GMountOperation * g_mount_operation_new (void);
|
||||
GType g_mount_operation_get_type (void) G_GNUC_CONST;
|
||||
GMountOperation * g_mount_operation_new (void);
|
||||
|
||||
const char * g_mount_operation_get_username (GMountOperation *op);
|
||||
void g_mount_operation_set_username (GMountOperation *op,
|
||||
|
@ -16,20 +16,21 @@ G_BEGIN_DECLS
|
||||
typedef struct _GNativeVolumeMonitor GNativeVolumeMonitor;
|
||||
typedef struct _GNativeVolumeMonitorClass GNativeVolumeMonitorClass;
|
||||
|
||||
struct _GNativeVolumeMonitor {
|
||||
struct _GNativeVolumeMonitor
|
||||
{
|
||||
GVolumeMonitor parent_instance;
|
||||
};
|
||||
|
||||
struct _GNativeVolumeMonitorClass {
|
||||
struct _GNativeVolumeMonitorClass
|
||||
{
|
||||
GVolumeMonitorClass parent_class;
|
||||
|
||||
GMount * (*get_mount_for_mount_path) (const char *mount_path,
|
||||
GCancellable *cancellable);
|
||||
GMount * (* get_mount_for_mount_path) (const char *mount_path,
|
||||
GCancellable *cancellable);
|
||||
};
|
||||
|
||||
GType g_native_volume_monitor_get_type (void) G_GNUC_CONST;
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_NATIVE_VOLUME_MONITOR_H__ */
|
||||
|
@ -65,61 +65,61 @@ struct _GOutputStreamClass
|
||||
|
||||
/* Sync ops: */
|
||||
|
||||
gssize (* write_fn)(GOutputStream *stream,
|
||||
const void *buffer,
|
||||
gsize count,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gssize (* splice) (GOutputStream *stream,
|
||||
GInputStream *source,
|
||||
GOutputStreamSpliceFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (* flush) (GOutputStream *stream,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (* close_fn)(GOutputStream *stream,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gssize (* write_fn) (GOutputStream *stream,
|
||||
const void *buffer,
|
||||
gsize count,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gssize (* splice) (GOutputStream *stream,
|
||||
GInputStream *source,
|
||||
GOutputStreamSpliceFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (* flush) (GOutputStream *stream,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean (* close_fn) (GOutputStream *stream,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
/* Async ops: (optional in derived classes) */
|
||||
|
||||
void (* write_async) (GOutputStream *stream,
|
||||
const void *buffer,
|
||||
gsize count,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gssize (* write_finish) (GOutputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* splice_async) (GOutputStream *stream,
|
||||
GInputStream *source,
|
||||
GOutputStreamSpliceFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer data);
|
||||
gssize (* splice_finish)(GOutputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* flush_async) (GOutputStream *stream,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* flush_finish) (GOutputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* close_async) (GOutputStream *stream,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* close_finish) (GOutputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* write_async) (GOutputStream *stream,
|
||||
const void *buffer,
|
||||
gsize count,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gssize (* write_finish) (GOutputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* splice_async) (GOutputStream *stream,
|
||||
GInputStream *source,
|
||||
GOutputStreamSpliceFlags flags,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer data);
|
||||
gssize (* splice_finish) (GOutputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* flush_async) (GOutputStream *stream,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* flush_finish) (GOutputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* close_async) (GOutputStream *stream,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* close_finish) (GOutputStream *stream,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -133,7 +133,7 @@ struct _GOutputStreamClass
|
||||
void (*_g_reserved8) (void);
|
||||
};
|
||||
|
||||
GType g_output_stream_get_type (void) G_GNUC_CONST;
|
||||
GType g_output_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gssize g_output_stream_write (GOutputStream *stream,
|
||||
const void *buffer,
|
||||
|
@ -36,13 +36,14 @@ G_BEGIN_DECLS
|
||||
typedef struct _GPollFileMonitor GPollFileMonitor;
|
||||
typedef struct _GPollFileMonitorClass GPollFileMonitorClass;
|
||||
|
||||
struct _GPollFileMonitorClass {
|
||||
struct _GPollFileMonitorClass
|
||||
{
|
||||
GFileMonitorClass parent_class;
|
||||
};
|
||||
|
||||
GType _g_poll_file_monitor_get_type (void) G_GNUC_CONST;
|
||||
GType _g_poll_file_monitor_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GFileMonitor* _g_poll_file_monitor_new (GFile *file);
|
||||
GFileMonitor * _g_poll_file_monitor_new (GFile *file);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -78,7 +78,7 @@ struct _GSeekableIface
|
||||
/* TODO: Async seek/truncate */
|
||||
};
|
||||
|
||||
GType g_seekable_get_type (void) G_GNUC_CONST;
|
||||
GType g_seekable_get_type (void) G_GNUC_CONST;
|
||||
|
||||
goffset g_seekable_tell (GSeekable *seekable);
|
||||
gboolean g_seekable_can_seek (GSeekable *seekable);
|
||||
|
@ -46,7 +46,7 @@ G_BEGIN_DECLS
|
||||
typedef struct _GSimpleAsyncResultClass GSimpleAsyncResultClass;
|
||||
|
||||
|
||||
GType g_simple_async_result_get_type (void) G_GNUC_CONST;
|
||||
GType g_simple_async_result_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GSimpleAsyncResult *g_simple_async_result_new (GObject *source_object,
|
||||
GAsyncReadyCallback callback,
|
||||
@ -103,17 +103,17 @@ void g_simple_async_result_set_error_va (GSimpleAsyncResult
|
||||
const char *format,
|
||||
va_list args);
|
||||
|
||||
void g_simple_async_report_error_in_idle (GObject *object,
|
||||
void g_simple_async_report_error_in_idle (GObject *object,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data,
|
||||
GQuark domain,
|
||||
gint code,
|
||||
const char *format,
|
||||
gpointer user_data,
|
||||
GQuark domain,
|
||||
gint code,
|
||||
const char *format,
|
||||
...);
|
||||
void g_simple_async_report_gerror_in_idle (GObject *object,
|
||||
void g_simple_async_report_gerror_in_idle (GObject *object,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data,
|
||||
GError *error);
|
||||
gpointer user_data,
|
||||
GError *error);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -45,7 +45,7 @@ G_BEGIN_DECLS
|
||||
**/
|
||||
typedef struct _GThemedIconClass GThemedIconClass;
|
||||
|
||||
GType g_themed_icon_get_type (void) G_GNUC_CONST;
|
||||
GType g_themed_icon_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GIcon *g_themed_icon_new (const char *iconname);
|
||||
GIcon *g_themed_icon_new_with_default_fallbacks (const char *iconname);
|
||||
|
@ -37,7 +37,8 @@ G_BEGIN_DECLS
|
||||
typedef struct _GUnionVolumeMonitor GUnionVolumeMonitor;
|
||||
typedef struct _GUnionVolumeMonitorClass GUnionVolumeMonitorClass;
|
||||
|
||||
struct _GUnionVolumeMonitorClass {
|
||||
struct _GUnionVolumeMonitorClass
|
||||
{
|
||||
GVolumeMonitorClass parent_class;
|
||||
};
|
||||
|
||||
|
@ -64,10 +64,10 @@ struct _GUnixInputStreamClass
|
||||
void (*_g_reserved5) (void);
|
||||
};
|
||||
|
||||
GType g_unix_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GType g_unix_input_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GInputStream *g_unix_input_stream_new (int fd,
|
||||
gboolean close_fd_at_close);
|
||||
GInputStream * g_unix_input_stream_new (int fd,
|
||||
gboolean close_fd_at_close);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -38,20 +38,21 @@ G_BEGIN_DECLS
|
||||
|
||||
typedef struct _GUnixMountClass GUnixMountClass;
|
||||
|
||||
struct _GUnixMountClass {
|
||||
GObjectClass parent_class;
|
||||
struct _GUnixMountClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
GType _g_unix_mount_get_type (void) G_GNUC_CONST;
|
||||
GType _g_unix_mount_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GUnixMount *_g_unix_mount_new (GVolumeMonitor *volume_monitor,
|
||||
GUnixMountEntry *mount_entry,
|
||||
GUnixVolume *volume);
|
||||
gboolean _g_unix_mount_has_mount_path (GUnixMount *mount,
|
||||
const char *mount_path);
|
||||
void _g_unix_mount_unset_volume (GUnixMount *mount,
|
||||
GUnixVolume *volume);
|
||||
void _g_unix_mount_unmounted (GUnixMount *mount);
|
||||
GUnixMount * _g_unix_mount_new (GVolumeMonitor *volume_monitor,
|
||||
GUnixMountEntry *mount_entry,
|
||||
GUnixVolume *volume);
|
||||
gboolean _g_unix_mount_has_mount_path (GUnixMount *mount,
|
||||
const char *mount_path);
|
||||
void _g_unix_mount_unset_volume (GUnixMount *mount,
|
||||
GUnixVolume *volume);
|
||||
void _g_unix_mount_unmounted (GUnixMount *mount);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -64,10 +64,10 @@ struct _GUnixOutputStreamClass
|
||||
void (*_g_reserved5) (void);
|
||||
};
|
||||
|
||||
GType g_unix_output_stream_get_type (void) G_GNUC_CONST;
|
||||
GType g_unix_output_stream_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GOutputStream *g_unix_output_stream_new (int fd,
|
||||
gboolean close_fd_at_close);
|
||||
GOutputStream * g_unix_output_stream_new (int fd,
|
||||
gboolean close_fd_at_close);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -38,21 +38,22 @@ G_BEGIN_DECLS
|
||||
|
||||
typedef struct _GUnixVolumeClass GUnixVolumeClass;
|
||||
|
||||
struct _GUnixVolumeClass {
|
||||
GObjectClass parent_class;
|
||||
struct _GUnixVolumeClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
GType _g_unix_volume_get_type (void) G_GNUC_CONST;
|
||||
GType _g_unix_volume_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GUnixVolume *_g_unix_volume_new (GVolumeMonitor *volume_monitor,
|
||||
GUnixMountPoint *mountpoint);
|
||||
gboolean _g_unix_volume_has_mount_path (GUnixVolume *volume,
|
||||
const char *mount_path);
|
||||
void _g_unix_volume_set_mount (GUnixVolume *volume,
|
||||
GUnixMount *mount);
|
||||
void _g_unix_volume_unset_mount (GUnixVolume *volume,
|
||||
GUnixMount *mount);
|
||||
void _g_unix_volume_disconnected (GUnixVolume *volume);
|
||||
GUnixVolume * _g_unix_volume_new (GVolumeMonitor *volume_monitor,
|
||||
GUnixMountPoint *mountpoint);
|
||||
gboolean _g_unix_volume_has_mount_path (GUnixVolume *volume,
|
||||
const char *mount_path);
|
||||
void _g_unix_volume_set_mount (GUnixVolume *volume,
|
||||
GUnixMount *mount);
|
||||
void _g_unix_volume_unset_mount (GUnixVolume *volume,
|
||||
GUnixMount *mount);
|
||||
void _g_unix_volume_disconnected (GUnixVolume *volume);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -47,15 +47,15 @@ typedef struct _GUnixVolumeMonitorClass GUnixVolumeMonitorClass;
|
||||
typedef struct _GUnixMount GUnixMount;
|
||||
typedef struct _GUnixVolume GUnixVolume;
|
||||
|
||||
struct _GUnixVolumeMonitorClass {
|
||||
struct _GUnixVolumeMonitorClass
|
||||
{
|
||||
GNativeVolumeMonitorClass parent_class;
|
||||
|
||||
};
|
||||
|
||||
GType _g_unix_volume_monitor_get_type (void) G_GNUC_CONST;
|
||||
GType _g_unix_volume_monitor_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GVolumeMonitor * _g_unix_volume_monitor_new (void);
|
||||
GUnixVolume * _g_unix_volume_monitor_lookup_volume_for_mount_path (GUnixVolumeMonitor *monitor,
|
||||
GUnixVolume * _g_unix_volume_monitor_lookup_volume_for_mount_path (GUnixVolumeMonitor *monitor,
|
||||
const char *mount_path);
|
||||
|
||||
G_END_DECLS
|
||||
|
31
gio/gvfs.h
31
gio/gvfs.h
@ -53,7 +53,8 @@ G_BEGIN_DECLS
|
||||
**/
|
||||
typedef struct _GVfsClass GVfsClass;
|
||||
|
||||
struct _GVfs {
|
||||
struct _GVfs
|
||||
{
|
||||
GObject parent_instance;
|
||||
};
|
||||
|
||||
@ -63,15 +64,14 @@ struct _GVfsClass
|
||||
|
||||
/* Virtual Table */
|
||||
|
||||
gboolean (*is_active) (GVfs *vfs);
|
||||
GFile *(*get_file_for_path) (GVfs *vfs,
|
||||
const char *path);
|
||||
GFile *(*get_file_for_uri) (GVfs *vfs,
|
||||
const char *uri);
|
||||
const gchar * const *(*get_supported_uri_schemes) (GVfs *vfs);
|
||||
GFile *(*parse_name) (GVfs *vfs,
|
||||
const char *parse_name);
|
||||
|
||||
gboolean (* is_active) (GVfs *vfs);
|
||||
GFile * (* get_file_for_path) (GVfs *vfs,
|
||||
const char *path);
|
||||
GFile * (* get_file_for_uri) (GVfs *vfs,
|
||||
const char *uri);
|
||||
const gchar * const * (* get_supported_uri_schemes) (GVfs *vfs);
|
||||
GFile * (* parse_name) (GVfs *vfs,
|
||||
const char *parse_name);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -87,20 +87,19 @@ struct _GVfsClass
|
||||
void (*_g_reserved10) (void);
|
||||
void (*_g_reserved11) (void);
|
||||
void (*_g_reserved12) (void);
|
||||
|
||||
};
|
||||
|
||||
GType g_vfs_get_type (void) G_GNUC_CONST;
|
||||
GType g_vfs_get_type (void) G_GNUC_CONST;
|
||||
|
||||
gboolean g_vfs_is_active (GVfs *vfs);
|
||||
GFile * g_vfs_get_file_for_path (GVfs *vfs,
|
||||
const char *path);
|
||||
const char *path);
|
||||
GFile * g_vfs_get_file_for_uri (GVfs *vfs,
|
||||
const char *uri);
|
||||
const gchar* const * g_vfs_get_supported_uri_schemes (GVfs *vfs);
|
||||
const char *uri);
|
||||
const gchar* const * g_vfs_get_supported_uri_schemes (GVfs *vfs);
|
||||
|
||||
GFile * g_vfs_parse_name (GVfs *vfs,
|
||||
const char *parse_name);
|
||||
const char *parse_name);
|
||||
|
||||
GVfs * g_vfs_get_default (void);
|
||||
GVfs * g_vfs_get_local (void);
|
||||
|
@ -107,47 +107,47 @@ struct _GVolumeIface
|
||||
|
||||
/* signals */
|
||||
|
||||
void (*changed) (GVolume *volume);
|
||||
void (*removed) (GVolume *volume);
|
||||
void (* changed) (GVolume *volume);
|
||||
void (* removed) (GVolume *volume);
|
||||
|
||||
/* Virtual Table */
|
||||
|
||||
char * (*get_name) (GVolume *volume);
|
||||
GIcon * (*get_icon) (GVolume *volume);
|
||||
char * (*get_uuid) (GVolume *volume);
|
||||
GDrive * (*get_drive) (GVolume *volume);
|
||||
GMount * (*get_mount) (GVolume *volume);
|
||||
gboolean (*can_mount) (GVolume *volume);
|
||||
gboolean (*can_eject) (GVolume *volume);
|
||||
void (*mount_fn) (GVolume *volume,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*mount_finish) (GVolume *volume,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (*eject) (GVolume *volume,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (*eject_finish) (GVolume *volume,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
char * (* get_name) (GVolume *volume);
|
||||
GIcon * (* get_icon) (GVolume *volume);
|
||||
char * (* get_uuid) (GVolume *volume);
|
||||
GDrive * (* get_drive) (GVolume *volume);
|
||||
GMount * (* get_mount) (GVolume *volume);
|
||||
gboolean (* can_mount) (GVolume *volume);
|
||||
gboolean (* can_eject) (GVolume *volume);
|
||||
void (* mount_fn) (GVolume *volume,
|
||||
GMountMountFlags flags,
|
||||
GMountOperation *mount_operation,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* mount_finish) (GVolume *volume,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
void (* eject) (GVolume *volume,
|
||||
GMountUnmountFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* eject_finish) (GVolume *volume,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
char * (*get_identifier) (GVolume *volume,
|
||||
const char *kind);
|
||||
char ** (*enumerate_identifiers) (GVolume *volume);
|
||||
char * (* get_identifier) (GVolume *volume,
|
||||
const char *kind);
|
||||
char ** (* enumerate_identifiers) (GVolume *volume);
|
||||
|
||||
gboolean (*should_automount) (GVolume *volume);
|
||||
gboolean (* should_automount) (GVolume *volume);
|
||||
|
||||
GFile * (*get_activation_root) (GVolume *volume);
|
||||
GFile * (* get_activation_root) (GVolume *volume);
|
||||
|
||||
};
|
||||
|
||||
GType g_volume_get_type (void) G_GNUC_CONST;
|
||||
GType g_volume_get_type (void) G_GNUC_CONST;
|
||||
|
||||
char * g_volume_get_name (GVolume *volume);
|
||||
GIcon * g_volume_get_icon (GVolume *volume);
|
||||
@ -180,7 +180,6 @@ char ** g_volume_enumerate_identifiers (GVolume *volume);
|
||||
|
||||
GFile * g_volume_get_activation_root (GVolume *volume);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_VOLUME_H__ */
|
||||
|
@ -57,63 +57,65 @@ G_BEGIN_DECLS
|
||||
**/
|
||||
typedef struct _GVolumeMonitorClass GVolumeMonitorClass;
|
||||
|
||||
struct _GVolumeMonitor {
|
||||
struct _GVolumeMonitor
|
||||
{
|
||||
GObject parent_instance;
|
||||
|
||||
/*< private >*/
|
||||
gpointer priv;
|
||||
};
|
||||
|
||||
struct _GVolumeMonitorClass {
|
||||
struct _GVolumeMonitorClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
|
||||
/*< public >*/
|
||||
/* signals */
|
||||
void (* volume_added) (GVolumeMonitor *volume_monitor,
|
||||
GVolume *volume);
|
||||
void (* volume_removed) (GVolumeMonitor *volume_monitor,
|
||||
GVolume *volume);
|
||||
void (* volume_changed) (GVolumeMonitor *volume_monitor,
|
||||
GVolume *volume);
|
||||
void (* volume_added) (GVolumeMonitor *volume_monitor,
|
||||
GVolume *volume);
|
||||
void (* volume_removed) (GVolumeMonitor *volume_monitor,
|
||||
GVolume *volume);
|
||||
void (* volume_changed) (GVolumeMonitor *volume_monitor,
|
||||
GVolume *volume);
|
||||
|
||||
void (* mount_added) (GVolumeMonitor *volume_monitor,
|
||||
GMount *mount);
|
||||
void (* mount_removed) (GVolumeMonitor *volume_monitor,
|
||||
GMount *mount);
|
||||
void (* mount_pre_unmount) (GVolumeMonitor *volume_monitor,
|
||||
GMount *mount);
|
||||
void (* mount_changed) (GVolumeMonitor *volume_monitor,
|
||||
GMount *mount);
|
||||
void (* mount_added) (GVolumeMonitor *volume_monitor,
|
||||
GMount *mount);
|
||||
void (* mount_removed) (GVolumeMonitor *volume_monitor,
|
||||
GMount *mount);
|
||||
void (* mount_pre_unmount) (GVolumeMonitor *volume_monitor,
|
||||
GMount *mount);
|
||||
void (* mount_changed) (GVolumeMonitor *volume_monitor,
|
||||
GMount *mount);
|
||||
|
||||
void (* drive_connected) (GVolumeMonitor *volume_monitor,
|
||||
GDrive *drive);
|
||||
void (* drive_disconnected) (GVolumeMonitor *volume_monitor,
|
||||
GDrive *drive);
|
||||
void (* drive_changed) (GVolumeMonitor *volume_monitor,
|
||||
GDrive *drive);
|
||||
void (* drive_connected) (GVolumeMonitor *volume_monitor,
|
||||
GDrive *drive);
|
||||
void (* drive_disconnected) (GVolumeMonitor *volume_monitor,
|
||||
GDrive *drive);
|
||||
void (* drive_changed) (GVolumeMonitor *volume_monitor,
|
||||
GDrive *drive);
|
||||
|
||||
/* Vtable */
|
||||
|
||||
gboolean (*is_supported) (void);
|
||||
gboolean (* is_supported) (void);
|
||||
|
||||
GList * (*get_connected_drives) (GVolumeMonitor *volume_monitor);
|
||||
GList * (*get_volumes) (GVolumeMonitor *volume_monitor);
|
||||
GList * (*get_mounts) (GVolumeMonitor *volume_monitor);
|
||||
GList * (* get_connected_drives) (GVolumeMonitor *volume_monitor);
|
||||
GList * (* get_volumes) (GVolumeMonitor *volume_monitor);
|
||||
GList * (* get_mounts) (GVolumeMonitor *volume_monitor);
|
||||
|
||||
GVolume * (*get_volume_for_uuid) (GVolumeMonitor *volume_monitor,
|
||||
const char *uuid);
|
||||
GVolume * (* get_volume_for_uuid) (GVolumeMonitor *volume_monitor,
|
||||
const char *uuid);
|
||||
|
||||
GMount * (*get_mount_for_uuid) (GVolumeMonitor *volume_monitor,
|
||||
const char *uuid);
|
||||
GMount * (* get_mount_for_uuid) (GVolumeMonitor *volume_monitor,
|
||||
const char *uuid);
|
||||
|
||||
|
||||
/* These arguments are unfortunately backwards by mistake (bug #520169) */
|
||||
GVolume * (*adopt_orphan_mount) (GMount *mount,
|
||||
GVolumeMonitor *volume_monitor);
|
||||
GVolume * (* adopt_orphan_mount) (GMount *mount,
|
||||
GVolumeMonitor *volume_monitor);
|
||||
|
||||
/* signal added in 2.17 */
|
||||
void (* drive_eject_button) (GVolumeMonitor *volume_monitor,
|
||||
GDrive *drive);
|
||||
void (* drive_eject_button) (GVolumeMonitor *volume_monitor,
|
||||
GDrive *drive);
|
||||
|
||||
/*< private >*/
|
||||
/* Padding for future expansion */
|
||||
@ -126,18 +128,18 @@ struct _GVolumeMonitorClass {
|
||||
void (*_g_reserved7) (void);
|
||||
};
|
||||
|
||||
GType g_volume_monitor_get_type (void) G_GNUC_CONST;
|
||||
GType g_volume_monitor_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GVolumeMonitor *g_volume_monitor_get (void);
|
||||
GList * g_volume_monitor_get_connected_drives (GVolumeMonitor *volume_monitor);
|
||||
GList * g_volume_monitor_get_volumes (GVolumeMonitor *volume_monitor);
|
||||
GList * g_volume_monitor_get_mounts (GVolumeMonitor *volume_monitor);
|
||||
GVolume * g_volume_monitor_get_volume_for_uuid (GVolumeMonitor *volume_monitor,
|
||||
const char *uuid);
|
||||
GMount * g_volume_monitor_get_mount_for_uuid (GVolumeMonitor *volume_monitor,
|
||||
const char *uuid);
|
||||
GVolumeMonitor *g_volume_monitor_get (void);
|
||||
GList * g_volume_monitor_get_connected_drives (GVolumeMonitor *volume_monitor);
|
||||
GList * g_volume_monitor_get_volumes (GVolumeMonitor *volume_monitor);
|
||||
GList * g_volume_monitor_get_mounts (GVolumeMonitor *volume_monitor);
|
||||
GVolume * g_volume_monitor_get_volume_for_uuid (GVolumeMonitor *volume_monitor,
|
||||
const char *uuid);
|
||||
GMount * g_volume_monitor_get_mount_for_uuid (GVolumeMonitor *volume_monitor,
|
||||
const char *uuid);
|
||||
|
||||
GVolume * g_volume_monitor_adopt_orphan_mount (GMount *mount);
|
||||
GVolume * g_volume_monitor_adopt_orphan_mount (GMount *mount);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -38,18 +38,19 @@ G_BEGIN_DECLS
|
||||
|
||||
typedef struct _GWin32MountClass GWin32MountClass;
|
||||
|
||||
struct _GWin32MountClass {
|
||||
GObjectClass parent_class;
|
||||
struct _GWin32MountClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
GType _g_win32_mount_get_type (void) G_GNUC_CONST;
|
||||
GType _g_win32_mount_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GWin32Mount *_g_win32_mount_new (GVolumeMonitor *volume_monitor,
|
||||
const char *path,
|
||||
GWin32Volume *volume);
|
||||
void _g_win32_mount_unset_volume (GWin32Mount *mount,
|
||||
GWin32Volume *volume);
|
||||
void _g_win32_mount_unmounted (GWin32Mount *mount);
|
||||
GWin32Mount * _g_win32_mount_new (GVolumeMonitor *volume_monitor,
|
||||
const char *path,
|
||||
GWin32Volume *volume);
|
||||
void _g_win32_mount_unset_volume (GWin32Mount *mount,
|
||||
GWin32Volume *volume);
|
||||
void _g_win32_mount_unmounted (GWin32Mount *mount);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -46,20 +46,20 @@ typedef struct _GWin32VolumeMonitorClass GWin32VolumeMonitorClass;
|
||||
*
|
||||
* Implementation of the #GMount interface for Win32 systems.
|
||||
*/
|
||||
typedef struct _GWin32Mount GWin32Mount;
|
||||
typedef struct _GWin32Mount GWin32Mount;
|
||||
typedef struct _GWin32Volume GWin32Volume;
|
||||
|
||||
struct _GWin32VolumeMonitorClass {
|
||||
struct _GWin32VolumeMonitorClass
|
||||
{
|
||||
GNativeVolumeMonitorClass parent_class;
|
||||
|
||||
};
|
||||
|
||||
GType _g_win32_volume_monitor_get_type (void) G_GNUC_CONST;
|
||||
GType _g_win32_volume_monitor_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GVolumeMonitor * _g_win32_volume_monitor_new (void);
|
||||
GWin32Volume * _g_win32_volume_monitor_lookup_volume_for_mount_path (GWin32VolumeMonitor *monitor,
|
||||
const char *mount_path);
|
||||
GWin32Volume * _g_win32_volume_monitor_lookup_volume_for_mount_path (GWin32VolumeMonitor *monitor,
|
||||
const char *mount_path);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif
|
||||
#endif /* __G_WIN32_VOLUME_MONITOR_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user