aboutsummaryrefslogtreecommitdiff
path: root/mpiosh/global.h
diff options
context:
space:
mode:
authorcrunchy <crunchy>2002-10-29 20:03:33 +0000
committercrunchy <crunchy>2002-10-29 20:03:33 +0000
commitc7351455575348d9d9847604069ee15132f2d8e0 (patch)
tree042afb35dc47c212456af5a5543c2c4e65763463 /mpiosh/global.h
parent037e02905b802686be908d4f8cd989f0c5002b99 (diff)
downloadmpiosh-c7351455575348d9d9847604069ee15132f2d8e0.tar.gz
mpiosh-c7351455575348d9d9847604069ee15132f2d8e0.tar.bz2
mpiosh-c7351455575348d9d9847604069ee15132f2d8e0.zip
a special crunchy checkin: no testing;-)
Diffstat (limited to 'mpiosh/global.h')
-rw-r--r--mpiosh/global.h36
1 files changed, 22 insertions, 14 deletions
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 <crunchy@tzi.de>
*
- * $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 <crunchy@tzi.de>
*
@@ -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;