* clear out some warnings by gcc 9.3.1.
[alpine.git] / alpine / arg.h
blob92356e2c7d17cf1a256cb0f9feff5410128f782b
1 /*
2 * $Id: arg.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2020 Eduardo Chappa
6 * Copyright 2006 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PINE_ARG_INCLUDED
18 #define PINE_ARG_INCLUDED
21 #include "../pith/state.h"
22 #include "../pith/string.h"
26 * Used by pine_args to tell caller what was found;
28 typedef struct argdata {
29 enum {aaFolder = 0, aaMore, aaURL, aaMail,
30 aaPrcCopy, aaAbookCopy} action;
31 union {
32 char *folder;
33 char *file;
34 struct {
35 STRLIST_S *addrlist;
36 PATMT *attachlist;
37 } mail;
38 struct {
39 char *local;
40 char *remote;
41 } copy;
42 } data;
43 char *url;
44 } ARGDATA_S;
47 /* exported prototypes */
48 void pine_args(struct pine *, int, char **, ARGDATA_S *);
49 void display_args_err(char *, char **, int);
50 void args_help(void);
53 #endif /* PINE_ARG_INCLUDED */