- Timestamp:
- Mar 23, 2009 1:22:03 PM (16 years ago)
- Location:
- trunk/src/VBox/Main/cbinding
- Files:
-
- 1 deleted
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/Makefile.kmk
r17793 r18137 33 33 $(INST_SDK)bindings/xpcom/cbinding/samples/ 34 34 XpComCSamples_SOURCES = \ 35 tstLinuxC.c \36 35 tstXPCOMCGlue.c \ 37 makefile.tst LinuxC=>Makefile36 makefile.tstXPCOMCGlue=>Makefile 38 37 39 38 INSTALLS += XpComCGlue … … 87 86 # 88 87 # The testcase (also in samples). 89 #90 PROGRAMS += tstXPCOMC91 tstXPCOMC_TEMPLATE = VBOXR3EXE92 tstXPCOMC_INCS = \93 $(VBOX_PATH_SDK)/bindings/xpcom/include94 tstXPCOMC_INTERMEDIATES = \95 $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v2_2.h96 tstXPCOMC_SOURCES = \97 tstLinuxC.c98 tstXPCOMC_LIBS = \99 $(VBoxXPCOMC_1_TARGET)100 101 #102 88 # C testcase using the dynamic glue. 103 89 # -
trunk/src/VBox/Main/cbinding/VBoxXPCOMC.cpp
r17837 r18137 40 40 static nsIComponentManager *manager; 41 41 42 void VBoxComUninitialize(void);42 static void VBoxComUninitialize(void); 43 43 44 int44 static int 45 45 VBoxUtf16ToUtf8(const PRUnichar *pwszString, char **ppszString) 46 46 { … … 48 48 } 49 49 50 int50 static int 51 51 VBoxUtf8ToUtf16(const char *pszString, PRUnichar **ppwszString) 52 52 { … … 54 54 } 55 55 56 void56 static void 57 57 VBoxUtf16Free(PRUnichar *pwszString) 58 58 { … … 60 60 } 61 61 62 void62 static void 63 63 VBoxUtf8Free(char *pszString) 64 64 { … … 66 66 } 67 67 68 void68 static void 69 69 VBoxComUnallocMem(void *ptr) 70 70 { … … 75 75 } 76 76 77 void77 static void 78 78 VBoxComInitialize(IVirtualBox **virtualBox, ISession **session) 79 79 { … … 129 129 } 130 130 131 void131 static void 132 132 VBoxComUninitialize(void) 133 133 { … … 144 144 } 145 145 146 uint32_t146 static uint32_t 147 147 VBoxVersion(void) 148 148 { -
trunk/src/VBox/Main/cbinding/makefile.tstXPCOMCGlue
r18126 r18137 20 20 # 21 21 22 PATH_BIN = /opt/VirtualBox23 22 INCS_XPCOM = -I../../include 24 23 GLUE_DIR = .. 25 24 GLUE_INC = -I.. 26 25 27 LDFLAGS = -Xlinker -rpath -Xlinker $(PATH_BIN)28 26 CC = gcc 29 27 CFLAGS = -g -Wall 30 28 31 29 .PHONY: all 32 all: tst LinuxC tstXPCOMCGlue30 all: tstXPCOMCGlue 33 31 34 32 .PHONY: clean 35 33 clean: 36 rm -f tstLinuxC.o tstLinuxC tstXPCOMCGlue.o tstXPCOMCGlue VBoxXPCOMCGlue.o 37 38 tstLinuxC: tstLinuxC.o 39 $(CC) -o $@ $^ $(LDFLAGS) $(PATH_BIN)/VBoxXPCOMC.so 40 41 tstLinuxC.o: tstLinuxC.c 42 $(CC) $(CFLAGS) $(INCS_XPCOM) -o $@ -c $< 34 rm -f tstXPCOMCGlue.o tstXPCOMCGlue VBoxXPCOMCGlue.o 43 35 44 36 tstXPCOMCGlue: tstXPCOMCGlue.o VBoxXPCOMCGlue.o
Note:
See TracChangeset
for help on using the changeset viewer.