[tracker/wip/carlosg/shuffle-dirs: 11/15] libtracker-sparql: Remove unnecessary CCode hints from tracker-data VAPI
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/shuffle-dirs: 11/15] libtracker-sparql: Remove unnecessary CCode hints from tracker-data VAPI
- Date: Sun, 3 Apr 2022 17:49:58 +0000 (UTC)
commit aa2785c8d3a8b76d08efec75a1c5ba2fb45d5d14
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Apr 3 14:19:35 2022 +0200
libtracker-sparql: Remove unnecessary CCode hints from tracker-data VAPI
These are unnecessary, so we can just remove them instead of moving these
hints to the new libtracker-sparql/core location.
src/libtracker-sparql/core/libtracker-data.vapi | 28 -------------------------
1 file changed, 28 deletions(-)
---
diff --git a/src/libtracker-sparql/core/libtracker-data.vapi b/src/libtracker-sparql/core/libtracker-data.vapi
index 6f7cb1dd3..b520bb92a 100644
--- a/src/libtracker-sparql/core/libtracker-data.vapi
+++ b/src/libtracker-sparql/core/libtracker-data.vapi
@@ -18,7 +18,6 @@
*/
namespace Tracker {
- [CCode (cheader_filename = "libtracker-data/tracker-db-manager.h")]
public enum DB {
UNKNOWN,
COMMON,
@@ -27,7 +26,6 @@ namespace Tracker {
CONTENTS
}
- [CCode (cprefix = "TRACKER_DB_", cheader_filename = "libtracker-data/tracker-db-interface.h")]
public errordomain DBInterfaceError {
QUERY_ERROR,
CORRUPT,
@@ -36,7 +34,6 @@ namespace Tracker {
NO_SPACE
}
- [CCode (cheader_filename = "libtracker-data/tracker-db-journal.h")]
public errordomain DBJournalError {
UNKNOWN,
DAMAGED_JOURNAL_ENTRY,
@@ -45,32 +42,26 @@ namespace Tracker {
BEGIN_OF_JOURNAL
}
- [CCode (cprefix = "TRACKER_DB_STATEMENT_CACHE_TYPE_", cheader_filename =
"libtracker-data/tracker-db-interface.h")]
public enum DBStatementCacheType {
SELECT,
UPDATE,
NONE
}
- [CCode (has_target = false, cheader_filename = "libtracker-data/tracker-db-interface-sqlite.h")]
public delegate void DBWalCallback (DBInterface iface, int n_pages);
- [CCode (cheader_filename = "libtracker-data/tracker-db-interface.h")]
public interface DBInterface : GLib.Object {
[PrintfFormat]
public DBStatement create_statement (DBStatementCacheType cache_type, ...) throws
DBInterfaceError;
[PrintfFormat]
public void execute_query (...) throws DBInterfaceError;
- [CCode (cheader_filename = "libtracker-data/tracker-db-interface-sqlite.h")]
public void sqlite_wal_hook (DBWalCallback callback);
public void sqlite_wal_checkpoint (bool blocking) throws DBInterfaceError;
public unowned GLib.Object get_user_data ();
}
- [CCode (cheader_filename = "libtracker-data/tracker-data-update.h")]
public delegate void BusyCallback (string status, double progress);
- [CCode (cprefix = "TRACKER_DB_MANAGER_", cheader_filename = "libtracker-data/tracker-db-manager.h")]
public enum DBManagerFlags {
FORCE_REINDEX,
REMOVE_ALL,
@@ -79,7 +70,6 @@ namespace Tracker {
ENABLE_MUTEXES,
}
- [CCode (cheader_filename = "libtracker-data/tracker-db-manager.h")]
namespace DBManager {
public void lock ();
public bool trylock ();
@@ -87,11 +77,9 @@ namespace Tracker {
public bool locale_changed () throws DBInterfaceError;
}
- [CCode (cheader_filename = "libtracker-data/tracker-db-interface.h")]
public class DBCursor : Sparql.Cursor {
}
- [CCode (cheader_filename = "libtracker-data/tracker-db-interface.h")]
public interface DBStatement : GLib.InitiallyUnowned {
public abstract void bind_double (int index, double value);
public abstract void bind_int (int index, int value);
@@ -100,7 +88,6 @@ namespace Tracker {
public abstract DBCursor start_sparql_cursor (PropertyType[] types, string[] variable_names)
throws DBInterfaceError;
}
- [CCode (cheader_filename = "libtracker-data/tracker-db-config.h")]
public class DBConfig : ConfigFile {
public DBConfig ();
public bool save ();
@@ -108,16 +95,13 @@ namespace Tracker {
public string journal_rotate_destination { owned get; set; }
}
- [CCode (cheader_filename = "libtracker-data/tracker-db-config.h")]
namespace DBJournal {
public void set_rotating (bool do_rotating, size_t chunk_size, string? rotate_to);
}
- [CCode (cheader_filename = "libtracker-data/tracker-class.h")]
public class Class : GLib.Object {
public string name { get; set; }
public string uri { get; set; }
- [CCode (array_length = false, array_null_terminated = true)]
public unowned Class[] get_super_classes ();
public void transact_events ();
public bool notify { get; set; }
@@ -129,16 +113,13 @@ namespace Tracker {
public void reset_ready_events ();
}
- [CCode (cheader_filename = "libtracker-data/tracker-class.h")]
public delegate void EventsForeach (int graph_id, int subject_id, int pred_id, int object_id);
- [CCode (cheader_filename = "libtracker-data/tracker-namespace.h")]
public class Namespace : GLib.Object {
public string prefix { get; set; }
public string uri { get; set; }
}
- [CCode (cheader_filename = "libtracker-data/tracker-property.h")]
public class Property : GLib.Object {
public string name { get; }
public string table_name { get; }
@@ -148,11 +129,9 @@ namespace Tracker {
public Class range { get; set; }
public bool multiple_values { get; set; }
public bool is_inverse_functional_property { get; set; }
- [CCode (array_length = false, array_null_terminated = true)]
public unowned Class[] get_domain_indexes ();
}
- [CCode (cheader_filename = "libtracker-data/tracker-property.h")]
public enum PropertyType {
UNKNOWN,
STRING,
@@ -164,7 +143,6 @@ namespace Tracker {
RESOURCE
}
- [CCode (cheader_filename = "libtracker-data/tracker-ontologies.h")]
public class Ontologies : GLib.Object {
public unowned Class get_class_by_uri (string class_uri);
public unowned Property get_property_by_uri (string property_uri);
@@ -176,7 +154,6 @@ namespace Tracker {
public delegate void StatementCallback (int graph_id, string? graph, int subject_id, string subject,
int predicate_id, int object_id, string object, GLib.GenericArray<unowned Class> rdf_types);
public delegate void CommitCallback ();
- [CCode (lower_case_cprefix="tracker_data_", cname = "TrackerData", cheader_filename =
"libtracker-data/tracker-data-query.h,libtracker-data/tracker-data-update.h")]
public class Data.Update : GLib.Object {
public void begin_db_transaction ();
public void commit_db_transaction ();
@@ -205,13 +182,11 @@ namespace Tracker {
public void remove_rollback_statement_callback (CommitCallback callback);
}
- [CCode (cheader_filename = "libtracker-data/tracker-data-query.h")]
namespace Data {
public int query_resource_id (Data.Manager manager, DBInterface iface, string uri);
public DBCursor query_sparql_cursor (Data.Manager manager, string query) throws Sparql.Error;
}
- [CCode (cheader_filename = "libtracker-data/tracker-data-manager.h", type_id =
"TRACKER_TYPE_DATA_MANAGER")]
public class Data.Manager : GLib.Object, GLib.Initable {
public Manager (DBManagerFlags flags, GLib.File cache_location, GLib.File data_location,
GLib.File ontology_location, bool journal_check, bool restoring_backup, uint select_cache_size, uint
update_cache_size);
public unowned Ontologies get_ontologies ();
@@ -222,12 +197,9 @@ namespace Tracker {
public GLib.HashTable<string,string> get_namespaces ();
}
- [CCode (cheader_filename = "libtracker-data/tracker-db-interface-sqlite.h")]
public const string COLLATION_NAME;
- [CCode (cheader_filename = "libtracker-data/tracker-db-interface-sqlite.h")]
public const string TITLE_COLLATION_NAME;
- [CCode (cheader_filename = "libtracker-data/tracker-collation.h")]
public const unichar COLLATION_LAST_CHAR;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]