提交 e129a637 编写于 作者: C Chris Lalancette

Make virDomainSnapshotObjListDeinit static.

Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 4aa36a68
...@@ -733,6 +733,7 @@ void virDomainDefFree(virDomainDefPtr def) ...@@ -733,6 +733,7 @@ void virDomainDefFree(virDomainDefPtr def)
#ifndef PROXY #ifndef PROXY
static void virDomainSnapshotObjListDeinit(virDomainSnapshotObjListPtr snapshots);
static void virDomainObjFree(virDomainObjPtr dom) static void virDomainObjFree(virDomainObjPtr dom)
{ {
if (!dom) if (!dom)
...@@ -6803,7 +6804,7 @@ static void virDomainSnapshotObjListDeallocator(void *payload, ...@@ -6803,7 +6804,7 @@ static void virDomainSnapshotObjListDeallocator(void *payload,
virDomainSnapshotObjUnref(obj); virDomainSnapshotObjUnref(obj);
} }
void virDomainSnapshotObjListDeinit(virDomainSnapshotObjListPtr snapshots) static void virDomainSnapshotObjListDeinit(virDomainSnapshotObjListPtr snapshots)
{ {
if (snapshots->objs) if (snapshots->objs)
virHashFree(snapshots->objs, virDomainSnapshotObjListDeallocator); virHashFree(snapshots->objs, virDomainSnapshotObjListDeallocator);
......
...@@ -782,7 +782,6 @@ virDomainSnapshotObjPtr virDomainSnapshotAssignDef(virDomainSnapshotObjListPtr s ...@@ -782,7 +782,6 @@ virDomainSnapshotObjPtr virDomainSnapshotAssignDef(virDomainSnapshotObjListPtr s
const virDomainSnapshotDefPtr def); const virDomainSnapshotDefPtr def);
int virDomainSnapshotObjListInit(virDomainSnapshotObjListPtr objs); int virDomainSnapshotObjListInit(virDomainSnapshotObjListPtr objs);
void virDomainSnapshotObjListDeinit(virDomainSnapshotObjListPtr objs);
int virDomainSnapshotObjListGetNames(virDomainSnapshotObjListPtr snapshots, int virDomainSnapshotObjListGetNames(virDomainSnapshotObjListPtr snapshots,
char **const names, int maxnames); char **const names, int maxnames);
int virDomainSnapshotObjListNum(virDomainSnapshotObjListPtr snapshots); int virDomainSnapshotObjListNum(virDomainSnapshotObjListPtr snapshots);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册