StoragedFilesystemBTRFS

StoragedFilesystemBTRFS — Generated C code for the org.storaged.Storaged.Filesystem.BTRFS D-Bus interface

Functions

void storaged_filesystem_btrfs_call_add_device ()
gboolean storaged_filesystem_btrfs_call_add_device_finish ()
gboolean storaged_filesystem_btrfs_call_add_device_sync ()
void storaged_filesystem_btrfs_call_create_snapshot ()
gboolean storaged_filesystem_btrfs_call_create_snapshot_finish ()
gboolean storaged_filesystem_btrfs_call_create_snapshot_sync ()
void storaged_filesystem_btrfs_call_create_subvolume ()
gboolean storaged_filesystem_btrfs_call_create_subvolume_finish ()
gboolean storaged_filesystem_btrfs_call_create_subvolume_sync ()
void storaged_filesystem_btrfs_call_get_subvolumes ()
gboolean storaged_filesystem_btrfs_call_get_subvolumes_finish ()
gboolean storaged_filesystem_btrfs_call_get_subvolumes_sync ()
void storaged_filesystem_btrfs_call_remove_device ()
gboolean storaged_filesystem_btrfs_call_remove_device_finish ()
gboolean storaged_filesystem_btrfs_call_remove_device_sync ()
void storaged_filesystem_btrfs_call_remove_subvolume ()
gboolean storaged_filesystem_btrfs_call_remove_subvolume_finish ()
gboolean storaged_filesystem_btrfs_call_remove_subvolume_sync ()
void storaged_filesystem_btrfs_call_repair ()
gboolean storaged_filesystem_btrfs_call_repair_finish ()
gboolean storaged_filesystem_btrfs_call_repair_sync ()
void storaged_filesystem_btrfs_call_resize ()
gboolean storaged_filesystem_btrfs_call_resize_finish ()
gboolean storaged_filesystem_btrfs_call_resize_sync ()
void storaged_filesystem_btrfs_call_set_label ()
gboolean storaged_filesystem_btrfs_call_set_label_finish ()
gboolean storaged_filesystem_btrfs_call_set_label_sync ()
void storaged_filesystem_btrfs_complete_add_device ()
void storaged_filesystem_btrfs_complete_create_snapshot ()
void storaged_filesystem_btrfs_complete_create_subvolume ()
void storaged_filesystem_btrfs_complete_get_subvolumes ()
void storaged_filesystem_btrfs_complete_remove_device ()
void storaged_filesystem_btrfs_complete_remove_subvolume ()
void storaged_filesystem_btrfs_complete_repair ()
void storaged_filesystem_btrfs_complete_resize ()
void storaged_filesystem_btrfs_complete_set_label ()
gchar * storaged_filesystem_btrfs_dup_label ()
gchar * storaged_filesystem_btrfs_dup_uuid ()
const gchar * storaged_filesystem_btrfs_get_label ()
guint64 storaged_filesystem_btrfs_get_num_devices ()
guint64 storaged_filesystem_btrfs_get_used ()
const gchar * storaged_filesystem_btrfs_get_uuid ()
GDBusInterfaceInfo * storaged_filesystem_btrfs_interface_info ()
guint storaged_filesystem_btrfs_override_properties ()
void storaged_filesystem_btrfs_proxy_new ()
StoragedFilesystemBTRFS * storaged_filesystem_btrfs_proxy_new_finish ()
void storaged_filesystem_btrfs_proxy_new_for_bus ()
StoragedFilesystemBTRFS * storaged_filesystem_btrfs_proxy_new_for_bus_finish ()
StoragedFilesystemBTRFS * storaged_filesystem_btrfs_proxy_new_for_bus_sync ()
StoragedFilesystemBTRFS * storaged_filesystem_btrfs_proxy_new_sync ()
void storaged_filesystem_btrfs_set_label ()
void storaged_filesystem_btrfs_set_num_devices ()
void storaged_filesystem_btrfs_set_used ()
void storaged_filesystem_btrfs_set_uuid ()
StoragedFilesystemBTRFS * storaged_filesystem_btrfs_skeleton_new ()

Properties

gchar * label Read / Write
guint64 num-devices Read / Write
guint64 used Read / Write
gchar * uuid Read / Write

Signals

