21 #define GRN_TEST_HASH_FACTORY_GET_PRIVATE(obj) \
22 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GRN_TYPE_TEST_HASH_FACTORY, \
23 GrnTestHashFactoryPrivate))
48 static
void dispose (GObject *
object);
53 GObjectClass *gobject_class;
55 gobject_class = G_OBJECT_CLASS(klass);
57 gobject_class->dispose = dispose;
117 dispose(GObject *
object)
143 G_OBJECT_CLASS(grn_test_hash_factory_parent_class)->dispose(
object);
149 return g_quark_from_static_string(
"grn-test-hash-factory-error-quark");
174 "failed to init grn_ctx"
187 if (!grn_test_hash_factory_ensure_context(factory, error))
196 "failed to open grn_hash"
207 if (!grn_test_hash_factory_ensure_context(factory, error))
218 "failed to create grn_hash"
235 "grn_hash is neither opened nor created.");
248 "failed to open grn_hash_cursor"
302 priv->
path = g_strdup(path);