2012-07-13 11:39:29 +00:00
|
|
|
/*
|
2016-05-13 17:20:54 +00:00
|
|
|
* Copyright (C) 2010-2012, 2016 Red Hat, Inc.
|
2012-07-13 11:39:29 +00: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 22:30:55 +00:00
|
|
|
* License along with this library. If not, see
|
2012-07-21 10:06:23 +00:00
|
|
|
* <http://www.gnu.org/licenses/>.
|
2012-07-13 11:39:29 +00:00
|
|
|
*/
|
|
|
|
|
2018-12-13 14:53:50 +00:00
|
|
|
#ifndef LIBVIRT_LXC_PROCESS_H
|
|
|
|
# define LIBVIRT_LXC_PROCESS_H
|
2012-07-13 11:39:29 +00:00
|
|
|
|
|
|
|
# include "lxc_conf.h"
|
|
|
|
|
2012-07-13 11:49:24 +00:00
|
|
|
int virLXCProcessStart(virConnectPtr conn,
|
2012-07-13 11:56:29 +00:00
|
|
|
virLXCDriverPtr driver,
|
2012-07-13 11:49:24 +00:00
|
|
|
virDomainObjPtr vm,
|
2013-07-09 17:15:45 +00:00
|
|
|
unsigned int nfiles, int *files,
|
2012-07-13 11:49:24 +00:00
|
|
|
bool autoDestroy,
|
|
|
|
virDomainRunningReason reason);
|
2012-07-13 11:56:29 +00:00
|
|
|
int virLXCProcessStop(virLXCDriverPtr driver,
|
2012-07-13 11:49:24 +00:00
|
|
|
virDomainObjPtr vm,
|
|
|
|
virDomainShutoffReason reason);
|
2012-07-13 11:39:29 +00:00
|
|
|
|
2012-07-13 11:56:29 +00:00
|
|
|
void virLXCProcessAutoDestroyRun(virLXCDriverPtr driver,
|
2012-07-13 11:49:24 +00:00
|
|
|
virConnectPtr conn);
|
2012-07-13 11:56:29 +00:00
|
|
|
void virLXCProcessAutoDestroyShutdown(virLXCDriverPtr driver);
|
|
|
|
int virLXCProcessAutoDestroyAdd(virLXCDriverPtr driver,
|
2012-07-13 11:49:24 +00:00
|
|
|
virDomainObjPtr vm,
|
|
|
|
virConnectPtr conn);
|
2012-07-13 11:56:29 +00:00
|
|
|
int virLXCProcessAutoDestroyRemove(virLXCDriverPtr driver,
|
2012-07-13 11:49:24 +00:00
|
|
|
virDomainObjPtr vm);
|
|
|
|
|
2012-07-13 11:56:29 +00:00
|
|
|
void virLXCProcessAutostartAll(virLXCDriverPtr driver);
|
|
|
|
int virLXCProcessReconnectAll(virLXCDriverPtr driver,
|
2012-07-13 11:49:24 +00:00
|
|
|
virDomainObjListPtr doms);
|
2012-07-13 11:39:29 +00:00
|
|
|
|
2016-05-13 17:20:54 +00:00
|
|
|
int virLXCProcessValidateInterface(virDomainNetDefPtr net);
|
|
|
|
char *virLXCProcessSetupInterfaceTap(virDomainDefPtr vm,
|
|
|
|
virDomainNetDefPtr net,
|
|
|
|
const char *brname);
|
2012-11-27 12:55:02 +00:00
|
|
|
char *virLXCProcessSetupInterfaceDirect(virConnectPtr conn,
|
|
|
|
virDomainDefPtr def,
|
|
|
|
virDomainNetDefPtr net);
|
|
|
|
|
2018-12-13 14:53:50 +00:00
|
|
|
#endif /* LIBVIRT_LXC_PROCESS_H */
|