Top | ![]() |
![]() |
![]() |
![]() |
This is a documentation preview for the next version of Tracker, generated from tracker.git commit 5f8a48f.
See the Tracker website for more documentation.
TrackerSparqlConnection * | sparql-connection | Read / Write / Construct Only |
GDBusConnection * | dbus-connection | Read / Write / Construct Only |
char * | object-path | Read / Write / Construct Only |
GTlsCertificate * | http-certificate | Read / Write / Construct Only |
guint | http-port | Read / Write / Construct Only |
TrackerEndpointDBus implements GInitable.
TrackerEndpointHttp implements GInitable.
TrackerEndpoint allows sharing data, either with other processes on the system via a Tracker-specific D-Bus API, or remote peers via the HTTP SPARQL protocol.
When it is shared in this way, other peers can connect to your database using
tracker_sparql_connection_bus_new()
or tracker_sparql_connection_remote_new()
,
and can also fetch data directly from SPARQL queries using the
SELECT { SERVICE ... }
syntax.
TrackerSparqlConnection *
tracker_endpoint_get_sparql_connection
(TrackerEndpoint *endpoint
);
Returns the TrackerSparqlConnection that this endpoint proxies.
TrackerEndpointDBus * tracker_endpoint_dbus_new (TrackerSparqlConnection *sparql_connection
,GDBusConnection *dbus_connection
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Registers a Tracker endpoint object at object_path
on dbus_connection
.
The default object path is "/org/freedesktop/Tracker3/Endpoint".
TrackerEndpointHttp * tracker_endpoint_http_new (TrackerSparqlConnection *sparql_connection
,guint port
,GTlsCertificate *certificate
,GCancellable *cancellable
,GError **error
);
Sets up a Tracker endpoint to listen via HTTP, in the given port
.
If certificate
is not NULL
, HTTPS may be used to connect to the
endpoint.
sparql_connection |
||
port |
HTTP port to listen to |
|
certificate |
certificate to use for encription, or |
[nullable] |
cancellable |
a GCancellable, or |
[nullable] |
error |
pointer to a GError |
Since: 3.1
typedef struct _TrackerEndpoint TrackerEndpoint;
The TrackerEndpoint object represents a public connection to a TrackerSparqlConnection.
typedef struct _TrackerEndpointDBus TrackerEndpointDBus;
The TrackerEndpointDBus object represents a public connection to a TrackerSparqlConnection on a DBus object path.
typedef struct _TrackerEndpointHttp TrackerEndpointHttp;
The TrackerEndpointHttp object represents a public connection to a TrackerSparqlConnection on a HTTP port.
“sparql-connection”
property“sparql-connection” TrackerSparqlConnection *
Sparql connection.
Owner: TrackerEndpoint
Flags: Read / Write / Construct Only
“dbus-connection”
property “dbus-connection” GDBusConnection *
DBus connection.
Owner: TrackerEndpointDBus
Flags: Read / Write / Construct Only
“object-path”
property “object-path” char *
DBus object path.
Owner: TrackerEndpointDBus
Flags: Read / Write / Construct Only
Default value: NULL
“http-certificate”
property “http-certificate” GTlsCertificate *
HTTP certificate.
Owner: TrackerEndpointHttp
Flags: Read / Write / Construct Only
“block-remote-address”
signalgboolean user_function (TrackerEndpointHttp *self, GSocketAddress *address, gpointer user_data)
Allows control over the connections stablished. The given address is that of the requesting peer.
Returning FALSE
in this handler allows the connection,
returning TRUE
blocks it. The default with no signal
handlers connected is FALSE
.
self |
The TrackerNotifier |
|
address |
The socket address of the remote connection |
|
user_data |
user data set when the signal handler was connected. |