VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/vboxdeps.cpp@ 64428

Last change on this file since 64428 was 60975, checked in by vboxsync, 9 years ago

Attempt at mac build fix; cleanups.

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1/* The usual story: drag stuff from the libraries into the link. */
2
3
4#include <plstr.h>
5#include <prio.h>
6#include <nsDeque.h>
7#include <nsHashSets.h>
8#include <nsIPipe.h>
9#include <xptcall.h>
10#include <nsProxyRelease.h>
11#include "xpcom/proxy/src/nsProxyEventPrivate.h"
12
13uintptr_t deps[] =
14{
15 (uintptr_t)PL_strncpy,
16 (uintptr_t)PL_strchr,
17 (uintptr_t)PL_strncpyz,
18 (uintptr_t)PL_HashString,
19 (uintptr_t)PR_DestroyPollableEvent,
20 (uintptr_t)NS_NewPipe2,
21 (uintptr_t)NS_ProxyRelease,
22 0
23};
24
25class foobardep : public nsXPTCStubBase
26{
27public:
28 NS_IMETHOD_(nsrefcnt) AddRef(void)
29 {
30 return 1;
31 }
32
33 NS_IMETHOD_(nsrefcnt) Release(void)
34 {
35 return 0;
36 }
37
38 NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo** info)
39 {
40 (void)info;
41 return 0;
42 }
43
44 // call this method and return result
45 NS_IMETHOD CallMethod(PRUint16 methodIndex, const nsXPTMethodInfo* info, nsXPTCMiniVariant* params)
46 {
47 (void)methodIndex;
48 (void)info;
49 (void)params;
50 return 0;
51 }
52
53};
54
55
56
57void foodep(void)
58{
59 nsVoidHashSetSuper *a = new nsVoidHashSetSuper();
60 a->Init(123);
61 nsDeque *b = new nsDeque((nsDequeFunctor*)0);
62
63 //nsXPTCStubBase
64 nsProxyEventObject *c = new nsProxyEventObject();
65 c->Release();
66
67 foobardep *d = new foobardep();
68 nsXPTCStubBase *e = d;
69 e->Release();
70}
71
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette