[anjuta/sdb-queries: 15/22] symbol-db: Add some convenience getters for priv properties
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/sdb-queries: 15/22] symbol-db: Add some convenience getters for priv properties
- Date: Wed, 2 Jun 2010 21:25:59 +0000 (UTC)
commit 1587871f1148da3f20014d96dfdd4988bdaeb333
Author: Naba Kumar <naba gnome org>
Date: Tue May 18 23:19:43 2010 +0300
symbol-db: Add some convenience getters for priv properties
plugins/symbol-db/symbol-db-engine-core.c | 14 ++++++++++++++
plugins/symbol-db/symbol-db-engine-core.h | 12 ++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/plugins/symbol-db/symbol-db-engine-core.c b/plugins/symbol-db/symbol-db-engine-core.c
index 609ba32..35f7ca8 100644
--- a/plugins/symbol-db/symbol-db-engine-core.c
+++ b/plugins/symbol-db/symbol-db-engine-core.c
@@ -6570,6 +6570,20 @@ symbol_db_engine_set_db_case_sensitive (SymbolDBEngine *dbe, gboolean case_sensi
sdb_engine_execute_unknown_sql (dbe, "PRAGMA case_sensitive_like = 0");
}
+const GHashTable*
+symbol_db_engine_get_type_conversion_hash (SymbolDBEngine *dbe)
+{
+ g_return_val_if_fail (SYMBOL_IS_DB_ENGINE (dbe), NULL);
+ return dbe->priv->sym_type_conversion_hash;
+}
+
+const gchar*
+symbol_db_engine_get_project_directory (SymbolDBEngine *dbe)
+{
+ g_return_val_if_fail (SYMBOL_IS_DB_ENGINE (dbe), NULL);
+ return dbe->priv->project_directory;
+}
+
GdaStatement*
symbol_db_engine_get_statement (SymbolDBEngine *dbe, const gchar *sql_str)
{
diff --git a/plugins/symbol-db/symbol-db-engine-core.h b/plugins/symbol-db/symbol-db-engine-core.h
index 978e2a5..a0c78b2 100644
--- a/plugins/symbol-db/symbol-db-engine-core.h
+++ b/plugins/symbol-db/symbol-db-engine-core.h
@@ -276,6 +276,18 @@ GdaStatement*
symbol_db_engine_get_statement (SymbolDBEngine *dbe, const gchar *sql_str);
/**
+ * Get conversion hash table used to convert symbol type name to enum value
+ */
+const GHashTable*
+symbol_db_engine_get_type_conversion_hash (SymbolDBEngine *dbe);
+
+/**
+ * Gets the project directory (used to construct absolute paths)
+ */
+const gchar*
+symbol_db_engine_get_project_directory (SymbolDBEngine *dbe);
+
+/**
* Executes a parameterized sql statement
*/
GdaDataModel*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]