OpenDNSSEC-signer  1.4.6
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_read (void *zone)
 
ods_status adfile_write (void *zone, const char *filename)
 

Function Documentation

ods_status adfile_read ( void *  zone)

File Adapters. File adapter.NULL Read zone from input file adapter.

Parameters
[in]zonezone reference
Returns
ods_status status

Read zone from zonefile.

Definition at line 298 of file adfile.c.

References adapi_trans_full(), zone_struct::adinbound, adapter_struct::configstr, ods_fclose(), ods_fopen(), ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_FOPEN_ERR, and ODS_STATUS_OK.

Referenced by adapter_read().

ods_status adfile_write ( void *  zone,
const char *  filename 
)

Write zone to output file adapter.

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

Write zonefile.

Definition at line 326 of file adfile.c.

References adapi_printzone(), zone_struct::adoutbound, adapter_struct::error, zone_struct::name, ods_build_path(), ods_fclose(), ods_fopen(), ods_log_error(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_FOPEN_ERR, ODS_STATUS_FWRITE_ERR, ODS_STATUS_MALLOC_ERR, ODS_STATUS_OK, and ODS_STATUS_RENAME_ERR.

Referenced by adapter_write().