提交 d1de0c3d 编写于 作者: P Peter Krempa

virsh-pool: Rename helper function buildPoolXML to vshBuildPoolXML

上级 042bf709
......@@ -226,10 +226,14 @@ static const vshCmdOptDef opts_pool_X_as[] = {
{.name = NULL}
};
static int buildPoolXML(const vshCmd *cmd, const char **retname, char **xml) {
static int
vshBuildPoolXML(const vshCmd *cmd,
const char **retname,
char **xml)
{
const char *name = NULL, *type = NULL, *srcHost = NULL, *srcPath = NULL,
*srcDev = NULL, *srcName = NULL, *srcFormat = NULL, *target = NULL;
*srcDev = NULL, *srcName = NULL, *srcFormat = NULL,
*target = NULL;
virBuffer buf = VIR_BUFFER_INITIALIZER;
if (vshCommandOptString(cmd, "name", &name) <= 0)
......@@ -303,7 +307,7 @@ cmdPoolCreateAs(vshControl *ctl, const vshCmd *cmd)
char *xml;
bool printXML = vshCommandOptBool(cmd, "print-xml");
if (!buildPoolXML(cmd, &name, &xml))
if (!vshBuildPoolXML(cmd, &name, &xml))
return false;
if (printXML) {
......@@ -387,7 +391,7 @@ cmdPoolDefineAs(vshControl *ctl, const vshCmd *cmd)
char *xml;
bool printXML = vshCommandOptBool(cmd, "print-xml");
if (!buildPoolXML(cmd, &name, &xml))
if (!vshBuildPoolXML(cmd, &name, &xml))
return false;
if (printXML) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册