提交 1d8721c4 编写于 作者: A Anya Harter 提交者: Andrea Bolognani

conf: rename Export Callback functions

name functions to be the name of the export function followed by Callback

    ex. for virInterfaceObjListExport, the callback function is named
        virInterfaceObjListExportCallback
Signed-off-by: NAnya Harter <aharter@redhat.com>
Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
上级 5efc8d0c
......@@ -272,9 +272,9 @@ struct _virInterfaceObjListExportData {
};
static int
virInterfaceObjListPopulate(void *payload,
const void *name ATTRIBUTE_UNUSED,
void *opaque)
virInterfaceObjListExportCallback(void *payload,
const void *name ATTRIBUTE_UNUSED,
void *opaque)
{
virInterfaceObjListExportDataPtr data = opaque;
virInterfaceObjPtr obj = payload;
......@@ -327,7 +327,7 @@ virInterfaceObjListExport(virConnectPtr conn,
virHashSize(ifaceobjs->objsName) + 1) < 0)
goto cleanup;
virHashForEach(ifaceobjs->objsName, virInterfaceObjListPopulate, &data);
virHashForEach(ifaceobjs->objsName, virInterfaceObjListExportCallback, &data);
if (data.error)
goto cleanup;
......
......@@ -1328,9 +1328,9 @@ struct _virNetworkObjListExportData {
};
static int
virNetworkObjListPopulate(void *payload,
const void *name ATTRIBUTE_UNUSED,
void *opaque)
virNetworkObjListExportCallback(void *payload,
const void *name ATTRIBUTE_UNUSED,
void *opaque)
{
virNetworkObjListExportDataPtr data = opaque;
virNetworkObjPtr obj = payload;
......@@ -1382,7 +1382,7 @@ virNetworkObjListExport(virConnectPtr conn,
if (nets && VIR_ALLOC_N(data.nets, virHashSize(netobjs->objs) + 1) < 0)
goto cleanup;
virHashForEach(netobjs->objs, virNetworkObjListPopulate, &data);
virHashForEach(netobjs->objs, virNetworkObjListExportCallback, &data);
if (data.error)
goto cleanup;
......
......@@ -972,9 +972,9 @@ struct _virStoragePoolObjVolumeListExportData {
};
static int
virStoragePoolObjVolumeListExportCb(void *payload,
const void *name ATTRIBUTE_UNUSED,
void *opaque)
virStoragePoolObjVolumeListExportCallback(void *payload,
const void *name ATTRIBUTE_UNUSED,
void *opaque)
{
virStorageVolObjPtr volobj = payload;
virStoragePoolObjVolumeListExportDataPtr data = opaque;
......@@ -1031,7 +1031,7 @@ virStoragePoolObjVolumeListExport(virConnectPtr conn,
return -1;
}
virHashForEach(volumes->objsName, virStoragePoolObjVolumeListExportCb, &data);
virHashForEach(volumes->objsName, virStoragePoolObjVolumeListExportCallback, &data);
virObjectRWUnlock(volumes);
if (data.error)
......@@ -1989,9 +1989,9 @@ struct _virStoragePoolObjListExportData {
static int
virStoragePoolObjListExportCb(void *payload,
const void *name ATTRIBUTE_UNUSED,
void *opaque)
virStoragePoolObjListExportCallback(void *payload,
const void *name ATTRIBUTE_UNUSED,
void *opaque)
{
virStoragePoolObjPtr obj = payload;
virStoragePoolObjListExportDataPtr data = opaque;
......@@ -2041,7 +2041,7 @@ virStoragePoolObjListExport(virConnectPtr conn,
if (pools && VIR_ALLOC_N(data.pools, virHashSize(poolobjs->objs) + 1) < 0)
goto error;
virHashForEach(poolobjs->objs, virStoragePoolObjListExportCb, &data);
virHashForEach(poolobjs->objs, virStoragePoolObjListExportCallback, &data);
virObjectRWUnlock(poolobjs);
if (data.error)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册