Changeset 16483 in vbox for trunk/src/VBox/Main/cbinding
- Timestamp:
- Feb 3, 2009 10:52:11 AM (16 years ago)
- Location:
- trunk/src/VBox/Main/cbinding
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/Makefile.kmk
r16431 r16483 34 34 XpComCSamples_SOURCES = \ 35 35 tstLinuxC.c \ 36 tstLinuxC.h \36 cbinding.h \ 37 37 makefile.tstLinuxC=>Makefile 38 38 -
trunk/src/VBox/Main/cbinding/cbinding.h
r16478 r16483 1 #ifndef __tstLinuxC_h__ 2 #define __tstLinuxC_h__ 1 /** @file cbinding.h 2 * 3 * C binding for XPCOM. 4 * 5 * $Id$ 6 */ 7 8 #ifndef __cbinding_h__ 9 #define __cbinding_h__ 10 11 /* 12 * Copyright (C) 2009 Sun Microsystems, Inc. 13 * 14 * This file is part of VirtualBox Open Source Edition (OSE), as 15 * available from http://www.virtualbox.org. This file is free software; 16 * you can redistribute it and/or modify it under the terms of the GNU 17 * General Public License (GPL) as published by the Free Software 18 * Foundation, in version 2 as it comes in the "COPYING" file of the 19 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 20 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 21 * 22 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 23 * Clara, CA 95054 USA or visit http://www.sun.com if you need 24 * additional information or have any questions. 25 */ 3 26 4 27 #ifdef __cplusplus … … 35 58 #endif 36 59 37 #endif /* __ tstLinuxC_h__ */60 #endif /* __cbinding_h__ */ -
trunk/src/VBox/Main/cbinding/libXPCOMtoC.cpp
r16406 r16483 1 /** @file libXPCOMtoC.cpp 2 * 3 * Utility functions to use with the C binding for XPCOM. 4 * 5 * $Id$ 6 */ 7 8 /* 9 * Copyright (C) 2009 Sun Microsystems, Inc. 10 * 11 * This file is part of VirtualBox Open Source Edition (OSE), as 12 * available from http://www.virtualbox.org. This file is free software; 13 * you can redistribute it and/or modify it under the terms of the GNU 14 * General Public License (GPL) as published by the Free Software 15 * Foundation, in version 2 as it comes in the "COPYING" file of the 16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 20 * Clara, CA 95054 USA or visit http://www.sun.com if you need 21 * additional information or have any questions. 22 */ 23 1 24 #include <iostream> 2 25 #include <iomanip> … … 10 33 11 34 #include "VirtualBox_XPCOM.h" 12 #include " tstLinuxC.h"35 #include "cbinding.h" 13 36 14 37 using namespace std; -
trunk/src/VBox/Main/cbinding/makefile.tstLinuxC
r16454 r16483 1 1 # $Id: Makefile 42209 2009-01-29 12:22:10Z jens $ 2 # 3 ## @file makefile.tstLinuxC 4 # 5 # Makefile for sample program illustrating use of C binding for XPCOM. 6 7 # 8 # Copyright (C) 2009 Sun Microsystems, Inc. 9 # 10 # This file is part of VirtualBox Open Source Edition (OSE), as 11 # available from http://www.virtualbox.org. This file is free software; 12 # you can redistribute it and/or modify it under the terms of the GNU 13 # General Public License (GPL) as published by the Free Software 14 # Foundation, in version 2 as it comes in the "COPYING" file of the 15 # VirtualBox OSE distribution. VirtualBox OSE is distributed in the 16 # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 17 # 18 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 19 # Clara, CA 95054 USA or visit http://www.sun.com if you need 20 # additional information or have any questions. 21 # 2 22 3 23 PATH_XPCOM = ../.. … … 24 44 $(CC) -o $@ $^ -Xlinker -rpath -Xlinker $(PATH_BIN) $(PATH_BIN)/VBoxXPCOMC.so 25 45 26 tstLinuxC.o: tstLinuxC.c tstLinuxC.h46 tstLinuxC.o: tstLinuxC.c cbinding.h 27 47 $(CC) $(CFLAGS) -DRT_OS_LINUX -DMOZ_UNICODE $(INCS_XPCOM) -o $@ -c $< 28 48 -
trunk/src/VBox/Main/cbinding/tstLinuxC.c
r16406 r16483 5 5 * 6 6 * $Id$ 7 */ 8 9 /* 10 * Copyright (C) 2009 Sun Microsystems, Inc. 11 * 12 * This file is part of VirtualBox Open Source Edition (OSE), as 13 * available from http://www.virtualbox.org. This file is free software; 14 * you can redistribute it and/or modify it under the terms of the GNU 15 * General Public License (GPL) as published by the Free Software 16 * Foundation, in version 2 as it comes in the "COPYING" file of the 17 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the 18 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 19 * 20 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa 21 * Clara, CA 95054 USA or visit http://www.sun.com if you need 22 * additional information or have any questions. 7 23 */ 8 24 … … 11 27 #include <stdlib.h> 12 28 #include <iconv.h> 13 #include " tstLinuxC.h"29 #include "cbinding.h" 14 30 15 31 static char *nsIDToString(nsID *guid);
Note:
See TracChangeset
for help on using the changeset viewer.