OpenDNSSEC-signer  1.4.3
Functions
adapter.c File Reference
#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 <stdlib.h>
Include dependency graph for adapter.c:

Go to the source code of this file.

Functions

adapter_typeadapter_create (const char *str, adapter_mode type, unsigned in)
 
ods_status adapter_load_config (adapter_type *adapter)
 
ods_status adapter_read (void *zone)
 
ods_status adapter_write (void *zone)
 
int adapter_compare (adapter_type *a1, adapter_type *a2)
 
void adapter_cleanup (adapter_type *adapter)
 

Function Documentation

void adapter_cleanup ( adapter_type adapter)
int adapter_compare ( adapter_type a1,
adapter_type a2 
)

Compare adapters.

Definition at line 239 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,
unsigned  in 
)
ods_status adapter_load_config ( adapter_type adapter)
ods_status adapter_read ( void *  zone)

Read zone from input adapter.

Parameters
[in]zonezone
Returns
ods_status status

Definition at line 166 of file adapter.c.

References ADAPTER_DNS, ADAPTER_FILE, addns_read(), 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, and adapter_struct::type.

Referenced by tools_input().

ods_status adapter_write ( void *  zone)