Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
7b91dc3e
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看板
提交
7b91dc3e
编写于
3月 11, 2014
作者:
J
Ján Tomko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Introduce vircommandpriv.h for functions used by tests
So far it's just virCommandSetDryRun.
上级
94b57a9d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
39 addition
and
6 deletion
+39
-6
src/Makefile.am
src/Makefile.am
+1
-1
src/util/vircommand.c
src/util/vircommand.c
+2
-1
src/util/vircommand.h
src/util/vircommand.h
+0
-2
src/util/vircommandpriv.h
src/util/vircommandpriv.h
+32
-0
tests/virkmodtest.c
tests/virkmodtest.c
+2
-1
tests/virnetdevbandwidthtest.c
tests/virnetdevbandwidthtest.c
+2
-1
未找到文件。
src/Makefile.am
浏览文件 @
7b91dc3e
...
...
@@ -91,7 +91,7 @@ UTIL_SOURCES = \
util/virbuffer.c util/virbuffer.h
\
util/vircgroup.c util/vircgroup.h util/vircgrouppriv.h
\
util/virclosecallbacks.c util/virclosecallbacks.h
\
util/vircommand.c util/vircommand.h
\
util/vircommand.c util/vircommand.h
util/vircommandpriv.h
\
util/virconf.c util/virconf.h
\
util/vircrypto.c util/vircrypto.h
\
util/virdbus.c util/virdbus.h util/virdbuspriv.h
\
...
...
src/util/vircommand.c
浏览文件 @
7b91dc3e
...
...
@@ -40,7 +40,8 @@
# include <sys/apparmor.h>
#endif
#include "vircommand.h"
#define __VIR_COMMAND_PRIV_H_ALLOW__
#include "vircommandpriv.h"
#include "viralloc.h"
#include "virerror.h"
#include "virutil.h"
...
...
src/util/vircommand.h
浏览文件 @
7b91dc3e
...
...
@@ -186,6 +186,4 @@ void virCommandAbort(virCommandPtr cmd);
void
virCommandFree
(
virCommandPtr
cmd
);
void
virCommandDoAsyncIO
(
virCommandPtr
cmd
);
void
virCommandSetDryRun
(
virBufferPtr
buf
);
#endif
/* __VIR_COMMAND_H__ */
src/util/vircommandpriv.h
0 → 100644
浏览文件 @
7b91dc3e
/*
* vircommandpriv.h: Functions for testing virCommand APIs
*
* Copyright (C) 2014 Red Hat, Inc.
*
* 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/>.
*
*/
#ifndef __VIR_COMMAND_PRIV_H_ALLOW__
# error "vircommandpriv.h may only be included by vircommand.c or test suites"
#endif
#ifndef __VIR_COMMAND_PRIV_H__
# define __VIR_COMMAND_PRIV_H__
# include "vircommand.h"
void
virCommandSetDryRun
(
virBufferPtr
buf
);
#endif
/* __VIR_COMMAND_PRIV_H__ */
tests/virkmodtest.c
浏览文件 @
7b91dc3e
...
...
@@ -23,7 +23,8 @@
#ifdef __linux__
# include <stdlib.h>
# include "vircommand.h"
# define __VIR_COMMAND_PRIV_H_ALLOW__
# include "vircommandpriv.h"
# include "virkmod.h"
# include "virstring.h"
...
...
tests/virnetdevbandwidthtest.c
浏览文件 @
7b91dc3e
...
...
@@ -21,7 +21,8 @@
#include <config.h>
#include "testutils.h"
#include "vircommand.h"
#define __VIR_COMMAND_PRIV_H_ALLOW__
#include "vircommandpriv.h"
#include "virnetdevbandwidth.h"
#include "netdev_bandwidth_conf.c"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录