gboolean handle-add-device Run Last
gboolean handle-create-snapshot Run Last
gboolean handle-create-subvolume Run Last
gboolean handle-get-subvolumes Run Last
gboolean handle-remove-device Run Last
gboolean handle-remove-subvolume Run Last
gboolean handle-repair Run Last
gboolean handle-resize Run Last
gboolean handle-set-label Run Last

Types and Values

Object Hierarchy

    GInterface
    ╰── StoragedFilesystemBTRFS
    GObject
    ├── GDBusInterfaceSkeleton
       ╰── StoragedFilesystemBTRFSSkeleton
    ╰── GDBusProxy
        ╰── StoragedFilesystemBTRFSProxy

Prerequisites

StoragedFilesystemBTRFS requires GObject.

Implemented Interfaces

StoragedFilesystemBTRFSProxy implements GDBusInterface, GInitable, GAsyncInitable and StoragedFilesystemBTRFS.

StoragedFilesystemBTRFSSkeleton implements GDBusInterface and StoragedFilesystemBTRFS.

Known Implementations

StoragedFilesystemBTRFS is implemented by StoragedFilesystemBTRFSProxy and StoragedFilesystemBTRFSSkeleton.

Description

This section contains code for working with the org.storaged.Storaged.Filesystem.BTRFS D-Bus interface in C.

Functions

storaged_filesystem_btrfs_call_add_device ()

void
storaged_filesystem_btrfs_call_add_device
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_device,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the AddDevice() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_call_add_device_finish() to get the result of the operation.

See storaged_filesystem_btrfs_call_add_device_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_device

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

Since: 2.3.0


storaged_filesystem_btrfs_call_add_device_finish ()

