summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_vm_dump.h
diff options
context:
space:
mode:
authorjaortega <jaortega>2001-02-26 23:21:17 +0000
committerjaortega <jaortega>2001-02-26 23:21:17 +0000
commitf270b847a817582f60f6371293fade65fe9afb9f (patch)
treefcd080b39e8f811905a7e194949aa1d55cbdffd8 /mixlib/mix_vm_dump.h
parent119a5240f57ded266447b485e5a7c0eec6dd67f8 (diff)
downloadmdk-f270b847a817582f60f6371293fade65fe9afb9f.tar.gz
mdk-f270b847a817582f60f6371293fade65fe9afb9f.tar.bz2
mix vm command dispatch refactoring
Diffstat (limited to 'mixlib/mix_vm_dump.h')
-rw-r--r--mixlib/mix_vm_dump.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/mixlib/mix_vm_dump.h b/mixlib/mix_vm_dump.h
index 265a747..8c5e1bd 100644
--- a/mixlib/mix_vm_dump.h
+++ b/mixlib/mix_vm_dump.h
@@ -2,7 +2,7 @@
* This file declares types and functions for dumping the contents
* of a mix virtual machine.
* ------------------------------------------------------------------
-** Copyright (C) 2000 Free Software Foundation, Inc.
+** Copyright (C) 2000, 2001 Free Software Foundation, Inc.
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
#ifndef MIX_VM_DUMP_H
#define MIX_VM_DUMP_H
+#include <stdio.h>
#include "mix_vm.h"
/* Dump context: a structure defining the properties of dumping */
@@ -36,7 +37,7 @@ struct mix_dump_context_t
mix_address_t begin;
mix_address_t end;
/* IO channel for dumping */
- GIOChannel *channel;
+ FILE *channel;
};
/* Flags for activating dumps */
@@ -60,12 +61,12 @@ struct mix_dump_context_t
#define MIX_DUMP_ALL_NOMEM MIX_DUMP_rALL|MIX_DUMP_OVER|MIX_DUMP_CMP
/* Default output channel (stdout) */
-#define MIX_DUMP_DEF_CHANNEL (-1)
+#define MIX_DUMP_DEF_CHANNEL (stdout)
/* Create/destroy a dump context */
extern mix_dump_context_t *
-mix_dump_context_new(gint fd, mix_address_t begin, mix_address_t end,
- guint32 options);
+mix_dump_context_new (FILE *fd, mix_address_t begin, mix_address_t end,
+ guint32 options);
extern void
mix_dump_context_delete(mix_dump_context_t *dc);
@@ -80,8 +81,6 @@ do { \
(dc)->end = last; \
} while (FALSE)
-extern gboolean /* TRUE if success */
-mix_dump_context_set_channel(mix_dump_context_t *dc, gint fd);
/* Use the dump context */
extern void