Add new method g_volume_get_activation_root(). This is needed for easily

2008-07-06  David Zeuthen  <davidz@redhat.com>

	* gio.symbols:
	* gvolume.[ch]: Add new method g_volume_get_activation_root(). This
	is needed for easily handling adoption of foreign volumes by
	out-of-process volume monitors (#541793)


svn path=/trunk/; revision=7169
This commit is contained in:
David Zeuthen
2008-07-07 15:38:38 +00:00
committed by David Zeuthen
parent 7a5a2be92b
commit 2b714b5f20
5 changed files with 97 additions and 0 deletions

View File

@@ -94,6 +94,8 @@ G_BEGIN_DECLS
* @enumerate_identifiers: Returns an array strings listing the kinds
* of <link linkend="volume-identifier">identifiers</link> which the #GVolume has.
* @should_automount: Returns %TRUE if the #GVolume should be automatically mounted.
* @get_activation_root: Returns the activation root for the #GVolume if it is known in advance or %NULL if
* it is not known.
*
* Interface for implementing operations for mountable volumes.
**/
@@ -140,6 +142,8 @@ struct _GVolumeIface
char ** (*enumerate_identifiers) (GVolume *volume);
gboolean (*should_automount) (GVolume *volume);
GFile * (*get_activation_root) (GVolume *volume);
};
@@ -174,6 +178,8 @@ char * g_volume_get_identifier (GVolume *volume,
const char *kind);
char ** g_volume_enumerate_identifiers (GVolume *volume);
GFile * g_volume_get_activation_root (GVolume *volume);
G_END_DECLS