summaryrefslogtreecommitdiff
path: root/src/portal
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2021-11-13 14:23:18 +0100
committerCarlos Garnacho <carlosg@gnome.org>2021-11-14 11:24:56 +0100
commitc43c9e1d41240002c2d836b4bbc7484b04735e97 (patch)
treec82b393e9635387487c2cfcc7e25bc8462619a9f /src/portal
parent4f288f48de0b3c45c1e851ff08e9acdea87fc3e0 (diff)
downloadtracker-c43c9e1d41240002c2d836b4bbc7484b04735e97.tar.gz
libtracker-sparql: Seal TrackerNamespaceManagers belonging to a connection
This is a slight API break, but one that is a) unused to my knowledge, and b) prone to introduce further brokenness if misused. Since any namespace added this way is still not part of the ontology, it could only be used to produce RDF that cannot be consumed later on. Also, there's the implicit assumption that TrackerSparqlConnection is multithread-aware, but this object would potentially break if it ends up used and modified from different threads. So, make tracker_namespace_manager_add_prefix() reserved for namespaces created through tracker_namespace_manager_new(), and make those coming from tracker_sparql_connection_get_namespace_manager() immutable.
Diffstat (limited to 'src/portal')
0 files changed, 0 insertions, 0 deletions