2012-07-13 11:39:29 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010-2012 Red Hat, Inc.
|
|
|
|
* 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
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LXC_PROCESS_H__
|
|
|
|
# define __LXC_PROCESS_H__
|
|
|
|
|
|
|
|
# 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,
|
|
|
|
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
|
|
|
int virLXCProcessAutoDestroyInit(virLXCDriverPtr driver);
|
|
|
|
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
|
|
|
|
2012-11-27 12:55:02 +00:00
|
|
|
char *virLXCProcessSetupInterfaceBridged(virConnectPtr conn,
|
|
|
|
virDomainDefPtr vm,
|
|
|
|
virDomainNetDefPtr net,
|
|
|
|
const char *brname);
|
|
|
|
char *virLXCProcessSetupInterfaceDirect(virConnectPtr conn,
|
|
|
|
virDomainDefPtr def,
|
|
|
|
virDomainNetDefPtr net);
|
|
|
|
|
2012-07-13 11:39:29 +00:00
|
|
|
#endif /* __LXC_PROCESS_H__ */
|