Top | ![]() |
![]() |
![]() |
![]() |
StoragedBlockBcacheStoragedBlockBcache — Generated C code for the org.storaged.Storaged.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 |
StoragedBlockBcache | |
struct | StoragedBlockBcacheIface |
struct | StoragedBlockBcacheProxy |
struct | StoragedBlockBcacheProxyClass |
struct | StoragedBlockBcacheSkeleton |
struct | StoragedBlockBcacheSkeletonClass |
GInterface ╰── StoragedBlockBcache GObject ├── GDBusInterfaceSkeleton │ ╰── StoragedBlockBcacheSkeleton ╰── GDBusProxy ╰── StoragedBlockBcacheProxy
StoragedBlockBcacheProxy implements GDBusInterface, GInitable, GAsyncInitable and StoragedBlockBcache.
StoragedBlockBcacheSkeleton implements GDBusInterface and StoragedBlockBcache.
StoragedBlockBcache is implemented by StoragedBlockBcacheProxy and StoragedBlockBcacheSkeleton.
This section contains code for working with the org.storaged.Storaged.Block.Bcache D-Bus interface in C.
void storaged_block_bcache_call_bcache_destroy (StoragedBlockBcache *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 storaged_block_bcache_call_bcache_destroy_finish()
to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.4.0
gboolean storaged_block_bcache_call_bcache_destroy_finish (StoragedBlockBcache *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with storaged_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 storaged_block_bcache_call_bcache_destroy_sync (StoragedBlockBcache *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 storaged_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 |
[allow-none] |
error |
Return location for error or |
Since: 2.4.0
void storaged_block_bcache_call_set_mode (StoragedBlockBcache *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 storaged_block_bcache_call_set_mode_finish()
to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
Since: 2.4.0
gboolean storaged_block_bcache_call_set_mode_finish (StoragedBlockBcache *proxy
,GAsyncResult *res
,GError **error
);
Finishes an operation started with storaged_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 storaged_block_bcache_call_set_mode_sync (StoragedBlockBcache *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 storaged_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 |
[allow-none] |
error |
Return location for error or |
Since: 2.4.0
void storaged_block_bcache_complete_bcache_destroy (StoragedBlockBcache *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 storaged_block_bcache_complete_set_mode (StoragedBlockBcache *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 *
storaged_block_bcache_dup_mode (StoragedBlockBcache *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 *
storaged_block_bcache_dup_state (StoragedBlockBcache *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
storaged_block_bcache_get_block_size (StoragedBlockBcache *object
);
Gets the value of the "block_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_block_bcache_get_bypass_hits (StoragedBlockBcache *object
);
Gets the value of the "bypass_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
storaged_block_bcache_get_bypass_misses
(StoragedBlockBcache *object
);
Gets the value of the "bypass_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]
guint64
storaged_block_bcache_get_cache_size (StoragedBlockBcache *object
);
Gets the value of the "cache_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_block_bcache_get_cache_used (StoragedBlockBcache *object
);
Gets the value of the "cache_used" 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_block_bcache_get_hits (StoragedBlockBcache *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
storaged_block_bcache_get_misses (StoragedBlockBcache *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 *
storaged_block_bcache_get_mode (StoragedBlockBcache *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 storaged_block_bcache_dup_mode()
if on another thread.[skip]
const gchar *
storaged_block_bcache_get_state (StoragedBlockBcache *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 storaged_block_bcache_dup_state()
if on another thread.[skip]
GDBusInterfaceInfo *
storaged_block_bcache_interface_info (void
);
Gets a machine-readable description of the org.storaged.Storaged.Block.Bcache D-Bus interface.
guint storaged_block_bcache_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the StoragedBlockBcache interface for a concrete class. The properties are overridden in the order they are defined.
void storaged_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.storaged.Storaged.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 storaged_block_bcache_proxy_new_finish()
to get the result of the operation.
See storaged_block_bcache_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 |
StoragedBlockBcache * storaged_block_bcache_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with storaged_block_bcache_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
void storaged_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 storaged_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 storaged_block_bcache_proxy_new_for_bus_finish()
to get the result of the operation.
See storaged_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 |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
StoragedBlockBcache * storaged_block_bcache_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with storaged_block_bcache_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
StoragedBlockBcache * storaged_block_bcache_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like storaged_block_bcache_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See storaged_block_bcache_proxy_new_for_bus()
for the asynchronous version of this constructor.
StoragedBlockBcache * storaged_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.storaged.Storaged.Block.Bcache. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See storaged_block_bcache_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_block_bcache_set_block_size (StoragedBlockBcache *object
,guint64 value
);
Sets the "block_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_block_bcache_set_bypass_hits (StoragedBlockBcache *object
,guint64 value
);
Sets the "bypass_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 storaged_block_bcache_set_bypass_misses (StoragedBlockBcache *object
,guint64 value
);
Sets the "bypass_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 storaged_block_bcache_set_cache_size (StoragedBlockBcache *object
,guint64 value
);
Sets the "cache_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_block_bcache_set_cache_used (StoragedBlockBcache *object
,guint64 value
);
Sets the "cache_used" 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_block_bcache_set_hits (StoragedBlockBcache *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 storaged_block_bcache_set_misses (StoragedBlockBcache *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 storaged_block_bcache_set_mode (StoragedBlockBcache *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 storaged_block_bcache_set_state (StoragedBlockBcache *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]
StoragedBlockBcache *
storaged_block_bcache_skeleton_new (void
);
Creates a skeleton object for the D-Bus interface org.storaged.Storaged.Block.Bcache.
typedef struct _StoragedBlockBcache StoragedBlockBcache;
Abstract interface type for the D-Bus interface org.storaged.Storaged.Block.Bcache.
struct StoragedBlockBcacheIface { GTypeInterface parent_iface; guint64 (*get_block_size) (StoragedBlockBcache *object); guint64 (*get_bypass_hits) (StoragedBlockBcache *object); guint64 (*get_bypass_misses) (StoragedBlockBcache *object); guint64 (*get_cache_size) (StoragedBlockBcache *object); guint64 (*get_cache_used) (StoragedBlockBcache *object); guint64 (*get_hits) (StoragedBlockBcache *object); guint64 (*get_misses) (StoragedBlockBcache *object); const gchar * (*get_mode) (StoragedBlockBcache *object); const gchar * (*get_state) (StoragedBlockBcache *object); gboolean (*handle_bcache_destroy) ( StoragedBlockBcache *object, GDBusMethodInvocation *invocation, GVariant *arg_options); gboolean (*handle_set_mode) ( StoragedBlockBcache *object, GDBusMethodInvocation *invocation, const gchar *arg_mode, GVariant *arg_options); };
Virtual table for the D-Bus interface org.storaged.Storaged.Block.Bcache.
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 StoragedBlockBcacheProxy;
The StoragedBlockBcacheProxy structure contains only private data and should only be accessed using the provided API.
struct StoragedBlockBcacheProxyClass { GDBusProxyClass parent_class; };
Class structure for StoragedBlockBcacheProxy.
struct StoragedBlockBcacheSkeleton;
The StoragedBlockBcacheSkeleton structure contains only private data and should only be accessed using the provided API.
struct StoragedBlockBcacheSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for StoragedBlockBcacheSkeleton.
“block-size”
property “block-size” guint64
Represents the D-Bus property "block_size".
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 "bypass_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
“bypass-misses”
property “bypass-misses” guint64
Represents the D-Bus property "bypass_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
“cache-size”
property “cache-size” guint64
Represents the D-Bus property "cache_size".
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 "cache_used".
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 (StoragedBlockBcache *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 storaged_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 |
A GDBusMethodInvocation. |
|
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 (StoragedBlockBcache *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 storaged_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 |
A GDBusMethodInvocation. |
|
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