Functions

/build/buildd-opendnssec_1.3.2-1~bpo60+1-s390-eF9Mr1/opendnssec-1.3.2/signer/src/adapter/adfile.c File Reference

#include "config.h"
#include "adapter/adapi.h"
#include "adapter/adfile.h"
#include "adapter/adutil.h"
#include "shared/duration.h"
#include "shared/file.h"
#include "shared/log.h"
#include "shared/status.h"
#include "shared/util.h"
#include "signer/zone.h"
#include <ldns/ldns.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for adfile.c:

Go to the source code of this file.

Functions

ods_status adfile_init (void)
ods_status adfile_read (struct zone_struct *zone, const char *filename)
ods_status adbackup_read (struct zone_struct *zone, const char *filename)
ods_status adfile_write (struct zone_struct *zone, const char *filename)

Function Documentation

ods_status adbackup_read ( struct zone_struct zone,
const char *  filename 
)

Read zone from backup file.

Definition at line 377 of file adfile.c.

References adapi_trans_full(), ods_fclose(), ods_fopen(), ods_log_assert, ods_log_error(), ods_status2str(), and ODS_STATUS_OK.

Referenced by zone_recover().

ods_status adfile_init ( void   ) 

Initialize file adapters.

Definition at line 58 of file adfile.c.

Referenced by adapter_init().

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

Write zonefile.

Definition at line 430 of file adfile.c.

References ods_fclose(), ods_fopen(), ods_log_assert, ods_log_error(), and zone_print().

Referenced by adapter_write(), and tools_audit().