OpenDNSSEC-signer
1.3.16
|
#include "adapter/adapter.h"
#include "shared/allocator.h"
#include "shared/file.h"
#include "shared/log.h"
#include "shared/status.h"
#include "signer/zone.h"
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Functions | |
ods_status | adapter_init (adapter_type *adapter) |
adapter_type * | adapter_create (const char *str, adapter_mode type, int inbound) |
ods_status | adapter_read (struct zone_struct *zone) |
ods_status | adapter_write (struct zone_struct *zone) |
int | adapter_compare (adapter_type *a1, adapter_type *a2) |
void | adapter_cleanup (adapter_type *adapter) |
void adapter_cleanup | ( | adapter_type * | adapter | ) |
Clean up adapter.
Definition at line 220 of file adapter.c.
References adapter_struct::allocator, allocator_cleanup(), allocator_deallocate(), adapter_struct::configstr, and adapter_struct::data.
Referenced by zone_cleanup().
int adapter_compare | ( | adapter_type * | a1, |
adapter_type * | a2 | ||
) |
Compare adapters.
Definition at line 198 of file adapter.c.
References adapter_struct::configstr, adapter_struct::inbound, ods_strcmp(), and adapter_struct::type.
Referenced by zone_merge().
adapter_type* adapter_create | ( | const char * | str, |
adapter_mode | type, | ||
int | inbound | ||
) |
Create a new adapter.
Definition at line 79 of file adapter.c.
References adapter_struct::allocator, allocator_alloc(), allocator_cleanup(), allocator_create(), allocator_strdup(), adapter_struct::configstr, adapter_struct::data, adapter_struct::inbound, ods_log_assert, ods_log_error(), and adapter_struct::type.
ods_status adapter_init | ( | adapter_type * | adapter | ) |
Initialize adapter.
Definition at line 52 of file adapter.c.
References ADAPTER_FILE, adfile_init(), adapter_struct::configstr, ods_log_assert, ods_log_error(), ODS_STATUS_ERR, and adapter_struct::type.
ods_status adapter_read | ( | struct zone_struct * | zone | ) |
Read zone from input adapter. /param[in] zone zone /return ods_status stats
Definition at line 114 of file adapter.c.
References ADAPTER_FILE, adfile_read(), zone_struct::adinbound, adapter_struct::configstr, zone_struct::name, ods_log_assert, ods_log_error(), ods_log_verbose(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_ERR, ODS_STATUS_OK, and adapter_struct::type.
Referenced by tools_input().
ods_status adapter_write | ( | struct zone_struct * | zone | ) |
Write zone to output adapter.
Definition at line 152 of file adapter.c.
References ADAPTER_FILE, adfile_write(), zone_struct::adinbound, zone_struct::adoutbound, adapter_struct::configstr, zone_struct::name, ods_log_assert, ods_log_error(), ods_log_verbose(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_ERR, ODS_STATUS_OK, zonedata_struct::outbound_serial, adapter_struct::type, and zone_struct::zonedata.
Referenced by tools_output().