aboutsummaryrefslogtreecommitdiff
path: root/mpiosh/mpiosh.h
diff options
context:
space:
mode:
authorcrunchy <crunchy>2002-10-12 20:06:21 +0000
committercrunchy <crunchy>2002-10-12 20:06:21 +0000
commit9e631a7513ed34c27a36cacd0b22cfb2fd695dad (patch)
tree8b690de807769cfa00f434eec113a127f2c1f651 /mpiosh/mpiosh.h
parentde0ca5908fbdfdd14d48ae733b39a323336b62df (diff)
downloadmpiosh-9e631a7513ed34c27a36cacd0b22cfb2fd695dad.tar.gz
mpiosh-9e631a7513ed34c27a36cacd0b22cfb2fd695dad.tar.bz2
mpiosh-9e631a7513ed34c27a36cacd0b22cfb2fd695dad.zip
add alias support for commands and extended argument completion
Diffstat (limited to 'mpiosh/mpiosh.h')
-rw-r--r--mpiosh/mpiosh.h31
1 files changed, 3 insertions, 28 deletions
diff --git a/mpiosh/mpiosh.h b/mpiosh/mpiosh.h
index 5bb76da..8291178 100644
--- a/mpiosh/mpiosh.h
+++ b/mpiosh/mpiosh.h
@@ -2,7 +2,7 @@
*
* Author: Andreas Büsching <crunchy@tzi.de>
*
- * $Id: mpiosh.h,v 1.7 2002/10/12 18:31:45 crunchy Exp $
+ * $Id: mpiosh.h,v 1.8 2002/10/12 20:06:22 crunchy Exp $
*
* Copyright (C) 2002 Andreas Büsching <crunchy@tzi.de>
*
@@ -24,39 +24,14 @@
#ifndef _MPIOSH_H_
#define _MPIOSH_H_
-#include "libmpio/mpio.h"
#include "libmpio/debug.h"
-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;
-
-typedef struct {
- char * cmd;
- char * args;
- char * info;
- mpiosh_cmd_callback_t cmd_func;
- mpiosh_comp_callback_t comp_func;
-} mpiosh_cmd_t;
-
+#include "global.h"
+
/* mpiosh core functions */
void mpiosh_signal_handler(int signal);
void mpiosh_init(void);
-/* global structures */
-extern mpiosh_t mpiosh;
-extern mpiosh_cmd_t commands[];
-extern int mpiosh_cancel;
-extern int mpiosh_cancel_ack;
-
-extern const char *PROMPT_INT;
-extern const char *PROMPT_EXT;
-
#endif // _MPIOSH_H_
/* end of mpiosh.h */