VirtualBox

Changeset 2197 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Apr 18, 2007 9:31:12 PM (18 years ago)
Author:
vboxsync
Message:

some cleanup

Location:
trunk/src/VBox/Additions
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp

    r2196 r2197  
    3232
    3333    if (VBOX_FAILURE(rc))
    34     {
    3534        return rc;
    36     }
    3735
    3836    if (!ppReq || cbSize < sizeof (VMMDevRequestHeader))
     
    4341
    4442    pReq = (VMMDevRequestHeader *)VbglPhysHeapAlloc (cbSize);
    45 
    4643    if (!pReq)
    4744    {
     
    7269
    7370    if (VBOX_FAILURE(rc))
    74     {
    7571        return rc;
    76     }
    7772
    7873    if (!pReq)
    79     {
    8074        return VERR_INVALID_PARAMETER;
    81     }
    8275
    8376    if (g_vbgldata.portVMMDev == 0)
    84     {
    8577        return VERR_VBGL_NOT_INITIALIZED;
    86     }
    8778
    8879    physaddr = VbglPhysHeapGetPhysAddr (pReq);
    89 
    9080    if (!physaddr)
    9181    {
     
    9787        /* Make the compiler aware that the host has changed memory. */
    9888        ASMMemoryClobber();
    99 
    10089        rc = pReq->rc;
    10190    }
     
    10897
    10998    if (VBOX_FAILURE(rc))
    110     {
    11199        return;
    112     }
    113100
    114101    VbglPhysHeapFree (pReq);
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp

    r2194 r2197  
    3939
    4040    if (!pConnectInfo || !pAsyncCallback)
    41     {
    4241        return VERR_INVALID_PARAMETER;
    43     }
    4442
    4543    pHGCMConnect = NULL;
     
    7169
    7270            if (VBOX_SUCCESS (pConnectInfo->result))
    73             {
    7471                pConnectInfo->u32ClientID = pHGCMConnect->u32ClientID;
    75             }
    7672        }
    7773
     
    9086
    9187    if (!pDisconnectInfo || !pAsyncCallback)
    92     {
    9388        return VERR_INVALID_PARAMETER;
    94     }
    9589
    9690    pHGCMDisconnect = NULL;
     
    136130
    137131    if (!pCallInfo || !pAsyncCallback)
    138     {
    139132        return VERR_INVALID_PARAMETER;
    140     }
    141133
    142134    dprintf (("VbglHGCMCall: pCallInfo->cParms = %d, pHGCMCall->u32Function = %d\n", pCallInfo->cParms, pCallInfo->u32Function));
     
    215207
    216208        if ((pHGCMCall->header.fu32Flags & VBOX_HGCM_REQ_CANCELLED) == 0)
    217         {
    218209            VbglGRFree (&pHGCMCall->header.header);
    219         }
    220210        else
    221         {
    222211            rc = VERR_INTERRUPTED;
    223         }
    224212    }
    225213
     
    227215}
    228216
    229 
    230217#endif /* VBGL_VBOXGUEST */
  • trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile

    r762 r2197  
    3838endif
    3939
     40SOURCES_GUESTLIBBASE = \
     41        GenericRequest.cpp \
     42        PhysHeap.cpp \
     43        Init.cpp \
     44        VMMDev.cpp \
     45        HGCMInternal.cpp
     46
    4047SOURCES_GUESTLIB = \
    4148        GenericRequest.cpp \
     
    4552        VMMDev.cpp \
    4653        HGCM.cpp \
    47         HGCMInternal.cpp \
    4854        VBoxCalls.c
    49 SOURCES_GUESTLIBBASE = \
    50         $(SOURCES_GUESTLIB)
    5155
    5256#
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h

    r719 r2197  
    3939#endif
    4040
    41 #include "PhysHeap.h"
    4241#include "SysHlp.h"
    4342
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VMMDev.cpp

    r1 r2197  
    3030
    3131    if (VBOX_FAILURE(rc))
    32     {
    3332        return rc;
    34     }
    3533   
    3634    /* If the memory was not found, return an error. */
    3735    if (!g_vbgldata.pVMMDevMemory)
    38     {
    3936        return VERR_NOT_SUPPORTED;
    40     }
    4137
    4238    *ppVMMDevMemory = g_vbgldata.pVMMDevMemory;
    43 
    4439    return rc;
    4540}
    46 
  • trunk/src/VBox/Additions/linux/module/Makefile

    r2100 r2197  
    5151        $(PATH_ROOT)/include/VBox/VBoxGuestLib.h=>include/VBox/VBoxGuestLib.h \
    5252        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp=>GenericRequest.c \
    53         $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/HGCM.cpp=>HGCM.c \
    5453        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp=>HGCMInternal.c \
    5554        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/Init.cpp=>Init.c \
    5655        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/PhysHeap.cpp=>PhysHeap.c \
    57         $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/PhysHeap.h=>PhysHeap.h \
    58         $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp=>SysHlp.c \
    5956        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/SysHlp.h=>SysHlp.h \
    6057        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h=>VBGLInternal.h \
    61         $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.c=>VBoxCalls.c \
    62         $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBoxCalls.h=>VBoxCalls.h \
    6358        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestLog.h=>VBoxGuestLog.h \
    6459        $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuestLib/VMMDev.cpp=>VMMDev.c \
     
    8883vboxadd_TEMPLATE = VBOXLNX32GUESTR0
    8984vboxadd_DEFS     = KBUILD_MODNAME=KBUILD_STR\(vboxadd\) KBUILD_BASENAME=KBUILD_STR\(vboxadd\) MODULE IN_RING0 IN_RT_R0 VBGL_VBOXGUEST EXPORT_SYMTAB VBGL_HGCM VBOX_HGCM
    90 vboxadd_LIBS     = $(PATH_LIB)/RuntimeLnx32GuestR0.a
     85vboxadd_LIBS     = $(PATH_LIB)/VBoxGuestLibBaseLinux.a $(PATH_LIB)/RuntimeLnx32GuestR0.a
    9186vboxadd_SOURCES  = vboxmod.c cmc.c hgcmcall.c
    9287vboxadd_INCS     = $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
  • trunk/src/VBox/Additions/linux/module/Makefile.module

    r2099 r2197  
    2626        vboxmod.o \
    2727        GenericRequest.o \
    28         SysHlp.o \
    2928        PhysHeap.o \
    3029        Init.o \
    3130        VMMDev.o \
    32         HGCM.o \
    3331        HGCMInternal.o \
    34         VBoxCalls.o \
    3532        r0drv/alloc-r0drv.o \
    3633        r0drv/linux/alloc-r0drv-linux.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