summaryrefslogtreecommitdiff
path: root/comsat/comsat.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-12-08 11:27:14 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2010-12-08 12:07:27 +0200
commit835ee6b03a098d8566e9b9ba2c22ab2403d41cba (patch)
treef0e71e2e79014df29eeb32c1b513240d6ba46784 /comsat/comsat.h
parent2cbe825eb999f224ce756510dbd7123bc76ec924 (diff)
downloadmailutils-835ee6b03a098d8566e9b9ba2c22ab2403d41cba.tar.gz
mailutils-835ee6b03a098d8566e9b9ba2c22ab2403d41cba.tar.bz2
comsat: improve tty handling, add testsuite.
* comsat/action.c (need_crlf, _open_tty, open_tty): Moved from comsat.c (open_default_tty): New function. (run_user_action): Take device name as first argument. Reuse wordsplit memory. * comsat/comsat.c (notify_user): Update invocation of run_user_action. * comsat/comsat.h (open_tty): Remove prototype. (run_user_action): Change signature. * configure.ac: Add comsat tests. * comsat/Makefile.am (SUBDIRS): Add tests. * comsat/tests/.gitignore: New file. * comsat/tests/Makefile.am: New file. * comsat/tests/atlocal.in: New file. * comsat/tests/testsuite.at: New file.
Diffstat (limited to 'comsat/comsat.h')
-rw-r--r--comsat/comsat.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/comsat/comsat.h b/comsat/comsat.h
index 8368c6ffc..ff4381933 100644
--- a/comsat/comsat.h
+++ b/comsat/comsat.h
@@ -79,6 +79,5 @@ extern char *hostname;
extern struct daemon_param daemon_param;
extern char *biffrc;
-void run_user_action (mu_stream_t str, mu_message_t msg);
-mu_stream_t open_tty (const char *device, int argc, char **argv);
+void run_user_action (const char *device, mu_message_t msg);

Return to:

Send suggestions and report system problems to the System administrator.