Blame client-src/amandates.h

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: amandates.h,v 1.5 2006/07/25 18:35:21 martinea Exp $
Packit Service 392537
 *
Packit Service 392537
 * interface for amandates file
Packit Service 392537
 */
Packit Service 392537
#ifndef AMANDATES_H
Packit Service 392537
#define AMANDATES_H
Packit Service 392537
Packit Service 392537
#include "amanda.h"
Packit Service 392537
Packit Service 392537
#define EPOCH		((time_t)0)
Packit Service 392537
Packit Service 392537
typedef struct amandates_s {
Packit Service 392537
    struct amandates_s *next;
Packit Service 392537
    char *name;				/* filesystem name */
Packit Service 392537
    time_t dates[DUMP_LEVELS];		/* dump dates */
Packit Service 392537
} amandates_t;
Packit Service 392537
Packit Service 392537
int  start_amandates (char *amandates_file, int open_readwrite);
Packit Service 392537
void finish_amandates (void);
Packit Service 392537
void free_amandates (void);
Packit Service 392537
amandates_t *amandates_lookup (char *name);
Packit Service 392537
void amandates_updateone (char *name, int level, time_t dumpdate);
Packit Service 392537
Packit Service 392537
#endif /* ! AMANDATES_H */