From: Michal Privoznik <[email protected]> This function is going to be mocked soon. Annotate and export it.
Signed-off-by: Michal Privoznik <[email protected]> --- 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.51.0
