From: Michal Privoznik Date: Fri, 14 Nov 2025 09:34:59 +0000 (+0100) Subject: esx: Make esxVI_LookupDatastoreList() mockable X-Git-Tag: v11.10.0-rc1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdd681f9b28dbf3d96fd6ca8dc27700b15232f85;p=thirdparty%2Flibvirt.git 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 --- 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;