summaryrefslogtreecommitdiff
path: root/lib/ss/ss_internal.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-03-16 06:26:25 -0500
committerTheodore Ts'o <tytso@mit.edu>2003-03-16 06:26:25 -0500
commit3ae497eab281eab5f98770e6a3d5992b9d37325e (patch)
tree078fb4dfd86d1a323823e783f5a73d0eef0de1f7 /lib/ss/ss_internal.h
parent63182203a757e6b9f5700ea57d9f6e5973251666 (diff)
downloade2fsprogs-3ae497eab281eab5f98770e6a3d5992b9d37325e.tar.gz
Add to the ss (subsystem) library the ability to dynamically link
to the readline library if it is present in the system.
Diffstat (limited to 'lib/ss/ss_internal.h')
-rw-r--r--lib/ss/ss_internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/ss/ss_internal.h b/lib/ss/ss_internal.h
index ab155864..ce84477d 100644
--- a/lib/ss/ss_internal.h
+++ b/lib/ss/ss_internal.h
@@ -95,6 +95,16 @@ typedef struct _ss_data { /* init values */
unsigned int escape_disabled : 1,
abbrevs_disabled : 1;
} flags;
+ /*
+ * Dynamic usage of readline library if present
+ */
+ void *readline_handle;
+ void (*readline_shutdown)(struct _ss_data *info);
+ char *(*readline)(const char *);
+ void (*add_history)(const char *);
+ void (*redisplay)();
+ char **(*rl_completion_matches)(const char *,
+ char *(*completer)(const char *, int));
/* to get out */
int abort; /* exit subsystem */
int exit_status;
@@ -116,6 +126,7 @@ void ss_page_stdin(NOARGS);
void ss_list_requests PROTOTYPE((int, char const * const *, int, pointer));
int ss_execute_command PROTOTYPE((int sci_idx, char *argv[]));
int ss_pager_create(NOARGS);
+char **ss_rl_completion(const char *text, int start, int end);
extern ss_data **_ss_table;
extern char *ss_et_msgs[];