aboutsummaryrefslogtreecommitdiff
path: root/mpiosh/readline.h
diff options
context:
space:
mode:
authorcrunchy <crunchy>2002-10-12 18:31:45 +0000
committercrunchy <crunchy>2002-10-12 18:31:45 +0000
commitde0ca5908fbdfdd14d48ae733b39a323336b62df (patch)
tree6bef384b848c5b0f886f9ad868b2925e494ddbf4 /mpiosh/readline.h
parent1f791c254d58441a745681b76c925c534e2b3638 (diff)
downloadmpiosh-de0ca5908fbdfdd14d48ae733b39a323336b62df.tar.gz
mpiosh-de0ca5908fbdfdd14d48ae733b39a323336b62df.tar.bz2
mpiosh-de0ca5908fbdfdd14d48ae733b39a323336b62df.zip
add completion for files on the mpio memory cards
Diffstat (limited to 'mpiosh/readline.h')
-rw-r--r--mpiosh/readline.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/mpiosh/readline.h b/mpiosh/readline.h
new file mode 100644
index 0000000..4c04f64
--- /dev/null
+++ b/mpiosh/readline.h
@@ -0,0 +1,45 @@
+/* readline.h
+ *
+ * Author: Andreas Büsching <crunchy@tzi.de>
+ *
+ * $Id: readline.h,v 1.1 2002/10/12 18:31:45 crunchy Exp $
+ *
+ * Copyright (C) 2001 Andreas Büsching <crunchy@tzi.de>
+ *
+ * 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
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef MPIOSH_READLINE_HH
+#define MPIOSH_READLINE_HH
+
+#include <stdio.h>
+
+#include <readline/readline.h>
+#include <readline/history.h>
+
+/* readline extensions */
+void mpiosh_readline_init(void);
+char **mpiosh_readline_completion(const char *text, int start, int end);
+
+void mpiosh_readline_noredisplay(void);
+void mpiosh_readline_pipe(void);
+int mpiosh_readline_cancel(void);
+
+char *mpiosh_readline_comp_cmd(const char *text, int state);
+char *mpiosh_readline_comp_mpio_file(const char *text, int state);
+
+#endif
+
+/* end of readline.h */