Path: blob/main/contrib/libarchive/unzip/bsdunzip.h
39536 views
/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 2023, Martin Matuska4* All rights reserved.5*/67#ifndef BSDUNZIP_H_INCLUDED8#define BSDUNZIP_H_INCLUDED910#if defined(PLATFORM_CONFIG_H)11/* Use hand-built config.h in environments that need it. */12#include PLATFORM_CONFIG_H13#else14/* Not having a config.h of some sort is a serious problem. */15#include "config.h"16#endif1718#include <archive.h>19#include <archive_entry.h>2021struct bsdunzip {22/* Option parser state */23int getopt_state;24char *getopt_word;2526/* Miscellaneous state information */27int argc;28char **argv;29const char *argument;30};3132enum {33OPTION_NONE,34OPTION_VERSION35};3637int bsdunzip_getopt(struct bsdunzip *);3839extern int bsdunzip_optind;4041#endif424344