X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=mailutils%2Fmail.h;h=d1d783055a3b703b84d6e7fdacfc19ec14c190b4;hb=16714245f9a16ce3725aab079aea7b0d28c6b32f;hp=e0048fbfae04c50c56ae6add0e83d97d977a0a84;hpb=9fe98f701d40835db32baa12c94b661d40231ea4;p=oweals%2Fbusybox.git diff --git a/mailutils/mail.h b/mailutils/mail.h index e0048fbfa..d1d783055 100644 --- a/mailutils/mail.h +++ b/mailutils/mail.h @@ -1,7 +1,16 @@ +/* vi: set sw=4 ts=4: */ +/* + * helper routines + * + * Copyright (C) 2008 by Vladimir Dronnikov + * + * Licensed under GPLv2, see file LICENSE in this source tree. + */ struct globals { pid_t helper_pid; unsigned timeout; + unsigned verbose; unsigned opts; char *user; char *pass; @@ -12,6 +21,7 @@ struct globals { #define G (*ptr_to_globals) #define timeout (G.timeout ) +#define verbose (G.verbose ) #define opts (G.opts ) //#define user (G.user ) //#define pass (G.pass ) @@ -26,9 +36,9 @@ struct globals { //char FAST_FUNC *parse_url(char *url, char **user, char **pass); -void FAST_FUNC launch_helper(const char **argv); -void FAST_FUNC get_cred_or_die(int fd); +void launch_helper(const char **argv) FAST_FUNC; +void get_cred_or_die(int fd) FAST_FUNC; -const FAST_FUNC char *command(const char *fmt, const char *param); +char *send_mail_command(const char *fmt, const char *param) FAST_FUNC; -void FAST_FUNC encode_base64(char *fname, const char *text, const char *eol); +void encode_base64(char *fname, const char *text, const char *eol) FAST_FUNC;