OpenDNSSEC-signer 1.2.1
Defines | Functions

/build/buildd-opendnssec_1.2.1.dfsg-1-mips-p9AT07/opendnssec-1.2.1.dfsg/signer/src/adapter/adfile.h File Reference

#include "config.h"
#include <stdio.h>
Include dependency graph for adfile.h:

Go to the source code of this file.

Defines

#define SE_ADFILE_MAXLINE   65535

Functions

int adfile_read (struct zone_struct *zone, const char *filename, int recover)
int adfile_write (struct zone_struct *zone, const char *filename)

Define Documentation

#define SE_ADFILE_MAXLINE   65535

File Adapters.

Definition at line 41 of file adfile.h.


Function Documentation

int adfile_read ( struct zone_struct zone,
const char *  filename,
int  recover 
)

Read zone file.

Parameters:
[in]zonezone structure
[in]filenameread from this specific file
[in]recovertrue if we are recovering from backup
Returns:
0 on success, 1 on error

Read input file adapter.

Definition at line 496 of file adfile.c.

References zone_struct::name, se_fclose(), se_fopen(), se_log_assert, se_log_debug(), se_log_error(), zone_struct::zonedata, and zonedata_del_rrs().

Referenced by tools_read_input(), and zone_recover_from_backup().

int adfile_write ( struct zone_struct zone,
const char *  filename 
)

Write zone file.

Parameters:
[in]zonezone structure
[in]filenamewrite to this specific file
Returns:
0 on success, 1 on error

Write zone file.

Definition at line 544 of file adfile.c.

References adapter_struct::filename, zone_struct::name, zone_struct::outbound_adapter, se_fclose(), se_fopen(), se_log_assert, se_log_debug(), and zone_print().

Referenced by tools_audit(), and tools_write_output().