* Reimplementation of the code that allows the .pinerc file to be a
[alpine.git] / alpine / arg.h
blob339e793b80b2e31e16674b31423c8dd4510a5dee
1 /*
2 * $Id: arg.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PINE_ARG_INCLUDED
17 #define PINE_ARG_INCLUDED
20 #include "../pith/state.h"
21 #include "../pith/string.h"
25 * Used by pine_args to tell caller what was found;
27 typedef struct argdata {
28 enum {aaFolder = 0, aaMore, aaURL, aaMail,
29 aaPrcCopy, aaAbookCopy} action;
30 union {
31 char *folder;
32 char *file;
33 struct {
34 STRLIST_S *addrlist;
35 PATMT *attachlist;
36 } mail;
37 struct {
38 char *local;
39 char *remote;
40 } copy;
41 } data;
42 char *url;
43 } ARGDATA_S;
46 /* exported protoypes */
47 void pine_args(struct pine *, int, char **, ARGDATA_S *);
48 void display_args_err(char *, char **, int);
49 void args_help(void);
52 #endif /* PINE_ARG_INCLUDED */