From bdd681f9b28dbf3d96fd6ca8dc27700b15232f85 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 14 Nov 2025 10:34:59 +0100 Subject: [PATCH] esx: Make esxVI_LookupDatastoreList() mockable This function is going to be mocked soon. Annotate and export it. Signed-off-by: Michal Privoznik Reviewed-by: Martin Kletzander --- src/esx/esx_vi.h | 2 +- src/libvirt_esx.syms | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/esx/esx_vi.h b/src/esx/esx_vi.h index b5eeaa750e..854f3fc61a 100644 --- a/src/esx/esx_vi.h +++ b/src/esx/esx_vi.h @@ -397,7 +397,7 @@ int esxVI_LookupVirtualMachineByUuidAndPrepareForTask bool autoAnswer); int esxVI_LookupDatastoreList(esxVI_Context *ctx, esxVI_String *propertyNameList, - esxVI_ObjectContent **datastoreList); + esxVI_ObjectContent **datastoreList) ATTRIBUTE_MOCKABLE; int esxVI_LookupDatastoreByName(esxVI_Context *ctx, const char *name, esxVI_String *propertyNameList, diff --git a/src/libvirt_esx.syms b/src/libvirt_esx.syms index 6a61b7019c..30883ab629 100644 --- a/src/libvirt_esx.syms +++ b/src/libvirt_esx.syms @@ -11,6 +11,10 @@ esxUtil_EscapeDatastoreItem; esxUtil_ParseDatastorePath; +# esx/esx_vi.h +esxVI_LookupDatastoreList; + + # esx/esx_vi_types.h esxVI_DateTime_ConvertToCalendarTime; -- 2.47.3