OpenDNSSEC-enforcer
2.1.7
|
#include "db/db_connection.h"
Go to the source code of this file.
Macros | |
#define | ZONELIST_EXPORT_OK 0 |
#define | ZONELIST_EXPORT_ERR_ARGS 1 |
#define | ZONELIST_EXPORT_ERR_XML 2 |
#define | ZONELIST_EXPORT_ERR_DATABASE 3 |
#define | ZONELIST_EXPORT_ERR_MEMORY 4 |
#define | ZONELIST_EXPORT_ERR_FILE 5 |
Functions | |
int | zonelist_export (int sockfd, db_connection_t *connection, const char *filename, int comment) |
#define ZONELIST_EXPORT_ERR_ARGS 1 |
Indicates an error with the arguments provided to zonelist_export().
Definition at line 42 of file zonelist_export.h.
#define ZONELIST_EXPORT_ERR_DATABASE 3 |
Indicates an error with the database like reading, updating or creating.
Definition at line 50 of file zonelist_export.h.
#define ZONELIST_EXPORT_ERR_FILE 5 |
Indicates an error when handing files.
Definition at line 58 of file zonelist_export.h.
#define ZONELIST_EXPORT_ERR_MEMORY 4 |
Indicates a memory allocation error or generic internal error.
Definition at line 54 of file zonelist_export.h.
#define ZONELIST_EXPORT_ERR_XML 2 |
Indicates an error with the zonelist XML like parsing, validating or content.
Definition at line 46 of file zonelist_export.h.
#define ZONELIST_EXPORT_OK 0 |
Indicates a successful zonelist export.
Definition at line 38 of file zonelist_export.h.
int zonelist_export | ( | int | sockfd, |
db_connection_t * | connection, | ||
const char * | filename, | ||
int | comment | ||
) |
Export the zonelist from the database to an XML file.
[in] | sockfd | a socket. |
[in] | connection | a db_connection_t pointer. |
[in] | filename | the filename to write to. |
[in] | comment | if non-zero include a comment about the zonelist file. |
Definition at line 47 of file zonelist_export.c.