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 | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/esx/esx_vi.h b/src/esx/esx_vi.h
index b5eeaa750e..854f3fc61a 100644
--- a/src/esx/esx_vi.h
+++ b/src/esx/esx_vi.h
@@ -397,7 +397,7 @@ int esxVI_LookupVirtualMachineByUuidAndPrepareForTask
        bool autoAnswer);
 
 int esxVI_LookupDatastoreList(esxVI_Context *ctx, esxVI_String 
*propertyNameList,
-                              esxVI_ObjectContent **datastoreList);
+                              esxVI_ObjectContent **datastoreList) 
ATTRIBUTE_MOCKABLE;
 
 int esxVI_LookupDatastoreByName(esxVI_Context *ctx, const char *name,
                                 esxVI_String *propertyNameList,
diff --git a/src/libvirt_esx.syms b/src/libvirt_esx.syms
index 6a61b7019c..30883ab629 100644
--- a/src/libvirt_esx.syms
+++ b/src/libvirt_esx.syms
@@ -11,6 +11,10 @@ esxUtil_EscapeDatastoreItem;
 esxUtil_ParseDatastorePath;
 
 
+# esx/esx_vi.h
+esxVI_LookupDatastoreList;
+
+
 # esx/esx_vi_types.h
 esxVI_DateTime_ConvertToCalendarTime;
 
-- 
2.51.0

Reply via email to