From f215e02bf85f68d3a6106c2a1f4f7f063f819064 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:17:27 +0200 Subject: Adding upstream version 7.0.14-dfsg. Signed-off-by: Daniel Baumann --- src/VBox/Main/webservice/websrv-cpp.xsl | 1507 +++++++++++++++++++++++++++++++ 1 file changed, 1507 insertions(+) create mode 100644 src/VBox/Main/webservice/websrv-cpp.xsl (limited to 'src/VBox/Main/webservice/websrv-cpp.xsl') diff --git a/src/VBox/Main/webservice/websrv-cpp.xsl b/src/VBox/Main/webservice/websrv-cpp.xsl new file mode 100644 index 00000000..aeeff31b --- /dev/null +++ b/src/VBox/Main/webservice/websrv-cpp.xsl @@ -0,0 +1,1507 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +#include +#include +#include +#include + +#include +#include +#include +#include + +// gSOAP headers (must come after vbox includes because it checks for conflicting defs) +#include "soapH.h" + +// standard headers +#include +#include + +// shared strings for debug output +const char *g_pcszCallingComMethod = " calling COM method %s\n"; +const char *g_pcszDoneCallingComMethod = " done calling COM method\n"; +const char *g_pcszConvertComOutputBack = " convert COM output \"%s\" back to caller format\n"; +const char *g_pcszDoneConvertingComOutputBack = " done converting COM output \"%s\" back to caller format\n"; +const char *g_pcszEntering = "-- entering %s\n"; +const char *g_pcszLeaving = "-- leaving %s, rc: %#lx (%d)\n"; + +// generated string constants for all interface names +const char *g_pcszIUnknown = "IUnknown"; +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/**************************************************************************** + * + * types: enum converter helper functions + * + ****************************************************************************/ + + + + + + + + + { + + + + + switch(e) + + { + + + + + + + + + + + + + break; + + + + + default: + + AssertMsgFailed(("e=%d\n", (int)e)); + + + + break; + + } + + + return v; + + } + + + + + + { + + + + + switch(v) + + { + + + + + + + + + + + + + break; + + + + + default: + + AssertMsgFailed(("v=%d\n", (int)v)); + + + + break; + + } + + + return e; + + } + + + + +/**************************************************************************** + * + * types: struct converter helper functions + * + ****************************************************************************/ + + + + + + + + + + + + + + + + + + + + + { + + + + + + + + + + if (!in) + { + // @todo ambiguous. Problem is the MOR for the object converted to struct + RaiseSoapInvalidObjectFault(soap, ""); + break; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + struct soap *soap + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + , + + + + + + + + + + WEBDEBUG((g_pcszEntering, __FUNCTION__)); + + do { + + + + + + + + } while (0); + + + WEBDEBUG((g_pcszLeaving, __FUNCTION__, rc, rc)); + + + + if (FAILED(rc)) + return SOAP_FAULT; + return SOAP_OK; + + + return resp; + + + } + + + + + + + + + + + + + + // invoke method on global IVirtualBox instance + + ComPtr<IVirtualBox> pObj = G_pVirtualBox; + + + + + + + + + + + // look up managed object reference for method call + + + { + RaiseSoapInvalidObjectFault(soap, ""); + break; + } + + + break; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + break; + + + + + + + + + break; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + break + + + + + + + + + + + + + + + + + + break + + + + + + + + + + + + + ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + // com output arg for + + + + + + + + + + + + + + + + + + + + + + + + + + + .raw() + + + + + + + + + + + + + + + + + + + + + + & + + + .asOutParam() + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); + + if (FAILED(rc)) + + { + + + + break; + + } + + WEBDEBUG((g_pcszDoneCallingComMethod)); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) + + { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) + + { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/**************************************************************************** + * + * interface + + + * + ****************************************************************************/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [] + + + , + + + ) + + */ + + + + + + + + + + + + ) + + { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3