Commit 95a0a472 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-sparql: Add some missing docs and introspection annotations

parent c4ac9dea
Pipeline #143595 failed with stage
in 1 minute and 37 seconds
......@@ -448,6 +448,18 @@ tracker_sparql_connection_query_statement (TrackerSparqlConnection *connection,
error);
}
/**
* tracker_sparql_connection_create_notifier:
* @connection: a #TrackerSparqlConnection
* @flags: flags to modify notifier behavior
*
* Creates a new #TrackerNotifier to notify about changes in @connection.
* See #TrackerNotifier documentation for information about how to use this
* object.
*
* Returns: (transfer full): a newly created notifier. Free with g_object_unref()
* when no longer needed.
**/
TrackerNotifier *
tracker_sparql_connection_create_notifier (TrackerSparqlConnection *connection,
TrackerNotifierFlags flags)
......
......@@ -110,6 +110,14 @@ tracker_endpoint_init (TrackerEndpoint *endpoint)
{
}
/**
* tracker_endpoint_get_sparql_connection:
* @endpoint: a #TrackerEndpoint
*
* Returns the #TrackerSparqlConnection that this endpoint proxies.
*
* Returns: (transfer none): The proxied SPARQL connection
**/
TrackerSparqlConnection *
tracker_endpoint_get_sparql_connection (TrackerEndpoint *endpoint)
{
......
......@@ -158,6 +158,14 @@ tracker_sparql_statement_class_init (TrackerSparqlStatementClass *klass)
g_object_class_install_properties (object_class, N_PROPS, props);
}
/**
* tracker_sparql_statement_get_connection:
* @stmt: a #TrackerSparqlStatement
*
* Returns the #TrackerSparqlConnection that this statement was created from.
*
* Returns: (transfer none): The SPARQL connection of this statement.
**/
TrackerSparqlConnection *
tracker_sparql_statement_get_connection (TrackerSparqlStatement *stmt)
{
......@@ -168,6 +176,14 @@ tracker_sparql_statement_get_connection (TrackerSparqlStatement *stmt)
return priv->connection;
}
/**
* tracker_sparql_statement_get_sparql:
* @stmt: a #TrackerSparqlStatement
*
* Returns the SPARQL string that this prepared statement holds.
*
* Returns: The contained SPARQL query
**/
const gchar *
tracker_sparql_statement_get_sparql (TrackerSparqlStatement *stmt)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment