Top |
UDisksBlockBcacheUDisksBlockBcache — Generated C code for the org.freedesktop.UDisks2.Block.Bcache D-Bus interface |
guint64 | block-size | Read / Write |
guint64 | bypass-hits | Read / Write |
guint64 | bypass-misses | Read / Write |
guint64 | cache-size | Read / Write |
guint64 | cache-used | Read / Write |
guint64 | hits | Read / Write |
guint64 | misses | Read / Write |
gchar * | mode | Read / Write |
gchar * | state | Read / Write |
UDisksBlockBcache | |
struct | UDisksBlockBcacheIface |
struct | UDisksBlockBcacheProxy |
struct | UDisksBlockBcacheProxyClass |
struct | UDisksBlockBcacheSkeleton |
struct | UDisksBlockBcacheSkeletonClass |
GInterface ╰── UDisksBlockBcache GObject ├── GDBusInterfaceSkeleton │ ╰── UDisksBlockBcacheSkeleton ╰── GDBusProxy ╰── UDisksBlockBcacheProxy
UDisksBlockBcacheProxy implements GDBusInterface, GInitable, GAsyncInitable and UDisksBlockBcache.
UDisksBlockBcacheSkeleton implements GDBusInterface and UDisksBlockBcache.
UDisksBlockBcache is implemented by UDisksBlockBcacheProxy and UDisksBlockBcacheSkeleton.
This section contains code for working with the org.freedesktop.UDisks2.Block.Bcache D-Bus interface in C.
void udisks_block_bcache_call_bcache_destroy (UDisksBlockBcache *proxy
,GVariant *arg_options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the BcacheDestroy()
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_block_bcache_call_bcache_destroy_finish()
to get the result of the operation.
See udisks_block_bcache_call_bcache_destroy_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.4.0
gboolean udisks_block_bcache_call_bcache_destroy_finish (UDisksBlockBcache *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_block_bcache_call_bcache_destroy()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.4.0
gboolean udisks_block_bcache_call_bcache_destroy_sync (UDisksBlockBcache *proxy
,GVariant *arg_options
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the BcacheDestroy()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See udisks_block_bcache_call_bcache_destroy()
for the asynchronous version of this method.
proxy |
||
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
Since: 2.4.0
void udisks_block_bcache_call_set_mode (UDisksBlockBcache *proxy
,const gchar *arg_mode
,GVariant *arg_options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously invokes the SetMode()
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_block_bcache_call_set_mode_finish()
to get the result of the operation.
See udisks_block_bcache_call_set_mode_sync()
for the synchronous, blocking version of this method.
proxy |
||
arg_mode |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.4.0
gboolean udisks_block_bcache_call_set_mode_finish (UDisksBlockBcache *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_block_bcache_call_set_mode()
.
proxy |
||
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
Since: 2.4.0
gboolean udisks_block_bcache_call_set_mode_sync (UDisksBlockBcache *proxy
,const gchar *arg_mode
,GVariant *arg_options
,GCancellable *cancellable
,GError **error
);
Synchronously invokes the SetMode()
D-Bus method on proxy
. The calling thread is blocked until a reply is received.
See udisks_block_bcache_call_set_mode()
for the asynchronous version of this method.
proxy |
||
arg_mode |
Argument to pass with the method invocation. |
|
arg_options |
Argument to pass with the method invocation. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
Since: 2.4.0
void udisks_block_bcache_complete_bcache_destroy (UDisksBlockBcache *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the BcacheDestroy()
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.
Since: 2.4.0
void udisks_block_bcache_complete_set_mode (UDisksBlockBcache *object
,GDBusMethodInvocation *invocation
);
Helper function used in service implementations to finish handling invocations of the SetMode()
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.
Since: 2.4.0
gchar *
udisks_block_bcache_dup_mode (UDisksBlockBcache *object
);
Gets a copy of the "Mode" 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_block_bcache_dup_state (UDisksBlockBcache *object
);
Gets a copy of the "State" 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_block_bcache_get_block_size (UDisksBlockBcache *object
);
Gets the value of the "BlockSize" 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_block_bcache_get_bypass_hits (UDisksBlockBcache *object
);
Gets the value of the "BypassHits" 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_block_bcache_get_bypass_misses (UDisksBlockBcache *object
);
Gets the value of the "BypassMisses" 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_block_bcache_get_cache_size (UDisksBlockBcache *object
);
Gets the value of the "CacheSize" 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_block_bcache_get_cache_used (UDisksBlockBcache *object
);
Gets the value of the "CacheUsed" 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_block_bcache_get_hits (UDisksBlockBcache *object
);
Gets the value of the "Hits" 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_block_bcache_get_misses (UDisksBlockBcache *object
);
Gets the value of the "Misses" 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_block_bcache_get_mode (UDisksBlockBcache *object
);
Gets the value of the "Mode" 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_block_bcache_dup_mode()
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_block_bcache_get_state (UDisksBlockBcache *object
);
Gets the value of the "State" 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_block_bcache_dup_state()
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]
GDBusInterfaceInfo *
udisks_block_bcache_interface_info (void
);
Gets a machine-readable description of the org.freedesktop.UDisks2.Block.Bcache D-Bus interface.
guint udisks_block_bcache_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the UDisksBlockBcache 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_block_bcache_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.Block.Bcache. 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_block_bcache_proxy_new_finish()
to get the result of the operation.
See udisks_block_bcache_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 |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
UDisksBlockBcache * udisks_block_bcache_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_block_bcache_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 UDisksBlockBcacheProxy]
void udisks_block_bcache_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_block_bcache_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_block_bcache_proxy_new_for_bus_finish()
to get the result of the operation.
See udisks_block_bcache_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 |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
UDisksBlockBcache * udisks_block_bcache_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with udisks_block_bcache_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 UDisksBlockBcacheProxy]
UDisksBlockBcache * udisks_block_bcache_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like udisks_block_bcache_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See udisks_block_bcache_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 |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type UDisksBlockBcacheProxy]
UDisksBlockBcache * udisks_block_bcache_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.Block.Bcache. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See udisks_block_bcache_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 |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type UDisksBlockBcacheProxy]
void udisks_block_bcache_set_block_size (UDisksBlockBcache *object
,guint64 value
);
Sets the "BlockSize" 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_block_bcache_set_bypass_hits (UDisksBlockBcache *object
,guint64 value
);
Sets the "BypassHits" 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_block_bcache_set_bypass_misses (UDisksBlockBcache *object
,guint64 value
);
Sets the "BypassMisses" 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_block_bcache_set_cache_size (UDisksBlockBcache *object
,guint64 value
);
Sets the "CacheSize" 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_block_bcache_set_cache_used (UDisksBlockBcache *object
,guint64 value
);
Sets the "CacheUsed" 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_block_bcache_set_hits (UDisksBlockBcache *object
,guint64 value
);
Sets the "Hits" 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_block_bcache_set_misses (UDisksBlockBcache *object
,guint64 value
);
Sets the "Misses" 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_block_bcache_set_mode (UDisksBlockBcache *object
,const gchar *value
);
Sets the "Mode" 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_block_bcache_set_state (UDisksBlockBcache *object
,const gchar *value
);
Sets the "State" 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]
UDisksBlockBcache *
udisks_block_bcache_skeleton_new (void
);
Creates a skeleton object for the D-Bus interface org.freedesktop.UDisks2.Block.Bcache.
typedef struct _UDisksBlockBcache UDisksBlockBcache;
Abstract interface type for the D-Bus interface org.freedesktop.UDisks2.Block.Bcache.
struct UDisksBlockBcacheIface { GTypeInterface parent_iface; guint64 (*get_block_size) (UDisksBlockBcache *object); guint64 (*get_bypass_hits) (UDisksBlockBcache *object); guint64 (*get_bypass_misses) (UDisksBlockBcache *object); guint64 (*get_cache_size) (UDisksBlockBcache *object); guint64 (*get_cache_used) (UDisksBlockBcache *object); guint64 (*get_hits) (UDisksBlockBcache *object); guint64 (*get_misses) (UDisksBlockBcache *object); const gchar * (*get_mode) (UDisksBlockBcache *object); const gchar * (*get_state) (UDisksBlockBcache *object); gboolean (*handle_bcache_destroy) ( UDisksBlockBcache *object, GDBusMethodInvocation *invocation, GVariant *arg_options); gboolean (*handle_set_mode) ( UDisksBlockBcache *object, GDBusMethodInvocation *invocation, const gchar *arg_mode, GVariant *arg_options); };
Virtual table for the D-Bus interface org.freedesktop.UDisks2.Block.Bcache.
GTypeInterface |
The parent interface. |
|
Getter for the “block-size” property. |
||
Getter for the “bypass-hits” property. |
||
Getter for the “bypass-misses” property. |
||
Getter for the “cache-size” property. |
||
Getter for the “cache-used” property. |
||
Getter for the “hits” property. |
||
Getter for the “misses” property. |
||
Getter for the “mode” property. |
||
Getter for the “state” property. |
||
Handler for the “handle-bcache-destroy” signal. |
||
Handler for the “handle-set-mode” signal. |
struct UDisksBlockBcacheProxy;
The UDisksBlockBcacheProxy structure contains only private data and should only be accessed using the provided API.
struct UDisksBlockBcacheProxyClass { GDBusProxyClass parent_class; };
Class structure for UDisksBlockBcacheProxy.
struct UDisksBlockBcacheSkeleton;
The UDisksBlockBcacheSkeleton structure contains only private data and should only be accessed using the provided API.
struct UDisksBlockBcacheSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for UDisksBlockBcacheSkeleton.
“block-size”
property“block-size” guint64
Represents the D-Bus property "BlockSize".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: 0
“bypass-hits”
property“bypass-hits” guint64
Represents the D-Bus property "BypassHits".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: 0
“bypass-misses”
property“bypass-misses” guint64
Represents the D-Bus property "BypassMisses".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: 0
“cache-size”
property“cache-size” guint64
Represents the D-Bus property "CacheSize".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: 0
“cache-used”
property“cache-used” guint64
Represents the D-Bus property "CacheUsed".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: 0
“hits”
property“hits” guint64
Represents the D-Bus property "Hits".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: 0
“misses”
property“misses” guint64
Represents the D-Bus property "Misses".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: 0
“mode”
property“mode” gchar *
Represents the D-Bus property "Mode".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: NULL
“state”
property“state” gchar *
Represents the D-Bus property "State".
Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
Flags: Read / Write
Default value: NULL
“handle-bcache-destroy”
signalgboolean user_function (UDisksBlockBcache *object, GDBusMethodInvocation *invocation, GVariant *arg_options, gpointer user_data)
Signal emitted when a remote caller is invoking the BcacheDestroy()
D-Bus method.
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call udisks_block_bcache_complete_bcache_destroy()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
arg_options |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.4.0
“handle-set-mode”
signalgboolean user_function (UDisksBlockBcache *object, GDBusMethodInvocation *invocation, gchar *arg_mode, GVariant *arg_options, gpointer user_data)
Signal emitted when a remote caller is invoking the SetMode()
D-Bus method.
If a signal handler returns TRUE
, it means the signal handler will handle the invocation (e.g. take a reference to invocation
and eventually call udisks_block_bcache_complete_set_mode()
or e.g. g_dbus_method_invocation_return_error()
on it) and no order signal handlers will run. If no signal handler handles the invocation, the G_DBUS_ERROR_UNKNOWN_METHOD
error is returned.
object |
||
invocation |
||
arg_mode |
Argument passed by remote caller. |
|
arg_options |
Argument passed by remote caller. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.4.0