backup.h
Go to the documentation of this file.
/*
* Copyright (c) 2006-2010 NLNet Labs. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef SIGNER_BACKUP_H
#define SIGNER_BACKUP_H
#include "config.h"
#include "duration.h"
#include "file.h"
#include "status.h"
#include <ldns/ldns.h>
char* backup_read_token(FILE* in);
int backup_read_check_str(FILE* in, const char* str);
int backup_read_str(FILE* in, const char** str);
int backup_read_time_t(FILE* in, time_t* v);
int backup_read_duration(FILE* in, duration_type** v);
int backup_read_rr_type(FILE* in, ldns_rr_type* v);
int backup_read_int(FILE* in, int* v);
int backup_read_uint8_t(FILE* in, uint8_t* v);
int backup_read_uint32_t(FILE* in, uint32_t* v);
ods_status backup_read_namedb(FILE* in, void* zone);
ods_status backup_read_ixfr(FILE* in, void* zone);
#endif /* SIGNER_BACKUP_H */
backup_read_namedb
ods_status backup_read_namedb(FILE *in, void *zone)
Definition backup.c:304
backup_read_uint32_t
int backup_read_uint32_t(FILE *in, uint32_t *v)
Definition backup.c:209
backup_read_int
int backup_read_int(FILE *in, int *v)
Definition backup.c:175
backup_read_ixfr
ods_status backup_read_ixfr(FILE *in, void *zone)
Definition backup.c:499
backup_read_rr_type
int backup_read_rr_type(FILE *in, ldns_rr_type *v)
Definition backup.c:158
backup_read_time_t
int backup_read_time_t(FILE *in, time_t *v)
Definition backup.c:121
backup_read_uint8_t
int backup_read_uint8_t(FILE *in, uint8_t *v)
Definition backup.c:192
backup_read_check_str
int backup_read_check_str(FILE *in, const char *str)
Definition backup.c:77
backup_read_duration
int backup_read_duration(FILE *in, duration_type **v)
Definition backup.c:138
backup_read_str
int backup_read_str(FILE *in, const char **str)
Definition backup.c:104
backup_read_token
char * backup_read_token(FILE *in)
Definition backup.c:53