1248590Smm/*-
2248590Smm * Copyright (c) 2012 Michihiro NAKAJIMA
3248590Smm * All rights reserved.
4248590Smm *
5248590Smm * Redistribution and use in source and binary forms, with or without
6248590Smm * modification, are permitted provided that the following conditions
7248590Smm * are met:
8248590Smm * 1. Redistributions of source code must retain the above copyright
9248590Smm *    notice, this list of conditions and the following disclaimer.
10248590Smm * 2. Redistributions in binary form must reproduce the above copyright
11248590Smm *    notice, this list of conditions and the following disclaimer in the
12248590Smm *    documentation and/or other materials provided with the distribution.
13248590Smm *
14248590Smm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
15248590Smm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16248590Smm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17248590Smm * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
18248590Smm * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19248590Smm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20248590Smm * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21248590Smm * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22248590Smm * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23248590Smm * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24248590Smm *
25248590Smm * $FreeBSD$
26248590Smm */
27248590Smm
28358088Smm#ifndef ARCHIVE_CMDLINE_PRIVATE_H
29358088Smm#define ARCHIVE_CMDLINE_PRIVATE_H
30358088Smm
31248590Smm#ifndef __LIBARCHIVE_BUILD
32248590Smm#ifndef __LIBARCHIVE_TEST
33248590Smm#error This header is only to be used internally to libarchive.
34248590Smm#endif
35248590Smm#endif
36248590Smm
37248590Smmstruct archive_cmdline {
38248590Smm        char            *path;
39248590Smm        char            **argv;
40248590Smm        int              argc;
41248590Smm};
42248590Smm
43248590Smmstruct archive_cmdline *__archive_cmdline_allocate(void);
44248590Smmint __archive_cmdline_parse(struct archive_cmdline *, const char *);
45248590Smmint __archive_cmdline_free(struct archive_cmdline *);
46248590Smm
47248590Smm#endif
48