mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
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:
+1
-1
@@ -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,
|
||||
|
||||
@@ -12,6 +12,7 @@ esxUtil_ParseDatastorePath;
|
||||
|
||||
|
||||
# esx/esx_vi.h
|
||||
esxVI_LookupDatastoreByName;
|
||||
esxVI_LookupDatastoreHostMount;
|
||||
esxVI_LookupDatastoreList;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user