(SL_BADCOMMAND): define
(sl_apropos): add prototype git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8024 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1995, 1996, 1997, 1998 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1995 - 2000 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -36,6 +36,8 @@
|
|||||||
#ifndef _SL_H
|
#ifndef _SL_H
|
||||||
#define _SL_H
|
#define _SL_H
|
||||||
|
|
||||||
|
#define SL_BADCOMMAND -1
|
||||||
|
|
||||||
typedef int (*cmd_func)(int, char **);
|
typedef int (*cmd_func)(int, char **);
|
||||||
|
|
||||||
struct sl_cmd {
|
struct sl_cmd {
|
||||||
@@ -52,6 +54,7 @@ int sl_loop (SL_cmd *, char *prompt);
|
|||||||
int sl_command_loop (SL_cmd *cmds, char *prompt, void **data);
|
int sl_command_loop (SL_cmd *cmds, char *prompt, void **data);
|
||||||
int sl_command (SL_cmd *cmds, int argc, char **argv);
|
int sl_command (SL_cmd *cmds, int argc, char **argv);
|
||||||
int sl_make_argv(char*, int*, char***);
|
int sl_make_argv(char*, int*, char***);
|
||||||
|
void sl_apropos (SL_cmd *cmd, char *topic);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _SL_H */
|
#endif /* _SL_H */
|
||||||
|
Reference in New Issue
Block a user