~ubuntu-branches/ubuntu/hardy/pcmanfm/hardy-backports

« back to all changes in this revision

Viewing changes to src/vfs/vfs-volume.h

  • Committer: Bazaar Package Importer
  • Author(s): J?r?me Guelfucci
  • Date: 2008-07-01 00:40:37 UTC
  • mfrom: (5.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080701004037-q6pfacskp0xnk10k
Tags: 0.4.3-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
*  C Interface: vfs-volume
3
3
*
4
 
* Description: 
 
4
* Description:
5
5
*
6
6
*
7
7
* Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006
24
24
    VFS_VOLUME_REMOVED,
25
25
    VFS_VOLUME_MOUNTED, /* Not implemented */
26
26
    VFS_VOLUME_UNMOUNTED, /* Not implemented */
 
27
    VFS_VOLUME_EJECT,
27
28
    VFS_VOLUME_CHANGED
28
29
}VFSVolumeState;
29
30
 
33
34
 
34
35
gboolean vfs_volume_init();
35
36
 
36
 
gboolean vfs_volume_clean();
 
37
gboolean vfs_volume_finalize();
37
38
 
38
 
VFSVolume** vfs_volume_get_all_volumes( int* num );
 
39
const GList* vfs_volume_get_all_volumes();
39
40
 
40
41
void vfs_volume_add_callback( VFSVolumeCallback cb, gpointer user_data );
41
42
 
42
43
void vfs_volume_remove_callback( VFSVolumeCallback cb, gpointer user_data );
43
44
 
44
 
gboolean vfs_volume_mount( VFSVolume* vol );
45
 
 
46
 
gboolean vfs_volume_umount( VFSVolume *vol );
47
 
 
48
 
gboolean vfs_volume_eject( VFSVolume *vol );
 
45
gboolean vfs_volume_mount( VFSVolume* vol, GError** err );
 
46
 
 
47
gboolean vfs_volume_umount( VFSVolume *vol, GError** err );
 
48
 
 
49
gboolean vfs_volume_eject( VFSVolume *vol, GError** err );
49
50
 
50
51
const char* vfs_volume_get_disp_name( VFSVolume *vol );
51
52
 
63
64
 
64
65
gboolean vfs_volume_requires_eject( VFSVolume *vol );
65
66
 
 
67
#ifdef HAVE_HAL
 
68
gboolean vfs_volume_mount_by_udi( const char* udi, GError** err );
 
69
 
 
70
gboolean vfs_volume_umount_by_udi( const char* udi, GError** err );
 
71
 
 
72
gboolean vfs_volume_eject_by_udi( const char* udi, GError** err );
 
73
#endif
 
74
 
66
75
G_END_DECLS
67
76
 
68
77
#endif