OpenDNSSEC-signer  1.3.16
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 <stdio.h>
#include <stdlib.h>
Include dependency graph for adapter.c:

Go to the source code of this file.

Functions

ods_status adapter_init (adapter_type *adapter)
 
adapter_typeadapter_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)
 

Function Documentation

void adapter_cleanup ( adapter_type adapter)
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 
)
ods_status adapter_init ( adapter_type adapter)
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)