summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2011-02-25 20:38:14 +0900
committerAkira TAGOH <akira@tagoh.org>2011-02-25 20:38:14 +0900
commit8b9d11d75afc485380dc92a6e49b8d32d39cb0d6 (patch)
tree3a2f2c99a3e657eacd0fd90b0984c5308da177f2
parent9fa2ab19f5e2566b5d5a6ad846c2770f19b9a723 (diff)
hg_snapshot_t APIs cleanup
-rw-r--r--hieroglyph/hgmem.c2
-rw-r--r--hieroglyph/hgmem.h1
-rw-r--r--hieroglyph/hgsnapshot.c6
-rw-r--r--tests/hgmem.c20
4 files changed, 3 insertions, 26 deletions
diff --git a/hieroglyph/hgmem.c b/hieroglyph/hgmem.c
index 025c4ab..30b7419 100644
--- a/hieroglyph/hgmem.c
+++ b/hieroglyph/hgmem.c
@@ -26,8 +26,6 @@
#endif /* HAVE_CONFIG_H */
#include <math.h>
-/* XXX: Glib is still needed for the hash table */
-#include <glib.h>
#include "hgallocator.h"
#include "hgquark.h"
#include "hgtypebit-private.h"
diff --git a/hieroglyph/hgmem.h b/hieroglyph/hgmem.h
index bccc94d..e4407b9 100644
--- a/hieroglyph/hgmem.h
+++ b/hieroglyph/hgmem.h
@@ -40,7 +40,6 @@ HG_BEGIN_DECLS
typedef enum _hg_mem_type_t hg_mem_type_t;
typedef hg_cb_BOOL__QUARK_QUARK_t hg_rs_gc_func_t;
-typedef hg_allocator_snapshot_data_t hg_mem_snapshot_data_t;
typedef void (* hg_mem_finalizer_func_t) (hg_mem_t *mem,
hg_quark_t index);
diff --git a/hieroglyph/hgsnapshot.c b/hieroglyph/hgsnapshot.c
index fdc563e..a5befbb 100644
--- a/hieroglyph/hgsnapshot.c
+++ b/hieroglyph/hgsnapshot.c
@@ -34,9 +34,9 @@
#include "hgsnapshot.proto.h"
struct _hg_snapshot_t {
- hg_object_t o;
- hg_mem_snapshot_data_t *snapshot;
- GHashTable *ref_table;
+ hg_object_t o;
+ hg_allocator_snapshot_data_t *snapshot;
+ GHashTable *ref_table;
};
HG_DEFINE_VTABLE (snapshot);
diff --git a/tests/hgmem.c b/tests/hgmem.c
index f174534..ed26ce8 100644
--- a/tests/hgmem.c
+++ b/tests/hgmem.c
@@ -174,22 +174,6 @@ TDEF (hg_mem_foreach)
{
} TEND
-TDEF (hg_mem_save_snapshot)
-{
-} TEND
-
-TDEF (hg_mem_restore_snapshot)
-{
-} TEND
-
-TDEF (hg_mem_restore_mark)
-{
-} TEND
-
-TDEF (hg_mem_snapshot_free)
-{
-} TEND
-
/****/
Suite *
hieroglyph_suite(void)
@@ -228,10 +212,6 @@ hieroglyph_suite(void)
T (hg_mem_ref);
T (hg_mem_unref);
T (hg_mem_foreach);
- T (hg_mem_save_snapshot);
- T (hg_mem_restore_snapshot);
- T (hg_mem_restore_mark);
- T (hg_mem_snapshot_free);
suite_add_tcase(s, tc);