提交 63aac8c2 编写于 作者: P Peter Krempa

qemu: domain: Add macro to simplify access to vm private data

Sometimes adding a separate variable to access vm->privateData is not
necessary. Add a macro that will do the typecasting rather than having
to add a temp variable to force the compiler to typecast it.
上级 4cc65b49
......@@ -234,6 +234,9 @@ struct _qemuDomainObjPrivate {
size_t masterKeyLen;
};
# define QEMU_DOMAIN_PRIVATE(vm) \
((qemuDomainObjPrivatePtr) (vm)->privateData)
/* Type of domain secret */
typedef enum {
VIR_DOMAIN_SECRET_INFO_TYPE_PLAIN = 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册