StoragedDrive

StoragedDrive — Generated C code for the org.storaged.Storaged.Drive D-Bus interface

Functions

GDBusInterfaceInfo * storaged_drive_interface_info ()
guint storaged_drive_override_properties ()
void storaged_drive_call_eject ()
gboolean storaged_drive_call_eject_finish ()
gboolean storaged_drive_call_eject_sync ()
void storaged_drive_complete_eject ()
void storaged_drive_call_set_configuration ()
gboolean storaged_drive_call_set_configuration_finish ()
gboolean storaged_drive_call_set_configuration_sync ()
void storaged_drive_complete_set_configuration ()
void storaged_drive_call_power_off ()
gboolean storaged_drive_call_power_off_finish ()
gboolean storaged_drive_call_power_off_sync ()
void storaged_drive_complete_power_off ()
const gchar * storaged_drive_get_connection_bus ()
gboolean storaged_drive_get_removable ()
gboolean storaged_drive_get_ejectable ()
const gchar * storaged_drive_get_seat ()
const gchar * storaged_drive_get_media ()
const gchar *const * storaged_drive_get_media_compatibility ()
gboolean storaged_drive_get_media_removable ()
gboolean storaged_drive_get_media_available ()
gboolean storaged_drive_get_media_change_detected ()
guint64 storaged_drive_get_time_detected ()
guint64 storaged_drive_get_time_media_detected ()
guint64 storaged_drive_get_size ()
gboolean storaged_drive_get_optical ()
gboolean storaged_drive_get_optical_blank ()
guint storaged_drive_get_optical_num_tracks ()
guint storaged_drive_get_optical_num_audio_tracks ()
guint storaged_drive_get_optical_num_data_tracks ()
guint storaged_drive_get_optical_num_sessions ()
const gchar * storaged_drive_get_model ()
const gchar * storaged_drive_get_revision ()
gint storaged_drive_get_rotation_rate ()
const gchar * storaged_drive_get_serial ()
const gchar * storaged_drive_get_vendor ()
const gchar * storaged_drive_get_wwn ()
const gchar * storaged_drive_get_sort_key ()
GVariant * storaged_drive_get_configuration ()
const gchar * storaged_drive_get_id ()
gboolean storaged_drive_get_can_power_off ()
const gchar * storaged_drive_get_sibling_id ()
gchar * storaged_drive_dup_connection_bus ()
gchar * storaged_drive_dup_seat ()
gchar * storaged_drive_dup_media ()
gchar ** storaged_drive_dup_media_compatibility ()
gchar * storaged_drive_dup_model ()
gchar * storaged_drive_dup_revision ()
gchar * storaged_drive_dup_serial ()
gchar * storaged_drive_dup_vendor ()
gchar * storaged_drive_dup_wwn ()
gchar * storaged_drive_dup_sort_key ()
GVariant * storaged_drive_dup_configuration ()
gchar * storaged_drive_dup_id ()
gchar * storaged_drive_dup_sibling_id ()
void storaged_drive_set_connection_bus ()
void storaged_drive_set_removable ()
void storaged_drive_set_ejectable ()
void storaged_drive_set_seat ()
void storaged_drive_set_media ()
void storaged_drive_set_media_compatibility ()
void storaged_drive_set_media_removable ()
void storaged_drive_set_media_available ()
void storaged_drive_set_media_change_detected ()
void storaged_drive_set_time_detected ()
void storaged_drive_set_time_media_detected ()
void storaged_drive_set_size ()
void storaged_drive_set_optical ()
void storaged_drive_set_optical_blank ()
void storaged_drive_set_optical_num_tracks ()
void storaged_drive_set_optical_num_audio_tracks ()
void storaged_drive_set_optical_num_data_tracks ()
void storaged_drive_set_optical_num_sessions ()
void storaged_drive_set_model ()
void storaged_drive_set_revision ()
void storaged_drive_set_rotation_rate ()
void storaged_drive_set_serial ()
void storaged_drive_set_vendor ()
void storaged_drive_set_wwn ()
void storaged_drive_set_sort_key ()
void storaged_drive_set_configuration ()
void storaged_drive_set_id ()
void storaged_drive_set_can_power_off ()
void storaged_drive_set_sibling_id ()
void storaged_drive_proxy_new ()
StoragedDrive * storaged_drive_proxy_new_finish ()
StoragedDrive * storaged_drive_proxy_new_sync ()
void storaged_drive_proxy_new_for_bus ()
StoragedDrive * storaged_drive_proxy_new_for_bus_finish ()
StoragedDrive * storaged_drive_proxy_new_for_bus_sync ()
StoragedDrive * storaged_drive_skeleton_new ()

Properties

gboolean can-power-off Read / Write
GVariant * configuration Read / Write
gchar * connection-bus Read / Write
gboolean ejectable Read / Write
gchar * id Read / Write
gchar * media Read / Write
gboolean media-available Read / Write
gboolean media-change-detected Read / Write
GStrv media-compatibility Read / Write
gboolean media-removable Read / Write
gchar * model Read / Write
gboolean optical Read / Write
gboolean optical-blank Read / Write
guint optical-num-audio-tracks Read / Write
guint optical-num-data-tracks Read / Write
guint optical-num-sessions Read / Write
guint optical-num-tracks Read / Write
gboolean removable Read / Write
gchar * revision Read / Write
gint rotation-rate Read / Write
gchar * seat Read / Write
gchar * serial Read / Write
gchar * sibling-id Read / Write
guint64 size Read / Write
gchar * sort-key Read / Write
guint64 time-detected Read / Write
guint64 time-media-detected Read / Write
gchar * vendor Read / Write
gchar * wwn Read / Write

Signals

gboolean handle-eject Run Last
gboolean handle-power-off Run Last
gboolean handle-set-configuration Run Last

Types and Values

Object Hierarchy

    GInterface
    ╰── StoragedDrive
    GObject
    ├── GDBusInterfaceSkeleton
       ╰── StoragedDriveSkeleton
           ╰── StoragedLinuxDrive
    ╰── GDBusProxy
        ╰── StoragedDriveProxy

Prerequisites

StoragedDrive requires GObject.

Implemented Interfaces

StoragedDriveProxy implements GDBusInterface, GInitable, GAsyncInitable and StoragedDrive.

StoragedDriveSkeleton implements GDBusInterface and StoragedDrive.

Known Implementations

StoragedDrive is implemented by StoragedDriveProxy, StoragedDriveSkeleton and StoragedLinuxDrive.

Description

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

Functions

storaged_drive_interface_info ()

GDBusInterfaceInfo *
storaged_drive_interface_info (void);

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

Returns

A GDBusInterfaceInfo. Do not free.

[transfer none]


storaged_drive_override_properties ()

guint
storaged_drive_override_properties (GObjectClass *klass,
                                    guint property_id_begin);

Overrides all GObject properties in the StoragedDrive 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.


storaged_drive_call_eject ()

void
storaged_drive_call_eject (StoragedDrive *proxy,
                           GVariant *arg_options,
                           GCancellable *cancellable,
                           GAsyncReadyCallback callback,
                           gpointer user_data);

Asynchronously invokes the Eject() 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_drive_call_eject_finish() to get the result of the operation.

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

Parameters

proxy

A StoragedDriveProxy.

 

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 .

 

storaged_drive_call_eject_finish ()

gboolean
storaged_drive_call_eject_finish (StoragedDrive *proxy,
                                  GAsyncResult *res,
                                  GError **error);

Finishes an operation started with storaged_drive_call_eject().

Parameters

proxy

A StoragedDriveProxy.

 

res

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

 

error

Return location for error or NULL.

 

Returns

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

[skip]


storaged_drive_call_eject_sync ()

gboolean
storaged_drive_call_eject_sync (StoragedDrive *proxy,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

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

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

Parameters

proxy

A StoragedDriveProxy.

 

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]


storaged_drive_complete_eject ()

