From c7351455575348d9d9847604069ee15132f2d8e0 Mon Sep 17 00:00:00 2001 From: crunchy Date: Tue, 29 Oct 2002 20:03:33 +0000 Subject: a special crunchy checkin: no testing;-) --- mpiosh/global.h | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'mpiosh/global.h') diff --git a/mpiosh/global.h b/mpiosh/global.h index 4800d68..a807c4a 100644 --- a/mpiosh/global.h +++ b/mpiosh/global.h @@ -2,7 +2,7 @@ * * Author: Andreas Buesching * - * $Id: global.h,v 1.1 2002/10/12 20:06:22 crunchy Exp $ + * $Id: global.h,v 1.2 2002/10/29 20:03:35 crunchy Exp $ * * Copyright (C) 2001 Andreas Büsching * @@ -26,31 +26,39 @@ #include "libmpio/mpio.h" +#include "config.h" + /* type definitions */ typedef void(*mpiosh_cmd_callback_t)(char *args[]); typedef char *(*mpiosh_comp_callback_t)(const char *text, int state); -typedef struct { - mpio_t * dev; - mpio_mem_t card; - const char * prompt; -} mpiosh_t; +struct mpiosh_t { + mpio_t * dev; + mpio_mem_t card; + const char * prompt; + struct mpiosh_config_t *config; +}; -typedef struct { - char * cmd; - char ** aliases; - char * args; - char * info; +struct mpiosh_cmd_t { + char *cmd; + char **aliases; + char *args; + char *info; mpiosh_cmd_callback_t cmd_func; mpiosh_comp_callback_t comp_func; -} mpiosh_cmd_t; +}; /* global structures */ -extern mpiosh_t mpiosh; -extern mpiosh_cmd_t commands[]; +extern struct mpiosh_t mpiosh; +extern struct mpiosh_cmd_t commands[]; extern int mpiosh_cancel; extern int mpiosh_cancel_ack; +extern const char *CONFIG_GLOBAL; +extern const char *CONFIG_USER; +extern const char *CONFIG_FILE; +extern const char *CONFIG_HISTORY; + extern const char *PROMPT_INT; extern const char *PROMPT_EXT; -- cgit v1.2.3