mirror of
https://github.com/troglobit/libite.git
synced 2026-10-22 11:26:21 +00:00
Add support for a simple telnet expect set of APIs
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
b2c2d032e8
commit
83047d4413
4 files changed
+308
-2
No files matched your search
@@ -57,6 +57,7 @@ extern "C"
|
||||
#define LITE_FOPT_KEEP_MTIME 0x02
|
||||
|
||||
typedef struct lfile lfile_t;
|
||||
typedef struct sdbuf sdbuf_t;
|
||||
|
||||
char *chomp (char *str);
|
||||
char *fparseln (FILE *, size_t *, size_t *, const char[3], int);
|
||||
@@ -95,6 +96,11 @@ void *reallocarray(void *optr, size_t nmemb, size_t size);
|
||||
void progress (int percent, int max_width);
|
||||
void progress_simple(int percent);
|
||||
|
||||
sdbuf_t*telnet_open (int addr, short port);
|
||||
int telnet_close (sdbuf_t *ctx);
|
||||
int telnet_expect (sdbuf_t *ctx, char *script[], FILE *output);
|
||||
int telnet_session (int addr, short port, char *script[], FILE *output);
|
||||
|
||||
int yorn (const char *fmt, ...);
|
||||
|
||||
char *which (const char *cmd);
|
||||
|
||||
Reference in new issue
Block a user