DBusMethodInvocation
Object Hierarchy:
Description:
Namespace: GLib
Package: gio-2.0
Content:
Creation methods:
Methods:
-
public weak DBusConnection get_connection ()
-
public unowned string get_interface_name ()
Gets the name of the D-Bus interface the method was invoked on.
-
public weak DBusMessage get_message ()
Gets the DBusMessage for the method invocation. This
is useful if you need to use low-level protocol features, such as UNIX file descriptor passing, that cannot be properly expressed in
the Variant API.
-
public weak DBusMethodInfo get_method_info ()
Gets information about the method call, if any.
-
public unowned string get_method_name ()
Gets the name of the method that was invoked.
-
public unowned string get_object_path ()
Gets the object path the method was invoked on.
-
public weak Variant get_parameters ()
Gets the parameters of the method invocation. If there are no input parameters then this will return a
GVariant with 0 children rather than NULL.
-
public unowned string get_sender ()
Gets the bus name that invoked the method.
-
public void* get_user_data ()
-
public void return_dbus_error (string error_name, string error_message)
Finishes handling a D-Bus method call by returning an error.
-
public void return_error (Quark domain, int code, string format)
Finishes handling a D-Bus method call by returning an error.
-
public void return_error_literal (Quark domain, int code, string message)
-
public void return_error_valist (Quark domain, int code, string format, void* var_args)
-
public void return_gerror (Error error)
Like return_error but takes a
Error instead of the error domain, error code and message.
-
public void return_value (Variant? parameters)
Finishes handling a D-Bus method call by returning parameters. If the parameters
GVariant is floating, it is consumed.
-
public void return_value_with_unix_fd_list (Variant? parameters, UnixFDList? fd_list)
-
public void take_error (Error error)
Like return_gerror but takes
ownership of error so the caller does not need to free it.