OpenDNSSEC-signer  1.3.16
Functions
adfile.h File Reference
#include "config.h"
#include "shared/allocator.h"
#include "shared/status.h"
#include <stdio.h>
Include dependency graph for adfile.h:
This graph shows which files directly or indirectly include this file:

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.

Parameters
[in]zonezone structure
[in]filenameread from this specific file
Returns
ods_status status

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(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_FOPEN_ERR, and ODS_STATUS_OK.

Referenced by zone_recover().

ods_status adfile_init ( void  )

File adapter.NULL Initialize file adapters.

Returns
ods_status status

Initialize file adapters.

Definition at line 58 of file adfile.c.

References ODS_STATUS_OK.

Referenced by adapter_init().

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

Read zone from input file adapter.

Parameters
[in]zonezone structure
[in]filenameread from this specific file
Returns
ods_status status

Read zone from zonefile.

Definition at line 303 of file adfile.c.

References adapi_set_serial(), adapi_trans_full(), adutil_lookup_soa_rr(), ods_fclose(), ods_fopen(), ods_log_assert, ods_log_error(), ods_status2str(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_FOPEN_ERR, ODS_STATUS_OK, SE_SOA_RDATA_SERIAL, and zone_examine().

Referenced by adapter_read().

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

Write zone to output file adapter.

Parameters
[in]zonezone structure
[in]filenamewrite to this specific file
Returns
ods_status status

Write zonefile.

Definition at line 430 of file adfile.c.

References ods_build_path(), ods_fclose(), ods_fopen(), ods_log_assert, ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_ERR, ODS_STATUS_FOPEN_ERR, ODS_STATUS_OK, ODS_STATUS_RENAME_ERR, and zone_print().

Referenced by adapter_write(), and tools_audit().