194742Sobrien/*- 294742Sobrien * Copyright (c) 2011 Tim Kientzle 3146890Speter * All rights reserved. 4146890Speter * 5146890Speter * Redistribution and use in source and binary forms, with or without 6146890Speter * modification, are permitted provided that the following conditions 7146890Speter * are met: 8146890Speter * 1. Redistributions of source code must retain the above copyright 9146890Speter * notice, this list of conditions and the following disclaimer. 10146890Speter * 2. Redistributions in binary form must reproduce the above copyright 11146890Speter * notice, this list of conditions and the following disclaimer in the 12146890Speter * documentation and/or other materials provided with the distribution. 13146890Speter * 14146890Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR 15146890Speter * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16146890Speter * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17146890Speter * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 18146890Speter * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19146890Speter * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20146890Speter * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2194742Sobrien * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2295253Sru * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2394742Sobrien * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2496991Srwatson */ 2596991Srwatson 2696991Srwatson#ifndef ARCHIVE_OPTIONS_PRIVATE_H_INCLUDED 27102773Srwatson#define ARCHIVE_OPTIONS_PRIVATE_H_INCLUDED 28102773Srwatson 2994854Ssos#include "archive_platform.h" 3094917Simp__FBSDID("$FreeBSD$"); 31126445Sobrien 3294917Simp#include "archive_private.h" 3394917Simp 3494917Simptypedef int (*option_handler)(struct archive *a, 35146918Smarkm const char *mod, const char *opt, const char *val); 36146918Smarkm 37125244Snectarint 38125244Snectar_archive_set_option(struct archive *a, 3994847Sjhb const char *mod, const char *opt, const char *val, 4094847Sjhb int magic, const char *fn, option_handler use_option); 4194847Sjhb 42126337Svkashyapint 43128023Svkashyap_archive_set_options(struct archive *a, const char *options, 4494855Sscottl int magic, const char *fn, option_handler use_option); 45126054Sscottl 46126054Sscottlint 47126054Sscottl_archive_set_either_option(struct archive *a, 48126054Sscottl const char *m, const char *o, const char *v, 49126054Sscottl option_handler use_format_option, option_handler use_filter_option); 50126054Sscottl 5194915Sken#endif 5299607Smjacob