]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
esx: Make esxVI_LookupDatastoreList() mockable
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 14 Nov 2025 09:34:59 +0000 (10:34 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Nov 2025 14:09:02 +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 b5eeaa750ed4d3595b31271c8a008c9e4fb66553..854f3fc61adb4b6c2376eb1ad692bc3c5340529b 100644 (file)
@@ -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,
index 6a61b7019c6dc6e9da935daf5c1a2c6e41931023..30883ab629c68465b6f5a786428caf6048d2e827 100644 (file)
@@ -11,6 +11,10 @@ esxUtil_EscapeDatastoreItem;
 esxUtil_ParseDatastorePath;
 
 
+# esx/esx_vi.h
+esxVI_LookupDatastoreList;
+
+
 # esx/esx_vi_types.h
 esxVI_DateTime_ConvertToCalendarTime;