Commit 723ade1a 723ade1ac72fa2635d7aa04f6a118cefce44f15a by Sergey Poznyakoff

Restore prematurely deleted header

* include/mailutils/argcv.h: Restore
* include/mailutils/Makefile.am: Add back argcv.h
1 parent 678d9367
...@@ -28,6 +28,7 @@ pkginclude_HEADERS = \ ...@@ -28,6 +28,7 @@ pkginclude_HEADERS = \
28 acl.h\ 28 acl.h\
29 address.h\ 29 address.h\
30 alloc.h\ 30 alloc.h\
31 argcv.h\
31 assoc.h\ 32 assoc.h\
32 attribute.h\ 33 attribute.h\
33 auth.h\ 34 auth.h\
......
1 /* GNU Mailutils -- a suite of utilities for electronic mail
2 Copyright (C) 1999-2001, 2005, 2007, 2010-2012, 2014-2016 Free
3 Software Foundation, Inc.
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 3 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General
16 Public License along with this library. If not, see
17 <http://www.gnu.org/licenses/>. */
18
19 #ifndef _ARGCV_H
20 #define _ARGCV_H 1
21
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <unistd.h>
25 #include <string.h>
26
27 #include <mailutils/types.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 void mu_argcv_free (size_t argc, char **argv);
34 void mu_argv_free (char **argv);
35
36 enum mu_argcv_escape
37 {
38 mu_argcv_escape_no,
39 mu_argcv_escape_c
40 /* mu_argcv_escape_sh */
41 };
42
43 int mu_argcv_join (int argc, char **argv, char *delim,
44 enum mu_argcv_escape esc,
45 char **pstring);
46 void mu_argcv_remove (int *pargc, char ***pargv,
47 int (*sel) (const char *, void *), void *);
48 int mu_argcv_string (int argc, char **argv, char **string);
49
50 #ifdef __cplusplus
51 }
52 #endif
53
54 #endif /* _ARGCV_H */