xref: /dflybsd-src/contrib/libarchive/libarchive/archive_options_private.h (revision 085658de3b7b6902c031532118aeb6a4246171ae)
1c09f92d2SPeter Avalos /*-
2c09f92d2SPeter Avalos  * Copyright (c) 2011 Tim Kientzle
3c09f92d2SPeter Avalos  * All rights reserved.
4c09f92d2SPeter Avalos  *
5c09f92d2SPeter Avalos  * Redistribution and use in source and binary forms, with or without
6c09f92d2SPeter Avalos  * modification, are permitted provided that the following conditions
7c09f92d2SPeter Avalos  * are met:
8c09f92d2SPeter Avalos  * 1. Redistributions of source code must retain the above copyright
9c09f92d2SPeter Avalos  *    notice, this list of conditions and the following disclaimer.
10c09f92d2SPeter Avalos  * 2. Redistributions in binary form must reproduce the above copyright
11c09f92d2SPeter Avalos  *    notice, this list of conditions and the following disclaimer in the
12c09f92d2SPeter Avalos  *    documentation and/or other materials provided with the distribution.
13c09f92d2SPeter Avalos  *
14c09f92d2SPeter Avalos  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
15c09f92d2SPeter Avalos  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16c09f92d2SPeter Avalos  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17c09f92d2SPeter Avalos  * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
18c09f92d2SPeter Avalos  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19c09f92d2SPeter Avalos  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20c09f92d2SPeter Avalos  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21c09f92d2SPeter Avalos  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22c09f92d2SPeter Avalos  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23c09f92d2SPeter Avalos  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24c09f92d2SPeter Avalos  */
25c09f92d2SPeter Avalos 
26*085658deSDaniel Fojt #ifndef ARCHIVE_OPTIONS_PRIVATE_H_INCLUDED
27*085658deSDaniel Fojt #define ARCHIVE_OPTIONS_PRIVATE_H_INCLUDED
28*085658deSDaniel Fojt 
29c09f92d2SPeter Avalos #include "archive_platform.h"
30c09f92d2SPeter Avalos __FBSDID("$FreeBSD$");
31c09f92d2SPeter Avalos 
32c09f92d2SPeter Avalos #include "archive_private.h"
33c09f92d2SPeter Avalos 
34c09f92d2SPeter Avalos typedef int (*option_handler)(struct archive *a,
35c09f92d2SPeter Avalos     const char *mod, const char *opt, const char *val);
36c09f92d2SPeter Avalos 
37c09f92d2SPeter Avalos int
38c09f92d2SPeter Avalos _archive_set_option(struct archive *a,
39c09f92d2SPeter Avalos     const char *mod, const char *opt, const char *val,
40c09f92d2SPeter Avalos     int magic, const char *fn, option_handler use_option);
41c09f92d2SPeter Avalos 
42c09f92d2SPeter Avalos int
43c09f92d2SPeter Avalos _archive_set_options(struct archive *a, const char *options,
44c09f92d2SPeter Avalos     int magic, const char *fn, option_handler use_option);
45c09f92d2SPeter Avalos 
46c09f92d2SPeter Avalos int
47c09f92d2SPeter Avalos _archive_set_either_option(struct archive *a,
48c09f92d2SPeter Avalos     const char *m, const char *o, const char *v,
49c09f92d2SPeter Avalos     option_handler use_format_option, option_handler use_filter_option);
50c09f92d2SPeter Avalos 
51*085658deSDaniel Fojt #endif
52