esx: Make esxVI_LookupDatastoreByName() mockable

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>
This commit is contained in:
Michal Privoznik
2025-11-20 15:09:09 +01:00
parent c3a927c121
commit ad92def79e
2 changed files with 2 additions and 1 deletions
+1 -1
View 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,
+1
View File
@@ -12,6 +12,7 @@ esxUtil_ParseDatastorePath;
# esx/esx_vi.h
esxVI_LookupDatastoreByName;
esxVI_LookupDatastoreHostMount;
esxVI_LookupDatastoreList;