diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-09-21 16:17:52 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-09-21 16:17:52 +0200 |
commit | a9487a332ac662ac1a41e28c1c9c51fa596c6393 (patch) | |
tree | 3d3fcef8e9374ea279ec5ec74074968e1883c064 /src/modem.h | |
parent | 7bc63588efa1f59e7f8c21721af9557e9e59f44f (diff) | |
download | bbs-a9487a332ac662ac1a41e28c1c9c51fa596c6393.tar.gz |
replaced printf witg LOGPRINTF macro, decumentation
Diffstat (limited to 'src/modem.h')
-rw-r--r-- | src/modem.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/modem.h b/src/modem.h index 31f9fee..544c4cc 100644 --- a/src/modem.h +++ b/src/modem.h @@ -26,20 +26,23 @@ #define _MODEM_WAIT_RING -int modem_accept_wait(int fd); /* * Waits for RING (ifdef _MODEM_WAIT_RING), accepts incoming calls. Return is non-zero when cennection fails. * */ +int modem_accept_wait(int fd); -int modem_command(int fd, char* cmd, int timeout_ms); /* * Execute an AT command. return is non-zero if answer is not OK * */ +int modem_command(int fd, char* cmd, int timeout_ms); -int modem_run(int fd, int argc, char* argv[]); /* * Run a program with modem as STDIO. checks if connection is still alive & process is still active. * will close fd on successful return * */ +int modem_run(int fd, int argc, char* argv[]); +/* + * Spawn a telnet server + * */ void dialup_server(struct prog_params params); |