From ad92def79e95d784cc1a17e0275bf8cf69521bd4 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 19 Nov 2025 12:57:46 +0100 Subject: [PATCH] esx: Make esxVI_LookupDatastoreByName() mockable This function is going to be mocked soon. Annotate and export it. Signed-off-by: Michal Privoznik Reviewed-by: Martin Kletzander --- src/esx/esx_vi.h | 2 +- src/libvirt_esx.syms | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/esx/esx_vi.h b/src/esx/esx_vi.h index a4ec0ab48c..b083ef2b0c 100644 --- a/src/esx/esx_vi.h +++ b/src/esx/esx_vi.h @@ -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, diff --git a/src/libvirt_esx.syms b/src/libvirt_esx.syms index 503a995aa5..d05684fd97 100644 --- a/src/libvirt_esx.syms +++ b/src/libvirt_esx.syms @@ -12,6 +12,7 @@ esxUtil_ParseDatastorePath; # esx/esx_vi.h +esxVI_LookupDatastoreByName; esxVI_LookupDatastoreHostMount; esxVI_LookupDatastoreList; -- 2.47.3