mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-07 21:17:55 +03:00
security: manager: Avoid forward decl of virSecurityManagerDispose
This commit is contained in:
parent
23a8646a89
commit
5fd0b40ff4
@ -48,7 +48,17 @@ struct _virSecurityManager {
|
|||||||
|
|
||||||
static virClassPtr virSecurityManagerClass;
|
static virClassPtr virSecurityManagerClass;
|
||||||
|
|
||||||
static void virSecurityManagerDispose(void *obj);
|
|
||||||
|
static
|
||||||
|
void virSecurityManagerDispose(void *obj)
|
||||||
|
{
|
||||||
|
virSecurityManagerPtr mgr = obj;
|
||||||
|
|
||||||
|
if (mgr->drv->close)
|
||||||
|
mgr->drv->close(mgr);
|
||||||
|
VIR_FREE(mgr->privateData);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static int virSecurityManagerOnceInit(void)
|
static int virSecurityManagerOnceInit(void)
|
||||||
{
|
{
|
||||||
@ -231,15 +241,6 @@ void *virSecurityManagerGetPrivateData(virSecurityManagerPtr mgr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void virSecurityManagerDispose(void *obj)
|
|
||||||
{
|
|
||||||
virSecurityManagerPtr mgr = obj;
|
|
||||||
|
|
||||||
if (mgr->drv->close)
|
|
||||||
mgr->drv->close(mgr);
|
|
||||||
VIR_FREE(mgr->privateData);
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
virSecurityManagerGetDriver(virSecurityManagerPtr mgr)
|
virSecurityManagerGetDriver(virSecurityManagerPtr mgr)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user