| UDisks Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Prerequisites | Known Implementations | ||||
UDisksPartitionUDisksPartition — Generated C code for the org.freedesktop.UDisks2.Partition D-Bus interface |
UDisksPartition; struct UDisksPartitionIface; GDBusInterfaceInfo * udisks_partition_interface_info (void); guint udisks_partition_override_properties (GObjectClass *klass,guint property_id_begin); void udisks_partition_call_delete (UDisksPartition *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_partition_call_delete_finish (UDisksPartition *proxy,GAsyncResult *res,GError **error); gboolean udisks_partition_call_delete_sync (UDisksPartition *proxy,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_partition_complete_delete (UDisksPartition *object,GDBusMethodInvocation *invocation); void udisks_partition_call_set_type (UDisksPartition *proxy,const gchar *arg_type,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_partition_call_set_type_finish (UDisksPartition *proxy,GAsyncResult *res,GError **error); gboolean udisks_partition_call_set_type_sync (UDisksPartition *proxy,const gchar *arg_type,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_partition_complete_set_type (UDisksPartition *object,GDBusMethodInvocation *invocation); void udisks_partition_call_set_name (UDisksPartition *proxy,const gchar *arg_name,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_partition_call_set_name_finish (UDisksPartition *proxy,GAsyncResult *res,GError **error); gboolean udisks_partition_call_set_name_sync (UDisksPartition *proxy,const gchar *arg_name,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_partition_complete_set_name (UDisksPartition *object,GDBusMethodInvocation *invocation); void udisks_partition_call_set_flags (UDisksPartition *proxy,guint64 arg_flags,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean udisks_partition_call_set_flags_finish (UDisksPartition *proxy,GAsyncResult *res,GError **error); gboolean udisks_partition_call_set_flags_sync (UDisksPartition *proxy,guint64 arg_flags,GVariant *arg_options,GCancellable *cancellable,GError **error); void udisks_partition_complete_set_flags (UDisksPartition *object,GDBusMethodInvocation *invocation); guint udisks_partition_get_number (UDisksPartition *object); const gchar * udisks_partition_get_type_ (UDisksPartition *object); guint64 udisks_partition_get_offset (UDisksPartition *object); guint64 udisks_partition_get_size (UDisksPartition *object); guint64 udisks_partition_get_flags (UDisksPartition *object); const gchar * udisks_partition_get_name (UDisksPartition *object); const gchar * udisks_partition_get_uuid (UDisksPartition *object); const gchar * udisks_partition_get_table (UDisksPartition *object); gboolean udisks_partition_get_is_container (UDisksPartition *object); gboolean udisks_partition_get_is_contained (UDisksPartition *object); gchar * udisks_partition_dup_type_ (UDisksPartition *object); gchar * udisks_partition_dup_name (UDisksPartition *object); gchar * udisks_partition_dup_uuid (UDisksPartition *object); gchar * udisks_partition_dup_table (UDisksPartition *object); void udisks_partition_set_number (UDisksPartition *object,guint value); void udisks_partition_set_type_ (UDisksPartition *object,const gchar *value); void udisks_partition_set_offset (UDisksPartition *object,guint64 value); void udisks_partition_set_size (UDisksPartition *object,guint64 value); void udisks_partition_set_flags (UDisksPartition *object,guint64 value); void udisks_partition_set_name (UDisksPartition *object,const gchar *value); void udisks_partition_set_uuid (UDisksPartition *object,const gchar *value); void udisks_partition_set_table (UDisksPartition *object,const gchar *value); void udisks_partition_set_is_container (UDisksPartition *object,gboolean value); void udisks_partition_set_is_contained (UDisksPartition *object,gboolean value); struct UDisksPartitionProxy; struct UDisksPartitionProxyClass; void udisks_partition_proxy_new (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); UDisksPartition * udisks_partition_proxy_new_finish (GAsyncResult *res,GError **error); UDisksPartition * udisks_partition_proxy_new_sync (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error); void udisks_partition_proxy_new_for_bus (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); UDisksPartition * udisks_partition_proxy_new_for_bus_finish (GAsyncResult *res,GError **error); UDisksPartition * udisks_partition_proxy_new_for_bus_sync (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error); struct UDisksPartitionSkeleton; struct UDisksPartitionSkeletonClass; UDisksPartition * udisks_partition_skeleton_new (void);
GInterface +----UDisksPartition
GObject
+----GDBusInterfaceSkeleton
+----UDisksPartitionSkeleton
+----UDisksLinuxPartition
UDisksPartition is implemented by UDisksLinuxPartition and UDisksPartitionSkeleton.
This section contains code for working with the org.freedesktop.UDisks2.Partition D-Bus interface in C.
typedef struct _UDisksPartition UDisksPartition;
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Partition.
struct UDisksPartitionIface {
GTypeInterface parent_iface;
gboolean (*handle_delete) (
UDisksPartition *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
gboolean (*handle_set_flags) (
UDisksPartition *object,
GDBusMethodInvocation *invocation,
guint64 arg_flags,
GVariant *arg_options);
gboolean (*handle_set_name) (
UDisksPartition *object,
GDBusMethodInvocation *invocation,
const gchar *arg_name,
GVariant *arg_options);
gboolean (*handle_set_type) (
UDisksPartition *object,
GDBusMethodInvocation *invocation,
const gchar *arg_type,
GVariant *arg_options);
guint64 (*get_flags) (UDisksPartition *object);
gboolean (*get_is_contained) (UDisksPartition *object);
gboolean (*get_is_container) (UDisksPartition *object);
const gchar * (*get_name) (UDisksPartition *object);
guint (*get_number) (UDisksPartition *object);
guint64 (*get_offset) (UDisksPartition *object);
guint64 (*get_size) (UDisksPartition *object);
const gchar * (*get_table) (UDisksPartition *object);
const gchar * (*get_type_) (UDisksPartition *object);
const gchar * (*get_uuid) (UDisksPartition *object);
};
Virtual table for the D-Bus interface org.freedesktop.UDisks2.Partition.
| The parent interface. | |
| Handler for the "handle-delete" signal. | |
| Handler for the "handle-set-flags" signal. | |
| Handler for the "handle-set-name" signal. | |
| Handler for the "handle-set-type" signal. | |
| Getter for the "flags" property. | |
| Getter for the "is-contained" property. | |
| Getter for the "is-container" property. | |
| Getter for the "name" property. | |
| Getter for the "number" property. | |
| Getter for the "offset" property. | |
| Getter for the "size" property. | |
| Getter for the "table" property. | |
| Getter for the "type" property. | |
| Getter for the "uuid" property. |
GDBusInterfaceInfo * udisks_partition_interface_info (void);
Gets a machine-readable description of the org.freedesktop.UDisks2.Partition D-Bus interface.
Returns : |
A GDBusInterfaceInfo. Do not free. [transfer none] |
guint udisks_partition_override_properties (GObjectClass *klass,guint property_id_begin);
Overrides all GObject properties in the UDisksPartition 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_partition_call_delete (UDisksPartition *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the Delete() 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_partition_call_delete_finish() to get the result of the operation.
See udisks_partition_call_delete_sync() for the synchronous, blocking version of this method.
|
A UDisksPartitionProxy. |
|
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_partition_call_delete_finish (UDisksPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_partition_call_delete().
|
A UDisksPartitionProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_partition_call_delete(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_partition_call_delete_sync (UDisksPartition *proxy,GVariant *arg_options,GCancellable *cancellable,GError **error);
Synchronously invokes the Delete() D-Bus method on proxy. The calling thread is blocked until a reply is received.
See udisks_partition_call_delete() for the asynchronous version of this method.
|
A UDisksPartitionProxy. |
|
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_partition_complete_delete (UDisksPartition *object,GDBusMethodInvocation *invocation);
Helper function used in service implementations to finish handling invocations of the Delete() 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 UDisksPartition. |
|
A GDBusMethodInvocation. [transfer full] |
void udisks_partition_call_set_type (UDisksPartition *proxy,const gchar *arg_type,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the SetType() 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_partition_call_set_type_finish() to get the result of the operation.
See udisks_partition_call_set_type_sync() for the synchronous, blocking version of this method.
|
A UDisksPartitionProxy. |
|
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_partition_call_set_type_finish (UDisksPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_partition_call_set_type().
|
A UDisksPartitionProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_partition_call_set_type(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_partition_call_set_type_sync (UDisksPartition *proxy,const gchar *arg_type,GVariant *arg_options,GCancellable *cancellable,GError **error);
Synchronously invokes the SetType() D-Bus method on proxy. The calling thread is blocked until a reply is received.
See udisks_partition_call_set_type() for the asynchronous version of this method.
|
A UDisksPartitionProxy. |
|
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_partition_complete_set_type (UDisksPartition *object,GDBusMethodInvocation *invocation);
Helper function used in service implementations to finish handling invocations of the SetType() 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 UDisksPartition. |
|
A GDBusMethodInvocation. [transfer full] |
void udisks_partition_call_set_name (UDisksPartition *proxy,const gchar *arg_name,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the SetName() 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_partition_call_set_name_finish() to get the result of the operation.
See udisks_partition_call_set_name_sync() for the synchronous, blocking version of this method.
|
A UDisksPartitionProxy. |
|
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_partition_call_set_name_finish (UDisksPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_partition_call_set_name().
|
A UDisksPartitionProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_partition_call_set_name(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_partition_call_set_name_sync (UDisksPartition *proxy,const gchar *arg_name,GVariant *arg_options,GCancellable *cancellable,GError **error);
Synchronously invokes the SetName() D-Bus method on proxy. The calling thread is blocked until a reply is received.
See udisks_partition_call_set_name() for the asynchronous version of this method.
|
A UDisksPartitionProxy. |
|
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_partition_complete_set_name (UDisksPartition *object,GDBusMethodInvocation *invocation);
Helper function used in service implementations to finish handling invocations of the SetName() 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 UDisksPartition. |
|
A GDBusMethodInvocation. [transfer full] |
void udisks_partition_call_set_flags (UDisksPartition *proxy,guint64 arg_flags,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously invokes the SetFlags() 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_partition_call_set_flags_finish() to get the result of the operation.
See udisks_partition_call_set_flags_sync() for the synchronous, blocking version of this method.
|
A UDisksPartitionProxy. |
|
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_partition_call_set_flags_finish (UDisksPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with udisks_partition_call_set_flags().
|
A UDisksPartitionProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_partition_call_set_flags(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean udisks_partition_call_set_flags_sync (UDisksPartition *proxy,guint64 arg_flags,GVariant *arg_options,GCancellable *cancellable,GError **error);
Synchronously invokes the SetFlags() D-Bus method on proxy. The calling thread is blocked until a reply is received.
See udisks_partition_call_set_flags() for the asynchronous version of this method.
|
A UDisksPartitionProxy. |
|
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_partition_complete_set_flags (UDisksPartition *object,GDBusMethodInvocation *invocation);
Helper function used in service implementations to finish handling invocations of the SetFlags() 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 UDisksPartition. |
|
A GDBusMethodInvocation. [transfer full] |
guint udisks_partition_get_number (UDisksPartition *object);
Gets the value of the "Number" 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 UDisksPartition. |
Returns : |
The property value. |
const gchar * udisks_partition_get_type_ (UDisksPartition *object);
Gets the value of the "Type" 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_partition_dup_type_() if on another thread.
|
A UDisksPartition. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
guint64 udisks_partition_get_offset (UDisksPartition *object);
Gets the value of the "Offset" 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 UDisksPartition. |
Returns : |
The property value. |
guint64 udisks_partition_get_size (UDisksPartition *object);
Gets the value of the "Size" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksPartition. |
Returns : |
The property value. |
guint64 udisks_partition_get_flags (UDisksPartition *object);
Gets the value of the "Flags" 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 UDisksPartition. |
Returns : |
The property value. |
const gchar * udisks_partition_get_name (UDisksPartition *object);
Gets the value of the "Name" 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_partition_dup_name() if on another thread.
|
A UDisksPartition. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
const gchar * udisks_partition_get_uuid (UDisksPartition *object);
Gets the value of the "UUID" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
object was constructed. Use udisks_partition_dup_uuid() if on another thread.
|
A UDisksPartition. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
const gchar * udisks_partition_get_table (UDisksPartition *object);
Gets the value of the "Table" 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_partition_dup_table() if on another thread.
|
A UDisksPartition. |
Returns : |
The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]
|
gboolean udisks_partition_get_is_container (UDisksPartition *object);
Gets the value of the "IsContainer" 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 UDisksPartition. |
Returns : |
The property value. |
gboolean udisks_partition_get_is_contained (UDisksPartition *object);
Gets the value of the "IsContained" 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 UDisksPartition. |
Returns : |
The property value. |
gchar * udisks_partition_dup_type_ (UDisksPartition *object);
Gets a copy of the "Type" 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 UDisksPartition. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_partition_dup_name (UDisksPartition *object);
Gets a copy of the "Name" 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 UDisksPartition. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_partition_dup_uuid (UDisksPartition *object);
Gets a copy of the "UUID" D-Bus property.
Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
|
A UDisksPartition. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * udisks_partition_dup_table (UDisksPartition *object);
Gets a copy of the "Table" 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 UDisksPartition. |
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_partition_set_number (UDisksPartition *object,guint value);
Sets the "Number" 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 UDisksPartition. |
|
The value to set. |
void udisks_partition_set_type_ (UDisksPartition *object,const gchar *value);
Sets the "Type" 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 UDisksPartition. |
|
The value to set. |
void udisks_partition_set_offset (UDisksPartition *object,guint64 value);
Sets the "Offset" 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 UDisksPartition. |
|
The value to set. |
void udisks_partition_set_size (UDisksPartition *object,guint64 value);
Sets the "Size" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksPartition. |
|
The value to set. |
void udisks_partition_set_flags (UDisksPartition *object,guint64 value);
Sets the "Flags" 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 UDisksPartition. |
|
The value to set. |
void udisks_partition_set_name (UDisksPartition *object,const gchar *value);
Sets the "Name" 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 UDisksPartition. |
|
The value to set. |
void udisks_partition_set_uuid (UDisksPartition *object,const gchar *value);
Sets the "UUID" D-Bus property to value.
Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
|
A UDisksPartition. |
|
The value to set. |
void udisks_partition_set_table (UDisksPartition *object,const gchar *value);
Sets the "Table" 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 UDisksPartition. |
|
The value to set. |
void udisks_partition_set_is_container (UDisksPartition *object,gboolean value);
Sets the "IsContainer" 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 UDisksPartition. |
|
The value to set. |
void udisks_partition_set_is_contained (UDisksPartition *object,gboolean value);
Sets the "IsContained" 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 UDisksPartition. |
|
The value to set. |
struct UDisksPartitionProxy {
};
The UDisksPartitionProxy structure contains only private data and should only be accessed using the provided API.
struct UDisksPartitionProxyClass {
GDBusProxyClass parent_class;
};
Class structure for UDisksPartitionProxy.
void udisks_partition_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.Partition. 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_partition_proxy_new_finish() to get the result of the operation.
See udisks_partition_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. |
UDisksPartition * udisks_partition_proxy_new_finish (GAsyncResult *res,GError **error);
Finishes an operation started with udisks_partition_proxy_new().
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_partition_proxy_new(). |
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksPartitionProxy]
|
UDisksPartition * udisks_partition_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.Partition. See g_dbus_proxy_new_sync() for more details.
The calling thread is blocked until a reply is received.
See udisks_partition_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 UDisksPartitionProxy]
|
void udisks_partition_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_partition_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_partition_proxy_new_for_bus_finish() to get the result of the operation.
See udisks_partition_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. |
UDisksPartition * udisks_partition_proxy_new_for_bus_finish (GAsyncResult *res,GError **error);
Finishes an operation started with udisks_partition_proxy_new_for_bus().
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to udisks_partition_proxy_new_for_bus(). |
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type UDisksPartitionProxy]
|
UDisksPartition * udisks_partition_proxy_new_for_bus_sync (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error);
Like udisks_partition_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See udisks_partition_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 UDisksPartitionProxy]
|
struct UDisksPartitionSkeleton;
The UDisksPartitionSkeleton structure contains only private data and should only be accessed using the provided API.
struct UDisksPartitionSkeletonClass {
GDBusInterfaceSkeletonClass parent_class;
};
Class structure for UDisksPartitionSkeleton.
UDisksPartition * udisks_partition_skeleton_new (void);
Creates a skeleton object for the D-Bus interface org.freedesktop.UDisks2.Partition.
Returns : |
The skeleton object. [transfer full][type UDisksPartitionSkeleton] |