StoragedLinuxProvider

StoragedLinuxProvider — Provides Linux-specific objects

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── StoragedProvider
        ╰── StoragedLinuxProvider

Description

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

Functions

storaged_linux_provider_new ()

StoragedLinuxProvider *
storaged_linux_provider_new (StoragedDaemon *daemon);

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

Parameters

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 .

Parameters

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.

Parameters

provider

A StoragedLinuxProvider.

 

Returns

TRUE if in the coldplug phase, FALSE otherwise.

Types and Values

StoragedLinuxProvider

typedef struct _StoragedLinuxProvider StoragedLinuxProvider;

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