summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2006-07-17 15:47:58 +0000
committerAkira TAGOH <akira@tagoh.org>2006-07-17 15:47:58 +0000
commitaeaf2e150459a41442987d50159cde22b8d222d5 (patch)
tree03436166ea3d12712dfaced3cd2967400d18f792 /src
parente59dce9475842880d6e0784cfcc5e302e0ef836c (diff)
* hieroglyph/operator.c (_hg_operator_op_closefile): implemented.
* hieroglyph/hgfile.c (_hg_file_object_real_free): use hg_file_object_close instead of handling a close process directly. (hg_file_object_close): new function. * src/hgspy.c (_hgspy_file_close_cb): new function.
Diffstat (limited to 'src')
-rw-r--r--src/hgspy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hgspy.c b/src/hgspy.c
index bec5f29..6ef3a98 100644
--- a/src/hgspy.c
+++ b/src/hgspy.c
@@ -242,6 +242,12 @@ _hgspy_file_seek_cb(gpointer user_data,
return -1;
}
+static void
+_hgspy_file_close_cb(gpointer user_data)
+{
+ g_print("FIXME: close.\n");
+}
+
static gboolean
_hgspy_file_is_eof_cb(gpointer user_data)
{
@@ -274,6 +280,7 @@ _hgspy_vm_thread(gpointer data)
.getc = _hgspy_file_getc_cb,
.flush = _hgspy_file_flush_cb,
.seek = _hgspy_file_seek_cb,
+ .close = _hgspy_file_close_cb,
.is_eof = _hgspy_file_is_eof_cb,
.clear_eof = _hgspy_file_clear_eof_cb,
.get_error_code = _hgspy_file_get_error_code_cb,