| Top | 
StoragedPartitionStoragedPartition — Generated C code for the org.storaged.Storaged.Partition D-Bus interface  | 
| StoragedPartition | |
| struct | StoragedPartitionIface | 
| struct | StoragedPartitionProxy | 
| struct | StoragedPartitionProxyClass | 
| struct | StoragedPartitionSkeleton | 
| struct | StoragedPartitionSkeletonClass | 
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.
GDBusInterfaceInfo *
storaged_partition_interface_info (void);
Gets a machine-readable description of the org.storaged.Storaged.Partition D-Bus interface.
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.
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.
gboolean storaged_partition_call_delete_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_call_delete().
proxy  | 
||
res  | 
The GAsyncResult obtained from the GAsyncReadyCallback passed to   | 
|
error  | 
Return location for error or   | 
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.
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.
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.
gboolean storaged_partition_call_set_type_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_call_set_type().
proxy  | 
||
res  | 
The GAsyncResult obtained from the GAsyncReadyCallback passed to   | 
|
error  | 
Return location for error or   | 
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.
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.
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.
gboolean storaged_partition_call_set_name_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_call_set_name().
proxy  | 
||
res  | 
The GAsyncResult obtained from the GAsyncReadyCallback passed to   | 
|
error  | 
Return location for error or   | 
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.
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.
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.
gboolean storaged_partition_call_set_flags_finish (StoragedPartition *proxy,GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_call_set_flags().
proxy  | 
||
res  | 
The GAsyncResult obtained from the GAsyncReadyCallback passed to   | 
|
error  | 
Return location for error or   | 
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.
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.
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.
[skip]
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.[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.[skip]
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.[skip]
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.[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
[skip]
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.
connection  | 
A GDBusConnection.  | 
|
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   | 
StoragedPartition * storaged_partition_proxy_new_finish (GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_proxy_new().
res  | 
The GAsyncResult obtained from the GAsyncReadyCallback passed to   | 
|
error  | 
Return location for error or   | 
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.
connection  | 
A GDBusConnection.  | 
|
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   | 
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.
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   | 
StoragedPartition * storaged_partition_proxy_new_for_bus_finish (GAsyncResult *res,GError **error);
Finishes an operation started with storaged_partition_proxy_new_for_bus().
res  | 
The GAsyncResult obtained from the GAsyncReadyCallback passed to   | 
|
error  | 
Return location for error or   | 
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.
StoragedPartition *
storaged_partition_skeleton_new (void);
Creates a skeleton object for the D-Bus interface org.storaged.Storaged.Partition.
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.  | 
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.
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.