]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
esx: Make esxVI_LookupDatastoreByName() mockable
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Nov 2025 11:57:46 +0000 (12:57 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Nov 2025 14:09:09 +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 a4ec0ab48c8a8c1644d3764c639497a31d358372..b083ef2b0c66ad85098f4086c4d6f28580e9e02c 100644 (file)
@@ -402,7 +402,7 @@ int esxVI_LookupDatastoreList(esxVI_Context *ctx, esxVI_String *propertyNameList
 int esxVI_LookupDatastoreByName(esxVI_Context *ctx, const char *name,
                                 esxVI_String *propertyNameList,
                                 esxVI_ObjectContent **datastore,
-                                esxVI_Occurrence occurrence);
+                                esxVI_Occurrence occurrence) ATTRIBUTE_MOCKABLE;
 
 int esxVI_LookupDatastoreByAbsolutePath(esxVI_Context *ctx,
                                         const char *absolutePath,
index 503a995aa579fcea03e9cc2e0e745894425f04e5..d05684fd9799df98f89ab6a6738f128667450be5 100644 (file)
@@ -12,6 +12,7 @@ esxUtil_ParseDatastorePath;
 
 
 # esx/esx_vi.h
+esxVI_LookupDatastoreByName;
 esxVI_LookupDatastoreHostMount;
 esxVI_LookupDatastoreList;