1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-05 13:17:51 +03:00

security: manager: Avoid forward decl of virSecurityManagerDispose

This commit is contained in:
Peter Krempa 2014-06-19 17:01:10 +02:00
parent 23a8646a89
commit 5fd0b40ff4

View File

@ -48,7 +48,17 @@ struct _virSecurityManager {
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)
{
@ -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 *
virSecurityManagerGetDriver(virSecurityManagerPtr mgr)
{