Last change
on this file since 47147 was 11863, checked in by vboxsync, 16 years ago |
xpcom18a4: Yet another shot at the vtable for nsXPTCStubBase (ZTV14nsXPTCStubBase).
|
-
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 "xpcom/proxy/src/nsProxyEventPrivate.h"
|
---|
11 |
|
---|
12 | uintptr_t deps[] =
|
---|
13 | {
|
---|
14 | (uintptr_t)PL_strncpy,
|
---|
15 | (uintptr_t)PL_strchr,
|
---|
16 | (uintptr_t)PL_strncpyz,
|
---|
17 | (uintptr_t)PL_HashString,
|
---|
18 | (uintptr_t)PR_DestroyPollableEvent,
|
---|
19 | (uintptr_t)NS_NewPipe2,
|
---|
20 | 0
|
---|
21 | };
|
---|
22 |
|
---|
23 | class foobardep : public nsXPTCStubBase
|
---|
24 | {
|
---|
25 | public:
|
---|
26 | NS_IMETHOD_(nsrefcnt) AddRef(void)
|
---|
27 | {
|
---|
28 | return 1;
|
---|
29 | }
|
---|
30 |
|
---|
31 | NS_IMETHOD_(nsrefcnt) Release(void)
|
---|
32 | {
|
---|
33 | return 0;
|
---|
34 | }
|
---|
35 |
|
---|
36 | NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo** info)
|
---|
37 | {
|
---|
38 | (void)info;
|
---|
39 | return 0;
|
---|
40 | }
|
---|
41 |
|
---|
42 | // call this method and return result
|
---|
43 | NS_IMETHOD CallMethod(PRUint16 methodIndex, const nsXPTMethodInfo* info, nsXPTCMiniVariant* params)
|
---|
44 | {
|
---|
45 | (void)methodIndex;
|
---|
46 | (void)info;
|
---|
47 | (void)params;
|
---|
48 | return 0;
|
---|
49 | }
|
---|
50 |
|
---|
51 | };
|
---|
52 |
|
---|
53 |
|
---|
54 |
|
---|
55 | void foodep(void)
|
---|
56 | {
|
---|
57 | nsVoidHashSetSuper *a = new nsVoidHashSetSuper();
|
---|
58 | a->Init(123);
|
---|
59 | nsDeque *b = new nsDeque((nsDequeFunctor*)0);
|
---|
60 |
|
---|
61 | //nsXPTCStubBase
|
---|
62 | nsProxyEventObject *c = new nsProxyEventObject();
|
---|
63 | c->Release();
|
---|
64 |
|
---|
65 | foobardep *d = new foobardep();
|
---|
66 | nsXPTCStubBase *e = d;
|
---|
67 | e->Release();
|
---|
68 | }
|
---|
69 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.