void
storaged_drive_complete_eject (StoragedDrive *object,
                               GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the Eject() 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 StoragedDrive.

 

invocation

A GDBusMethodInvocation.

[transfer full]

storaged_drive_call_set_configuration ()

void
storaged_drive_call_set_configuration (StoragedDrive *proxy,
                                       GVariant *arg_value,
                                       GVariant *arg_options,
                                       GCancellable *cancellable,
                                       GAsyncReadyCallback callback,
                                       gpointer user_data);

Asynchronously invokes the SetConfiguration() 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_drive_call_set_configuration_finish() to get the result of the operation.

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

Parameters

proxy

A StoragedDriveProxy.

 

arg_value

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 .

 

storaged_drive_call_set_configuration_finish ()

gboolean
storaged_drive_call_set_configuration_finish
                               (StoragedDrive *proxy,
                                GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_drive_call_set_configuration().

Parameters

proxy

A StoragedDriveProxy.

 

res

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

 

error

Return location for error or NULL.

 

Returns

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

[skip]


storaged_drive_call_set_configuration_sync ()

gboolean
storaged_drive_call_set_configuration_sync
                               (StoragedDrive *proxy,
                                GVariant *arg_value,
                                GVariant *arg_options,
                                GCancellable *cancellable,
                                GError **error);

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

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

Parameters

proxy

A StoragedDriveProxy.

 

arg_value

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]


storaged_drive_complete_set_configuration ()

void
storaged_drive_complete_set_configuration
                               (StoragedDrive *object,
                                GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the SetConfiguration() 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 StoragedDrive.

 

invocation

A GDBusMethodInvocation.

[transfer full]

storaged_drive_call_power_off ()

void
storaged_drive_call_power_off (StoragedDrive *proxy,
                               GVariant *arg_options,
                               GCancellable *cancellable,
                               GAsyncReadyCallback callback,
                               gpointer user_data);

Asynchronously invokes the PowerOff() 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_drive_call_power_off_finish() to get the result of the operation.

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

Parameters

proxy

A StoragedDriveProxy.

 

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.0.0


storaged_drive_call_power_off_finish ()

gboolean
storaged_drive_call_power_off_finish (StoragedDrive *proxy,
                                      GAsyncResult *res,
                                      GError **error);

Finishes an operation started with storaged_drive_call_power_off().

Parameters

proxy

A StoragedDriveProxy.

 

res

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

 

error

Return location for error or NULL.

 

Returns

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

[skip]

Since: 2.0.0


storaged_drive_call_power_off_sync ()

gboolean
storaged_drive_call_power_off_sync (StoragedDrive *proxy,
                                    GVariant *arg_options,
                                    GCancellable *cancellable,
                                    GError **error);

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

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

Parameters

proxy

A StoragedDriveProxy.

 

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.0.0


storaged_drive_complete_power_off ()

void
storaged_drive_complete_power_off (StoragedDrive *object,
                                   GDBusMethodInvocation *invocation);

Helper function used in service implementations to finish handling invocations of the PowerOff() 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 StoragedDrive.

 

invocation

A GDBusMethodInvocation.

[transfer full]

Since: 2.0.0


storaged_drive_get_connection_bus ()

const gchar *
storaged_drive_get_connection_bus (StoragedDrive *object);

Gets the value of the "ConnectionBus" 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_drive_dup_connection_bus() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_removable ()

gboolean
storaged_drive_get_removable (StoragedDrive *object);

Gets the value of the "Removable" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_ejectable ()

gboolean
storaged_drive_get_ejectable (StoragedDrive *object);

Gets the value of the "Ejectable" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_seat ()

const gchar *
storaged_drive_get_seat (StoragedDrive *object);

Gets the value of the "Seat" 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_drive_dup_seat() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_media ()

const gchar *
storaged_drive_get_media (StoragedDrive *object);

Gets the value of the "Media" 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_drive_dup_media() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_media_compatibility ()

const gchar *const *
storaged_drive_get_media_compatibility
                               (StoragedDrive *object);

Gets the value of the "MediaCompatibility" 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_drive_dup_media_compatibility() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_media_removable ()

gboolean
storaged_drive_get_media_removable (StoragedDrive *object);

Gets the value of the "MediaRemovable" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_media_available ()

gboolean
storaged_drive_get_media_available (StoragedDrive *object);

Gets the value of the "MediaAvailable" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_media_change_detected ()

gboolean
storaged_drive_get_media_change_detected
                               (StoragedDrive *object);

Gets the value of the "MediaChangeDetected" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_time_detected ()

guint64
storaged_drive_get_time_detected (StoragedDrive *object);

Gets the value of the "TimeDetected" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_time_media_detected ()

guint64
storaged_drive_get_time_media_detected
                               (StoragedDrive *object);

Gets the value of the "TimeMediaDetected" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_size ()

guint64
storaged_drive_get_size (StoragedDrive *object);

Gets the value of the "Size" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_optical ()

gboolean
storaged_drive_get_optical (StoragedDrive *object);

Gets the value of the "Optical" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_optical_blank ()

gboolean
storaged_drive_get_optical_blank (StoragedDrive *object);

Gets the value of the "OpticalBlank" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_optical_num_tracks ()

guint
storaged_drive_get_optical_num_tracks (StoragedDrive *object);

Gets the value of the "OpticalNumTracks" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_optical_num_audio_tracks ()

guint
storaged_drive_get_optical_num_audio_tracks
                               (StoragedDrive *object);

Gets the value of the "OpticalNumAudioTracks" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_optical_num_data_tracks ()

guint
storaged_drive_get_optical_num_data_tracks
                               (StoragedDrive *object);

Gets the value of the "OpticalNumDataTracks" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_optical_num_sessions ()

guint
storaged_drive_get_optical_num_sessions
                               (StoragedDrive *object);

Gets the value of the "OpticalNumSessions" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_model ()

const gchar *
storaged_drive_get_model (StoragedDrive *object);

Gets the value of the "Model" 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_drive_dup_model() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_revision ()

const gchar *
storaged_drive_get_revision (StoragedDrive *object);

Gets the value of the "Revision" 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_drive_dup_revision() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_rotation_rate ()

gint
storaged_drive_get_rotation_rate (StoragedDrive *object);

Gets the value of the "RotationRate" 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

object

A StoragedDrive.

 

Returns

The property value.


storaged_drive_get_serial ()

const gchar *
storaged_drive_get_serial (StoragedDrive *object);

Gets the value of the "Serial" 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_drive_dup_serial() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_vendor ()

const gchar *
storaged_drive_get_vendor (StoragedDrive *object);

Gets the value of the "Vendor" 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_drive_dup_vendor() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_wwn ()

const gchar *
storaged_drive_get_wwn (StoragedDrive *object);

Gets the value of the "WWN" 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_drive_dup_wwn() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_sort_key ()

const gchar *
storaged_drive_get_sort_key (StoragedDrive *object);

Gets the value of the "SortKey" 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_drive_dup_sort_key() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_configuration ()

GVariant *
storaged_drive_get_configuration (StoragedDrive *object);

Gets the value of the "Configuration" 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_drive_dup_configuration() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_id ()

const gchar *
storaged_drive_get_id (StoragedDrive *object);

Gets the value of the "Id" 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_drive_dup_id() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

Returns

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

[transfer none]


storaged_drive_get_can_power_off ()

gboolean
storaged_drive_get_can_power_off (StoragedDrive *object);

Gets the value of the "CanPowerOff" 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

object

A StoragedDrive.

 

Returns

The property value.

Since: 2.0.0


storaged_drive_get_sibling_id ()

const gchar *
storaged_drive_get_sibling_id (StoragedDrive *object);

Gets the value of the "SiblingId" 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_drive_dup_sibling_id() if on another thread.

[skip]

Parameters

object

A StoragedDrive.

 

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.0.0


storaged_drive_dup_connection_bus ()

gchar *
storaged_drive_dup_connection_bus (StoragedDrive *object);

Gets a copy of the "ConnectionBus" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_seat ()

gchar *
storaged_drive_dup_seat (StoragedDrive *object);

Gets a copy of the "Seat" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_media ()

gchar *
storaged_drive_dup_media (StoragedDrive *object);

Gets a copy of the "Media" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_media_compatibility ()

gchar **
storaged_drive_dup_media_compatibility
                               (StoragedDrive *object);

Gets a copy of the "MediaCompatibility" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_model ()

gchar *
storaged_drive_dup_model (StoragedDrive *object);

Gets a copy of the "Model" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_revision ()

gchar *
storaged_drive_dup_revision (StoragedDrive *object);

Gets a copy of the "Revision" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_serial ()

gchar *
storaged_drive_dup_serial (StoragedDrive *object);

Gets a copy of the "Serial" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_vendor ()

gchar *
storaged_drive_dup_vendor (StoragedDrive *object);

Gets a copy of the "Vendor" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_wwn ()

gchar *
storaged_drive_dup_wwn (StoragedDrive *object);

Gets a copy of the "WWN" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_sort_key ()

gchar *
storaged_drive_dup_sort_key (StoragedDrive *object);

Gets a copy of the "SortKey" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_configuration ()

GVariant *
storaged_drive_dup_configuration (StoragedDrive *object);

Gets a copy of the "Configuration" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_id ()

gchar *
storaged_drive_dup_id (StoragedDrive *object);

Gets a copy of the "Id" 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

object

A StoragedDrive.

 

Returns

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

[transfer full]


storaged_drive_dup_sibling_id ()

gchar *
storaged_drive_dup_sibling_id (StoragedDrive *object);

Gets a copy of the "SiblingId" 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

object

A StoragedDrive.

 

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.0.0


storaged_drive_set_connection_bus ()

void
storaged_drive_set_connection_bus (StoragedDrive *object,
                                   const gchar *value);

Sets the "ConnectionBus" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_removable ()

void
storaged_drive_set_removable (StoragedDrive *object,
                              gboolean value);

Sets the "Removable" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_ejectable ()

void
storaged_drive_set_ejectable (StoragedDrive *object,
                              gboolean value);

Sets the "Ejectable" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_seat ()

void
storaged_drive_set_seat (StoragedDrive *object,
                         const gchar *value);

Sets the "Seat" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_media ()

void
storaged_drive_set_media (StoragedDrive *object,
                          const gchar *value);

Sets the "Media" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_media_compatibility ()

void
storaged_drive_set_media_compatibility
                               (StoragedDrive *object,
                                const gchar *const *value);

Sets the "MediaCompatibility" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_media_removable ()

void
storaged_drive_set_media_removable (StoragedDrive *object,
                                    gboolean value);

Sets the "MediaRemovable" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_media_available ()

void
storaged_drive_set_media_available (StoragedDrive *object,
                                    gboolean value);

Sets the "MediaAvailable" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_media_change_detected ()

void
storaged_drive_set_media_change_detected
                               (StoragedDrive *object,
                                gboolean value);

Sets the "MediaChangeDetected" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_time_detected ()

void
storaged_drive_set_time_detected (StoragedDrive *object,
                                  guint64 value);

Sets the "TimeDetected" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_time_media_detected ()

void
storaged_drive_set_time_media_detected
                               (StoragedDrive *object,
                                guint64 value);

Sets the "TimeMediaDetected" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_size ()

void
storaged_drive_set_size (StoragedDrive *object,
                         guint64 value);

Sets the "Size" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_optical ()

void
storaged_drive_set_optical (StoragedDrive *object,
                            gboolean value);

Sets the "Optical" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_optical_blank ()

void
storaged_drive_set_optical_blank (StoragedDrive *object,
                                  gboolean value);

Sets the "OpticalBlank" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_optical_num_tracks ()

void
storaged_drive_set_optical_num_tracks (StoragedDrive *object,
                                       guint value);

Sets the "OpticalNumTracks" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_optical_num_audio_tracks ()

void
storaged_drive_set_optical_num_audio_tracks
                               (StoragedDrive *object,
                                guint value);

Sets the "OpticalNumAudioTracks" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_optical_num_data_tracks ()

void
storaged_drive_set_optical_num_data_tracks
                               (StoragedDrive *object,
                                guint value);

Sets the "OpticalNumDataTracks" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_optical_num_sessions ()

void
storaged_drive_set_optical_num_sessions
                               (StoragedDrive *object,
                                guint value);

Sets the "OpticalNumSessions" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_model ()

void
storaged_drive_set_model (StoragedDrive *object,
                          const gchar *value);

Sets the "Model" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_revision ()

void
storaged_drive_set_revision (StoragedDrive *object,
                             const gchar *value);

Sets the "Revision" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_rotation_rate ()

void
storaged_drive_set_rotation_rate (StoragedDrive *object,
                                  gint value);

Sets the "RotationRate" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_serial ()

void
storaged_drive_set_serial (StoragedDrive *object,
                           const gchar *value);

Sets the "Serial" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_vendor ()

void
storaged_drive_set_vendor (StoragedDrive *object,
                           const gchar *value);

Sets the "Vendor" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_wwn ()

void
storaged_drive_set_wwn (StoragedDrive *object,
                        const gchar *value);

Sets the "WWN" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_sort_key ()

void
storaged_drive_set_sort_key (StoragedDrive *object,
                             const gchar *value);

Sets the "SortKey" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_configuration ()

void
storaged_drive_set_configuration (StoragedDrive *object,
                                  GVariant *value);

Sets the "Configuration" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_id ()

void
storaged_drive_set_id (StoragedDrive *object,
                       const gchar *value);

Sets the "Id" 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 StoragedDrive.

 

value

The value to set.

 

storaged_drive_set_can_power_off ()

void
storaged_drive_set_can_power_off (StoragedDrive *object,
                                  gboolean value);

Sets the "CanPowerOff" 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 StoragedDrive.

 

value

The value to set.

 

Since: 2.0.0


storaged_drive_set_sibling_id ()

void
storaged_drive_set_sibling_id (StoragedDrive *object,
                               const gchar *value);

Sets the "SiblingId" 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 StoragedDrive.

 

value

The value to set.

 

Since: 2.0.0


storaged_drive_proxy_new ()

void
storaged_drive_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.Drive. 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_drive_proxy_new_finish() to get the result of the operation.

See storaged_drive_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 .

 

storaged_drive_proxy_new_finish ()

StoragedDrive *
storaged_drive_proxy_new_finish (GAsyncResult *res,
                                 GError **error);

Finishes an operation started with storaged_drive_proxy_new().

Parameters

res

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

 

error

Return location for error or NULL

 

Returns

The constructed proxy object or NULL if error is set.

[transfer full][type StoragedDriveProxy]


storaged_drive_proxy_new_sync ()

StoragedDrive *
storaged_drive_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.Drive. See g_dbus_proxy_new_sync() for more details.

The calling thread is blocked until a reply is received.

See storaged_drive_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 StoragedDriveProxy]


storaged_drive_proxy_new_for_bus ()

void
storaged_drive_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_drive_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_drive_proxy_new_for_bus_finish() to get the result of the operation.

See storaged_drive_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 .

 

storaged_drive_proxy_new_for_bus_finish ()

StoragedDrive *
storaged_drive_proxy_new_for_bus_finish
                               (GAsyncResult *res,
                                GError **error);

Finishes an operation started with storaged_drive_proxy_new_for_bus().

Parameters

res

The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_drive_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 StoragedDriveProxy]


