| UDisks Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Prerequisites | Known Implementations | Properties | Signals | ||||
UDisksDriveAtaUDisksDriveAta — Generated C code for the org.freedesktop.UDisks2.Drive.Ata D-Bus interface |
UDisksDriveAta; struct UDisksDriveAtaIface; GDBusInterfaceInfo * udisks_drive_ata_interface_info (void); guint udisks_drive_ata_override_properties (GObjectClass *klass,guint property_id_begin); void udisks_drive_ata_call_smart_update (UDisksDriveAta *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_drive_ata_call_smart_update_finish (UDisksDriveAta *proxy,GAsyncResult *res,GError **error); gboolean udisks_drive_ata_call_smart_update_sync (UDisksDriveAta *proxy,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_drive_ata_complete_smart_update (UDisksDriveAta *object,GDBusMethodInvocation *invocation); void udisks_drive_ata_call_smart_get_attributes (UDisksDriveAta *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_drive_ata_call_smart_get_attributes_finish (UDisksDriveAta *proxy,GVariant **out_attributes,GAsyncResult *res,GError **error); gboolean udisks_drive_ata_call_smart_get_attributes_sync (UDisksDriveAta *proxy,GVariant *arg_options,GVariant **out_attributes,GCancellable *cancellable,GError **error); void udisks_drive_ata_complete_smart_get_attributes (UDisksDriveAta *object,GDBusMethodInvocation *invocation,GVariant *attributes); void udisks_drive_ata_call_smart_selftest_abort (UDisksDriveAta *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_drive_ata_call_smart_selftest_abort_finish (UDisksDriveAta *proxy,GAsyncResult *res,GError **error); gboolean udisks_drive_ata_call_smart_selftest_abort_sync (UDisksDriveAta *proxy,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_drive_ata_complete_smart_selftest_abort (UDisksDriveAta *object,GDBusMethodInvocation *invocation); void udisks_drive_ata_call_smart_selftest_start (UDisksDriveAta *proxy,const gchar *arg_type,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_drive_ata_call_smart_selftest_start_finish (UDisksDriveAta *proxy,GAsyncResult *res,GError **error); gboolean udisks_drive_ata_call_smart_selftest_start_sync (UDisksDriveAta *proxy,const gchar *arg_type,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_drive_ata_complete_smart_selftest_start (UDisksDriveAta *object,GDBusMethodInvocation *invocation); gboolean udisks_drive_ata_get_smart_supported (UDisksDriveAta *object); gboolean udisks_drive_ata_get_smart_enabled (UDisksDriveAta *object); guint64 udisks_drive_ata_get_smart_updated (UDisksDriveAta *object); gboolean udisks_drive_ata_get_smart_failing (UDisksDriveAta *object); gdouble udisks_drive_ata_get_smart_temperature (UDisksDriveAta *object); guint64 udisks_drive_ata_get_smart_power_on_seconds (UDisksDriveAta *object); gint udisks_drive_ata_get_smart_num_attributes_failed_in_the_past (UDisksDriveAta *object); gint udisks_drive_ata_get_smart_num_attributes_failing (UDisksDriveAta *object); gint64 udisks_drive_ata_get_smart_num_bad_sectors (UDisksDriveAta *object); gint udisks_drive_ata_get_smart_selftest_percent_remaining (UDisksDriveAta *object); const gchar * udisks_drive_ata_get_smart_selftest_status (UDisksDriveAta *object); gchar * udisks_drive_ata_dup_smart_selftest_status (UDisksDriveAta *object); void udisks_drive_ata_set_smart_supported (UDisksDriveAta *object,gboolean value); void udisks_drive_ata_set_smart_enabled (UDisksDriveAta *object,gboolean value); void udisks_drive_ata_set_smart_updated (UDisksDriveAta *object,guint64 value); void udisks_drive_ata_set_smart_failing (UDisksDriveAta *object,gboolean value); void udisks_drive_ata_set_smart_temperature (UDisksDriveAta *object,gdouble value); void udisks_drive_ata_set_smart_power_on_seconds (UDisksDriveAta *object,guint64 value); void udisks_drive_ata_set_smart_num_attributes_failed_in_the_past (UDisksDriveAta *object,gint value); void udisks_drive_ata_set_smart_num_attributes_failing (UDisksDriveAta *object,gint value); void udisks_drive_ata_set_smart_num_bad_sectors (UDisksDriveAta *object,gint64 value); void udisks_drive_ata_set_smart_selftest_percent_remaining (UDisksDriveAta *object,gint value); void udisks_drive_ata_set_smart_selftest_status (UDisksDriveAta *object,const gchar *value); struct UDisksDriveAtaProxy; struct UDisksDriveAtaProxyClass; void udisks_drive_ata_proxy_new (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); UDisksDriveAta * udisks_drive_ata_proxy_new_finish (GAsyncResult *res,GError **error); UDisksDriveAta * udisks_drive_ata_proxy_new_sync (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error); void udisks_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); UDisksDriveAta * udisks_drive_ata_proxy_new_for_bus_finish (GAsyncResult *res,GError **error); UDisksDriveAta * udisks_drive_ata_proxy_new_for_bus_sync (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error); struct UDisksDriveAtaSkeleton; struct UDisksDriveAtaSkeletonClass; UDisksDriveAta * udisks_drive_ata_skeleton_new (void);
GInterface +----UDisksDriveAta
GObject +----GDBusProxy +----UDisksDriveAtaProxy
GObject +----GDBusInterfaceSkeleton +----UDisksDriveAtaSkeleton +----UDisksLinuxDriveAta
UDisksDriveAtaProxy implements GDBusInterface, GInitable, GAsyncInitable and UDisksDriveAta.
UDisksDriveAtaSkeleton implements GDBusInterface and UDisksDriveAta.
UDisksDriveAta is implemented by UDisksDriveAtaProxy, UDisksDriveAtaSkeleton and UDisksLinuxDriveAta.
"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
"handle-smart-get-attributes" :Run Last"handle-smart-selftest-abort" :Run Last"handle-smart-selftest-start" :Run Last"handle-smart-update" :Run Last
This section contains code for working with the org.freedesktop.UDisks2.Drive.Ata D-Bus interface in C.
typedef struct _UDisksDriveAta UDisksDriveAta;
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Drive.Ata.
struct UDisksDriveAtaIface {
GTypeInterface parent_iface;
gboolean (*handle_smart_get_attributes) (
UDisksDriveAta *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
gboolean (*handle_smart_selftest_abort) (
UDisksDriveAta *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
gboolean (*handle_smart_selftest_start) (
UDisksDriveAta *object,
GDBusMethodInvocation *invocation,
const gchar *arg_type,
GVariant *arg_options);
gboolean (*handle_smart_update) (
UDisksDriveAta *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
gboolean (*get_smart_enabled) (UDisksDriveAta *object);
gboolean (*get_smart_failing) (UDisksDriveAta *object);
gint (*get_smart_num_attributes_failed_in_the_past) (UDisksDriveAta *object);
gint (*get_smart_num_attributes_failing) (UDisksDriveAta *object);
gint64 (*get_smart_num_bad_sectors) (UDisksDriveAta *object);
guint64 (*get_smart_power_on_seconds) (UDisksDriveAta *object);
gint (*get_smart_selftest_percent_remaining) (UDisksDriveAta *object);
const gchar * (*get_smart_selftest_status) (UDisksDriveAta *object);
gboolean (*get_smart_supported) (UDisksDriveAta *object);
gdouble (*get_smart_temperature) (UDisksDriveAta *object);
guint64 (*get_smart_updated) (UDisksDriveAta *object);
};
Virtual table for the D-Bus interface org.freedesktop.UDisks2.Drive.Ata.
GTypeInterface |
The parent interface. |
| Handler for the "handle-smart-get-attributes" signal. | |
| Handler for the "handle-smart-selftest-abort" signal. | |
| Handler for the "handle-smart-selftest-start" signal. | |
| Handler for the "handle-smart-update" signal. | |
| Getter for the "smart-enabled" property. | |
| Getter for the "smart-failing" property. | |
| Getter for the "smart-num-attributes-failed-in-the-past" property. | |
| Getter for the "smart-num-attributes-failing" property. | |
| Getter for the "smart-num-bad-sectors" property. | |
| Getter for the "smart-power-on-seconds" property. | |
| Getter for the "smart-selftest-percent-remaining" property. | |
| Getter for the "smart-selftest-status" property. | |
| Getter for the "smart-supported" property. | |
| Getter for the "smart-temperature" property. | |
| Getter for the "smart-updated" property. |
GDBusInterfaceInfo * udisks_drive_ata_interface_info (void);
Gets a machine-readable description of the org.freedesktop.UDisks2.Drive.Ata D-Bus interface.
Returns : |
A GDBusInterfaceInfo. Do not free. [transfer none] |
guint udisks_drive_ata_override_properties (GObjectClass *klass,guint property_id_begin);
Overrides all GObject properties in the UDisksDriveAta interface for a concrete class. The properties are overridden in the order they are defined.
|
The class structure for a GObject-derived class. |
|
The property id to assign to the first overridden property. |
Returns : |
The last property id. |
void udisks_drive_ata_call_smart_update (UDisksDriveAta *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 udisks_drive_ata_call_smart_update_finish() to get the result of the operation.
See udisks_drive_ata_call_smart_update_sync() for the synchronous, blocking version of this method.
|
A UDisksDriveAtaProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL. |
|
User data to pass to callback. |
gboolean udisks_drive_ata_call_smart_update_finish (UDisksDriveAta *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_ata_call_smart_update().
|
A UDisksDriveAtaProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_ata_call_smart_update(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_drive_ata_call_smart_update_sync (UDisksDriveAta *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 udisks_drive_ata_call_smart_update() for the asynchronous version of this method.
|
A UDisksDriveAtaProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
void udisks_drive_ata_complete_smart_update (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
A GDBusMethodInvocation. [transfer full] |
void udisks_drive_ata_call_smart_get_attributes (UDisksDriveAta *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 udisks_drive_ata_call_smart_get_attributes_finish() to get the result of the operation.
See udisks_drive_ata_call_smart_get_attributes_sync() for the synchronous, blocking version of this method.
|
A UDisksDriveAtaProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL. |
|
User data to pass to callback. |
gboolean udisks_drive_ata_call_smart_get_attributes_finish (UDisksDriveAta *proxy,GVariant **out_attributes,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_ata_call_smart_get_attributes().
|
A UDisksDriveAtaProxy. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_ata_call_smart_get_attributes(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_drive_ata_call_smart_get_attributes_sync (UDisksDriveAta *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 udisks_drive_ata_call_smart_get_attributes() for the asynchronous version of this method.
|
A UDisksDriveAtaProxy. |
|
Argument to pass with the method invocation. |
|
Return location for return parameter or NULL to ignore. [out]
|
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
void udisks_drive_ata_complete_smart_get_attributes (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
A GDBusMethodInvocation. [transfer full] |
|
Parameter to return. |
void udisks_drive_ata_call_smart_selftest_abort (UDisksDriveAta *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 udisks_drive_ata_call_smart_selftest_abort_finish() to get the result of the operation.
See udisks_drive_ata_call_smart_selftest_abort_sync() for the synchronous, blocking version of this method.
|
A UDisksDriveAtaProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL. |
|
User data to pass to callback. |
gboolean udisks_drive_ata_call_smart_selftest_abort_finish (UDisksDriveAta *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_ata_call_smart_selftest_abort().
|
A UDisksDriveAtaProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_ata_call_smart_selftest_abort(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_drive_ata_call_smart_selftest_abort_sync (UDisksDriveAta *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 udisks_drive_ata_call_smart_selftest_abort() for the asynchronous version of this method.
|
A UDisksDriveAtaProxy. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
void udisks_drive_ata_complete_smart_selftest_abort (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
A GDBusMethodInvocation. [transfer full] |
void udisks_drive_ata_call_smart_selftest_start (UDisksDriveAta *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 udisks_drive_ata_call_smart_selftest_start_finish() to get the result of the operation.
See udisks_drive_ata_call_smart_selftest_start_sync() for the synchronous, blocking version of this method.
|
A UDisksDriveAtaProxy. |
|
Argument to pass with the method invocation. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL. |
|
User data to pass to callback. |
gboolean udisks_drive_ata_call_smart_selftest_start_finish (UDisksDriveAta *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_ata_call_smart_selftest_start().
|
A UDisksDriveAtaProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_ata_call_smart_selftest_start(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_drive_ata_call_smart_selftest_start_sync (UDisksDriveAta *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 udisks_drive_ata_call_smart_selftest_start() for the asynchronous version of this method.
|
A UDisksDriveAtaProxy. |
|
Argument to pass with the method invocation. |
|
Argument to pass with the method invocation. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
void udisks_drive_ata_complete_smart_selftest_start (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
A GDBusMethodInvocation. [transfer full] |
gboolean udisks_drive_ata_get_smart_supported
(UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
gboolean udisks_drive_ata_get_smart_enabled (UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
guint64 udisks_drive_ata_get_smart_updated (UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
gboolean udisks_drive_ata_get_smart_failing (UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
gdouble udisks_drive_ata_get_smart_temperature
(UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
guint64 udisks_drive_ata_get_smart_power_on_seconds
(UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
gint udisks_drive_ata_get_smart_num_attributes_failed_in_the_past
(UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
gint udisks_drive_ata_get_smart_num_attributes_failing
(UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
gint64 udisks_drive_ata_get_smart_num_bad_sectors
(UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
gint udisks_drive_ata_get_smart_selftest_percent_remaining
(UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value. |
const gchar * udisks_drive_ata_get_smart_selftest_status
(UDisksDriveAta *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.
object was constructed. Use udisks_drive_ata_dup_smart_selftest_status() if on another thread.
|
A UDisksDriveAta. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
gchar * udisks_drive_ata_dup_smart_selftest_status
(UDisksDriveAta *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.
|
A UDisksDriveAta. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
void udisks_drive_ata_set_smart_supported (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_enabled (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_updated (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_failing (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_temperature (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_power_on_seconds (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_num_attributes_failed_in_the_past (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_num_attributes_failing (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_num_bad_sectors (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_selftest_percent_remaining (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
void udisks_drive_ata_set_smart_selftest_status (UDisksDriveAta *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.
|
A UDisksDriveAta. |
|
The value to set. |
struct UDisksDriveAtaProxy;
The UDisksDriveAtaProxy structure contains only private data and should only be accessed using the provided API.
struct UDisksDriveAtaProxyClass {
GDBusProxyClass parent_class;
};
Class structure for UDisksDriveAtaProxy.
GDBusProxyClass |
The parent class. |
void udisks_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.freedesktop.UDisks2.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 udisks_drive_ata_proxy_new_finish() to get the result of the operation.
See udisks_drive_ata_proxy_new_sync() for the synchronous, blocking version of this constructor.
|
A GDBusConnection. |
|
Flags from the GDBusProxyFlags enumeration. |
|
A bus name (well-known or unique) or NULL if connection is not a message bus connection. [allow-none]
|
|
An object path. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied. |
|
User data to pass to callback. |
UDisksDriveAta * udisks_drive_ata_proxy_new_finish (GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_ata_proxy_new().
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_ata_proxy_new(). |
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksDriveAtaProxy]
|
UDisksDriveAta * udisks_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.freedesktop.UDisks2.Drive.Ata. See g_dbus_proxy_new_sync() for more details.
The calling thread is blocked until a reply is received.
See udisks_drive_ata_proxy_new() for the asynchronous version of this constructor.
|
A GDBusConnection. |
|
Flags from the GDBusProxyFlags enumeration. |
|
A bus name (well-known or unique) or NULL if connection is not a message bus connection. [allow-none]
|
|
An object path. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksDriveAtaProxy]
|
void udisks_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 udisks_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 udisks_drive_ata_proxy_new_for_bus_finish() to get the result of the operation.
See udisks_drive_ata_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
|
A GBusType. |
|
Flags from the GDBusProxyFlags enumeration. |
|
A bus name (well-known or unique). |
|
An object path. |
|
A GCancellable or NULL. [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied. |
|
User data to pass to callback. |
UDisksDriveAta * udisks_drive_ata_proxy_new_for_bus_finish (GAsyncResult *res,GError **error);
Finishes an operation started with udisks_drive_ata_proxy_new_for_bus().
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_drive_ata_proxy_new_for_bus(). |
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksDriveAtaProxy]
|
UDisksDriveAta * udisks_drive_ata_proxy_new_for_bus_sync (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error);
Like udisks_drive_ata_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See udisks_drive_ata_proxy_new_for_bus() for the asynchronous version of this constructor.
|
A GBusType. |
|
Flags from the GDBusProxyFlags enumeration. |
|
A bus name (well-known or unique). |
|
An object path. |
|
A GCancellable or NULL. [allow-none]
|
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksDriveAtaProxy]
|
struct UDisksDriveAtaSkeleton;
The UDisksDriveAtaSkeleton structure contains only private data and should only be accessed using the provided API.
struct UDisksDriveAtaSkeletonClass {
GDBusInterfaceSkeletonClass parent_class;
};
Class structure for UDisksDriveAtaSkeleton.
GDBusInterfaceSkeletonClass |
The parent class. |
UDisksDriveAta * udisks_drive_ata_skeleton_new (void);
Creates a skeleton object for the D-Bus interface org.freedesktop.UDisks2.Drive.Ata.
Returns : |
The skeleton object. [transfer full][type UDisksDriveAtaSkeleton] |
"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
"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
"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
"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
"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
"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
"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
"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
"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
"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
"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
"handle-smart-get-attributes" signalgboolean user_function (UDisksDriveAta *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 udisks_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.
|
A UDisksDriveAta. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-smart-selftest-abort" signalgboolean user_function (UDisksDriveAta *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 udisks_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.
|
A UDisksDriveAta. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-smart-selftest-start" signalgboolean user_function (UDisksDriveAta *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 udisks_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.
|
A UDisksDriveAta. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |
"handle-smart-update" signalgboolean user_function (UDisksDriveAta *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 udisks_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.
|
A UDisksDriveAta. |
|
A GDBusMethodInvocation. |
|
Argument passed by remote caller. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if the invocation was handled, FALSE to let other signal handlers run. |