summaryrefslogtreecommitdiff
path: root/source/lib/readline.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2003-05-12 18:12:31 +0000
committerSimo Sorce <idra@samba.org>2003-05-12 18:12:31 +0000
commit0e58085978f984436815114a2ec347cf7899a89d (patch)
tree3afeaf87a43542c5cdb5da929113b4ea37abdf44 /source/lib/readline.c
parentf59bcb51cfe4e268ba43245d401d212aefdf2b72 (diff)
downloadsamba-0e58085978f984436815114a2ec347cf7899a89d.tar.gz
And finally IDMAP in 3_0
We really need idmap_ldap to have a good solution with ldapsam, porting it from the prvious code is beeing made, the code is really simple to do so I am confident it is not a problem to commit this code in. Not committing it would have been worst. I really would have been able to finish also the group code, maybe we can put it into a followin release after 3.0.0 even if it may be an upgrade problem. The code has been tested and seem to work right, more testing is needed for corner cases. Currently winbind pdc (working only for users and not for groups) is disabled as I was not able to make a complete group code replacement that works somewhat in a week (I have a complete patch, but there are bugs) Simo.
Diffstat (limited to 'source/lib/readline.c')
-rw-r--r--source/lib/readline.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/lib/readline.c b/source/lib/readline.c
index 8b90c32c7f9..ceb02ef749c 100644
--- a/source/lib/readline.c
+++ b/source/lib/readline.c
@@ -116,6 +116,29 @@ char *smb_readline(char *prompt, void (*callback)(void),
}
/****************************************************************************
+ * return line buffer text
+ ****************************************************************************/
+const char *smb_readline_get_line_buffer(void)
+{
+#if defined(HAVE_LIBREADLINE)
+ return rl_line_buffer;
+#else
+ return NULL;
+#endif
+}
+
+
+/****************************************************************************
+ * set completion append character
+ ***************************************************************************/
+void smb_readline_ca_char(char c)
+{
+#if defined(HAVE_LIBREADLINE)
+ rl_completion_append_character = c;
+#endif
+}
+
+/****************************************************************************
history
****************************************************************************/
int cmd_history(void)
@@ -135,3 +158,4 @@ int cmd_history(void)
return 0;
}
+