summaryrefslogtreecommitdiff
path: root/tests/dconf-mock-gvdb.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-11-09 13:20:15 -0500
committerRyan Lortie <desrt@desrt.ca>2012-11-09 13:20:15 -0500
commit68135f2c31529309faa6bc2e8faa7f7712fe6fa2 (patch)
tree4c7e18dd9713eecc22a291a45e40f8970f831eda /tests/dconf-mock-gvdb.c
parent8e04a32f9ead35e5c73148a529014076910dd3d1 (diff)
downloaddconf-68135f2c31529309faa6bc2e8faa7f7712fe6fa2.tar.gz
adjust to new gvdb APIs
Diffstat (limited to 'tests/dconf-mock-gvdb.c')
-rw-r--r--tests/dconf-mock-gvdb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/dconf-mock-gvdb.c b/tests/dconf-mock-gvdb.c
index 6bc6d14..a922a49 100644
--- a/tests/dconf-mock-gvdb.c
+++ b/tests/dconf-mock-gvdb.c
@@ -34,7 +34,7 @@ dconf_mock_gvdb_item_free (gpointer data)
g_variant_unref (item->value);
if (item->table)
- gvdb_table_unref (item->table);
+ gvdb_table_free (item->table);
g_slice_free (DConfMockGvdbItem, item);
}
@@ -43,7 +43,7 @@ static void
dconf_mock_gvdb_init (void)
{
if (dconf_mock_gvdb_tables == NULL)
- dconf_mock_gvdb_tables = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) gvdb_table_unref);
+ dconf_mock_gvdb_tables = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) gvdb_table_free);
}
GvdbTable *
@@ -98,7 +98,7 @@ dconf_mock_gvdb_install (const gchar *filename,
}
void
-gvdb_table_unref (GvdbTable *table)
+gvdb_table_free (GvdbTable *table)
{
if (g_atomic_int_dec_and_test (&table->ref_count))
{
@@ -108,7 +108,7 @@ gvdb_table_unref (GvdbTable *table)
}
GvdbTable *
-gvdb_table_ref (GvdbTable *table)
+dconf_mock_gvdb_table_ref (GvdbTable *table)
{
g_atomic_int_inc (&table->ref_count);
@@ -125,7 +125,7 @@ gvdb_table_get_table (GvdbTable *table,
item = g_hash_table_lookup (table->table, key);
if (item && item->table)
- subtable = gvdb_table_ref (item->table);
+ subtable = dconf_mock_gvdb_table_ref (item->table);
else
subtable = NULL;
@@ -179,7 +179,7 @@ gvdb_table_new (const gchar *filename,
dconf_mock_gvdb_init ();
table = g_hash_table_lookup (dconf_mock_gvdb_tables, filename);
if (table)
- gvdb_table_ref (table);
+ dconf_mock_gvdb_table_ref (table);
g_mutex_unlock (&dconf_mock_gvdb_lock);
if (table == NULL)