zonelist_export.c File Reference
`#include "config.h"`
`#include "log.h"`
`#include "str.h"`
`#include "clientpipe.h"`
`#include "db/zone_db.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] | 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.

Returns
  ZONELIST_EXPORT_ERR_* on error otherwise ZONELIST_EXPORT_OK.

Definition at line 47 of file zonelist_export.c.