30#include "cmdhandler.h"
34#include "clientpipe.h"
35#include "longgetopt.h"
40static const char *module_str =
"zonelist_export_cmd";
54 "Export list of zones from the database to the zonelist.xml file.\n\n"
59run(cmdhandler_ctx_type* context,
int argc,
char* argv[])
61 int sockfd = context->sockfd;
90 "zonelist export", &usage, &help, NULL, NULL, &run, NULL
db_connection_t * getconnectioncontext(cmdhandler_ctx_type *context)
engine_type * getglobalcontext(cmdhandler_ctx_type *context)
engineconfig_type * config
const char * zonelist_filename
int zonelist_export(int sockfd, db_connection_t *connection, const char *filename, int comment)
#define ZONELIST_EXPORT_OK
struct cmd_func_block zonelist_export_funcblock