OpenDNSSEC-enforcer  2.0.4
Functions
zonelist_export.c File Reference
#include "config.h"
#include "log.h"
#include "str.h"
#include "clientpipe.h"
#include "db/zone.h"
#include "utils/kc_helper.h"
#include "keystate/zonelist_export.h"
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <limits.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>

Go to the source code of this file.

Functions

int zonelist_export (int sockfd, db_connection_t *connection, const char *filename, int comment)
 

Function Documentation

◆ zonelist_export()

int zonelist_export ( int  sockfd,
db_connection_t connection,
const char *  filename,
int  comment 
)

Export the zonelist from the database to an XML file.

Parameters
[in]sockfda socket.
[in]connectiona db_connection_t pointer.
[in]filenamethe filename to write to.
[in]commentif non-zero include a comment about the zonelist file.
Returns
ZONELIST_EXPORT_ERR_* on error otherwise ZONELIST_EXPORT_OK.

Definition at line 47 of file zonelist_export.c.