]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
esx: Make esxVI_LookupDatastoreHostMount() mockable
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Nov 2025 11:50:34 +0000 (12:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Nov 2025 14:09:07 +0000 (15:09 +0100)
This function is going to be mocked soon. Annotate and export it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/esx/esx_vi.h
src/libvirt_esx.syms

index 854f3fc61adb4b6c2376eb1ad692bc3c5340529b..a4ec0ab48c8a8c1644d3764c639497a31d358372 100644 (file)
@@ -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,
index 30883ab629c68465b6f5a786428caf6048d2e827..503a995aa579fcea03e9cc2e0e745894425f04e5 100644 (file)
@@ -12,6 +12,7 @@ esxUtil_ParseDatastorePath;
 
 
 # esx/esx_vi.h
+esxVI_LookupDatastoreHostMount;
 esxVI_LookupDatastoreList;