bus_new


Description:

public static Connection bus_new (string service_name, string? object_path, DBusConnection? dbus_connection = null) throws Error

service_name (nullable): The name of the D-Bus service to connect to, or null if not using a message bus.

Connects to a database owned by another process on the local machine via DBus.

When using a message bus (session/system), the service_name argument will be used to describe the remote endpoint, either by unique or well-known D-Bus names. If not using a message bus (e.g. peer-to-peer D-Bus connections) the service_name may be null.

The D-Bus object path of the remote endpoint will be given through object_path, null may be used to use the default `/org/freedesktop/Tracker3/Endpoint` path.

The D-Bus connection used to set up the connection may be given through the dbus_connection argument. Using null will resort to the default session bus.

Parameters:

object_path

The path to the object, or null to use the default.

dbus_connection

The [type@Gio.DBusConnection] to use, or null to use the session bus

Returns:

a new `TrackerSparqlConnection`.