StoragedDriveAta

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

Synopsis

                    StoragedDriveAta;
struct              StoragedDriveAtaIface;
GDBusInterfaceInfo * storaged_drive_ata_interface_info  (void);
guint               storaged_drive_ata_override_properties
                                                        (GObjectClass *klass,
                                                         guint property_id_begin);
void                storaged_drive_ata_call_smart_update
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
gboolean            storaged_drive_ata_call_smart_update_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);
gboolean            storaged_drive_ata_call_smart_update_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_complete_smart_update
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);
void                storaged_drive_ata_call_smart_get_attributes
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
gboolean            storaged_drive_ata_call_smart_get_attributes_finish
                                                        (StoragedDriveAta *proxy,
                                                         GVariant **out_attributes,
                                                         GAsyncResult *res,
                                                         GError **error);
gboolean            storaged_drive_ata_call_smart_get_attributes_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GVariant **out_attributes,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_complete_smart_get_attributes
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation,
                                                         GVariant *attributes);
void                storaged_drive_ata_call_smart_selftest_abort
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
gboolean            storaged_drive_ata_call_smart_selftest_abort_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);
gboolean            storaged_drive_ata_call_smart_selftest_abort_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_complete_smart_selftest_abort
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);
void                storaged_drive_ata_call_smart_selftest_start
                                                        (StoragedDriveAta *proxy,
                                                         const gchar *arg_type,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
gboolean            storaged_drive_ata_call_smart_selftest_start_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);
gboolean            storaged_drive_ata_call_smart_selftest_start_sync
                                                        (StoragedDriveAta *proxy,
                                                         const gchar *arg_type,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_complete_smart_selftest_start
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);
void                storaged_drive_ata_call_smart_set_enabled
                                                        (StoragedDriveAta *proxy,
                                                         gboolean arg_value,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
gboolean            storaged_drive_ata_call_smart_set_enabled_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);
gboolean            storaged_drive_ata_call_smart_set_enabled_sync
                                                        (StoragedDriveAta *proxy,
                                                         gboolean arg_value,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_complete_smart_set_enabled
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);
void                storaged_drive_ata_call_pm_get_state
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
gboolean            storaged_drive_ata_call_pm_get_state_finish
                                                        (StoragedDriveAta *proxy,
                                                         guchar *out_state,
                                                         GAsyncResult *res,
                                                         GError **error);
gboolean            storaged_drive_ata_call_pm_get_state_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         guchar *out_state,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_complete_pm_get_state
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation,
                                                         guchar state);
