Commit 8acaa3e7 authored by Carlos Garnacho's avatar Carlos Garnacho

libtracker-sparql: Remove get_direct(_async|_finish)

Those functions have been deprecated for years and are being removed
for 2.0. Use tracker_sparql_connection_get() and async variants instead,
that will smartly use the direct connection underneath.
parent ea788e17
......@@ -132,9 +132,6 @@ TrackerSparqlConnection
tracker_sparql_connection_get
tracker_sparql_connection_get_async
tracker_sparql_connection_get_finish
tracker_sparql_connection_get_direct
tracker_sparql_connection_get_direct_async
tracker_sparql_connection_get_direct_finish
tracker_sparql_connection_query
tracker_sparql_connection_query_async
tracker_sparql_connection_query_finish
......
......@@ -326,14 +326,6 @@ public static Tracker.Sparql.Connection tracker_sparql_connection_get (Cancellab
return Tracker.Sparql.Backend.get_internal (cancellable);
}
public async static Tracker.Sparql.Connection tracker_sparql_connection_get_direct_async (Cancellable? cancellable = null) throws Tracker.Sparql.Error, IOError, DBusError, SpawnError {
return yield Tracker.Sparql.Backend.get_internal_async (cancellable);
}
public static Tracker.Sparql.Connection tracker_sparql_connection_get_direct (Cancellable? cancellable = null) throws Tracker.Sparql.Error, IOError, DBusError, SpawnError {
return Tracker.Sparql.Backend.get_internal (cancellable);
}
public static Tracker.Sparql.Connection tracker_sparql_connection_remote_new (string url_base) {
return new Tracker.Remote.Connection (url_base);
}
......
......@@ -156,65 +156,6 @@ public abstract class Tracker.Sparql.Connection : Object {
*/
public extern static new Connection get (Cancellable? cancellable = null) throws Sparql.Error, IOError, DBusError, SpawnError;
/**
* tracker_sparql_connection_get_direct_finish:
* @_res_: The #GAsyncResult from the callback used to return the #TrackerSparqlConnection
* @error: The error which occurred or %NULL
*
* This function is called from the callback provided for
* tracker_sparql_connection_get_direct_async() to return the connection
* requested or an error in cases of failure.
*
* Returns: a new #TrackerSparqlConnection. Call g_object_unref() on the
* object when no longer used.
*
* Since: 0.10
*
* Deprecated: 0.12: Use tracker_sparql_connection_get_finish instead.
*/
/**
* tracker_sparql_connection_get_direct_async:
* @cancellable: a #GCancellable used to cancel the operation
* @_callback_: user-defined #GAsyncReadyCallback to be called when
* asynchronous operation is finished.
* @_user_data_: user-defined data to be passed to @_callback_
*
* A #TrackerSparqlConnection is returned asynchronously in the @_callback_ of
* your choosing. You must call
* tracker_sparql_connection_get_direct_finish() to find out if the
* connection was returned without error.
*
* See also: tracker_sparql_connection_get_direct().
*
* Since: 0.10
*
* Deprecated: 0.12: Use tracker_sparql_connection_get_async instead.
*/
[Version (deprecated=true)]
public extern async static Connection get_direct_async (Cancellable? cancellable = null) throws Sparql.Error, IOError, DBusError, SpawnError;
/**
* tracker_sparql_connection_get_direct:
* @cancellable: a #GCancellable used to cancel the operation
* @error: #GError for error reporting.
*
* This behaves the same way tracker_sparql_connection_get() does, however,
* the #TrackerSparqlConnection can only be used for read-only requests.
* The advantage to this API over the tracker_sparql_connection_get()
* function is that it will use direct-access. This is faster than using
* D-Bus which may be the case with tracker_sparql_connection_get().
*
* Returns: a new #TrackerSparqlConnection. Call g_object_unref() on the
* object when no longer used.
*
* Since: 0.10
*
* Deprecated: 0.12: Use tracker_sparql_connection_get instead.
*/
[Version (deprecated=true)]
public extern static new Connection get_direct (Cancellable? cancellable = null) throws Sparql.Error, IOError, DBusError, SpawnError;
/**
* tracker_sparql_connection_remote_new:
*
......
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