It derives from <GObject>.
Abstract base class for D-Bus interfaces on the service side.
Flags from the
<GDBusInterfaceSkeletonFlags>
enumeration.
Its value is a
<GDBusInterfaceSkeletonFlags>
(or, to set it, a list of its symbols, or one of them).
Set it with (set! (dbus-interface-skeleton:g-flags self) value).
Exports self at object-path on connection.
This can be called multiple times to export the same self onto multiple connections however the object-path provided must be the same for all connections.
Use dbus-interface-skeleton:unexport to unexport the object.
Passed: a <GDBusInterfaceSkeleton>.
The D-Bus interface to export.
Passed: a <GDBusConnection>.
A <GDBusConnection> to export self
on.
Passed: a string.
The path to export the interface at.
Returned: a boolean.
#t if the interface was exported on connection, otherwise
#f with error set.
If self has outstanding changes, request for these changes to be emitted immediately.
For example, an exported D-Bus interface may queue up property changes
and emit the org.freedesktop.DBus.Properties.PropertiesChanged
signal later (e.g. in an idle handler). This technique is useful for
collapsing multiple property changes into one.
Passed: a <GDBusInterfaceSkeleton>.
Gets the first connection that self is exported on, if any.
Passed: a <GDBusInterfaceSkeleton>.
Returned: a <GDBusConnection>, or
#f.
A <GDBusConnection> or #f if
self is not exported anywhere. Do not free, the object belongs to
self.
Gets a list of the connections that self is exported on.
Passed: a <GDBusInterfaceSkeleton>.
Returned: a list, each a <GDBusConnection>.
A list of all the connections that self is exported on. The
returned list should be freed with g_list_free() after each
element has been freed with object:unref.
Gets the
<GDBusInterfaceSkeletonFlags>
that describes what the behavior of self
Passed: a <GDBusInterfaceSkeleton>.
Returned: a
<GDBusInterfaceSkeletonFlags>.
One or more flags from the
<GDBusInterfaceSkeletonFlags>
enumeration.
Gets D-Bus introspection information for the D-Bus interface implemented by self.
Passed: a <GDBusInterfaceSkeleton>.
Returned: a <GDBusInterfaceInfo>.
A <GDBusInterfaceInfo> (never
#f). Do not free.
Gets the object path that self is exported on, if any.
Passed: a <GDBusInterfaceSkeleton>.
Returned: a string, or #f.
A string owned by self or #f if self is not exported
anywhere. Do not free, the string belongs to self.
Gets all D-Bus properties for self.
Passed: a <GDBusInterfaceSkeleton>.
Returned: a <GVariant>.
A <GVariant> of type ’a{sv}’. Free with
variant:unref.
Checks if self is exported on connection.
Passed: a <GDBusInterfaceSkeleton>.
Passed: a <GDBusConnection>.
Returned: a boolean.
#t if self is exported on connection, #f
otherwise.
Sets flags describing what the behavior of skeleton should be.
Passed: a <GDBusInterfaceSkeleton>.
Passed: a
<GDBusInterfaceSkeletonFlags>,
or a list of its symbols, or one of them.
Flags from the
<GDBusInterfaceSkeletonFlags>
enumeration.
Stops exporting self on all connections it is exported on.
To unexport self from only a single connection, use
dbus-interface-skeleton:unexport-from-connection
Passed: a <GDBusInterfaceSkeleton>.
Stops exporting self on connection.
To stop exporting on all connections the interface is exported on, use
dbus-interface-skeleton:unexport.
Passed: a <GDBusInterfaceSkeleton>.
Passed: a <GDBusConnection>.
Connect a handler with (connect object
dbus-interface-skeleton:g-authorize-method handler). It is called as
(handler self invocation) ⇒ %return.
Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.
Note that this signal is emitted in a thread dedicated to handling the method call so handlers are allowed to perform blocking IO. This means that it is appropriate to call e.g. polkit_authority_check_authorization_sync() with the POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION flag set.
If #f is returned then no further handlers are run and the signal
handler must take a reference to invocation and finish handling
the call (e.g. return an error via
g_dbus_method_invocation_return_error()).
Otherwise, if #t is returned, signal emission continues. If no
handlers return #f, then the method is dispatched. If
interface has an enclosing
<GDBusObjectSkeleton>, then the
dbus-object-skeleton:authorize-method signal
handlers run before the handlers for this signal.
The default class handler just returns #t.
Please note that the common case is optimized: if no signals handlers
are connected and the default class handler isn’t overridden (for both
interface and the enclosing
<GDBusObjectSkeleton>, if any) and
dbus-interface-skeleton:g-flags does not have the
handle-method-invocations-in-thread
flags set, no dedicated thread is ever used and the call will be handled
in the same thread as the object that interface belongs to was
exported in.
Passed: a <GDBusInterfaceSkeleton>.
Passed: a <GDBusMethodInvocation>.
Returned: a boolean.
#t if the call is authorized, #f otherwise.
If self has outstanding changes, request for these changes to be emitted immediately.
For example, an exported D-Bus interface may queue up property changes
and emit the org.freedesktop.DBus.Properties.PropertiesChanged
signal later (e.g. in an idle handler). This technique is useful for
collapsing multiple property changes into one.
To override it in a new class, give register-type #:vfuncs
`((flush . ,procedure)). The procedure is called as (procedure
self).
Passed: the class whose implementation to call:
<GDBusInterfaceSkeleton>, or a class
that derives from it, or its GType number.
Passed: a <GDBusInterfaceSkeleton>.
Signal class handler for the dbus-interface-skeleton:g-authorize-method signal.
To override it in a new class, give register-type #:vfuncs
`((g-authorize-method . ,procedure)). The procedure is called as
(procedure self invocation) ⇒ %return.
Passed: the class whose implementation to call:
<GDBusInterfaceSkeleton>, or a class
that derives from it, or its GType number.
Passed: a <GDBusInterfaceSkeleton>.
Passed: a <GDBusMethodInvocation>.
Returned: a boolean.
Gets D-Bus introspection information for the D-Bus interface implemented by self.
To override it in a new class, give register-type #:vfuncs
`((get-info . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<GDBusInterfaceSkeleton>, or a class
that derives from it, or its GType number.
Passed: a <GDBusInterfaceSkeleton>.
Returned: a <GDBusInterfaceInfo>.
A <GDBusInterfaceInfo> (never
#f). Do not free.
Gets all D-Bus properties for self.
To override it in a new class, give register-type #:vfuncs
`((get-properties . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<GDBusInterfaceSkeleton>, or a class
that derives from it, or its GType number.
Passed: a <GDBusInterfaceSkeleton>.
Returned: a <GVariant>.
A <GVariant> of type ’a{sv}’. Free with
variant:unref.