summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/xfrd-disk.h
blob: 7d1ac9c32a04eecd82bae76799bd08ad76d21c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * xfrd-disk.h - XFR (transfer) Daemon TCP system header file. Save/Load state to disk.
 *
 * Copyright (c) 2001-2011, NLnet Labs. All rights reserved.
 *
 * See LICENSE for the license.
 *
 */

#ifndef XFRD_DISK_H
#define XFRD_DISK_H

#include <config.h>
struct xfrd_state;

/* magic string to identify xfrd state file */
#define XFRD_FILE_MAGIC "NSDXFRD1"

/* read from state file as many zones as possible (until error/eof).*/
void xfrd_read_state(struct xfrd_state* xfrd);
/* write xfrd zone state if possible */
void xfrd_write_state(struct xfrd_state* xfrd);

#endif /* XFRD_DISK_H */