mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-24 16:35:44 +00:00
58 lines
1.5 KiB
C
58 lines
1.5 KiB
C
/*
|
|
* Copyright IBM Corp. 2008
|
|
*
|
|
* lxc_conf.h: header file for linux container config functions
|
|
*
|
|
* Authors:
|
|
* David L. Leskovec <dlesko at linux.vnet.ibm.com>
|
|
*
|
|
* 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
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#ifndef LXC_CONF_H
|
|
#define LXC_CONF_H
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef WITH_LXC
|
|
|
|
#include "internal.h"
|
|
#include "domain_conf.h"
|
|
#include "capabilities.h"
|
|
|
|
typedef struct __lxc_driver lxc_driver_t;
|
|
struct __lxc_driver {
|
|
virCapsPtr caps;
|
|
|
|
virDomainObjPtr domains;
|
|
char *configDir;
|
|
char *autostartDir;
|
|
char *stateDir;
|
|
char *logDir;
|
|
int have_netns;
|
|
};
|
|
|
|
int lxcLoadDriverConfig(lxc_driver_t *driver);
|
|
virCapsPtr lxcCapsInit(void);
|
|
|
|
void lxcError(virConnectPtr conn,
|
|
virDomainPtr dom,
|
|
int code, const char *fmt, ...)
|
|
ATTRIBUTE_FORMAT(printf,4,5);
|
|
|
|
#endif /* WITH_LXC */
|
|
#endif /* LXC_CONF_H */
|
|
|