gnome-vfs-method

gnome-vfs-method

Functions

Types and Values

Description

Functions

GnomeVFSMethodInitFunc ()

GnomeVFSMethod *
(*GnomeVFSMethodInitFunc) (const char *method_name,
                           const char *config_args);


GnomeVFSMethodShutdownFunc ()

void
(*GnomeVFSMethodShutdownFunc) (GnomeVFSMethod *method);


GnomeVFSMethodTruncateFunc ()

GnomeVFSResult
(*GnomeVFSMethodTruncateFunc) (GnomeVFSMethod *method,
                               GnomeVFSURI *uri,
                               GnomeVFSFileSize length,
                               GnomeVFSContext *context);


GnomeVFSMethodTruncateHandleFunc ()

GnomeVFSResult
(*GnomeVFSMethodTruncateHandleFunc) (GnomeVFSMethod *method,
                                     GnomeVFSMethodHandle *handle,
                                     GnomeVFSFileSize length,
                                     GnomeVFSContext *context);


VFS_METHOD_HAS_FUNC()

#define VFS_METHOD_HAS_FUNC(method,func) ((((char *)&((method)->func)) - ((char *)(method)) < (method)->method_table_size) && method->func != NULL)


gnome_vfs_method_init ()

gboolean
gnome_vfs_method_init (void);

Initializes the gnome-vfs methods. If already initialized then will simply return TRUE.

Returns

Returns TRUE.


gnome_vfs_method_get ()

GnomeVFSMethod *
gnome_vfs_method_get (const gchar *name);

Returns the method handle for the given protocol name . name could be any protocol which gnome-vfs implements. Like ftp, http, smb etc..

Parameters

name

name of the protocol.

 

gnome_vfs_transform_get ()

GnomeVFSTransform *
gnome_vfs_transform_get (const gchar *name);

Get the transform for the method name .

Parameters

name

name of the method to get the transform of.

 

Returns

a GnomeVFSTransform handle for name .

Types and Values

GnomeVFSTransform

typedef struct GnomeVFSTransform GnomeVFSTransform;