From f270b847a817582f60f6371293fade65fe9afb9f Mon Sep 17 00:00:00 2001 From: jaortega Date: Mon, 26 Feb 2001 23:21:17 +0000 Subject: mix vm command dispatch refactoring --- mixlib/mix_vm_dump.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'mixlib/mix_vm_dump.h') 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 #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 -- cgit v1.2.3