From: Michal Privoznik Date: Wed, 19 Nov 2025 11:57:46 +0000 (+0100) Subject: esx: Make esxVI_LookupDatastoreByName() mockable X-Git-Tag: v11.10.0-rc1~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad92def79e95d784cc1a17e0275bf8cf69521bd4;p=thirdparty%2Flibvirt.git 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 --- 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;