OpenDNSSEC-signer 1.2.1
|
#include "adapter/adfile.h"
#include "config.h"
#include <stdio.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_type * | adapter_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 enum adapter_mode_enum adapter_mode |
typedef struct adapter_struct adapter_type |
enum adapter_mode_enum |
void adapter_cleanup | ( | adapter_type * | adapter | ) |
Clean up adapter.
[in] | adapter | adapter 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.
[in] | filename | filename |
[in] | type | type of adapter |
[in] | inbound | inbound adapter or outbound |
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().