]>
Commit | Line | Data |
---|---|---|
ccc6cda3 JA |
1 | /* bashline.h -- interface to the bash readline functions in bashline.c. */ |
2 | ||
3185942a | 3 | /* Copyright (C) 1993-2009 Free Software Foundation, Inc. |
ccc6cda3 JA |
4 | |
5 | This file is part of GNU Bash, the Bourne Again SHell. | |
6 | ||
3185942a JA |
7 | Bash is free software: you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation, either version 3 of the License, or | |
10 | (at your option) any later version. | |
ccc6cda3 | 11 | |
3185942a JA |
12 | Bash is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
ccc6cda3 | 16 | |
3185942a JA |
17 | You should have received a copy of the GNU General Public License |
18 | along with Bash. If not, see <http://www.gnu.org/licenses/>. | |
19 | */ | |
ccc6cda3 JA |
20 | |
21 | #if !defined (_BASHLINE_H_) | |
22 | #define _BASHLINE_H_ | |
23 | ||
24 | #include "stdc.h" | |
25 | ||
26 | extern int bash_readline_initialized; | |
d233b485 CR |
27 | extern int hostname_list_initialized; |
28 | ||
29 | /* these are controlled via shopt */ | |
30 | extern int perform_hostname_completion; | |
31 | extern int no_empty_command_completion; | |
32 | extern int force_fignore; | |
33 | extern int dircomplete_spelling; | |
34 | extern int dircomplete_expand; | |
35 | extern int dircomplete_expand_relpath; | |
36 | extern int complete_fullquote; | |
ccc6cda3 JA |
37 | |
38 | extern void posix_readline_initialize __P((int)); | |
3185942a | 39 | extern void reset_completer_word_break_chars __P((void)); |
f73dda09 | 40 | extern int enable_hostname_completion __P((int)); |
ccc6cda3 | 41 | extern void initialize_readline __P((void)); |
3185942a | 42 | extern void bashline_reset __P((void)); |
ccc6cda3 JA |
43 | extern void bashline_reinitialize __P((void)); |
44 | extern int bash_re_edit __P((char *)); | |
45 | ||
16b2d7f4 CR |
46 | extern void bashline_set_event_hook __P((void)); |
47 | extern void bashline_reset_event_hook __P((void)); | |
48 | ||
bb70624e | 49 | extern int bind_keyseq_to_unix_command __P((char *)); |
ac50fbac | 50 | extern int print_unix_command_map __P((void)); |
bb70624e | 51 | |
b80f6443 JA |
52 | extern char **bash_default_completion __P((const char *, int, int, int, int)); |
53 | ||
16b2d7f4 CR |
54 | void set_directory_hook __P((void)); |
55 | ||
bb70624e | 56 | /* Used by programmable completion code. */ |
28ef6c31 | 57 | extern char *command_word_completion_function __P((const char *, int)); |
f73dda09 | 58 | extern char *bash_groupname_completion_function __P((const char *, int)); |
7117c2d2 | 59 | extern char *bash_servicename_completion_function __P((const char *, int)); |
bb70624e JA |
60 | |
61 | extern char **get_hostname_list __P((void)); | |
62 | extern void clear_hostname_list __P((void)); | |
63 | ||
28ef6c31 | 64 | extern char **bash_directory_completion_matches __P((const char *)); |
b80f6443 | 65 | extern char *bash_dequote_text __P((const char *)); |
bb70624e | 66 | |
ccc6cda3 | 67 | #endif /* _BASHLINE_H_ */ |