Naming fix
[oweals/busybox.git] / cmdedit.h
1 #ifndef CMDEDIT_H
2 #define CMDEDIT_H
3
4 /* unix systems can #define POSIX to use termios, otherwise 
5  * the bsd or sysv interface will be used 
6  */
7
8 #ifdef __STDC__ 
9 #include <stddef.h>
10
11 typedef size_t (*cmdedit_strwidth_proc)(char *);
12
13 void cmdedit_init(void);
14 void cmdedit_read_input(char* promptStr, char* command);                /* read a line of input */
15 void cmdedit_setwidth(int);             /* specify width of screen */
16 void cmdedit_histadd(char *);           /* adds entries to hist */
17 void cmdedit_strwidth(cmdedit_strwidth_proc);   /* to bind cmdedit_strlen */
18
19 extern int      (*cmdedit_in_hook)(char *);
20 extern int      (*cmdedit_out_hook)(char *);
21 extern int      (*cmdedit_tab_hook)(char *, int, int *);
22
23 #else   /* not __STDC__ */
24
25 void cmdedit_init(void);
26 void cmdedit_read_input(char* promptStr, char* command);
27 void cmdedit_setwidth();
28 void cmdedit_histadd();
29 void cmdedit_strwidth();
30
31 extern int      (*cmdedit_in_hook)();
32 extern int      (*cmdedit_out_hook)();
33 extern int      (*cmdedit_tab_hook)();
34
35 #endif /* __STDC__ */
36
37 #endif /* CMDEDIT_H */