1 /* 2 * xfrd-disk.h - XFR (transfer) Daemon TCP system header file. Save/Load state to disk. 3 * 4 * Copyright (c) 2001-2011, NLnet Labs. All rights reserved. 5 * 6 * See LICENSE for the license. 7 * 8 */ 9 10 #ifndef XFRD_DISK_H 11 #define XFRD_DISK_H 12 13 #include <config.h> 14 struct xfrd_state; 15 16 /* magic string to identify xfrd state file */ 17 #define XFRD_FILE_MAGIC "NSDXFRD1" 18 19 /* read from state file as many zones as possible (until error/eof).*/ 20 void xfrd_read_state(struct xfrd_state* xfrd); 21 /* write xfrd zone state if possible */ 22 void xfrd_write_state(struct xfrd_state* xfrd); 23 24 #endif /* XFRD_DISK_H */ 25