提交 cf198684 编写于 作者: M Michal Privoznik

conf: Extend virDomainDefAssignAddressesCallback for parseOpaque

Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 78ab5dce
...@@ -4604,7 +4604,8 @@ virDomainDefPostParse(virDomainDefPtr def, ...@@ -4604,7 +4604,8 @@ virDomainDefPostParse(virDomainDefPtr def,
if (xmlopt->config.assignAddressesCallback) { if (xmlopt->config.assignAddressesCallback) {
ret = xmlopt->config.assignAddressesCallback(def, caps, parseFlags, ret = xmlopt->config.assignAddressesCallback(def, caps, parseFlags,
xmlopt->config.priv); xmlopt->config.priv,
parseOpaque);
if (ret < 0) if (ret < 0)
return ret; return ret;
} }
......
...@@ -2382,11 +2382,15 @@ typedef int (*virDomainDeviceDefPostParseCallback)(virDomainDeviceDefPtr dev, ...@@ -2382,11 +2382,15 @@ typedef int (*virDomainDeviceDefPostParseCallback)(virDomainDeviceDefPtr dev,
void *opaque, void *opaque,
void *parseOpaque); void *parseOpaque);
/* Drive callback for assigning device addresses, called at the end /* Drive callback for assigning device addresses, called at the end
* of parsing, after all defaults and implicit devices have been added. */ * of parsing, after all defaults and implicit devices have been added.
* @parseOpaque is opaque data passed by virDomainDefParse* caller,
* @opaque is opaque data set by driver (usually pointer to driver
* private data). */
typedef int (*virDomainDefAssignAddressesCallback)(virDomainDef *def, typedef int (*virDomainDefAssignAddressesCallback)(virDomainDef *def,
virCapsPtr caps, virCapsPtr caps,
unsigned int parseFlags, unsigned int parseFlags,
void *opaque); void *opaque,
void *parseOpaque);
/* Called in appropriate places where the domain conf parser can return failure /* Called in appropriate places where the domain conf parser can return failure
* for configurations that were previously accepted. This shall not modify the * for configurations that were previously accepted. This shall not modify the
......
...@@ -2765,7 +2765,8 @@ static int ...@@ -2765,7 +2765,8 @@ static int
qemuDomainDefAssignAddresses(virDomainDef *def, qemuDomainDefAssignAddresses(virDomainDef *def,
virCapsPtr caps, virCapsPtr caps,
unsigned int parseFlags ATTRIBUTE_UNUSED, unsigned int parseFlags ATTRIBUTE_UNUSED,
void *opaque) void *opaque,
void *parseOpaque ATTRIBUTE_UNUSED)
{ {
virQEMUDriverPtr driver = opaque; virQEMUDriverPtr driver = opaque;
virQEMUCapsPtr qemuCaps = NULL; virQEMUCapsPtr qemuCaps = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册