Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
5fbd4b15
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5fbd4b15
编写于
1月 18, 2007
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added inactive domain management support to the test driver
上级
ec329ce9
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
1154 addition
and
898 deletion
+1154
-898
ChangeLog
ChangeLog
+7
-1
src/test.c
src/test.c
+1119
-853
src/test.h
src/test.h
+28
-44
未找到文件。
ChangeLog
浏览文件 @
5fbd4b15
Thu Jan 18 16:05:13 EST 2007 Daniel Berrange <berrange@redhat.com>
* src/test.h, src/test.c: Implement full inactive domain management
support in mock hypervisor to allow testing of apps wanting inactive
domains.
Thu Jan 18 13:37:02 EST 2007 Daniel Berrange <berrange@redhat.com>
* src/xend_internal.c: Tweak some of the new inactive domain methods
...
...
@@ -14,7 +20,7 @@ Wed Jan 10 11:06:36 CET 2007 Daniel Veillard <veillard@redhat.com>
fixed or added a number constructs
Tue Jan 9 17:28:18 CET 2007 Daniel Veillard <veillard@redhat.com>
* docs/libvirt.rng: first version of the Relax-NG schemas to validate
XML instances
...
...
src/test.c
浏览文件 @
5fbd4b15
此差异已折叠。
点击以展开。
src/test.h
浏览文件 @
5fbd4b15
/*
* test.h: A "mock" hypervisor for use by application unit tests
*
* Copyright (C) 2006 Red Hat, Inc.
* Copyright (C) 2006-2006 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
*
* See COPYING.LIB for the License of this software
* 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
*
* Daniel Berrange <berrange@redhat.com>
*/
#ifndef __VIR_TEST_
SIMPLE_
INTERNAL_H__
#define __VIR_TEST_
SIMPLE_
INTERNAL_H__
#ifndef __VIR_TEST_INTERNAL_H__
#define __VIR_TEST_INTERNAL_H__
#include <libvirt/virterror.h>
...
...
@@ -17,47 +30,18 @@
extern
"C"
{
#endif
void
testRegister
(
void
);
int
testOpen
(
virConnectPtr
conn
,
const
char
*
name
,
int
flags
);
int
testClose
(
virConnectPtr
conn
);
int
testGetVersion
(
virConnectPtr
conn
,
unsigned
long
*
hvVer
);
int
testNodeGetInfo
(
virConnectPtr
conn
,
virNodeInfoPtr
info
);
int
testNumOfDomains
(
virConnectPtr
conn
);
int
testListDomains
(
virConnectPtr
conn
,
int
*
ids
,
int
maxids
);
char
*
testGetOSType
(
virDomainPtr
dom
);
virDomainPtr
testDomainCreateLinux
(
virConnectPtr
conn
,
const
char
*
xmlDesc
,
unsigned
int
flags
ATTRIBUTE_UNUSED
);
virDomainPtr
testLookupDomainByID
(
virConnectPtr
conn
,
int
id
);
virDomainPtr
testLookupDomainByUUID
(
virConnectPtr
conn
,
const
unsigned
char
*
uuid
);
virDomainPtr
testLookupDomainByName
(
virConnectPtr
conn
,
const
char
*
name
);
int
testDestroyDomain
(
virDomainPtr
domain
);
int
testResumeDomain
(
virDomainPtr
domain
);
int
testPauseDomain
(
virDomainPtr
domain
);
int
testShutdownDomain
(
virDomainPtr
domain
);
int
testRebootDomain
(
virDomainPtr
domain
,
virDomainRestart
action
);
int
testGetDomainInfo
(
virDomainPtr
domain
,
virDomainInfoPtr
info
);
unsigned
long
testGetMaxMemory
(
virDomainPtr
domain
);
int
testSetMaxMemory
(
virDomainPtr
domain
,
unsigned
long
memory
);
int
testSetMemory
(
virDomainPtr
domain
,
unsigned
long
memory
);
int
testSetVcpus
(
virDomainPtr
domain
,
unsigned
int
nrCpus
);
char
*
testDomainDumpXML
(
virDomainPtr
domain
,
int
flags
);
void
testRegister
(
void
);
#ifdef __cplusplus
}
#endif
#endif
/* __VIR_TEST_INTERNAL_H__ */
#endif
/* __VIR_TEST_INTERNAL_H__ */
/*
* Local variables:
* indent-tabs-mode: nil
* c-indent-level: 4
* c-basic-offset: 4
* tab-width: 4
* End:
*/
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录