void                storaged_drive_ata_call_pm_standby  (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
gboolean            storaged_drive_ata_call_pm_standby_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);
gboolean            storaged_drive_ata_call_pm_standby_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_complete_pm_standby
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);
void                storaged_drive_ata_call_pm_wakeup   (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
gboolean            storaged_drive_ata_call_pm_wakeup_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);
gboolean            storaged_drive_ata_call_pm_wakeup_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_complete_pm_wakeup
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);
void                storaged_drive_ata_call_security_erase_unit
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
gboolean            storaged_drive_ata_call_security_erase_unit_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);
gboolean            storaged_drive_ata_call_security_erase_unit_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_complete_security_erase_unit
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);
gboolean            storaged_drive_ata_get_smart_supported
                                                        (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_smart_enabled
                                                        (StoragedDriveAta *object);
guint64             storaged_drive_ata_get_smart_updated
                                                        (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_smart_failing
                                                        (StoragedDriveAta *object);
gdouble             storaged_drive_ata_get_smart_temperature
                                                        (StoragedDriveAta *object);
guint64             storaged_drive_ata_get_smart_power_on_seconds
                                                        (StoragedDriveAta *object);
gint                storaged_drive_ata_get_smart_num_attributes_failed_in_the_past
                                                        (StoragedDriveAta *object);
gint                storaged_drive_ata_get_smart_num_attributes_failing
                                                        (StoragedDriveAta *object);
gint64              storaged_drive_ata_get_smart_num_bad_sectors
                                                        (StoragedDriveAta *object);
gint                storaged_drive_ata_get_smart_selftest_percent_remaining
                                                        (StoragedDriveAta *object);
const gchar *       storaged_drive_ata_get_smart_selftest_status
                                                        (StoragedDriveAta *object);
gchar *             storaged_drive_ata_dup_smart_selftest_status
                                                        (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_aam_enabled  (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_aam_supported
                                                        (StoragedDriveAta *object);
gint                storaged_drive_ata_get_aam_vendor_recommended_value
                                                        (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_apm_enabled  (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_apm_supported
                                                        (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_pm_enabled   (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_pm_supported (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_write_cache_enabled
                                                        (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_write_cache_supported
                                                        (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_read_lookahead_enabled
                                                        (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_read_lookahead_supported
                                                        (StoragedDriveAta *object);
gint                storaged_drive_ata_get_security_enhanced_erase_unit_minutes
                                                        (StoragedDriveAta *object);
gint                storaged_drive_ata_get_security_erase_unit_minutes
                                                        (StoragedDriveAta *object);
gboolean            storaged_drive_ata_get_security_frozen
                                                        (StoragedDriveAta *object);
void                storaged_drive_ata_set_smart_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_smart_enabled
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_smart_updated
                                                        (StoragedDriveAta *object,
                                                         guint64 value);
void                storaged_drive_ata_set_smart_failing
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_smart_temperature
                                                        (StoragedDriveAta *object,
                                                         gdouble value);
void                storaged_drive_ata_set_smart_power_on_seconds
                                                        (StoragedDriveAta *object,
                                                         guint64 value);
void                storaged_drive_ata_set_smart_num_attributes_failed_in_the_past
                                                        (StoragedDriveAta *object,
                                                         gint value);
void                storaged_drive_ata_set_smart_num_attributes_failing
                                                        (StoragedDriveAta *object,
                                                         gint value);
void                storaged_drive_ata_set_smart_num_bad_sectors
                                                        (StoragedDriveAta *object,
                                                         gint64 value);
void                storaged_drive_ata_set_smart_selftest_percent_remaining
                                                        (StoragedDriveAta *object,
                                                         gint value);
void                storaged_drive_ata_set_smart_selftest_status
                                                        (StoragedDriveAta *object,
                                                         const gchar *value);
void                storaged_drive_ata_set_aam_enabled  (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_aam_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_aam_vendor_recommended_value
                                                        (StoragedDriveAta *object,
                                                         gint value);
void                storaged_drive_ata_set_apm_enabled  (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_apm_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_pm_enabled   (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_pm_supported (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_write_cache_enabled
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_write_cache_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_read_lookahead_enabled
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_read_lookahead_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
void                storaged_drive_ata_set_security_enhanced_erase_unit_minutes
                                                        (StoragedDriveAta *object,
                                                         gint value);
void                storaged_drive_ata_set_security_erase_unit_minutes
                                                        (StoragedDriveAta *object,
                                                         gint value);
void                storaged_drive_ata_set_security_frozen
                                                        (StoragedDriveAta *object,
                                                         gboolean value);
struct              StoragedDriveAtaProxy;
struct              StoragedDriveAtaProxyClass;
void                storaged_drive_ata_proxy_new        (GDBusConnection *connection,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
StoragedDriveAta *  storaged_drive_ata_proxy_new_finish (GAsyncResult *res,
                                                         GError **error);
StoragedDriveAta *  storaged_drive_ata_proxy_new_sync   (GDBusConnection *connection,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                storaged_drive_ata_proxy_new_for_bus
                                                        (GBusType bus_type,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
StoragedDriveAta *  storaged_drive_ata_proxy_new_for_bus_finish
                                                        (GAsyncResult *res,
                                                         GError **error);
StoragedDriveAta *  storaged_drive_ata_proxy_new_for_bus_sync
                                                        (GBusType bus_type,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GError **error);
struct              StoragedDriveAtaSkeleton;
struct              StoragedDriveAtaSkeletonClass;
StoragedDriveAta *  storaged_drive_ata_skeleton_new     (void);

Object Hierarchy

  GInterface
   +----StoragedDriveAta
  GObject
   +----GDBusProxy
         +----StoragedDriveAtaProxy
  GObject
   +----GDBusInterfaceSkeleton
         +----StoragedDriveAtaSkeleton
               +----StoragedLinuxDriveAta

Prerequisites

StoragedDriveAta requires GObject.

Implemented Interfaces

StoragedDriveAtaProxy implements GDBusInterface, GInitable, GAsyncInitable and StoragedDriveAta.

StoragedDriveAtaSkeleton implements GDBusInterface and StoragedDriveAta.

Known Implementations

StoragedDriveAta is implemented by StoragedDriveAtaProxy, StoragedDriveAtaSkeleton and StoragedLinuxDriveAta.

Properties

  "aam-enabled"              gboolean              : Read / Write
  "aam-supported"            gboolean              : Read / Write
  "aam-vendor-recommended-value" gint                  : Read / Write
  "apm-enabled"              gboolean              : Read / Write
  "apm-supported"            gboolean              : Read / Write
  "pm-enabled"               gboolean              : Read / Write
  "pm-supported"             gboolean              : Read / Write
  "read-lookahead-enabled"   gboolean              : Read / Write
  "read-lookahead-supported" gboolean              : Read / Write
  "security-enhanced-erase-unit-minutes" gint                  : Read / Write
  "security-erase-unit-minutes" gint                  : Read / Write
  "security-frozen"          gboolean              : Read / Write
  "smart-enabled"            gboolean              : Read / Write
  "smart-failing"            gboolean              : Read / Write
  "smart-num-attributes-failed-in-the-past" gint                  : Read / Write
  "smart-num-attributes-failing" gint                  : Read / Write
  "smart-num-bad-sectors"    gint64                : Read / Write
  "smart-power-on-seconds"   guint64               : Read / Write
  "smart-selftest-percent-remaining" gint                  : Read / Write
  "smart-selftest-status"    gchar*                : Read / Write
  "smart-supported"          gboolean              : Read / Write
  "smart-temperature"        gdouble               : Read / Write
  "smart-updated"            guint64               : Read / Write
  "write-cache-enabled"      gboolean              : Read / Write
  "write-cache-supported"    gboolean              : Read / Write

Signals

  "handle-pm-get-state"                            : Run Last
  "handle-pm-standby"                              : Run Last
  "handle-pm-wakeup"                               : Run Last
  "handle-security-erase-unit"                     : Run Last
  "handle-smart-get-attributes"                    : Run Last
  "handle-smart-selftest-abort"                    : Run Last
  "handle-smart-selftest-start"                    : Run Last
  "handle-smart-set-enabled"                       : Run Last
  "handle-smart-update"                            : Run Last

Description

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

Details

StoragedDriveAta

typedef struct _StoragedDriveAta StoragedDriveAta;

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


struct StoragedDriveAtaIface

struct StoragedDriveAtaIface {
  GTypeInterface parent_iface;


  gboolean (*handle_pm_get_state) (
    StoragedDriveAta *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean (*handle_pm_standby) (
    StoragedDriveAta *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean (*handle_pm_wakeup) (
    StoragedDriveAta *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean (*handle_security_erase_unit) (
    StoragedDriveAta *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean (*handle_smart_get_attributes) (
    StoragedDriveAta *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean (*handle_smart_selftest_abort) (
    StoragedDriveAta *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean (*handle_smart_selftest_start) (
    StoragedDriveAta *object,
    GDBusMethodInvocation *invocation,
    const gchar *arg_type,
    GVariant *arg_options);

  gboolean (*handle_smart_update) (
    StoragedDriveAta *object,
    GDBusMethodInvocation *invocation,
    GVariant *arg_options);

  gboolean  (*get_aam_enabled) (StoragedDriveAta *object);

  gboolean  (*get_aam_supported) (StoragedDriveAta *object);

  gint  (*get_aam_vendor_recommended_value) (StoragedDriveAta *object);

  gboolean  (*get_apm_enabled) (StoragedDriveAta *object);

  gboolean  (*get_apm_supported) (StoragedDriveAta *object);

  gboolean  (*get_pm_enabled) (StoragedDriveAta *object);

  gboolean  (*get_pm_supported) (StoragedDriveAta *object);

  gint  (*get_security_enhanced_erase_unit_minutes) (StoragedDriveAta *object);

  gint  (*get_security_erase_unit_minutes) (StoragedDriveAta *object);

  gboolean  (*get_security_frozen) (StoragedDriveAta *object);

  gboolean  (*get_smart_enabled) (StoragedDriveAta *object);

  gboolean  (*get_smart_failing) (StoragedDriveAta *object);

  gint  (*get_smart_num_attributes_failed_in_the_past) (StoragedDriveAta *object);

  gint  (*get_smart_num_attributes_failing) (StoragedDriveAta *object);

  gint64  (*get_smart_num_bad_sectors) (StoragedDriveAta *object);

  guint64  (*get_smart_power_on_seconds) (StoragedDriveAta *object);

  gint  (*get_smart_selftest_percent_remaining) (StoragedDriveAta *object);

  const gchar * (*get_smart_selftest_status) (StoragedDriveAta *object);

  gboolean  (*get_smart_supported) (StoragedDriveAta *object);

  gdouble  (*get_smart_temperature) (StoragedDriveAta *object);

  guint64  (*get_smart_updated) (StoragedDriveAta *object);

  gboolean (*handle_smart_set_enabled) (
    StoragedDriveAta *object,
    GDBusMethodInvocation *invocation,
    gboolean arg_value,
    GVariant *arg_options);

  gboolean  (*get_write_cache_enabled) (StoragedDriveAta *object);

  gboolean  (*get_write_cache_supported) (StoragedDriveAta *object);

  gboolean  (*get_read_lookahead_enabled) (StoragedDriveAta *object);

  gboolean  (*get_read_lookahead_supported) (StoragedDriveAta *object);
};

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

GTypeInterface parent_iface;

The parent interface.

handle_pm_get_state ()

Handler for the "handle-pm-get-state" signal.

handle_pm_standby ()

Handler for the "handle-pm-standby" signal.

handle_pm_wakeup ()

Handler for the "handle-pm-wakeup" signal.

handle_security_erase_unit ()

Handler for the "handle-security-erase-unit" signal.

handle_smart_get_attributes ()

Handler for the "handle-smart-get-attributes" signal.

handle_smart_selftest_abort ()

Handler for the "handle-smart-selftest-abort" signal.

handle_smart_selftest_start ()

Handler for the "handle-smart-selftest-start" signal.

handle_smart_update ()

Handler for the "handle-smart-update" signal.

get_aam_enabled ()

Getter for the "aam-enabled" property.

get_aam_supported ()

Getter for the "aam-supported" property.

get_aam_vendor_recommended_value ()

Getter for the "aam-vendor-recommended-value" property.

get_apm_enabled ()

Getter for the "apm-enabled" property.

get_apm_supported ()

Getter for the "apm-supported" property.

get_pm_enabled ()

Getter for the "pm-enabled" property.

get_pm_supported ()

Getter for the "pm-supported" property.

get_security_enhanced_erase_unit_minutes ()

Getter for the "security-enhanced-erase-unit-minutes" property.

get_security_erase_unit_minutes ()

Getter for the "security-erase-unit-minutes" property.

get_security_frozen ()

Getter for the "security-frozen" property.

get_smart_enabled ()

Getter for the "smart-enabled" property.

get_smart_failing ()

Getter for the "smart-failing" property.

get_smart_num_attributes_failed_in_the_past ()

Getter for the "smart-num-attributes-failed-in-the-past" property.

get_smart_num_attributes_failing ()

Getter for the "smart-num-attributes-failing" property.

get_smart_num_bad_sectors ()

Getter for the "smart-num-bad-sectors" property.

get_smart_power_on_seconds ()

Getter for the "smart-power-on-seconds" property.

get_smart_selftest_percent_remaining ()

Getter for the "smart-selftest-percent-remaining" property.

get_smart_selftest_status ()

Getter for the "smart-selftest-status" property.

get_smart_supported ()

Getter for the "smart-supported" property.

get_smart_temperature ()

Getter for the "smart-temperature" property.

get_smart_updated ()

Getter for the "smart-updated" property.

handle_smart_set_enabled ()

Handler for the "handle-smart-set-enabled" signal.

get_write_cache_enabled ()

Getter for the "write-cache-enabled" property.

get_write_cache_supported ()

Getter for the "write-cache-supported" property.

get_read_lookahead_enabled ()

Getter for the "read-lookahead-enabled" property.

get_read_lookahead_supported ()

Getter for the "read-lookahead-supported" property.

storaged_drive_ata_interface_info ()

GDBusInterfaceInfo * storaged_drive_ata_interface_info  (void);

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

Returns :

A GDBusInterfaceInfo. Do not free. [transfer none]

storaged_drive_ata_override_properties ()

guint               storaged_drive_ata_override_properties
                                                        (GObjectClass *klass,
                                                         guint property_id_begin);

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

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_ata_call_smart_update ()

void                storaged_drive_ata_call_smart_update
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_call_smart_update_finish ()

gboolean            storaged_drive_ata_call_smart_update_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_call_smart_update().

proxy :

A StoragedDriveAtaProxy.

res :

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

error :

Return location for error or NULL.

Returns :

TRUE if the call succeded, FALSE if error is set. [skip]

storaged_drive_ata_call_smart_update_sync ()

gboolean            storaged_drive_ata_call_smart_update_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_complete_smart_update ()

void                storaged_drive_ata_complete_smart_update
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation. [transfer full]

storaged_drive_ata_call_smart_get_attributes ()

void                storaged_drive_ata_call_smart_get_attributes
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_call_smart_get_attributes_finish ()

gboolean            storaged_drive_ata_call_smart_get_attributes_finish
                                                        (StoragedDriveAta *proxy,
                                                         GVariant **out_attributes,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_call_smart_get_attributes().

proxy :

A StoragedDriveAtaProxy.

out_attributes :

Return location for return parameter or NULL to ignore. [out]

res :

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

error :

Return location for error or NULL.

Returns :

TRUE if the call succeded, FALSE if error is set. [skip]

storaged_drive_ata_call_smart_get_attributes_sync ()

gboolean            storaged_drive_ata_call_smart_get_attributes_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GVariant **out_attributes,
                                                         GCancellable *cancellable,
                                                         GError **error);

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

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

proxy :

A StoragedDriveAtaProxy.

arg_options :

Argument to pass with the method invocation.

out_attributes :

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]

storaged_drive_ata_complete_smart_get_attributes ()

void                storaged_drive_ata_complete_smart_get_attributes
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation,
                                                         GVariant *attributes);

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation. [transfer full]

attributes :

Parameter to return.

storaged_drive_ata_call_smart_selftest_abort ()

void                storaged_drive_ata_call_smart_selftest_abort
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_call_smart_selftest_abort_finish ()

gboolean            storaged_drive_ata_call_smart_selftest_abort_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_call_smart_selftest_abort().

proxy :

A StoragedDriveAtaProxy.

res :

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

error :

Return location for error or NULL.

Returns :

TRUE if the call succeded, FALSE if error is set. [skip]

storaged_drive_ata_call_smart_selftest_abort_sync ()

gboolean            storaged_drive_ata_call_smart_selftest_abort_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_complete_smart_selftest_abort ()

void                storaged_drive_ata_complete_smart_selftest_abort
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation. [transfer full]

storaged_drive_ata_call_smart_selftest_start ()

void                storaged_drive_ata_call_smart_selftest_start
                                                        (StoragedDriveAta *proxy,
                                                         const gchar *arg_type,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

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

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

proxy :

A StoragedDriveAtaProxy.

arg_type :

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_ata_call_smart_selftest_start_finish ()

gboolean            storaged_drive_ata_call_smart_selftest_start_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_call_smart_selftest_start().

proxy :

A StoragedDriveAtaProxy.

res :

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

error :

Return location for error or NULL.

Returns :

TRUE if the call succeded, FALSE if error is set. [skip]

storaged_drive_ata_call_smart_selftest_start_sync ()

gboolean            storaged_drive_ata_call_smart_selftest_start_sync
                                                        (StoragedDriveAta *proxy,
                                                         const gchar *arg_type,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);

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

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

proxy :

A StoragedDriveAtaProxy.

arg_type :

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_ata_complete_smart_selftest_start ()

void                storaged_drive_ata_complete_smart_selftest_start
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation. [transfer full]

storaged_drive_ata_call_smart_set_enabled ()

void                storaged_drive_ata_call_smart_set_enabled
                                                        (StoragedDriveAta *proxy,
                                                         gboolean arg_value,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

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

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

proxy :

A StoragedDriveAtaProxy.

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.

Since 2.0.0


storaged_drive_ata_call_smart_set_enabled_finish ()

gboolean            storaged_drive_ata_call_smart_set_enabled_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_call_smart_set_enabled().

proxy :

A StoragedDriveAtaProxy.

res :

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

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_ata_call_smart_set_enabled_sync ()

gboolean            storaged_drive_ata_call_smart_set_enabled_sync
                                                        (StoragedDriveAta *proxy,
                                                         gboolean arg_value,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);

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

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

proxy :

A StoragedDriveAtaProxy.

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]

Since 2.0.0


storaged_drive_ata_complete_smart_set_enabled ()

void                storaged_drive_ata_complete_smart_set_enabled
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation. [transfer full]

Since 2.0.0


storaged_drive_ata_call_pm_get_state ()

void                storaged_drive_ata_call_pm_get_state
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_call_pm_get_state_finish ()

gboolean            storaged_drive_ata_call_pm_get_state_finish
                                                        (StoragedDriveAta *proxy,
                                                         guchar *out_state,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_call_pm_get_state().

proxy :

A StoragedDriveAtaProxy.

out_state :

Return location for return parameter or NULL to ignore. [out]

res :

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

error :

Return location for error or NULL.

Returns :

TRUE if the call succeded, FALSE if error is set. [skip]

storaged_drive_ata_call_pm_get_state_sync ()

gboolean            storaged_drive_ata_call_pm_get_state_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         guchar *out_state,
                                                         GCancellable *cancellable,
                                                         GError **error);

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

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

proxy :

A StoragedDriveAtaProxy.

arg_options :

Argument to pass with the method invocation.

out_state :

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]

storaged_drive_ata_complete_pm_get_state ()

void                storaged_drive_ata_complete_pm_get_state
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation,
                                                         guchar state);

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation. [transfer full]

state :

Parameter to return.

storaged_drive_ata_call_pm_standby ()

void                storaged_drive_ata_call_pm_standby  (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_call_pm_standby_finish ()

gboolean            storaged_drive_ata_call_pm_standby_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_call_pm_standby().

proxy :

A StoragedDriveAtaProxy.

res :

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

error :

Return location for error or NULL.

Returns :

TRUE if the call succeded, FALSE if error is set. [skip]

storaged_drive_ata_call_pm_standby_sync ()

gboolean            storaged_drive_ata_call_pm_standby_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_complete_pm_standby ()

void                storaged_drive_ata_complete_pm_standby
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation. [transfer full]

storaged_drive_ata_call_pm_wakeup ()

void                storaged_drive_ata_call_pm_wakeup   (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_call_pm_wakeup_finish ()

gboolean            storaged_drive_ata_call_pm_wakeup_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_call_pm_wakeup().

proxy :

A StoragedDriveAtaProxy.

res :

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

error :

Return location for error or NULL.

Returns :

TRUE if the call succeded, FALSE if error is set. [skip]

storaged_drive_ata_call_pm_wakeup_sync ()

gboolean            storaged_drive_ata_call_pm_wakeup_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_complete_pm_wakeup ()

void                storaged_drive_ata_complete_pm_wakeup
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation. [transfer full]

storaged_drive_ata_call_security_erase_unit ()

void                storaged_drive_ata_call_security_erase_unit
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_call_security_erase_unit_finish ()

gboolean            storaged_drive_ata_call_security_erase_unit_finish
                                                        (StoragedDriveAta *proxy,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_call_security_erase_unit().

proxy :

A StoragedDriveAtaProxy.

res :

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

error :

Return location for error or NULL.

Returns :

TRUE if the call succeded, FALSE if error is set. [skip]

storaged_drive_ata_call_security_erase_unit_sync ()

gboolean            storaged_drive_ata_call_security_erase_unit_sync
                                                        (StoragedDriveAta *proxy,
                                                         GVariant *arg_options,
                                                         GCancellable *cancellable,
                                                         GError **error);

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

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

proxy :

A StoragedDriveAtaProxy.

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_ata_complete_security_erase_unit ()

void                storaged_drive_ata_complete_security_erase_unit
                                                        (StoragedDriveAta *object,
                                                         GDBusMethodInvocation *invocation);

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation. [transfer full]

storaged_drive_ata_get_smart_supported ()

gboolean            storaged_drive_ata_get_smart_supported
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_enabled ()

gboolean            storaged_drive_ata_get_smart_enabled
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_updated ()

guint64             storaged_drive_ata_get_smart_updated
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_failing ()

gboolean            storaged_drive_ata_get_smart_failing
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_temperature ()

gdouble             storaged_drive_ata_get_smart_temperature
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_power_on_seconds ()

guint64             storaged_drive_ata_get_smart_power_on_seconds
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_num_attributes_failed_in_the_past ()

gint                storaged_drive_ata_get_smart_num_attributes_failed_in_the_past
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_num_attributes_failing ()

gint                storaged_drive_ata_get_smart_num_attributes_failing
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_num_bad_sectors ()

gint64              storaged_drive_ata_get_smart_num_bad_sectors
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_selftest_percent_remaining ()

gint                storaged_drive_ata_get_smart_selftest_percent_remaining
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_smart_selftest_status ()

const gchar *       storaged_drive_ata_get_smart_selftest_status
                                                        (StoragedDriveAta *object);

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

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

Warning

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_ata_dup_smart_selftest_status() if on another thread.

object :

A StoragedDriveAta.

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_ata_dup_smart_selftest_status ()

gchar *             storaged_drive_ata_dup_smart_selftest_status
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

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_ata_get_aam_enabled ()

gboolean            storaged_drive_ata_get_aam_enabled  (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_aam_supported ()

gboolean            storaged_drive_ata_get_aam_supported
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_aam_vendor_recommended_value ()

gint                storaged_drive_ata_get_aam_vendor_recommended_value
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_apm_enabled ()

gboolean            storaged_drive_ata_get_apm_enabled  (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_apm_supported ()

gboolean            storaged_drive_ata_get_apm_supported
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_pm_enabled ()

gboolean            storaged_drive_ata_get_pm_enabled   (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_pm_supported ()

gboolean            storaged_drive_ata_get_pm_supported (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_write_cache_enabled ()

gboolean            storaged_drive_ata_get_write_cache_enabled
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

Since 2.0.0


storaged_drive_ata_get_write_cache_supported ()

gboolean            storaged_drive_ata_get_write_cache_supported
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

Since 2.0.0


storaged_drive_ata_get_read_lookahead_enabled ()

gboolean            storaged_drive_ata_get_read_lookahead_enabled
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

Since 2.1.7


storaged_drive_ata_get_read_lookahead_supported ()

gboolean            storaged_drive_ata_get_read_lookahead_supported
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

Since 2.1.7


storaged_drive_ata_get_security_enhanced_erase_unit_minutes ()

gint                storaged_drive_ata_get_security_enhanced_erase_unit_minutes
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_security_erase_unit_minutes ()

gint                storaged_drive_ata_get_security_erase_unit_minutes
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_get_security_frozen ()

gboolean            storaged_drive_ata_get_security_frozen
                                                        (StoragedDriveAta *object);

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

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

object :

A StoragedDriveAta.

Returns :

The property value.

storaged_drive_ata_set_smart_supported ()

void                storaged_drive_ata_set_smart_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_enabled ()

void                storaged_drive_ata_set_smart_enabled
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_updated ()

void                storaged_drive_ata_set_smart_updated
                                                        (StoragedDriveAta *object,
                                                         guint64 value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_failing ()

void                storaged_drive_ata_set_smart_failing
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_temperature ()

void                storaged_drive_ata_set_smart_temperature
                                                        (StoragedDriveAta *object,
                                                         gdouble value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_power_on_seconds ()

void                storaged_drive_ata_set_smart_power_on_seconds
                                                        (StoragedDriveAta *object,
                                                         guint64 value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_num_attributes_failed_in_the_past ()

void                storaged_drive_ata_set_smart_num_attributes_failed_in_the_past
                                                        (StoragedDriveAta *object,
                                                         gint value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_num_attributes_failing ()

void                storaged_drive_ata_set_smart_num_attributes_failing
                                                        (StoragedDriveAta *object,
                                                         gint value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_num_bad_sectors ()

void                storaged_drive_ata_set_smart_num_bad_sectors
                                                        (StoragedDriveAta *object,
                                                         gint64 value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_selftest_percent_remaining ()

void                storaged_drive_ata_set_smart_selftest_percent_remaining
                                                        (StoragedDriveAta *object,
                                                         gint value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_smart_selftest_status ()

void                storaged_drive_ata_set_smart_selftest_status
                                                        (StoragedDriveAta *object,
                                                         const gchar *value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_aam_enabled ()

void                storaged_drive_ata_set_aam_enabled  (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_aam_supported ()

void                storaged_drive_ata_set_aam_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_aam_vendor_recommended_value ()

void                storaged_drive_ata_set_aam_vendor_recommended_value
                                                        (StoragedDriveAta *object,
                                                         gint value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_apm_enabled ()

void                storaged_drive_ata_set_apm_enabled  (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_apm_supported ()

void                storaged_drive_ata_set_apm_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_pm_enabled ()

void                storaged_drive_ata_set_pm_enabled   (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_pm_supported ()

void                storaged_drive_ata_set_pm_supported (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_write_cache_enabled ()

void                storaged_drive_ata_set_write_cache_enabled
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

Since 2.0.0


storaged_drive_ata_set_write_cache_supported ()

void                storaged_drive_ata_set_write_cache_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

Since 2.0.0


storaged_drive_ata_set_read_lookahead_enabled ()

void                storaged_drive_ata_set_read_lookahead_enabled
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

Since 2.1.7


storaged_drive_ata_set_read_lookahead_supported ()

void                storaged_drive_ata_set_read_lookahead_supported
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

Since 2.1.7


storaged_drive_ata_set_security_enhanced_erase_unit_minutes ()

void                storaged_drive_ata_set_security_enhanced_erase_unit_minutes
                                                        (StoragedDriveAta *object,
                                                         gint value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_security_erase_unit_minutes ()

void                storaged_drive_ata_set_security_erase_unit_minutes
                                                        (StoragedDriveAta *object,
                                                         gint value);

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

object :

A StoragedDriveAta.

value :

The value to set.

storaged_drive_ata_set_security_frozen ()

void                storaged_drive_ata_set_security_frozen
                                                        (StoragedDriveAta *object,
                                                         gboolean value);

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

object :

A StoragedDriveAta.

value :

The value to set.

struct StoragedDriveAtaProxy

struct StoragedDriveAtaProxy;

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


struct StoragedDriveAtaProxyClass

struct StoragedDriveAtaProxyClass {
  GDBusProxyClass parent_class;
};

Class structure for StoragedDriveAtaProxy.

GDBusProxyClass parent_class;

The parent class.

storaged_drive_ata_proxy_new ()

void                storaged_drive_ata_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.Ata. 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_ata_proxy_new_finish() to get the result of the operation.

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

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_ata_proxy_new_finish ()

StoragedDriveAta *  storaged_drive_ata_proxy_new_finish (GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_proxy_new().

res :

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

error :

Return location for error or NULL

Returns :

The constructed proxy object or NULL if error is set. [transfer full][type StoragedDriveAtaProxy]

storaged_drive_ata_proxy_new_sync ()

StoragedDriveAta *  storaged_drive_ata_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.Ata. See g_dbus_proxy_new_sync() for more details.

The calling thread is blocked until a reply is received.

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

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 StoragedDriveAtaProxy]

storaged_drive_ata_proxy_new_for_bus ()

void                storaged_drive_ata_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_ata_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_ata_proxy_new_for_bus_finish() to get the result of the operation.

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

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_ata_proxy_new_for_bus_finish ()

StoragedDriveAta *  storaged_drive_ata_proxy_new_for_bus_finish
                                                        (GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with storaged_drive_ata_proxy_new_for_bus().

res :

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

storaged_drive_ata_proxy_new_for_bus_sync ()

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

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

The calling thread is blocked until a reply is received.

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

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 StoragedDriveAtaProxy]

struct StoragedDriveAtaSkeleton

struct StoragedDriveAtaSkeleton;

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


struct StoragedDriveAtaSkeletonClass

struct StoragedDriveAtaSkeletonClass {
  GDBusInterfaceSkeletonClass parent_class;
};

Class structure for StoragedDriveAtaSkeleton.

GDBusInterfaceSkeletonClass parent_class;

The parent class.

storaged_drive_ata_skeleton_new ()

StoragedDriveAta *  storaged_drive_ata_skeleton_new     (void);

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

Returns :

The skeleton object. [transfer full][type StoragedDriveAtaSkeleton]

Property Details

The "aam-enabled" property

  "aam-enabled"              gboolean              : Read / Write

Represents the D-Bus property "AamEnabled".

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.

Default value: FALSE


The "aam-supported" property

  "aam-supported"            gboolean              : Read / Write

Represents the D-Bus property "AamSupported".

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.

Default value: FALSE


The "aam-vendor-recommended-value" property

  "aam-vendor-recommended-value" gint                  : Read / Write

Represents the D-Bus property "AamVendorRecommendedValue".

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.

Default value: 0


The "apm-enabled" property

  "apm-enabled"              gboolean              : Read / Write

Represents the D-Bus property "ApmEnabled".

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.

Default value: FALSE


The "apm-supported" property

  "apm-supported"            gboolean              : Read / Write

Represents the D-Bus property "ApmSupported".

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.

Default value: FALSE


The "pm-enabled" property

  "pm-enabled"               gboolean              : Read / Write

Represents the D-Bus property "PmEnabled".

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.

Default value: FALSE


The "pm-supported" property

  "pm-supported"             gboolean              : Read / Write

Represents the D-Bus property "PmSupported".

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.

Default value: FALSE


The "read-lookahead-enabled" property

  "read-lookahead-enabled"   gboolean              : Read / Write

Represents the D-Bus property "ReadLookaheadEnabled".

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.

Default value: FALSE

Since 2.1.7


The "read-lookahead-supported" property

  "read-lookahead-supported" gboolean              : Read / Write

Represents the D-Bus property "ReadLookaheadSupported".

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.

Default value: FALSE

Since 2.1.7


The "security-enhanced-erase-unit-minutes" property

  "security-enhanced-erase-unit-minutes" gint                  : Read / Write

Represents the D-Bus property "SecurityEnhancedEraseUnitMinutes".

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.

Default value: 0


The "security-erase-unit-minutes" property

  "security-erase-unit-minutes" gint                  : Read / Write

Represents the D-Bus property "SecurityEraseUnitMinutes".

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.

Default value: 0


The "security-frozen" property

  "security-frozen"          gboolean              : Read / Write

Represents the D-Bus property "SecurityFrozen".

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.

Default value: FALSE


The "smart-enabled" property

  "smart-enabled"            gboolean              : Read / Write

Represents the D-Bus property "SmartEnabled".

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.

Default value: FALSE


The "smart-failing" property

  "smart-failing"            gboolean              : Read / Write

Represents the D-Bus property "SmartFailing".

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.

Default value: FALSE


The "smart-num-attributes-failed-in-the-past" property

  "smart-num-attributes-failed-in-the-past" gint                  : Read / Write

Represents the D-Bus property "SmartNumAttributesFailedInThePast".

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.

Default value: 0


The "smart-num-attributes-failing" property

  "smart-num-attributes-failing" gint                  : Read / Write

Represents the D-Bus property "SmartNumAttributesFailing".

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.

Default value: 0


The "smart-num-bad-sectors" property

  "smart-num-bad-sectors"    gint64                : Read / Write

Represents the D-Bus property "SmartNumBadSectors".

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.

Default value: 0


The "smart-power-on-seconds" property

  "smart-power-on-seconds"   guint64               : Read / Write

Represents the D-Bus property "SmartPowerOnSeconds".

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.

Default value: 0


The "smart-selftest-percent-remaining" property

  "smart-selftest-percent-remaining" gint                  : Read / Write

Represents the D-Bus property "SmartSelftestPercentRemaining".

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.

Default value: 0


The "smart-selftest-status" property

  "smart-selftest-status"    gchar*                : Read / Write

Represents the D-Bus property "SmartSelftestStatus".

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.

Default value: NULL


The "smart-supported" property

  "smart-supported"          gboolean              : Read / Write

Represents the D-Bus property "SmartSupported".

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.

Default value: FALSE


The "smart-temperature" property

  "smart-temperature"        gdouble               : Read / Write

Represents the D-Bus property "SmartTemperature".

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.

Default value: 0


The "smart-updated" property

  "smart-updated"            guint64               : Read / Write

Represents the D-Bus property "SmartUpdated".

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.

Default value: 0


The "write-cache-enabled" property

  "write-cache-enabled"      gboolean              : Read / Write

Represents the D-Bus property "WriteCacheEnabled".

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.

Default value: FALSE

Since 2.0.0


The "write-cache-supported" property

  "write-cache-supported"    gboolean              : Read / Write

Represents the D-Bus property "WriteCacheSupported".

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.

Default value: FALSE

Since 2.0.0

Signal Details

The "handle-pm-get-state" signal

gboolean            user_function                      (StoragedDriveAta      *object,
                                                        GDBusMethodInvocation *invocation,
                                                        GVariant              *arg_options,
                                                        gpointer               user_data)        : Run Last

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

object :

A StoragedDriveAta.

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.

The "handle-pm-standby" signal

gboolean            user_function                      (StoragedDriveAta      *object,
                                                        GDBusMethodInvocation *invocation,
                                                        GVariant              *arg_options,
                                                        gpointer               user_data)        : Run Last

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

object :

A StoragedDriveAta.

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.

The "handle-pm-wakeup" signal

gboolean            user_function                      (StoragedDriveAta      *object,
                                                        GDBusMethodInvocation *invocation,
                                                        GVariant              *arg_options,
                                                        gpointer               user_data)        : Run Last

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

object :

A StoragedDriveAta.

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.

The "handle-security-erase-unit" signal

gboolean            user_function                      (StoragedDriveAta      *object,
                                                        GDBusMethodInvocation *invocation,
                                                        GVariant              *arg_options,
                                                        gpointer               user_data)        : Run Last

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

object :

A StoragedDriveAta.

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.

The "handle-smart-get-attributes" signal

gboolean            user_function                      (StoragedDriveAta      *object,
                                                        GDBusMethodInvocation *invocation,
                                                        GVariant              *arg_options,
                                                        gpointer               user_data)        : Run Last

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

object :

A StoragedDriveAta.

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.

The "handle-smart-selftest-abort" signal

gboolean            user_function                      (StoragedDriveAta      *object,
                                                        GDBusMethodInvocation *invocation,
                                                        GVariant              *arg_options,
                                                        gpointer               user_data)        : Run Last

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

object :

A StoragedDriveAta.

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.

The "handle-smart-selftest-start" signal

gboolean            user_function                      (StoragedDriveAta      *object,
                                                        GDBusMethodInvocation *invocation,
                                                        gchar                 *arg_type,
                                                        GVariant              *arg_options,
                                                        gpointer               user_data)        : Run Last

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

object :

A StoragedDriveAta.

invocation :

A GDBusMethodInvocation.

arg_type :

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.

The "handle-smart-set-enabled" signal

gboolean            user_function                      (StoragedDriveAta      *object,
                                                        GDBusMethodInvocation *invocation,
                                                        gboolean               arg_value,
                                                        GVariant              *arg_options,
                                                        gpointer               user_data)        : Run Last

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

object :

A StoragedDriveAta.

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.

Since 2.0.0


The "handle-smart-update" signal

gboolean            user_function                      (StoragedDriveAta      *object,
                                                        GDBusMethodInvocation *invocation,
                                                        GVariant              *arg_options,
                                                        gpointer               user_data)        : Run Last

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

object :

A StoragedDriveAta.

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.