StoragedLinuxProvider

StoragedLinuxProvider — Provides Linux-specific objects

Synopsis

                    StoragedLinuxProvider;
StoragedLinuxProvider * storaged_linux_provider_new     (StoragedDaemon *daemon);
GUdevClient *       storaged_linux_provider_get_udev_client
                                                        (StoragedLinuxProvider *provider);
gboolean            storaged_linux_provider_get_coldplug
                                                        (StoragedLinuxProvider *provider);

Object Hierarchy

  GObject
   +----StoragedProvider
         +----StoragedLinuxProvider

Description

This object is used to add/remove Linux specific objects of type StoragedLinuxBlockObject, StoragedLinuxDriveObject and StoragedLinuxMDRaidObject.

Details

StoragedLinuxProvider

typedef struct _StoragedLinuxProvider StoragedLinuxProvider;

The StoragedLinuxProvider structure contains only private data and should only be accessed using the provided API.


storaged_linux_provider_new ()

StoragedLinuxProvider * storaged_linux_provider_new     (StoragedDaemon *daemon);

Create a new provider object for Linux-specific objects / functionality.

daemon :

A StoragedDaemon.

Returns :

A StoragedLinuxProvider object. Free with g_object_unref().

storaged_linux_provider_get_udev_client ()

GUdevClient *       storaged_linux_provider_get_udev_client
                                                        (StoragedLinuxProvider *provider);

Gets the GUdevClient used by provider.

provider :

A StoragedLinuxProvider.

Returns :

A GUdevClient owned by provider. Do not free.

storaged_linux_provider_get_coldplug ()

gboolean            storaged_linux_provider_get_coldplug
                                                        (StoragedLinuxProvider *provider);

Gets whether provider is in the coldplug phase.

provider :

A StoragedLinuxProvider.

Returns :

TRUE if in the coldplug phase, FALSE otherwise.