mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
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: Anya Harter <aharter@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
5efc8d0caa
commit
1d8721c480
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user