Logo Search packages:      
Sourcecode: libdesktop-agnostic version File versions  Download package

vfs.h

/* 
 * Desktop Agnostic Library: VFS implementation interface.
 *
 * Copyright (C) 2009 Mark Lee <libdesktop-agnostic@lazymalevolence.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 *
 * Author : Mark Lee <libdesktop-agnostic@lazymalevolence.com>
 */

#ifndef __LIBDESKTOP_AGNOSTIC_VFS_H__
#define __LIBDESKTOP_AGNOSTIC_VFS_H__

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <libdesktop-agnostic/vfs-volume.h>

G_BEGIN_DECLS


#define DESKTOP_AGNOSTIC_VFS_TYPE_IMPLEMENTATION (desktop_agnostic_vfs_implementation_get_type ())
#define DESKTOP_AGNOSTIC_VFS_IMPLEMENTATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DESKTOP_AGNOSTIC_VFS_TYPE_IMPLEMENTATION, DesktopAgnosticVFSImplementation))
#define DESKTOP_AGNOSTIC_VFS_IS_IMPLEMENTATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DESKTOP_AGNOSTIC_VFS_TYPE_IMPLEMENTATION))
#define DESKTOP_AGNOSTIC_VFS_IMPLEMENTATION_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DESKTOP_AGNOSTIC_VFS_TYPE_IMPLEMENTATION, DesktopAgnosticVFSImplementationIface))

typedef struct _DesktopAgnosticVFSImplementation DesktopAgnosticVFSImplementation;
typedef struct _DesktopAgnosticVFSImplementationIface DesktopAgnosticVFSImplementationIface;

struct _DesktopAgnosticVFSImplementationIface {
      GTypeInterface parent_iface;
      void (*init) (DesktopAgnosticVFSImplementation* self);
      GSList* (*files_from_uri_list) (DesktopAgnosticVFSImplementation* self, const char* uri_list, GError** error);
      DesktopAgnosticVFSVolumeMonitor* (*volume_monitor_get_default) (DesktopAgnosticVFSImplementation* self);
      void (*shutdown) (DesktopAgnosticVFSImplementation* self);
      char* (*get_name) (DesktopAgnosticVFSImplementation* self);
      GType (*get_file_type) (DesktopAgnosticVFSImplementation* self);
      GType (*get_file_monitor_type) (DesktopAgnosticVFSImplementation* self);
      GType (*get_trash_type) (DesktopAgnosticVFSImplementation* self);
      GType (*get_volume_type) (DesktopAgnosticVFSImplementation* self);
};


void desktop_agnostic_vfs_implementation_init (DesktopAgnosticVFSImplementation* self);
GSList* desktop_agnostic_vfs_implementation_files_from_uri_list (DesktopAgnosticVFSImplementation* self, const char* uri_list, GError** error);
DesktopAgnosticVFSVolumeMonitor* desktop_agnostic_vfs_implementation_volume_monitor_get_default (DesktopAgnosticVFSImplementation* self);
void desktop_agnostic_vfs_implementation_shutdown (DesktopAgnosticVFSImplementation* self);
char* desktop_agnostic_vfs_implementation_get_name (DesktopAgnosticVFSImplementation* self);
GType desktop_agnostic_vfs_implementation_get_file_type (DesktopAgnosticVFSImplementation* self);
GType desktop_agnostic_vfs_implementation_get_file_monitor_type (DesktopAgnosticVFSImplementation* self);
GType desktop_agnostic_vfs_implementation_get_trash_type (DesktopAgnosticVFSImplementation* self);
GType desktop_agnostic_vfs_implementation_get_volume_type (DesktopAgnosticVFSImplementation* self);
GType desktop_agnostic_vfs_implementation_get_type (void);


G_END_DECLS

#endif

Generated by  Doxygen 1.6.0   Back to index