Top |
UDisksPartitionUDisksPartition — Generated C code for the org.freedesktop.UDisks2.Partition D-Bus interface |
UDisksPartition | |
struct | UDisksPartitionIface |
struct | UDisksPartitionProxy |
struct | UDisksPartitionProxyClass |
struct | UDisksPartitionSkeleton |
struct | UDisksPartitionSkeletonClass |
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.
GDBusInterfaceInfo *
udisks_partition_interface_info (void
);
Gets a machine-readable description of the org.freedesktop.UDisks2.Partition D-Bus interface.
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.
klass |
The class structure for a GObject-derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
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.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean udisks_partition_call_delete_finish (UDisksPartition *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_partition_call_delete()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
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.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
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.
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.
proxy |
||
arg_type |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean udisks_partition_call_set_type_finish (UDisksPartition *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_partition_call_set_type()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
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.
proxy |
||
arg_type |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
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.
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.
proxy |
||
arg_name |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean udisks_partition_call_set_name_finish (UDisksPartition *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_partition_call_set_name()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
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.
proxy |
||
arg_name |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
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.
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.
proxy |
||
arg_flags |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean udisks_partition_call_set_flags_finish (UDisksPartition *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_partition_call_set_flags()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
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.
proxy |
||
arg_flags |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
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.
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.
[skip]
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.[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.[skip]
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.[skip]
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.[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[allow-none] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
UDisksPartition * udisks_partition_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_partition_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
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.
connection |
||
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[allow-none] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
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.
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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
UDisksPartition * udisks_partition_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_partition_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
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.
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 |
[allow-none] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type UDisksPartitionProxy]
UDisksPartition *
udisks_partition_skeleton_new (void
);
Creates a skeleton object for the D-Bus interface org.freedesktop.UDisks2.Partition.
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.
GTypeInterface |
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. |
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.
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.