提交 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, ...@@ -5506,7 +5506,7 @@ virDomainDeviceDefPostParseOne(virDomainDeviceDefPtr dev,
int ret; int ret;
if (!parseOpaque && xmlopt->config.domainPostParseDataAlloc) { if (!parseOpaque && xmlopt->config.domainPostParseDataAlloc) {
if (xmlopt->config.domainPostParseDataAlloc(def, caps, flags, if (xmlopt->config.domainPostParseDataAlloc(def, flags,
xmlopt->config.priv, xmlopt->config.priv,
&data) < 0) &data) < 0)
return -1; return -1;
...@@ -5841,7 +5841,7 @@ virDomainDefPostParse(virDomainDefPtr def, ...@@ -5841,7 +5841,7 @@ virDomainDefPostParse(virDomainDefPtr def,
if (!data.parseOpaque && if (!data.parseOpaque &&
xmlopt->config.domainPostParseDataAlloc) { xmlopt->config.domainPostParseDataAlloc) {
ret = xmlopt->config.domainPostParseDataAlloc(def, caps, parseFlags, ret = xmlopt->config.domainPostParseDataAlloc(def, parseFlags,
xmlopt->config.priv, xmlopt->config.priv,
&data.parseOpaque); &data.parseOpaque);
......
...@@ -2664,7 +2664,6 @@ typedef int (*virDomainDefAssignAddressesCallback)(virDomainDef *def, ...@@ -2664,7 +2664,6 @@ typedef int (*virDomainDefAssignAddressesCallback)(virDomainDef *def,
void *parseOpaque); void *parseOpaque);
typedef int (*virDomainDefPostParseDataAlloc)(const virDomainDef *def, typedef int (*virDomainDefPostParseDataAlloc)(const virDomainDef *def,
virCapsPtr caps,
unsigned int parseFlags, unsigned int parseFlags,
void *opaque, void *opaque,
void **parseOpaque); void **parseOpaque);
......
...@@ -8142,7 +8142,6 @@ qemuDomainDefAssignAddresses(virDomainDef *def, ...@@ -8142,7 +8142,6 @@ qemuDomainDefAssignAddresses(virDomainDef *def,
static int static int
qemuDomainPostParseDataAlloc(const virDomainDef *def, qemuDomainPostParseDataAlloc(const virDomainDef *def,
virCapsPtr caps G_GNUC_UNUSED,
unsigned int parseFlags G_GNUC_UNUSED, unsigned int parseFlags G_GNUC_UNUSED,
void *opaque, void *opaque,
void **parseOpaque) void **parseOpaque)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册