|
Packit Service |
392537 |
/*
|
|
Packit Service |
392537 |
* Amanda, The Advanced Maryland Automatic Network Disk Archiver
|
|
Packit Service |
392537 |
* Copyright (c) 1991-1998 University of Maryland at College Park
|
|
Packit Service |
392537 |
* Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved.
|
|
Packit Service |
392537 |
* Copyright (c) 2013-2016 Carbonite, Inc. All Rights Reserved.
|
|
Packit Service |
392537 |
* All Rights Reserved.
|
|
Packit Service |
392537 |
*
|
|
Packit Service |
392537 |
* Permission to use, copy, modify, distribute, and sell this software and its
|
|
Packit Service |
392537 |
* documentation for any purpose is hereby granted without fee, provided that
|
|
Packit Service |
392537 |
* the above copyright notice appear in all copies and that both that
|
|
Packit Service |
392537 |
* copyright notice and this permission notice appear in supporting
|
|
Packit Service |
392537 |
* documentation, and that the name of U.M. not be used in advertising or
|
|
Packit Service |
392537 |
* publicity pertaining to distribution of the software without specific,
|
|
Packit Service |
392537 |
* written prior permission. U.M. makes no representations about the
|
|
Packit Service |
392537 |
* suitability of this software for any purpose. It is provided "as is"
|
|
Packit Service |
392537 |
* without express or implied warranty.
|
|
Packit Service |
392537 |
*
|
|
Packit Service |
392537 |
* U.M. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
|
|
Packit Service |
392537 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL U.M.
|
|
Packit Service |
392537 |
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
Packit Service |
392537 |
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
|
Packit Service |
392537 |
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
|
Packit Service |
392537 |
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
Packit Service |
392537 |
*
|
|
Packit Service |
392537 |
* Authors: the Amanda Development Team. Its members are listed in a
|
|
Packit Service |
392537 |
* file named AUTHORS, in the root directory of this distribution.
|
|
Packit Service |
392537 |
*/
|
|
Packit Service |
392537 |
/*
|
|
Packit Service |
392537 |
* $Id: tapelist.h,v 1.2 2006/05/25 01:47:12 johnfranks Exp $
|
|
Packit Service |
392537 |
*
|
|
Packit Service |
392537 |
*/
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
#ifndef TAPELIST_H
|
|
Packit Service |
392537 |
#define TAPELIST_H
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
#include "amanda.h"
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
/* XXX This looks like a lot of other things, apart from the string
|
|
Packit Service |
392537 |
* marshalling and unmarshalling. Things like the EXTRACT_LIST in amrecover's
|
|
Packit Service |
392537 |
* innards are functionally similar, so there's probably a lot of opportunity
|
|
Packit Service |
392537 |
* to pare down extraneous code here by mushing things like that in. Rainy
|
|
Packit Service |
392537 |
* day project, perhaps.
|
|
Packit Service |
392537 |
*/
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
typedef struct tapelist_s {
|
|
Packit Service |
392537 |
struct tapelist_s *next;
|
|
Packit Service |
392537 |
char *storage;
|
|
Packit Service |
392537 |
char *label;
|
|
Packit Service |
392537 |
int isafile; /* set to 1 and make *label the path to the file */
|
|
Packit Service |
392537 |
off_t *files;
|
|
Packit Service |
392537 |
int *partnum;
|
|
Packit Service |
392537 |
int numfiles;
|
|
Packit Service |
392537 |
} tapelist_t;
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
int num_entries(tapelist_t *tapelist);
|
|
Packit Service |
392537 |
tapelist_t *append_to_tapelist(tapelist_t *tapelist, char *storage,
|
|
Packit Service |
392537 |
char *label, off_t file, int partnum,
|
|
Packit Service |
392537 |
int isafile);
|
|
Packit Service |
392537 |
char *marshal_tapelist(tapelist_t *tapelist, int escape, int with_storage);
|
|
Packit Service |
392537 |
tapelist_t *unmarshal_tapelist_str(char *tapelist_str, int with_storage);
|
|
Packit Service |
392537 |
char *escape_label(char *label);
|
|
Packit Service |
392537 |
char *unescape_label(char *label);
|
|
Packit Service |
392537 |
void free_tapelist(tapelist_t *tapelist);
|
|
Packit Service |
392537 |
void dump_tapelist(tapelist_t *);
|
|
Packit Service |
392537 |
|
|
Packit Service |
392537 |
#endif /* !TAPELIST_H */
|