提交 65a922f8 编写于 作者: M Michal Privoznik

Introduce virNetSASLContextDispose

Future commits rely on the presence of this callback.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 9ce3c20b
......@@ -52,6 +52,7 @@ struct _virNetSASLSession {
static virClassPtr virNetSASLContextClass;
static virClassPtr virNetSASLSessionClass;
static void virNetSASLContextDispose(void *obj);
static void virNetSASLSessionDispose(void *obj);
static int virNetSASLContextOnceInit(void)
......@@ -59,7 +60,7 @@ static int virNetSASLContextOnceInit(void)
if (!(virNetSASLContextClass = virClassNew(virClassForObjectLockable(),
"virNetSASLContext",
sizeof(virNetSASLContext),
NULL)))
virNetSASLContextDispose)))
return -1;
if (!(virNetSASLSessionClass = virClassNew(virClassForObjectLockable(),
......@@ -686,6 +687,11 @@ ssize_t virNetSASLSessionDecode(virNetSASLSessionPtr sasl,
return ret;
}
void virNetSASLContextDispose(void *obj ATTRIBUTE_UNUSED)
{
return;
}
void virNetSASLSessionDispose(void *obj)
{
virNetSASLSessionPtr sasl = obj;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册