blob: d52dfdfa957f5909a4d282bde63dd78ac18d30fb [file] [log] [blame]
Jari Aaltoccc6cda1996-12-23 17:02:34 +00001/* bashline.h -- interface to the bash readline functions in bashline.c. */
2
Jari Aalto31859422009-01-12 13:36:28 +00003/* Copyright (C) 1993-2009 Free Software Foundation, Inc.
Jari Aaltoccc6cda1996-12-23 17:02:34 +00004
5 This file is part of GNU Bash, the Bourne Again SHell.
6
Jari Aalto31859422009-01-12 13:36:28 +00007 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.
Jari Aaltoccc6cda1996-12-23 17:02:34 +000011
Jari Aalto31859422009-01-12 13:36:28 +000012 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.
Jari Aaltoccc6cda1996-12-23 17:02:34 +000016
Jari Aalto31859422009-01-12 13:36:28 +000017 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*/
Jari Aaltoccc6cda1996-12-23 17:02:34 +000020
21#if !defined (_BASHLINE_H_)
22#define _BASHLINE_H_
23
24#include "stdc.h"
25
26extern int bash_readline_initialized;
27
28extern void posix_readline_initialize __P((int));
Jari Aalto31859422009-01-12 13:36:28 +000029extern void reset_completer_word_break_chars __P((void));
Jari Aaltof73dda02001-11-13 17:56:06 +000030extern int enable_hostname_completion __P((int));
Jari Aaltoccc6cda1996-12-23 17:02:34 +000031extern void initialize_readline __P((void));
Jari Aalto31859422009-01-12 13:36:28 +000032extern void bashline_reset __P((void));
Jari Aaltoccc6cda1996-12-23 17:02:34 +000033extern void bashline_reinitialize __P((void));
34extern int bash_re_edit __P((char *));
35
Chet Ramey16b2d7f2012-05-31 15:11:45 -040036extern void bashline_set_event_hook __P((void));
37extern void bashline_reset_event_hook __P((void));
38
Jari Aaltobb706242000-03-17 21:46:59 +000039extern int bind_keyseq_to_unix_command __P((char *));
Chet Rameyac50fba2014-02-26 09:36:43 -050040extern int print_unix_command_map __P((void));
Jari Aaltobb706242000-03-17 21:46:59 +000041
Jari Aaltob80f6442004-07-27 13:29:18 +000042extern char **bash_default_completion __P((const char *, int, int, int, int));
43
Chet Ramey16b2d7f2012-05-31 15:11:45 -040044void set_directory_hook __P((void));
45
Jari Aaltobb706242000-03-17 21:46:59 +000046/* Used by programmable completion code. */
Jari Aalto28ef6c32001-04-06 19:14:31 +000047extern char *command_word_completion_function __P((const char *, int));
Jari Aaltof73dda02001-11-13 17:56:06 +000048extern char *bash_groupname_completion_function __P((const char *, int));
Jari Aalto7117c2d2002-07-17 14:10:11 +000049extern char *bash_servicename_completion_function __P((const char *, int));
Jari Aaltobb706242000-03-17 21:46:59 +000050
51extern char **get_hostname_list __P((void));
52extern void clear_hostname_list __P((void));
53
Jari Aalto28ef6c32001-04-06 19:14:31 +000054extern char **bash_directory_completion_matches __P((const char *));
Jari Aaltob80f6442004-07-27 13:29:18 +000055extern char *bash_dequote_text __P((const char *));
Jari Aaltobb706242000-03-17 21:46:59 +000056
Jari Aaltoccc6cda1996-12-23 17:02:34 +000057#endif /* _BASHLINE_H_ */