Signed-off-by: Shi Lei <shi_lei(a)massclouds.com>
---
src/conf/domain_conf.c | 7 +++----
src/conf/domain_conf.h | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index f3b59ed..0802c45 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -27928,10 +27928,9 @@ virDomainGraphicsDefFormat(virBufferPtr buf,
children = true;
}
- virBufferAddLit(buf, "<gl");
- virBufferEscapeString(buf, " rendernode='%s'",
- def->data.egl_headless.rendernode);
- virBufferAddLit(buf, "/>\n");
+ if (virDomainGraphicsEGLHeadlessDefFormatElem(buf,
&def->data.egl_headless, def, NULL) < 0)
+ return -1;
+
break;
case VIR_DOMAIN_GRAPHICS_TYPE_LAST:
break;
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index baa9166..6273c40 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -1744,7 +1744,7 @@ struct _virDomainGraphicsSpiceDef { /* genparse:concisehook,
genformat:separ
char *rendernode; /* xmlattr:gl/rendernode */
};
-struct _virDomainGraphicsEGLHeadlessDef { /* genparse */
+struct _virDomainGraphicsEGLHeadlessDef { /* genparse, genformat:separate */
char *rendernode; /* xmlattr:gl/rendernode */
};
--
2.25.1