2014-02-18 14:08:10 +04:00
|
|
|
/*
|
2014-03-07 14:38:51 +01:00
|
|
|
* bhyve_command.h: bhyve command generation
|
2014-02-18 14:08:10 +04:00
|
|
|
*
|
|
|
|
* Copyright (C) 2014 Roman Bogorodskiy
|
|
|
|
*
|
|
|
|
* 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, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-06-07 15:20:15 -05:00
|
|
|
#pragma once
|
2014-02-18 14:08:10 +04:00
|
|
|
|
2019-06-07 15:20:15 -05:00
|
|
|
#include "bhyve_domain.h"
|
|
|
|
#include "bhyve_utils.h"
|
2014-02-18 14:08:10 +04:00
|
|
|
|
2019-06-07 15:20:15 -05:00
|
|
|
#include "domain_conf.h"
|
|
|
|
#include "vircommand.h"
|
2014-02-18 14:08:10 +04:00
|
|
|
|
2019-06-07 15:20:15 -05:00
|
|
|
#define BHYVE_CONFIG_FORMAT_ARGV "bhyve-argv"
|
2014-04-13 13:48:17 +04:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
virCommand *virBhyveProcessBuildBhyveCmd(struct _bhyveConn *driver,
|
|
|
|
virDomainDef *def,
|
|
|
|
bool dryRun);
|
2014-02-18 14:08:10 +04:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
virCommand *
|
|
|
|
virBhyveProcessBuildDestroyCmd(struct _bhyveConn *driver,
|
|
|
|
virDomainDef *def);
|
2014-02-18 14:08:10 +04:00
|
|
|
|
2021-03-11 08:16:13 +01:00
|
|
|
virCommand *
|
|
|
|
virBhyveProcessBuildLoadCmd(struct _bhyveConn *driver, virDomainDef *def,
|
2014-11-08 11:48:30 -05:00
|
|
|
const char *devmap_file, char **devicesmap_out);
|