Functions

/build/buildd-opendnssec_1.3.2-1~bpo60+1-kfreebsd-i386-KuwQV_/opendnssec-1.3.2/signer/src/adapter/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  ) 

Initialize adapter.

Definition at line 52 of file adapter.c.

References ADAPTER_FILE, adfile_init(), adapter_struct::configstr, ods_log_assert, ods_log_error(), 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(), and adapter_struct::type.

Referenced by tools_input().

ods_status adapter_write ( struct zone_struct zone  )