bridge_driver.h 1.5 KB
Newer Older
1
/*
2
 * bridge_driver.h: core driver methods for managing networks
3
 *
4
 * Copyright (C) 2006-2016 Red Hat, Inc.
5 6 7 8 9 10 11 12 13 14 15 16 17
 * Copyright (C) 2006 Daniel P. Berrange
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
18
 * License along with this library.  If not, see
O
Osier Yang 已提交
19
 * <http://www.gnu.org/licenses/>.
20 21
 */

22
#pragma once
23

24 25 26 27 28
#include "internal.h"
#include "domain_conf.h"
#include "vircommand.h"
#include "virdnsmasq.h"
#include "virnetworkobj.h"
29

30
extern virXMLNamespace networkDnsmasqXMLNamespace;
31 32 33 34 35 36 37 38 39 40 41

typedef struct _networkDnsmasqXmlNsDef networkDnsmasqXmlNsDef;
typedef networkDnsmasqXmlNsDef *networkDnsmasqXmlNsDefPtr;
struct _networkDnsmasqXmlNsDef {
    size_t noptions;
    char **options;
};

virNetworkXMLOptionPtr
networkDnsmasqCreateXMLConf(void);

42 43
int
networkRegister(void);
44

45
int
46
networkDnsmasqConfContents(virNetworkObjPtr obj,
47 48 49 50
                           const char *pidfile,
                           char **configstr,
                           dnsmasqContext *dctx,
                           dnsmasqCapsPtr caps);