OpenDNSSEC-signer
1.4.5
|
Go to the source code of this file.
Functions | |
ods_status | adfile_read (void *zone) |
ods_status | adfile_write (void *zone, const char *filename) |
ods_status adfile_read | ( | void * | zone | ) |
File Adapters. File adapter.NULL Read zone from input file adapter.
[in] | zone | zone reference |
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.
[in] | zone | zone reference |
[in] | filename | write to this specific file |
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().