VirtualBox

Changeset 18137 in vbox for trunk/src


Ignore:
Timestamp:
Mar 23, 2009 1:22:03 PM (16 years ago)
Author:
vboxsync
Message:

CBinding: removed the deprecated tstLinuxC testcase and made the functions static wherever possible in VBoxXPCOMC.cpp

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  
    3333        $(INST_SDK)bindings/xpcom/cbinding/samples/
    3434XpComCSamples_SOURCES = \
    35         tstLinuxC.c \
    3635        tstXPCOMCGlue.c \
    37         makefile.tstLinuxC=>Makefile
     36        makefile.tstXPCOMCGlue=>Makefile
    3837
    3938INSTALLS += XpComCGlue
     
    8786  #
    8887  # The testcase (also in samples).
    89   #
    90   PROGRAMS += tstXPCOMC
    91   tstXPCOMC_TEMPLATE = VBOXR3EXE
    92   tstXPCOMC_INCS = \
    93         $(VBOX_PATH_SDK)/bindings/xpcom/include
    94   tstXPCOMC_INTERMEDIATES = \
    95         $(VBOX_PATH_SDK)/bindings/xpcom/include/VBoxCAPI_v2_2.h
    96   tstXPCOMC_SOURCES = \
    97         tstLinuxC.c
    98   tstXPCOMC_LIBS = \
    99         $(VBoxXPCOMC_1_TARGET)
    100 
    101   #
    10288  # C testcase using the dynamic glue.
    10389  #
  • trunk/src/VBox/Main/cbinding/VBoxXPCOMC.cpp

    r17837 r18137  
    4040static nsIComponentManager *manager;
    4141
    42 void VBoxComUninitialize(void);
     42static void VBoxComUninitialize(void);
    4343
    44 int
     44static int
    4545VBoxUtf16ToUtf8(const PRUnichar *pwszString, char **ppszString)
    4646{
     
    4848}
    4949
    50 int
     50static int
    5151VBoxUtf8ToUtf16(const char *pszString, PRUnichar **ppwszString)
    5252{
     
    5454}
    5555
    56 void
     56static void
    5757VBoxUtf16Free(PRUnichar *pwszString)
    5858{
     
    6060}
    6161
    62 void
     62static void
    6363VBoxUtf8Free(char *pszString)
    6464{
     
    6666}
    6767
    68 void
     68static void
    6969VBoxComUnallocMem(void *ptr)
    7070{
     
    7575}
    7676
    77 void
     77static void
    7878VBoxComInitialize(IVirtualBox **virtualBox, ISession **session)
    7979{
     
    129129}
    130130
    131 void
     131static void
    132132VBoxComUninitialize(void)
    133133{
     
    144144}
    145145
    146 uint32_t
     146static uint32_t
    147147VBoxVersion(void)
    148148{
  • trunk/src/VBox/Main/cbinding/makefile.tstXPCOMCGlue

    r18126 r18137  
    2020#
    2121
    22 PATH_BIN      = /opt/VirtualBox
    2322INCS_XPCOM    = -I../../include
    2423GLUE_DIR      = ..
    2524GLUE_INC      = -I..
    2625
    27 LDFLAGS       = -Xlinker -rpath -Xlinker $(PATH_BIN)
    2826CC            = gcc
    2927CFLAGS        = -g -Wall
    3028
    3129.PHONY: all
    32 all: tstLinuxC tstXPCOMCGlue
     30all: tstXPCOMCGlue
    3331
    3432.PHONY: clean
    3533clean:
    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
    4335
    4436tstXPCOMCGlue: tstXPCOMCGlue.o VBoxXPCOMCGlue.o
Note: See TracChangeset for help on using the changeset viewer.

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