summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/xfrd-disk.h
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>2010-01-15 19:25:09 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>2010-01-15 19:25:09 +0000
commitd2081ac134d2d350ed92374b12613330132619c9 (patch)
tree511f9a412b24160516c7d3d29111801f9fa1bf35 /usr.sbin/nsd/xfrd-disk.h
parentefe15de128add506fb4055690c47221eb73d6346 (diff)
NSD v3.2.4
Diffstat (limited to 'usr.sbin/nsd/xfrd-disk.h')
-rw-r--r--usr.sbin/nsd/xfrd-disk.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/usr.sbin/nsd/xfrd-disk.h b/usr.sbin/nsd/xfrd-disk.h
new file mode 100644
index 00000000000..217ecc122b9
--- /dev/null
+++ b/usr.sbin/nsd/xfrd-disk.h
@@ -0,0 +1,24 @@
+/*
+ * xfrd-disk.h - XFR (transfer) Daemon TCP system header file. Save/Load state to disk.
+ *
+ * Copyright (c) 2001-2006, 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 */