#include "vmx.h"
#include "virtypedparam.h"
#include "esx_driver.h"
+#define LIBVIRT_ESX_DRIVERPRIV_H_ALLOW
+#include "esx_driverpriv.h"
#include "esx_interface_driver.h"
#include "esx_network_driver.h"
#include "esx_storage_driver.h"
#include "esx_private.h"
-#include "esx_vi.h"
#include "esx_vi_methods.h"
#include "esx_util.h"
#include "esx_stream.h"
static int esxDomainGetMaxVcpus(virDomainPtr domain);
-typedef struct _esxVMX_Data esxVMX_Data;
-
-struct _esxVMX_Data {
- esxVI_Context *ctx;
- char *datastorePathWithoutFileName;
-};
-
-
static void
esxFreePrivate(esxPrivate **priv)
* exception and need special handling. Parse the datastore name and use it
* to lookup the datastore by name to verify that it exists.
*/
-static int
+int
esxParseVMXFileName(const char *fileName,
void *opaque,
char **out,
--- /dev/null
+/*
+ * esx_driverpriv.h: private declarations for ESX driver
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
+#ifndef LIBVIRT_ESX_DRIVERPRIV_H_ALLOW
+# error "esx_driverpriv.h may only be included by esx_driver.c or test suites"
+#endif /* LIBVIRT_ESX_DRIVERPRIV_H_ALLOW */
+
+#pragma once
+
+#include "esx_vi.h"
+
+typedef struct _esxVMX_Data esxVMX_Data;
+
+struct _esxVMX_Data {
+ esxVI_Context *ctx;
+ char *datastorePathWithoutFileName;
+};
+
+
+int
+esxParseVMXFileName(const char *fileName,
+ void *opaque,
+ char **out,
+ bool allow_missing);
# These symbols are dependent upon --with-esx via WITH_ESX
#
+# esx/esx_driverpriv.h
+esxParseVMXFileName;
+
+
# esx/esx_util.h
esxUtil_EscapeDatastoreItem;
esxUtil_ParseDatastorePath;