summaryrefslogtreecommitdiffstats
path: root/src/libs/xpcom18a4/vboxdeps.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:46 +0000
commitf8fe689a81f906d1b91bb3220acde2a4ecb14c5b (patch)
tree26484e9d7e2c67806c2d1760196ff01aaa858e8c /src/libs/xpcom18a4/vboxdeps.cpp
parentInitial commit. (diff)
downloadvirtualbox-f8fe689a81f906d1b91bb3220acde2a4ecb14c5b.tar.xz
virtualbox-f8fe689a81f906d1b91bb3220acde2a4ecb14c5b.zip
Adding upstream version 6.0.4-dfsg.upstream/6.0.4-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/libs/xpcom18a4/vboxdeps.cpp')
-rw-r--r--src/libs/xpcom18a4/vboxdeps.cpp75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/libs/xpcom18a4/vboxdeps.cpp b/src/libs/xpcom18a4/vboxdeps.cpp
new file mode 100644
index 00000000..37f70bba
--- /dev/null
+++ b/src/libs/xpcom18a4/vboxdeps.cpp
@@ -0,0 +1,75 @@
+/* The usual story: drag stuff from the libraries into the link. */
+
+
+#include <plstr.h>
+#include <prio.h>
+#include <nsDeque.h>
+#include <nsHashSets.h>
+#include <nsIPipe.h>
+#include <xptcall.h>
+#include <nsProxyRelease.h>
+#include "xpcom/proxy/src/nsProxyEventPrivate.h"
+#include "nsTraceRefcnt.h"
+#include "nsDebug.h"
+
+uintptr_t deps[] =
+{
+ (uintptr_t)PL_strncpy,
+ (uintptr_t)PL_strchr,
+ (uintptr_t)PL_strncpyz,
+ (uintptr_t)PL_HashString,
+ (uintptr_t)PR_DestroyPollableEvent,
+ (uintptr_t)NS_NewPipe2,
+ (uintptr_t)NS_ProxyRelease,
+ (uintptr_t)nsTraceRefcnt::LogRelease,
+ (uintptr_t)nsDebug::Assertion,
+ 0
+};
+
+class foobardep : public nsXPTCStubBase
+{
+public:
+ NS_IMETHOD_(nsrefcnt) AddRef(void)
+ {
+ return 1;
+ }
+
+ NS_IMETHOD_(nsrefcnt) Release(void)
+ {
+ return 0;
+ }
+
+ NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo** info)
+ {
+ (void)info;
+ return 0;
+ }
+
+ // call this method and return result
+ NS_IMETHOD CallMethod(PRUint16 methodIndex, const nsXPTMethodInfo* info, nsXPTCMiniVariant* params)
+ {
+ (void)methodIndex;
+ (void)info;
+ (void)params;
+ return 0;
+ }
+
+};
+
+
+
+void foodep(void)
+{
+ nsVoidHashSetSuper *a = new nsVoidHashSetSuper();
+ a->Init(123);
+ nsDeque *b = new nsDeque((nsDequeFunctor*)0);
+
+ //nsXPTCStubBase
+ nsProxyEventObject *c = new nsProxyEventObject();
+ c->Release();
+
+ foobardep *d = new foobardep();
+ nsXPTCStubBase *e = d;
+ e->Release();
+}
+