+captive_vfs_commit()
authorshort <>
Fri, 4 Jul 2003 04:17:07 +0000 (04:17 +0000)
committershort <>
Fri, 4 Jul 2003 04:17:07 +0000 (04:17 +0000)
src/libcaptive/client/vfs.c
src/libcaptive/include/captive/client-vfs.h

index c458394..9b29ec3 100644 (file)
@@ -160,3 +160,15 @@ gboolean errbool;
 
        return GNOME_VFS_OK;
 }
+
+
+GnomeVFSResult captive_vfs_commit(CaptiveVfsObject *captive_vfs_object)
+{
+       g_return_val_if_fail(captive_vfs_object!=NULL,GNOME_VFS_ERROR_BAD_PARAMETERS);
+
+       if (captive_vfs_object->is_sandbox_parent)
+               return captive_sandbox_parent_vfs_commit(captive_vfs_object);
+
+       /* We do not buffer any data if not in sandboxed mode. */
+       return GNOME_VFS_OK;
+}
index 38f2ad9..38db49e 100644 (file)
@@ -45,6 +45,7 @@ struct captive_options;
 
 GnomeVFSResult captive_vfs_new
                (CaptiveVfsObject **captive_vfs_object_return,const struct captive_options *options);
+GnomeVFSResult captive_vfs_commit(CaptiveVfsObject *captive_vfs_object);
 
 G_END_DECLS