StoragedLinuxPartition

StoragedLinuxPartition — Linux implementation of StoragedPartition

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GDBusInterfaceSkeleton
        ╰── StoragedPartitionSkeleton
            ╰── StoragedLinuxPartition

Implemented Interfaces

StoragedLinuxPartition implements GDBusInterface and StoragedPartition.

Description

This type provides an implementation of the StoragedPartition interface on Linux.

Functions

storaged_linux_partition_new ()

StoragedPartition *
storaged_linux_partition_new (void);

Creates a new StoragedLinuxPartition instance.

Returns

A new StoragedLinuxPartition. Free with g_object_unref().


storaged_linux_partition_update ()

void
storaged_linux_partition_update (StoragedLinuxPartition *partition,
                                 StoragedLinuxBlockObject *object);

Updates the interface.

Parameters

partition

A StoragedLinuxPartition.

 

object

The enclosing StoragedLinuxBlockObject instance.

 

storaged_linux_partition_set_type_sync ()

gboolean
storaged_linux_partition_set_type_sync
                               (StoragedLinuxPartition *partition,
                                const gchar *type,
                                uid_t caller_uid,
                                GCancellable *cancellable,
                                GError **error);

Sets the partition type. The calling thread is blocked while the operation is pending.

Parameters

partition

A StoragedLinuxPartition.

 

type

The partition type to set.

 

caller_uid

The uid of the process requesting this change or 0.

 

cancellable

A GCancellable or NULL.

 

error

Return location for error or NULL.

 

Returns

TRUE if the operation succeeded, FALSE if error is set.

Types and Values

StoragedLinuxPartition

typedef struct _StoragedLinuxPartition StoragedLinuxPartition;

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