OpenDNSSEC-signer 1.2.1
Data Structures | Typedefs | Enumerations | Functions

/build/buildd-opendnssec_1.2.1.dfsg-1-mips-p9AT07/opendnssec-1.2.1.dfsg/signer/src/adapter/adapter.h File Reference

#include "adapter/adfile.h"
#include "config.h"
#include <stdio.h>
Include dependency graph for adapter.h:

Go to the source code of this file.

Data Structures

struct  adapter_struct

Typedefs

typedef enum adapter_mode_enum adapter_mode
typedef struct adapter_struct adapter_type

Enumerations

enum  adapter_mode_enum { ADAPTER_UNKNOWN = 0, ADAPTER_FILE }

Functions

adapter_typeadapter_create (const char *filename, adapter_mode type, int inbound)
int adapter_compare (adapter_type *a1, adapter_type *a2)
void adapter_cleanup (adapter_type *adapter)

Typedef Documentation

Definition at line 50 of file adapter.h.

typedef struct adapter_struct adapter_type

Adapter.

Definition at line 56 of file adapter.h.


Enumeration Type Documentation

Adapter mode.

Enumerator:
ADAPTER_UNKNOWN 
ADAPTER_FILE 

Definition at line 45 of file adapter.h.


Function Documentation

void adapter_cleanup ( adapter_type adapter)

Clean up adapter.

Parameters:
[in]adapteradapter to cleanup

Clean up adapter.

Definition at line 87 of file adapter.c.

References adapter_struct::filename, se_free(), and se_log_warning().

Referenced by zone_cleanup(), and zone_update_zonelist().

int adapter_compare ( adapter_type a1,
adapter_type a2 
)

Compare adapters. /param[in] a1 adapter 1 /param[in] a2 adapter 2 /return int 0 on equal, -1 if a1 < a2, 1 if a1 > a2

Compare adapters.

Definition at line 65 of file adapter.c.

References adapter_struct::filename, adapter_struct::inbound, se_strcmp(), and adapter_struct::type.

Referenced by zone_update_zonelist().

adapter_type* adapter_create ( const char *  filename,
adapter_mode  type,
int  inbound 
)

Create a new adapter.

Parameters:
[in]filenamefilename
[in]typetype of adapter
[in]inboundinbound adapter or outbound
Returns:
adapter_type* created adapter

Inbound and Outbound Adapters. Create a new adapter.

Definition at line 48 of file adapter.c.

References adapter_struct::filename, adapter_struct::inbound, se_log_assert, se_malloc(), se_strdup(), and adapter_struct::type.

Referenced by zone_update_zonelist().