Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 1 | /* bashline.h -- interface to the bash readline functions in bashline.c. */ |
| 2 | |
| 3 | /* Copyright (C) 1993 Free Software Foundation, Inc. |
| 4 | |
| 5 | This file is part of GNU Bash, the Bourne Again SHell. |
| 6 | |
| 7 | Bash is free software; you can redistribute it and/or modify it under |
| 8 | the terms of the GNU General Public License as published by the Free |
| 9 | Software Foundation; either version 2, or (at your option) any later |
| 10 | version. |
| 11 | |
| 12 | Bash is distributed in the hope that it will be useful, but WITHOUT ANY |
| 13 | WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 14 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 15 | for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU General Public License along |
| 18 | with Bash; see the file COPYING. If not, write to the Free Software |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 19 | Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 20 | |
| 21 | #if !defined (_BASHLINE_H_) |
| 22 | #define _BASHLINE_H_ |
| 23 | |
| 24 | #include "stdc.h" |
| 25 | |
| 26 | extern int bash_readline_initialized; |
| 27 | |
| 28 | extern void posix_readline_initialize __P((int)); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 29 | extern int enable_hostname_completion __P((int)); |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 30 | extern void initialize_readline __P((void)); |
| 31 | extern void bashline_reinitialize __P((void)); |
| 32 | extern int bash_re_edit __P((char *)); |
| 33 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 34 | extern int bind_keyseq_to_unix_command __P((char *)); |
| 35 | |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame^] | 36 | extern char **bash_default_completion __P((const char *, int, int, int, int)); |
| 37 | |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 38 | /* Used by programmable completion code. */ |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 39 | extern char *command_word_completion_function __P((const char *, int)); |
Jari Aalto | f73dda0 | 2001-11-13 17:56:06 +0000 | [diff] [blame] | 40 | extern char *bash_groupname_completion_function __P((const char *, int)); |
Jari Aalto | 7117c2d | 2002-07-17 14:10:11 +0000 | [diff] [blame] | 41 | extern char *bash_servicename_completion_function __P((const char *, int)); |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 42 | |
| 43 | extern char **get_hostname_list __P((void)); |
| 44 | extern void clear_hostname_list __P((void)); |
| 45 | |
Jari Aalto | 28ef6c3 | 2001-04-06 19:14:31 +0000 | [diff] [blame] | 46 | extern char **bash_directory_completion_matches __P((const char *)); |
Jari Aalto | b80f644 | 2004-07-27 13:29:18 +0000 | [diff] [blame^] | 47 | extern char *bash_dequote_text __P((const char *)); |
Jari Aalto | bb70624 | 2000-03-17 21:46:59 +0000 | [diff] [blame] | 48 | |
Jari Aalto | ccc6cda | 1996-12-23 17:02:34 +0000 | [diff] [blame] | 49 | #endif /* _BASHLINE_H_ */ |