| Storaged Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Prerequisites | Known Implementations | ||||
StoragedPartitionStoragedPartition — Generated C code for the org.storaged.Storaged.Partition D-Bus interface |
StoragedPartition; struct StoragedPartitionIface; GDBusInterfaceInfo * storaged_partition_interface_info (void); guint storaged_partition_override_properties (GObjectClass *klass,guint property_id_begin); void storaged_partition_call_delete (StoragedPartition *proxy,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean storaged_partition_call_delete_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error); gboolean storaged_partition_call_delete_sync (StoragedPartition *proxy,GVariant *arg_options,GCancellable *cancellable,GError **error); void storaged_partition_complete_delete (StoragedPartition *object,GDBusMethodInvocation *invocation); void storaged_partition_call_set_type (StoragedPartition *proxy,const gchar *arg_type,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean storaged_partition_call_set_type_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error); gboolean storaged_partition_call_set_type_sync (StoragedPartition *proxy,const gchar *arg_type,GVariant *arg_options,GCancellable *cancellable,GError **error); void storaged_partition_complete_set_type (StoragedPartition *object,GDBusMethodInvocation *invocation); void storaged_partition_call_set_name (StoragedPartition *proxy,const gchar *arg_name,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean storaged_partition_call_set_name_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error); gboolean storaged_partition_call_set_name_sync (StoragedPartition *proxy,const gchar *arg_name,GVariant *arg_options,GCancellable *cancellable,GError **error); void storaged_partition_complete_set_name (StoragedPartition *object,GDBusMethodInvocation *invocation); void storaged_partition_call_set_flags (StoragedPartition *proxy,guint64 arg_flags,GVariant *arg_options,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); gboolean storaged_partition_call_set_flags_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error); gboolean storaged_partition_call_set_flags_sync (StoragedPartition *proxy,guint64 arg_flags,GVariant *arg_options,GCancellable *cancellable,GError **error); void storaged_partition_complete_set_flags (StoragedPartition *object,GDBusMethodInvocation *invocation); guint storaged_partition_get_number (StoragedPartition *object); const gchar * storaged_partition_get_type_ (StoragedPartition *object); guint64 storaged_partition_get_offset (StoragedPartition *object); guint64 storaged_partition_get_size (StoragedPartition *object); guint64 storaged_partition_get_flags (StoragedPartition *object); const gchar * storaged_partition_get_name (StoragedPartition *object); const gchar * storaged_partition_get_uuid (StoragedPartition *object); const gchar * storaged_partition_get_table (StoragedPartition *object); gboolean storaged_partition_get_is_container (StoragedPartition *object); gboolean storaged_partition_get_is_contained (StoragedPartition *object); gchar * storaged_partition_dup_type_ (StoragedPartition *object); gchar * storaged_partition_dup_name (StoragedPartition *object); gchar * storaged_partition_dup_uuid (StoragedPartition *object); gchar * storaged_partition_dup_table (StoragedPartition *object); void storaged_partition_set_number (StoragedPartition *object,guint value); void storaged_partition_set_type_ (StoragedPartition *object,const gchar *value); void storaged_partition_set_offset (StoragedPartition *object,guint64 value); void storaged_partition_set_size (StoragedPartition *object,guint64 value); void storaged_partition_set_flags (StoragedPartition *object,guint64 value); void storaged_partition_set_name (StoragedPartition *object,const gchar *value); void storaged_partition_set_uuid (StoragedPartition *object,const gchar *value); void storaged_partition_set_table (StoragedPartition *object,const gchar *value); void storaged_partition_set_is_container (StoragedPartition *object,gboolean value); void storaged_partition_set_is_contained (StoragedPartition *object,gboolean value); struct StoragedPartitionProxy; struct StoragedPartitionProxyClass; void storaged_partition_proxy_new (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); StoragedPartition * storaged_partition_proxy_new_finish (GAsyncResult *res,GError **error); StoragedPartition * storaged_partition_proxy_new_sync (GDBusConnection *connection,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error); void storaged_partition_proxy_new_for_bus (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data); StoragedPartition * storaged_partition_proxy_new_for_bus_finish (GAsyncResult *res,GError **error); StoragedPartition * storaged_partition_proxy_new_for_bus_sync (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error); struct StoragedPartitionSkeleton; struct StoragedPartitionSkeletonClass; StoragedPartition * storaged_partition_skeleton_new (void);
GInterface +----StoragedPartition
GObject
+----GDBusInterfaceSkeleton
+----StoragedPartitionSkeleton
+----StoragedLinuxPartition
StoragedPartition is implemented by StoragedLinuxPartition and StoragedPartitionSkeleton.
This section contains code for working with the org.storaged.Storaged.Partition D-Bus interface in C.
typedef struct _StoragedPartition StoragedPartition;
Abstract interface type for the D-Bus interface org.storaged.Storaged.Partition.
struct StoragedPartitionIface {
GTypeInterface parent_iface;
gboolean (*handle_delete) (
StoragedPartition *object,
GDBusMethodInvocation *invocation,
GVariant *arg_options);
gboolean (*handle_set_flags) (
StoragedPartition *object,
GDBusMethodInvocation *invocation,
guint64 arg_flags,
GVariant *arg_options);
gboolean (*handle_set_name) (
StoragedPartition *object,
GDBusMethodInvocation *invocation,
const gchar *arg_name,
GVariant *arg_options);
gboolean (*handle_set_type) (
StoragedPartition *object,
GDBusMethodInvocation *invocation,
const gchar *arg_type,
GVariant *arg_options);
guint64 (*get_flags) (StoragedPartition *object);
gboolean (*get_is_contained) (StoragedPartition *object);
gboolean (*get_is_container) (StoragedPartition *object);
const gchar * (*get_name) (StoragedPartition *object);
guint (*get_number) (StoragedPartition *object);
guint64 (*get_offset) (StoragedPartition *object);
guint64 (*get_size) (StoragedPartition *object);
const gchar * (*get_table) (StoragedPartition *object);
const gchar * (*get_type_) (StoragedPartition *object);
const gchar * (*get_uuid) (StoragedPartition *object);
};
Virtual table for the D-Bus interface org.storaged.Storaged.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 * storaged_partition_interface_info (void);
Gets a machine-readable description of the org.storaged.Storaged.Partition D-Bus interface.
Returns : |
A GDBusInterfaceInfo. Do not free. [transfer none] |
guint storaged_partition_override_properties (GObjectClass *klass,guint property_id_begin);
Overrides all GObject properties in the StoragedPartition 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 storaged_partition_call_delete (StoragedPartition *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 storaged_partition_call_delete_finish() to get the result of the operation.
See storaged_partition_call_delete_sync() for the synchronous, blocking version of this method.
|
A StoragedPartitionProxy. |
|
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 storaged_partition_call_delete_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_call_delete().
|
A StoragedPartitionProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_partition_call_delete(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean storaged_partition_call_delete_sync (StoragedPartition *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 storaged_partition_call_delete() for the asynchronous version of this method.
|
A StoragedPartitionProxy. |
|
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 storaged_partition_complete_delete (StoragedPartition *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 StoragedPartition. |
|
A GDBusMethodInvocation. [transfer full] |
void storaged_partition_call_set_type (StoragedPartition *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 storaged_partition_call_set_type_finish() to get the result of the operation.
See storaged_partition_call_set_type_sync() for the synchronous, blocking version of this method.
|
A StoragedPartitionProxy. |
|
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 storaged_partition_call_set_type_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_call_set_type().
|
A StoragedPartitionProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_partition_call_set_type(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean storaged_partition_call_set_type_sync (StoragedPartition *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 storaged_partition_call_set_type() for the asynchronous version of this method.
|
A StoragedPartitionProxy. |
|
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 storaged_partition_complete_set_type (StoragedPartition *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 StoragedPartition. |
|
A GDBusMethodInvocation. [transfer full] |
void storaged_partition_call_set_name (StoragedPartition *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 storaged_partition_call_set_name_finish() to get the result of the operation.
See storaged_partition_call_set_name_sync() for the synchronous, blocking version of this method.
|
A StoragedPartitionProxy. |
|
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 storaged_partition_call_set_name_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_call_set_name().
|
A StoragedPartitionProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_partition_call_set_name(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean storaged_partition_call_set_name_sync (StoragedPartition *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 storaged_partition_call_set_name() for the asynchronous version of this method.
|
A StoragedPartitionProxy. |
|
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 storaged_partition_complete_set_name (StoragedPartition *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 StoragedPartition. |
|
A GDBusMethodInvocation. [transfer full] |
void storaged_partition_call_set_flags (StoragedPartition *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 storaged_partition_call_set_flags_finish() to get the result of the operation.
See storaged_partition_call_set_flags_sync() for the synchronous, blocking version of this method.
|
A StoragedPartitionProxy. |
|
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 storaged_partition_call_set_flags_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_call_set_flags().
|
A StoragedPartitionProxy. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_partition_call_set_flags(). |
|
Return location for error or NULL. |
Returns : |
TRUE if the call succeded, FALSE if error is set. [skip]
|
gboolean storaged_partition_call_set_flags_sync (StoragedPartition *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 storaged_partition_call_set_flags() for the asynchronous version of this method.
|
A StoragedPartitionProxy. |
|
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 storaged_partition_complete_set_flags (StoragedPartition *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 StoragedPartition. |
|
A GDBusMethodInvocation. [transfer full] |
guint storaged_partition_get_number (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value. |
const gchar * storaged_partition_get_type_ (StoragedPartition *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 storaged_partition_dup_type_() if on another thread.
|
A StoragedPartition. |
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 storaged_partition_get_offset (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value. |
guint64 storaged_partition_get_size (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value. |
guint64 storaged_partition_get_flags (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value. |
const gchar * storaged_partition_get_name (StoragedPartition *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 storaged_partition_dup_name() if on another thread.
|
A StoragedPartition. |
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 * storaged_partition_get_uuid (StoragedPartition *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 storaged_partition_dup_uuid() if on another thread.
|
A StoragedPartition. |
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 * storaged_partition_get_table (StoragedPartition *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 storaged_partition_dup_table() if on another thread.
|
A StoragedPartition. |
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 storaged_partition_get_is_container (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value. |
gboolean storaged_partition_get_is_contained (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value. |
gchar * storaged_partition_dup_type_ (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * storaged_partition_dup_name (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * storaged_partition_dup_uuid (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
gchar * storaged_partition_dup_table (StoragedPartition *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 StoragedPartition. |
Returns : |
The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]
|
void storaged_partition_set_number (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
void storaged_partition_set_type_ (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
void storaged_partition_set_offset (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
void storaged_partition_set_size (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
void storaged_partition_set_flags (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
void storaged_partition_set_name (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
void storaged_partition_set_uuid (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
void storaged_partition_set_table (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
void storaged_partition_set_is_container (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
void storaged_partition_set_is_contained (StoragedPartition *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 StoragedPartition. |
|
The value to set. |
struct StoragedPartitionProxy {
};
The StoragedPartitionProxy structure contains only private data and should only be accessed using the provided API.
struct StoragedPartitionProxyClass {
GDBusProxyClass parent_class;
};
Class structure for StoragedPartitionProxy.
void storaged_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.storaged.Storaged.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 storaged_partition_proxy_new_finish() to get the result of the operation.
See storaged_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. |
StoragedPartition * storaged_partition_proxy_new_finish (GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_proxy_new().
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_partition_proxy_new(). |
|
Return location for error or NULL
|
Returns : |
The constructed proxy object or NULL if error is set. [transfer full][type StoragedPartitionProxy]
|
StoragedPartition * storaged_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.storaged.Storaged.Partition. See g_dbus_proxy_new_sync() for more details.
The calling thread is blocked until a reply is received.
See storaged_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 StoragedPartitionProxy]
|
void storaged_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 storaged_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 storaged_partition_proxy_new_for_bus_finish() to get the result of the operation.
See storaged_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. |
StoragedPartition * storaged_partition_proxy_new_for_bus_finish (GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_proxy_new_for_bus().
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to storaged_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 StoragedPartitionProxy]
|
StoragedPartition * storaged_partition_proxy_new_for_bus_sync (GBusType bus_type,GDBusProxyFlags flags,const gchar *name,const gchar *object_path,GCancellable *cancellable,GError **error);
Like storaged_partition_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See storaged_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 StoragedPartitionProxy]
|
struct StoragedPartitionSkeleton;
The StoragedPartitionSkeleton structure contains only private data and should only be accessed using the provided API.
struct StoragedPartitionSkeletonClass {
GDBusInterfaceSkeletonClass parent_class;
};
Class structure for StoragedPartitionSkeleton.
StoragedPartition * storaged_partition_skeleton_new (void);
Creates a skeleton object for the D-Bus interface org.storaged.Storaged.Partition.
Returns : |
The skeleton object. [transfer full][type StoragedPartitionSkeleton] |