2012-07-13 12:39:29 +01:00
|
|
|
/*
|
2016-05-13 13:20:54 -04:00
|
|
|
* Copyright (C) 2010-2012, 2016 Red Hat, Inc.
|
2012-07-13 12:39:29 +01:00
|
|
|
* Copyright IBM Corp. 2008
|
|
|
|
*
|
|
|
|
* lxc_process.h: LXC process lifecycle management
|
|
|
|
*
|
|
|
|
* 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
|
2012-09-20 16:30:55 -06:00
|
|
|
* License along with this library. If not, see
|
2012-07-21 18:06:23 +08:00
|
|
|
* <http://www.gnu.org/licenses/>.
|
2012-07-13 12:39:29 +01:00
|
|
|
*/
|
|
|
|
|
2019-06-18 11:12:32 -05:00
|
|
|
#pragma once
|
2012-07-13 12:39:29 +01:00
|
|
|
|
2019-06-18 11:12:32 -05:00
|
|
|
#include "lxc_conf.h"
|
2012-07-13 12:39:29 +01:00
|
|
|
|
2012-07-13 12:49:24 +01:00
|
|
|
int virLXCProcessStart(virConnectPtr conn,
|
2021-03-11 08:16:13 +01:00
|
|
|
virLXCDriver * driver,
|
|
|
|
virDomainObj *vm,
|
2013-07-09 18:15:45 +01:00
|
|
|
unsigned int nfiles, int *files,
|
2012-07-13 12:49:24 +01:00
|
|
|
bool autoDestroy,
|
|
|
|
virDomainRunningReason reason);
|
2021-03-11 08:16:13 +01:00
|
|
|
int virLXCProcessStop(virLXCDriver *driver,
|
|
|
|
virDomainObj *vm,
|
2022-06-28 16:20:29 +02:00
|
|
|
virDomainShutoffReason reason,
|
|
|
|
unsigned int cleanupFlags);
|
2012-07-13 12:39:29 +01:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
void virLXCProcessAutoDestroyRun(virLXCDriver *driver,
|
2012-07-13 12:49:24 +01:00
|
|
|
virConnectPtr conn);
|
2021-03-11 08:16:13 +01:00
|
|
|
void virLXCProcessAutoDestroyShutdown(virLXCDriver *driver);
|
|
|
|
int virLXCProcessAutoDestroyAdd(virLXCDriver *driver,
|
|
|
|
virDomainObj *vm,
|
2012-07-13 12:49:24 +01:00
|
|
|
virConnectPtr conn);
|
2021-03-11 08:16:13 +01:00
|
|
|
int virLXCProcessAutoDestroyRemove(virLXCDriver *driver,
|
|
|
|
virDomainObj *vm);
|
2012-07-13 12:49:24 +01:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
void virLXCProcessAutostartAll(virLXCDriver *driver);
|
|
|
|
int virLXCProcessReconnectAll(virLXCDriver *driver,
|
|
|
|
virDomainObjList *doms);
|
2012-07-13 12:39:29 +01:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
int virLXCProcessValidateInterface(virDomainNetDef *net);
|
|
|
|
char *virLXCProcessSetupInterfaceTap(virDomainDef *vm,
|
|
|
|
virDomainNetDef *net,
|
2016-05-13 13:20:54 -04:00
|
|
|
const char *brname);
|
2021-03-11 08:16:13 +01:00
|
|
|
char *virLXCProcessSetupInterfaceDirect(virLXCDriver *driver,
|
|
|
|
virDomainDef *def,
|
|
|
|
virDomainNetDef *net);
|