storaged_drive_proxy_new_for_bus_sync ()

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

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

The calling thread is blocked until a reply is received.

See storaged_drive_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 StoragedDriveProxy]


storaged_drive_skeleton_new ()

StoragedDrive *
storaged_drive_skeleton_new (void);

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

Returns

The skeleton object.

[transfer full][type StoragedDriveSkeleton]

Types and Values

StoragedDrive

typedef struct _StoragedDrive StoragedDrive;

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


struct StoragedDriveIface

struct StoragedDriveIface {
  GTypeInterface parent_iface;


  gboolean (*handle_eject) (
    StoragedDrive *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean (*handle_set_configuration) (
    StoragedDrive *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_value,
    GVariant *arg_options);

  GVariant * (*get_configuration) (StoragedDrive *object);

  const gchar * (*get_connection_bus) (StoragedDrive *object);

  gboolean  (*get_ejectable) (StoragedDrive *object);

  const gchar * (*get_id) (StoragedDrive *object);

  const gchar * (*get_media) (StoragedDrive *object);

  gboolean  (*get_media_available) (StoragedDrive *object);

  gboolean  (*get_media_change_detected) (StoragedDrive *object);

  const gchar *const * (*get_media_compatibility) (StoragedDrive *object);

  gboolean  (*get_media_removable) (StoragedDrive *object);

  const gchar * (*get_model) (StoragedDrive *object);

  gboolean  (*get_optical) (StoragedDrive *object);

  gboolean  (*get_optical_blank) (StoragedDrive *object);

  guint  (*get_optical_num_audio_tracks) (StoragedDrive *object);

  guint  (*get_optical_num_data_tracks) (StoragedDrive *object);

  guint  (*get_optical_num_sessions) (StoragedDrive *object);

  guint  (*get_optical_num_tracks) (StoragedDrive *object);

  gboolean  (*get_removable) (StoragedDrive *object);

  const gchar * (*get_revision) (StoragedDrive *object);

  gint  (*get_rotation_rate) (StoragedDrive *object);

  const gchar * (*get_seat) (StoragedDrive *object);

  const gchar * (*get_serial) (StoragedDrive *object);

  guint64  (*get_size) (StoragedDrive *object);

  const gchar * (*get_sort_key) (StoragedDrive *object);

  guint64  (*get_time_detected) (StoragedDrive *object);

  guint64  (*get_time_media_detected) (StoragedDrive *object);

  const gchar * (*get_vendor) (StoragedDrive *object);

  const gchar * (*get_wwn) (StoragedDrive *object);

  gboolean (*handle_power_off) (
    StoragedDrive *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean  (*get_can_power_off) (StoragedDrive *object);

  const gchar * (*get_sibling_id) (StoragedDrive *object);
};

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

Members

GTypeInterface parent_iface;

The parent interface.

 

handle_eject ()

Handler for the “handle-eject” signal.

 

handle_set_configuration ()

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

 

get_configuration ()

Getter for the “configuration” property.

 

get_connection_bus ()

Getter for the “connection-bus” property.

 

get_ejectable ()

Getter for the “ejectable” property.

 

get_id ()

Getter for the “id” property.

 

get_media ()

Getter for the “media” property.

 

get_media_available ()

Getter for the “media-available” property.

 

get_media_change_detected ()

Getter for the “media-change-detected” property.

 

get_media_compatibility ()

Getter for the “media-compatibility” property.

 

get_media_removable ()

Getter for the “media-removable” property.

 

get_model ()

Getter for the “model” property.

 

get_optical ()

Getter for the “optical” property.

 

get_optical_blank ()

Getter for the “optical-blank” property.

 

get_optical_num_audio_tracks ()

Getter for the “optical-num-audio-tracks” property.

 

get_optical_num_data_tracks ()

Getter for the “optical-num-data-tracks” property.

 

get_optical_num_sessions ()

Getter for the “optical-num-sessions” property.

 

get_optical_num_tracks ()

Getter for the “optical-num-tracks” property.

 

get_removable ()

Getter for the “removable” property.

 

get_revision ()

Getter for the “revision” property.

 

get_rotation_rate ()

Getter for the “rotation-rate” property.

 

get_seat ()

Getter for the “seat” property.

 

get_serial ()

Getter for the “serial” property.

 

get_size ()

Getter for the “size” property.

 

get_sort_key ()

Getter for the “sort-key” property.

 

get_time_detected ()

Getter for the “time-detected” property.

 

get_time_media_detected ()

Getter for the “time-media-detected” property.

 

get_vendor ()

Getter for the “vendor” property.

 

get_wwn ()

Getter for the “wwn” property.

 

handle_power_off ()

Handler for the “handle-power-off” signal.

 

get_can_power_off ()

Getter for the “can-power-off” property.

 

get_sibling_id ()

Getter for the “sibling-id” property.

 

struct StoragedDriveProxy

struct StoragedDriveProxy;

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


struct StoragedDriveProxyClass

struct StoragedDriveProxyClass {
  GDBusProxyClass parent_class;
};

Class structure for StoragedDriveProxy.

Members


struct StoragedDriveSkeleton

struct StoragedDriveSkeleton;

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


struct StoragedDriveSkeletonClass

struct StoragedDriveSkeletonClass {
  GDBusInterfaceSkeletonClass parent_class;
};

Class structure for StoragedDriveSkeleton.

Members

Property Details

The “can-power-off” property

  “can-power-off”            gboolean

Represents the D-Bus property "CanPowerOff".

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: FALSE

Since: 2.0.0


The “configuration” property

  “configuration”            GVariant *

Represents the D-Bus property "Configuration".

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

Allowed values: GVariant<a{sv}>

Default value: NULL


The “connection-bus” property

  “connection-bus”           gchar *

Represents the D-Bus property "ConnectionBus".

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


The “ejectable” property

  “ejectable”                gboolean

Represents the D-Bus property "Ejectable".

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: FALSE


The “id” property

  “id”                       gchar *

Represents the D-Bus property "Id".

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


The “media” property

  “media”                    gchar *

Represents the D-Bus property "Media".

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


The “media-available” property

  “media-available”          gboolean

Represents the D-Bus property "MediaAvailable".

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: FALSE


The “media-change-detected” property

  “media-change-detected”    gboolean

Represents the D-Bus property "MediaChangeDetected".

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: FALSE


The “media-compatibility” property

  “media-compatibility”      GStrv

Represents the D-Bus property "MediaCompatibility".

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


The “media-removable” property

  “media-removable”          gboolean

Represents the D-Bus property "MediaRemovable".

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: FALSE


The “model” property

  “model”                    gchar *

Represents the D-Bus property "Model".

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


The “optical” property

  “optical”                  gboolean

Represents the D-Bus property "Optical".

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: FALSE


The “optical-blank” property

  “optical-blank”            gboolean

Represents the D-Bus property "OpticalBlank".

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: FALSE


The “optical-num-audio-tracks” property

  “optical-num-audio-tracks” guint

Represents the D-Bus property "OpticalNumAudioTracks".

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


The “optical-num-data-tracks” property

  “optical-num-data-tracks”  guint

Represents the D-Bus property "OpticalNumDataTracks".

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


The “optical-num-sessions” property

  “optical-num-sessions”     guint

Represents the D-Bus property "OpticalNumSessions".

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


The “optical-num-tracks” property

  “optical-num-tracks”       guint

Represents the D-Bus property "OpticalNumTracks".

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


The “removable” property

  “removable”                gboolean

Represents the D-Bus property "Removable".

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: FALSE


The “revision” property

  “revision”                 gchar *

Represents the D-Bus property "Revision".

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


The “rotation-rate” property

  “rotation-rate”            gint

Represents the D-Bus property "RotationRate".

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


The “seat” property

  “seat”                     gchar *

Represents the D-Bus property "Seat".

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


The “serial” property

  “serial”                   gchar *

Represents the D-Bus property "Serial".

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


The “sibling-id” property

  “sibling-id”               gchar *

Represents the D-Bus property "SiblingId".

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.0.0


The “size” property

  “size”                     guint64

Represents the D-Bus property "Size".

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


The “sort-key” property

  “sort-key”                 gchar *

Represents the D-Bus property "SortKey".

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


The “time-detected” property

  “time-detected”            guint64

Represents the D-Bus property "TimeDetected".

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


The “time-media-detected” property

  “time-media-detected”      guint64

Represents the D-Bus property "TimeMediaDetected".

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


The “vendor” property

  “vendor”                   gchar *

Represents the D-Bus property "Vendor".

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


The “wwn” property

  “wwn”                      gchar *

Represents the D-Bus property "WWN".

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

Signal Details

The “handle-eject” signal

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

Signal emitted when a remote caller is invoking the Eject() 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_drive_complete_eject() 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 StoragedDrive.

 

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


The “handle-power-off” signal

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

Signal emitted when a remote caller is invoking the PowerOff() 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_drive_complete_power_off() 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 StoragedDrive.

 

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.0.0


The “handle-set-configuration” signal

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

Signal emitted when a remote caller is invoking the SetConfiguration() 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_drive_complete_set_configuration() 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 StoragedDrive.

 

invocation

A GDBusMethodInvocation.

 

arg_value

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