gboolean
storaged_filesystem_btrfs_call_add_device_finish
                               (StoragedFilesystemBTRFS *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_call_add_device().

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_call_add_device().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.3.0


storaged_filesystem_btrfs_call_add_device_sync ()

gboolean
storaged_filesystem_btrfs_call_add_device_sync
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_device,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the AddDevice() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_call_add_device() for the asynchronous version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_device

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.3.0


storaged_filesystem_btrfs_call_create_snapshot ()

void
storaged_filesystem_btrfs_call_create_snapshot
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_source,
                                const gchar *arg_dest,
                                gboolean arg_ro,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the CreateSnapshot() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_call_create_snapshot_finish() to get the result of the operation.

See storaged_filesystem_btrfs_call_create_snapshot_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_source

Argument to pass with the method invocation.

 

arg_dest

Argument to pass with the method invocation.

 

arg_ro

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

Since: 2.1.3


storaged_filesystem_btrfs_call_create_snapshot_finish ()

gboolean
storaged_filesystem_btrfs_call_create_snapshot_finish
                               (StoragedFilesystemBTRFS *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_call_create_snapshot().

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_call_create_snapshot().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_call_create_snapshot_sync ()

gboolean
storaged_filesystem_btrfs_call_create_snapshot_sync
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_source,
                                const gchar *arg_dest,
                                gboolean arg_ro,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the CreateSnapshot() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_call_create_snapshot() for the asynchronous version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_source

Argument to pass with the method invocation.

 

arg_dest

Argument to pass with the method invocation.

 

arg_ro

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_call_create_subvolume ()

void
storaged_filesystem_btrfs_call_create_subvolume
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_name,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the CreateSubvolume() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_call_create_subvolume_finish() to get the result of the operation.

See storaged_filesystem_btrfs_call_create_subvolume_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_name

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

Since: 2.1.3


storaged_filesystem_btrfs_call_create_subvolume_finish ()

gboolean
storaged_filesystem_btrfs_call_create_subvolume_finish
                               (StoragedFilesystemBTRFS *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_call_create_subvolume().

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_call_create_subvolume().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_call_create_subvolume_sync ()

gboolean
storaged_filesystem_btrfs_call_create_subvolume_sync
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_name,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the CreateSubvolume() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_call_create_subvolume() for the asynchronous version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_name

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_call_get_subvolumes ()

void
storaged_filesystem_btrfs_call_get_subvolumes
                               (StoragedFilesystemBTRFS *proxy,
                                gboolean arg_snapshots_only,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the GetSubvolumes() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_call_get_subvolumes_finish() to get the result of the operation.

See storaged_filesystem_btrfs_call_get_subvolumes_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_snapshots_only

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

Since: 2.1.3


storaged_filesystem_btrfs_call_get_subvolumes_finish ()

gboolean
storaged_filesystem_btrfs_call_get_subvolumes_finish
                               (StoragedFilesystemBTRFS *proxy,
                                GVariant **out_subvolumes,
                                gint *out_subvolumes_cnt,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_call_get_subvolumes().

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

out_subvolumes

Return location for return parameter or NULL to ignore.

[out]

out_subvolumes_cnt

Return location for return parameter or NULL to ignore.

[out]

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_call_get_subvolumes().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_call_get_subvolumes_sync ()

gboolean
storaged_filesystem_btrfs_call_get_subvolumes_sync
                               (StoragedFilesystemBTRFS *proxy,
                                gboolean arg_snapshots_only,
                                GVariant *arg_options,
                                GVariant **out_subvolumes,
                                gint *out_subvolumes_cnt,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the GetSubvolumes() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_call_get_subvolumes() for the asynchronous version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_snapshots_only

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

out_subvolumes

Return location for return parameter or NULL to ignore.

[out]

out_subvolumes_cnt

Return location for return parameter or NULL to ignore.

[out]

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_call_remove_device ()

void
storaged_filesystem_btrfs_call_remove_device
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_device,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the RemoveDevice() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_call_remove_device_finish() to get the result of the operation.

See storaged_filesystem_btrfs_call_remove_device_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_device

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

Since: 2.3.0


storaged_filesystem_btrfs_call_remove_device_finish ()

gboolean
storaged_filesystem_btrfs_call_remove_device_finish
                               (StoragedFilesystemBTRFS *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_call_remove_device().

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_call_remove_device().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.3.0


storaged_filesystem_btrfs_call_remove_device_sync ()

gboolean
storaged_filesystem_btrfs_call_remove_device_sync
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_device,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the RemoveDevice() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_call_remove_device() for the asynchronous version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_device

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.3.0


storaged_filesystem_btrfs_call_remove_subvolume ()

void
storaged_filesystem_btrfs_call_remove_subvolume
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_name,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the RemoveSubvolume() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_call_remove_subvolume_finish() to get the result of the operation.

See storaged_filesystem_btrfs_call_remove_subvolume_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_name

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

Since: 2.1.3


storaged_filesystem_btrfs_call_remove_subvolume_finish ()

gboolean
storaged_filesystem_btrfs_call_remove_subvolume_finish
                               (StoragedFilesystemBTRFS *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_call_remove_subvolume().

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_call_remove_subvolume().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_call_remove_subvolume_sync ()

gboolean
storaged_filesystem_btrfs_call_remove_subvolume_sync
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_name,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the RemoveSubvolume() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_call_remove_subvolume() for the asynchronous version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_name

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_call_repair ()

void
storaged_filesystem_btrfs_call_repair (StoragedFilesystemBTRFS *proxy,
                                       GVariant *arg_options,
                                       GCancellable *cancellable,
                                       GAsyncReadyCallback callback,
                                       gpointer user_data);

Asynchronously invokes the Repair() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_call_repair_finish() to get the result of the operation.

See storaged_filesystem_btrfs_call_repair_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

Since: 2.3.0


storaged_filesystem_btrfs_call_repair_finish ()

gboolean
storaged_filesystem_btrfs_call_repair_finish
                               (StoragedFilesystemBTRFS *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_call_repair().

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_call_repair().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.3.0


storaged_filesystem_btrfs_call_repair_sync ()

gboolean
storaged_filesystem_btrfs_call_repair_sync
                               (StoragedFilesystemBTRFS *proxy,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the Repair() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_call_repair() for the asynchronous version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.3.0


storaged_filesystem_btrfs_call_resize ()

void
storaged_filesystem_btrfs_call_resize (StoragedFilesystemBTRFS *proxy,
                                       guint64 arg_size,
                                       GVariant *arg_options,
                                       GCancellable *cancellable,
                                       GAsyncReadyCallback callback,
                                       gpointer user_data);

Asynchronously invokes the Resize() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_call_resize_finish() to get the result of the operation.

See storaged_filesystem_btrfs_call_resize_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_size

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

Since: 2.3.0


storaged_filesystem_btrfs_call_resize_finish ()

gboolean
storaged_filesystem_btrfs_call_resize_finish
                               (StoragedFilesystemBTRFS *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_call_resize().

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_call_resize().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.3.0


storaged_filesystem_btrfs_call_resize_sync ()

gboolean
storaged_filesystem_btrfs_call_resize_sync
                               (StoragedFilesystemBTRFS *proxy,
                                guint64 arg_size,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the Resize() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_call_resize() for the asynchronous version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_size

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.3.0


storaged_filesystem_btrfs_call_set_label ()

void
storaged_filesystem_btrfs_call_set_label
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_label,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Asynchronously invokes the SetLabel() D-Bus method on proxy . When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_call_set_label_finish() to get the result of the operation.

See storaged_filesystem_btrfs_call_set_label_sync() for the synchronous, blocking version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_label

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied or NULL.

 

user_data

User data to pass to callback .

 

Since: 2.1.3


storaged_filesystem_btrfs_call_set_label_finish ()

gboolean
storaged_filesystem_btrfs_call_set_label_finish
                               (StoragedFilesystemBTRFS *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_call_set_label().

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_call_set_label().

 

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_call_set_label_sync ()

gboolean
storaged_filesystem_btrfs_call_set_label_sync
                               (StoragedFilesystemBTRFS *proxy,
                                const gchar *arg_label,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

Synchronously invokes the SetLabel() D-Bus method on proxy . The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_call_set_label() for the asynchronous version of this method.

Parameters

proxy

A StoragedFilesystemBTRFSProxy.

 

arg_label

Argument to pass with the method invocation.

 

arg_options

Argument to pass with the method invocation.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL.

 

Returns

TRUE if the call succeded, FALSE if error is set.

[skip]

Since: 2.1.3


storaged_filesystem_btrfs_complete_add_device ()

void
storaged_filesystem_btrfs_complete_add_device
                               (StoragedFilesystemBTRFS *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the AddDevice() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

[transfer full]

Since: 2.3.0


storaged_filesystem_btrfs_complete_create_snapshot ()

void
storaged_filesystem_btrfs_complete_create_snapshot
                               (StoragedFilesystemBTRFS *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the CreateSnapshot() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

[transfer full]

Since: 2.1.3


storaged_filesystem_btrfs_complete_create_subvolume ()

void
storaged_filesystem_btrfs_complete_create_subvolume
                               (StoragedFilesystemBTRFS *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the CreateSubvolume() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

[transfer full]

Since: 2.1.3


storaged_filesystem_btrfs_complete_get_subvolumes ()

void
storaged_filesystem_btrfs_complete_get_subvolumes
                               (StoragedFilesystemBTRFS *object,
                                GDBusMethodInvocation *invocation,
                                GVariant *subvolumes,
                                gint subvolumes_cnt);

Helper function used in service implementations to finish handling invocations of the GetSubvolumes() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

[transfer full]

subvolumes

Parameter to return.

 

subvolumes_cnt

Parameter to return.

 

Since: 2.1.3


storaged_filesystem_btrfs_complete_remove_device ()

void
storaged_filesystem_btrfs_complete_remove_device
                               (StoragedFilesystemBTRFS *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the RemoveDevice() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

[transfer full]

Since: 2.3.0


storaged_filesystem_btrfs_complete_remove_subvolume ()

void
storaged_filesystem_btrfs_complete_remove_subvolume
                               (StoragedFilesystemBTRFS *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the RemoveSubvolume() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

[transfer full]

Since: 2.1.3


storaged_filesystem_btrfs_complete_repair ()

void
storaged_filesystem_btrfs_complete_repair
                               (StoragedFilesystemBTRFS *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the Repair() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

[transfer full]

Since: 2.3.0


storaged_filesystem_btrfs_complete_resize ()

void
storaged_filesystem_btrfs_complete_resize
                               (StoragedFilesystemBTRFS *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the Resize() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

[transfer full]

Since: 2.3.0


storaged_filesystem_btrfs_complete_set_label ()

void
storaged_filesystem_btrfs_complete_set_label
                               (StoragedFilesystemBTRFS *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the SetLabel() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

This method will free invocation , you cannot use it afterwards.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

[transfer full]

Since: 2.1.3


storaged_filesystem_btrfs_dup_label ()

gchar *
storaged_filesystem_btrfs_dup_label (StoragedFilesystemBTRFS *object);

Gets a copy of the "label" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

[skip]

Parameters

Returns

The property value or NULL if the property is not set. The returned value should be freed with g_free().

[transfer full]

Since: 2.1.3


storaged_filesystem_btrfs_dup_uuid ()

gchar *
storaged_filesystem_btrfs_dup_uuid (StoragedFilesystemBTRFS *object);

Gets a copy of the "uuid" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

[skip]

Parameters

Returns

The property value or NULL if the property is not set. The returned value should be freed with g_free().

[transfer full]

Since: 2.1.3


storaged_filesystem_btrfs_get_label ()

const gchar *
storaged_filesystem_btrfs_get_label (StoragedFilesystemBTRFS *object);

Gets the value of the "label" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use storaged_filesystem_btrfs_dup_label() if on another thread.

[skip]

Parameters

Returns

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object .

[transfer none]

Since: 2.1.3


storaged_filesystem_btrfs_get_num_devices ()

guint64
storaged_filesystem_btrfs_get_num_devices
                               (StoragedFilesystemBTRFS *object);

Gets the value of the "num_devices" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

[skip]

Parameters

Returns

The property value.

Since: 2.1.3


storaged_filesystem_btrfs_get_used ()

guint64
storaged_filesystem_btrfs_get_used (StoragedFilesystemBTRFS *object);

Gets the value of the "used" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

[skip]

Parameters

Returns

The property value.

Since: 2.1.3


storaged_filesystem_btrfs_get_uuid ()

const gchar *
storaged_filesystem_btrfs_get_uuid (StoragedFilesystemBTRFS *object);

Gets the value of the "uuid" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use storaged_filesystem_btrfs_dup_uuid() if on another thread.

[skip]

Parameters

Returns

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object .

[transfer none]

Since: 2.1.3


storaged_filesystem_btrfs_interface_info ()

GDBusInterfaceInfo *
storaged_filesystem_btrfs_interface_info
                               (void);

Gets a machine-readable description of the org.storaged.Storaged.Filesystem.BTRFS D-Bus interface.

Returns

A GDBusInterfaceInfo. Do not free.

[transfer none]

Since: 2.1.3


storaged_filesystem_btrfs_override_properties ()

guint
storaged_filesystem_btrfs_override_properties
                               (GObjectClass *klass,
                                guint property_id_begin);

Overrides all GObject properties in the StoragedFilesystemBTRFS interface for a concrete class. The properties are overridden in the order they are defined.

Parameters

klass

The class structure for a GObject-derived class.

 

property_id_begin

The property id to assign to the first overridden property.

 

Returns

The last property id.

Since: 2.1.3


storaged_filesystem_btrfs_proxy_new ()

void
storaged_filesystem_btrfs_proxy_new (GDBusConnection *connection,
                                     GDBusProxyFlags flags,
                                     const gchar *name,
                                     const gchar *object_path,
                                     GCancellable *cancellable,
                                     GAsyncReadyCallback callback,
                                     gpointer user_data);

Asynchronously creates a proxy for the D-Bus interface org.storaged.Storaged.Filesystem.BTRFS. See g_dbus_proxy_new() for more details.

When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_proxy_new_finish() to get the result of the operation.

See storaged_filesystem_btrfs_proxy_new_sync() for the synchronous, blocking version of this constructor.

Parameters

connection

A GDBusConnection.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection is not a message bus connection.

[allow-none]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback .

 

Since: 2.1.3


storaged_filesystem_btrfs_proxy_new_finish ()

StoragedFilesystemBTRFS *
storaged_filesystem_btrfs_proxy_new_finish
                               (GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_proxy_new().

Parameters

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_proxy_new().

 

error

Return location for error or NULL

 

Returns

The constructed proxy object or NULL if error is set.

[transfer full][type StoragedFilesystemBTRFSProxy]

Since: 2.1.3


storaged_filesystem_btrfs_proxy_new_for_bus ()

void
storaged_filesystem_btrfs_proxy_new_for_bus
                               (GBusType bus_type,
                                GDBusProxyFlags flags,
                                const gchar *name,
                                const gchar *object_path,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

Like storaged_filesystem_btrfs_proxy_new() but takes a GBusType instead of a GDBusConnection.

When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call storaged_filesystem_btrfs_proxy_new_for_bus_finish() to get the result of the operation.

See storaged_filesystem_btrfs_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.

Parameters

bus_type

A GBusType.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[allow-none]

callback

A GAsyncReadyCallback to call when the request is satisfied.

 

user_data

User data to pass to callback .

 

Since: 2.1.3


storaged_filesystem_btrfs_proxy_new_for_bus_finish ()

StoragedFilesystemBTRFS *
storaged_filesystem_btrfs_proxy_new_for_bus_finish
                               (GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_filesystem_btrfs_proxy_new_for_bus().

Parameters

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_filesystem_btrfs_proxy_new_for_bus().

 

error

Return location for error or NULL

 

Returns

The constructed proxy object or NULL if error is set.

[transfer full][type StoragedFilesystemBTRFSProxy]

Since: 2.1.3


storaged_filesystem_btrfs_proxy_new_for_bus_sync ()

StoragedFilesystemBTRFS *
storaged_filesystem_btrfs_proxy_new_for_bus_sync
                               (GBusType bus_type,
                                GDBusProxyFlags flags,
                                const gchar *name,
                                const gchar *object_path,
                                GCancellable *cancellable,
                                GError **error);

Like storaged_filesystem_btrfs_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.

The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_proxy_new_for_bus() for the asynchronous version of this constructor.

Parameters

bus_type

A GBusType.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique).

 

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL

 

Returns

The constructed proxy object or NULL if error is set.

[transfer full][type StoragedFilesystemBTRFSProxy]

Since: 2.1.3


storaged_filesystem_btrfs_proxy_new_sync ()

StoragedFilesystemBTRFS *
storaged_filesystem_btrfs_proxy_new_sync
                               (GDBusConnection *connection,
                                GDBusProxyFlags flags,
                                const gchar *name,
                                const gchar *object_path,
                                GCancellable *cancellable,
                                GError **error);

Synchronously creates a proxy for the D-Bus interface org.storaged.Storaged.Filesystem.BTRFS. See g_dbus_proxy_new_sync() for more details.

The calling thread is blocked until a reply is received.

See storaged_filesystem_btrfs_proxy_new() for the asynchronous version of this constructor.

Parameters

connection

A GDBusConnection.

 

flags

Flags from the GDBusProxyFlags enumeration.

 

name

A bus name (well-known or unique) or NULL if connection is not a message bus connection.

[allow-none]

object_path

An object path.

 

cancellable

A GCancellable or NULL.

[allow-none]

error

Return location for error or NULL

 

Returns

The constructed proxy object or NULL if error is set.

[transfer full][type StoragedFilesystemBTRFSProxy]

Since: 2.1.3


storaged_filesystem_btrfs_set_label ()

void
storaged_filesystem_btrfs_set_label (StoragedFilesystemBTRFS *object,
                                     const gchar *value);

Sets the "label" D-Bus property to value .

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

[skip]

Parameters

object

A StoragedFilesystemBTRFS.

 

value

The value to set.

 

Since: 2.1.3


storaged_filesystem_btrfs_set_num_devices ()

void
storaged_filesystem_btrfs_set_num_devices
                               (StoragedFilesystemBTRFS *object,
                                guint64 value);

Sets the "num_devices" D-Bus property to value .

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

[skip]

Parameters

object

A StoragedFilesystemBTRFS.

 

value

The value to set.

 

Since: 2.1.3


storaged_filesystem_btrfs_set_used ()

void
storaged_filesystem_btrfs_set_used (StoragedFilesystemBTRFS *object,
                                    guint64 value);

Sets the "used" D-Bus property to value .

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

[skip]

Parameters

object

A StoragedFilesystemBTRFS.

 

value

The value to set.

 

Since: 2.1.3


storaged_filesystem_btrfs_set_uuid ()

void
storaged_filesystem_btrfs_set_uuid (StoragedFilesystemBTRFS *object,
                                    const gchar *value);

Sets the "uuid" D-Bus property to value .

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

[skip]

Parameters

object

A StoragedFilesystemBTRFS.

 

value

The value to set.

 

Since: 2.1.3


storaged_filesystem_btrfs_skeleton_new ()

StoragedFilesystemBTRFS *
storaged_filesystem_btrfs_skeleton_new
                               (void);

Creates a skeleton object for the D-Bus interface org.storaged.Storaged.Filesystem.BTRFS.

Returns

The skeleton object.

[transfer full][type StoragedFilesystemBTRFSSkeleton]

Since: 2.1.3

Types and Values

StoragedFilesystemBTRFS

typedef struct _StoragedFilesystemBTRFS StoragedFilesystemBTRFS;

Abstract interface type for the D-Bus interface org.storaged.Storaged.Filesystem.BTRFS.

Since: 2.1.3


struct StoragedFilesystemBTRFSIface

struct StoragedFilesystemBTRFSIface {
  GTypeInterface parent_iface;


  gboolean (*handle_create_snapshot) (
    StoragedFilesystemBTRFS *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_source,
    const gchar *arg_dest,
    gboolean arg_ro,
    GVariant *arg_options);

  gboolean (*handle_create_subvolume) (
    StoragedFilesystemBTRFS *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_name,
    GVariant *arg_options);

  gboolean (*handle_get_subvolumes) (
    StoragedFilesystemBTRFS *object,
    GDBusMethodInvocation *invocation,
    gboolean arg_snapshots_only,
    GVariant *arg_options);

  gboolean (*handle_remove_subvolume) (
    StoragedFilesystemBTRFS *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_name,
    GVariant *arg_options);

  gboolean (*handle_set_label) (
    StoragedFilesystemBTRFS *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_label,
    GVariant *arg_options);

  const gchar * (*get_label) (StoragedFilesystemBTRFS *object);

  guint64  (*get_num_devices) (StoragedFilesystemBTRFS *object);

  guint64  (*get_used) (StoragedFilesystemBTRFS *object);

  const gchar * (*get_uuid) (StoragedFilesystemBTRFS *object);

  gboolean (*handle_add_device) (
    StoragedFilesystemBTRFS *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_device,
    GVariant *arg_options);

  gboolean (*handle_remove_device) (
    StoragedFilesystemBTRFS *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_device,
    GVariant *arg_options);

  gboolean (*handle_repair) (
    StoragedFilesystemBTRFS *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean (*handle_resize) (
    StoragedFilesystemBTRFS *object,
    GDBusMethodInvocation *invocation,
    guint64 arg_size,
    GVariant *arg_options);
};

Virtual table for the D-Bus interface org.storaged.Storaged.Filesystem.BTRFS.

Members

GTypeInterface parent_iface;

The parent interface.

 

handle_create_snapshot ()

Handler for the “handle-create-snapshot” signal.

 

handle_create_subvolume ()

Handler for the “handle-create-subvolume” signal.

 

handle_get_subvolumes ()

Handler for the “handle-get-subvolumes” signal.

 

handle_remove_subvolume ()

Handler for the “handle-remove-subvolume” signal.

 

handle_set_label ()

Handler for the “handle-set-label” signal.

 

get_label ()

Getter for the “label” property.

 

get_num_devices ()

Getter for the “num-devices” property.

 

get_used ()

Getter for the “used” property.

 

get_uuid ()

Getter for the “uuid” property.

 

handle_add_device ()

Handler for the “handle-add-device” signal.

 

handle_remove_device ()

Handler for the “handle-remove-device” signal.

 

handle_repair ()

Handler for the “handle-repair” signal.

 

handle_resize ()

Handler for the “handle-resize” signal.

 

Since: 2.1.3


struct StoragedFilesystemBTRFSProxy

struct StoragedFilesystemBTRFSProxy;

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

Since: 2.1.3


struct StoragedFilesystemBTRFSProxyClass

struct StoragedFilesystemBTRFSProxyClass {
  GDBusProxyClass parent_class;
};

Class structure for StoragedFilesystemBTRFSProxy.

Members

Since: 2.1.3


struct StoragedFilesystemBTRFSSkeleton

struct StoragedFilesystemBTRFSSkeleton;

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

Since: 2.1.3


struct StoragedFilesystemBTRFSSkeletonClass

struct StoragedFilesystemBTRFSSkeletonClass {
  GDBusInterfaceSkeletonClass parent_class;
};

Class structure for StoragedFilesystemBTRFSSkeleton.

Members

Since: 2.1.3

Property Details

The “label” property

  “label”                    gchar *

Represents the D-Bus property "label".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Flags: Read / Write

Default value: NULL

Since: 2.1.3


The “num-devices” property

  “num-devices”              guint64

Represents the D-Bus property "num_devices".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Flags: Read / Write

Default value: 0

Since: 2.1.3


The “used” property

  “used”                     guint64

Represents the D-Bus property "used".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Flags: Read / Write

Default value: 0

Since: 2.1.3


The “uuid” property

  “uuid”                     gchar *

Represents the D-Bus property "uuid".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Flags: Read / Write

Default value: NULL

Since: 2.1.3

Signal Details

The “handle-add-device” signal

gboolean
user_function (StoragedFilesystemBTRFS *object,
               GDBusMethodInvocation   *invocation,
               gchar                   *arg_device,
               GVariant                *arg_options,
               gpointer                 user_data)

Signal emitted when a remote caller is invoking the AddDevice() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call storaged_filesystem_btrfs_complete_add_device() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

 

arg_device

Argument passed by remote caller.

 

arg_options

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last

Since: 2.3.0


The “handle-create-snapshot” signal

gboolean
user_function (StoragedFilesystemBTRFS *object,
               GDBusMethodInvocation   *invocation,
               gchar                   *arg_source,
               gchar                   *arg_dest,
               gboolean                 arg_ro,
               GVariant                *arg_options,
               gpointer                 user_data)

Signal emitted when a remote caller is invoking the CreateSnapshot() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call storaged_filesystem_btrfs_complete_create_snapshot() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

 

arg_source

Argument passed by remote caller.

 

arg_dest

Argument passed by remote caller.

 

arg_ro

Argument passed by remote caller.

 

arg_options

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last

Since: 2.1.3


The “handle-create-subvolume” signal

gboolean
user_function (StoragedFilesystemBTRFS *object,
               GDBusMethodInvocation   *invocation,
               gchar                   *arg_name,
               GVariant                *arg_options,
               gpointer                 user_data)

Signal emitted when a remote caller is invoking the CreateSubvolume() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call storaged_filesystem_btrfs_complete_create_subvolume() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

 

arg_name

Argument passed by remote caller.

 

arg_options

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last

Since: 2.1.3


The “handle-get-subvolumes” signal

gboolean
user_function (StoragedFilesystemBTRFS *object,
               GDBusMethodInvocation   *invocation,
               gboolean                 arg_snapshots_only,
               GVariant                *arg_options,
               gpointer                 user_data)

Signal emitted when a remote caller is invoking the GetSubvolumes() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call storaged_filesystem_btrfs_complete_get_subvolumes() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

 

arg_snapshots_only

Argument passed by remote caller.

 

arg_options

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last

Since: 2.1.3


The “handle-remove-device” signal

gboolean
user_function (StoragedFilesystemBTRFS *object,
               GDBusMethodInvocation   *invocation,
               gchar                   *arg_device,
               GVariant                *arg_options,
               gpointer                 user_data)

Signal emitted when a remote caller is invoking the RemoveDevice() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call storaged_filesystem_btrfs_complete_remove_device() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

 

arg_device

Argument passed by remote caller.

 

arg_options

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last

Since: 2.3.0


The “handle-remove-subvolume” signal

gboolean
user_function (StoragedFilesystemBTRFS *object,
               GDBusMethodInvocation   *invocation,
               gchar                   *arg_name,
               GVariant                *arg_options,
               gpointer                 user_data)

Signal emitted when a remote caller is invoking the RemoveSubvolume() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call storaged_filesystem_btrfs_complete_remove_subvolume() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

 

arg_name

Argument passed by remote caller.

 

arg_options

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last

Since: 2.1.3


The “handle-repair” signal

gboolean
user_function (StoragedFilesystemBTRFS *object,
               GDBusMethodInvocation   *invocation,
               GVariant                *arg_options,
               gpointer                 user_data)

Signal emitted when a remote caller is invoking the Repair() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call storaged_filesystem_btrfs_complete_repair() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

 

arg_options

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last

Since: 2.3.0


The “handle-resize” signal

gboolean
user_function (StoragedFilesystemBTRFS *object,
               GDBusMethodInvocation   *invocation,
               guint64                  arg_size,
               GVariant                *arg_options,
               gpointer                 user_data)

Signal emitted when a remote caller is invoking the Resize() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call storaged_filesystem_btrfs_complete_resize() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

 

arg_size

Argument passed by remote caller.

 

arg_options

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last

Since: 2.3.0


The “handle-set-label” signal

gboolean
user_function (StoragedFilesystemBTRFS *object,
               GDBusMethodInvocation   *invocation,
               gchar                   *arg_label,
               GVariant                *arg_options,
               gpointer                 user_data)

Signal emitted when a remote caller is invoking the SetLabel() D-Bus method.

If a signal handler returns TRUE, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually call storaged_filesystem_btrfs_complete_set_label() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD error is returned.

Parameters

object

A StoragedFilesystemBTRFS.

 

invocation

A GDBusMethodInvocation.

 

arg_label

Argument passed by remote caller.

 

arg_options

Argument passed by remote caller.

 

user_data

user data set when the signal handler was connected.

 

Returns

TRUE if the invocation was handled, FALSE to let other signal handlers run.

Flags: Run Last

Since: 2.1.3