提交 227a0503 编写于 作者: D Daniel P. Berrangé

conf: drop virCapsPtr param from post parse data alloc callback

The only user of this callback did not require the virCapsPtr parameter.
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 74fb858f
......@@ -5506,7 +5506,7 @@ virDomainDeviceDefPostParseOne(virDomainDeviceDefPtr dev,
int ret;
if (!parseOpaque && xmlopt->config.domainPostParseDataAlloc) {
if (xmlopt->config.domainPostParseDataAlloc(def, caps, flags,
if (xmlopt->config.domainPostParseDataAlloc(def, flags,
xmlopt->config.priv,
&data) < 0)
return -1;
......@@ -5841,7 +5841,7 @@ virDomainDefPostParse(virDomainDefPtr def,
if (!data.parseOpaque &&
xmlopt->config.domainPostParseDataAlloc) {
ret = xmlopt->config.domainPostParseDataAlloc(def, caps, parseFlags,
ret = xmlopt->config.domainPostParseDataAlloc(def, parseFlags,
xmlopt->config.priv,
&data.parseOpaque);
......
......@@ -2664,7 +2664,6 @@ typedef int (*virDomainDefAssignAddressesCallback)(virDomainDef *def,
void *parseOpaque);
typedef int (*virDomainDefPostParseDataAlloc)(const virDomainDef *def,
virCapsPtr caps,
unsigned int parseFlags,
void *opaque,
void **parseOpaque);
......
......@@ -8142,7 +8142,6 @@ qemuDomainDefAssignAddresses(virDomainDef *def,
static int
qemuDomainPostParseDataAlloc(const virDomainDef *def,
virCapsPtr caps G_GNUC_UNUSED,
unsigned int parseFlags G_GNUC_UNUSED,
void *opaque,
void **parseOpaque)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册