mirror of
https://github.com/libarchive/libarchive.git
synced 2026-01-18 17:11:25 +01:00
This is the first part of converting the project to use SPDX license identifiers instead using the verbose license text. The patches are semi-automated and I've went through manually to ensure no license changes were made. That said, I would welcome another pair of eyes, since I am only human. See https://github.com/libarchive/libarchive/issues/2298 --------- Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
43 lines
740 B
C
43 lines
740 B
C
/*-
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2023, Martin Matuska
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef BSDUNZIP_H_INCLUDED
|
|
#define BSDUNZIP_H_INCLUDED
|
|
|
|
#if defined(PLATFORM_CONFIG_H)
|
|
/* Use hand-built config.h in environments that need it. */
|
|
#include PLATFORM_CONFIG_H
|
|
#else
|
|
/* Not having a config.h of some sort is a serious problem. */
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <archive.h>
|
|
#include <archive_entry.h>
|
|
|
|
struct bsdunzip {
|
|
/* Option parser state */
|
|
int getopt_state;
|
|
char *getopt_word;
|
|
|
|
/* Miscellaneous state information */
|
|
int argc;
|
|
char **argv;
|
|
const char *argument;
|
|
};
|
|
|
|
enum {
|
|
OPTION_NONE,
|
|
OPTION_VERSION
|
|
};
|
|
|
|
int bsdunzip_getopt(struct bsdunzip *);
|
|
|
|
extern int bsdunzip_optind;
|
|
|
|
#endif
|