Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/mailutils/mail.h

    r2725 r3232  
     1/* vi: set sw=4 ts=4: */
     2/*
     3 * helper routines
     4 *
     5 * Copyright (C) 2008 by Vladimir Dronnikov <dronnikov@gmail.com>
     6 *
     7 * Licensed under GPLv2, see file LICENSE in this source tree.
     8 */
    19
    210struct globals {
    311    pid_t helper_pid;
    412    unsigned timeout;
     13    unsigned verbose;
    514    unsigned opts;
    615    char *user;
     
    817    FILE *fp0; // initial stdin
    918    char *opt_charset;
    10     char *content_type;
    1119};
    1220
    1321#define G (*ptr_to_globals)
    1422#define timeout         (G.timeout  )
     23#define verbose         (G.verbose  )
    1524#define opts            (G.opts     )
    16 //#define user            (G.user     )
    17 //#define pass            (G.pass     )
    18 //#define fp0             (G.fp0      )
    19 //#define opt_charset     (G.opt_charset)
    20 //#define content_type    (G.content_type)
    2125#define INIT_G() do { \
    2226    SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
    2327    G.opt_charset = (char *)CONFIG_FEATURE_MIME_CHARSET; \
    24     G.content_type = (char *)"text/plain"; \
    2528} while (0)
    2629
    2730//char FAST_FUNC *parse_url(char *url, char **user, char **pass);
    2831
    29 void FAST_FUNC launch_helper(const char **argv);
    30 void FAST_FUNC get_cred_or_die(int fd);
     32void launch_helper(const char **argv) FAST_FUNC;
     33void get_cred_or_die(int fd) FAST_FUNC;
    3134
    32 const FAST_FUNC char *command(const char *fmt, const char *param);
     35char *send_mail_command(const char *fmt, const char *param) FAST_FUNC;
    3336
    34 void FAST_FUNC encode_base64(char *fname, const char *text, const char *eol);
     37void encode_base64(char *fname, const char *text, const char *eol) FAST_FUNC;
Note: See TracChangeset for help on using the changeset viewer.