From: Michal Privoznik Date: Wed, 19 Nov 2025 11:50:34 +0000 (+0100) Subject: esx: Make esxVI_LookupDatastoreHostMount() mockable X-Git-Tag: v11.10.0-rc1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3a927c12169579ad2ac9470b7888b93a61e6c16;p=thirdparty%2Flibvirt.git esx: Make esxVI_LookupDatastoreHostMount() 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 854f3fc61a..a4ec0ab48c 100644 --- a/src/esx/esx_vi.h +++ b/src/esx/esx_vi.h @@ -413,7 +413,7 @@ int esxVI_LookupDatastoreByAbsolutePath(esxVI_Context *ctx, int esxVI_LookupDatastoreHostMount(esxVI_Context *ctx, esxVI_ManagedObjectReference *datastore, esxVI_DatastoreHostMount **hostMount, - esxVI_Occurrence occurrence); + esxVI_Occurrence occurrence) ATTRIBUTE_MOCKABLE; int esxVI_LookupTaskInfoByTask(esxVI_Context *ctx, esxVI_ManagedObjectReference *task, diff --git a/src/libvirt_esx.syms b/src/libvirt_esx.syms index 30883ab629..503a995aa5 100644 --- a/src/libvirt_esx.syms +++ b/src/libvirt_esx.syms @@ -12,6 +12,7 @@ esxUtil_ParseDatastorePath; # esx/esx_vi.h +esxVI_LookupDatastoreHostMount; esxVI_LookupDatastoreList;