VirtualBox

Ignore:
Timestamp:
Jul 7, 2009 2:58:27 PM (16 years ago)
Author:
vboxsync
Message:

IPRT,HostDrv,AddDrv: Export public IPRT symbols for the linux kernel (pain).

Location:
trunk/src/VBox/Runtime/common/alloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/alloc/alloc.cpp

    r11019 r21337  
    3333*   Header Files                                                               *
    3434*******************************************************************************/
    35 #include <iprt/alloc.h>
     35#include <iprt/mem.h>
     36#include "internal/iprt.h"
     37
    3638#include <iprt/assert.h>
    3739#include <iprt/string.h>
     
    5355    return pvDst;
    5456}
     57RT_EXPORT_SYMBOL(RTMemDup);
    5558
    5659
     
    7578    return pvDst;
    7679}
     80RT_EXPORT_SYMBOL(RTMemDupEx);
    7781
    7882
  • trunk/src/VBox/Runtime/common/alloc/heapsimple.cpp

    r21292 r21337  
    3434*******************************************************************************/
    3535#define LOG_GROUP RTLOGGROUP_DEFAULT
    36 
    37 #if defined(IN_GUEST_R0) && defined(RT_OS_LINUX) && defined(IN_MODULE)
    38 /* should come first to prevent warnings about duplicate definitions of PAGE_* */
    39 # include "the-linux-kernel.h"
    40 #endif
    41 
    4236#include <iprt/heap.h>
     37#include "internal/iprt.h"
     38
    4339#include <iprt/assert.h>
    4440#include <iprt/asm.h>
     
    349345    return VINF_SUCCESS;
    350346}
     347RT_EXPORT_SYMBOL(RTHeapSimpleInit);
    351348
    352349
     
    397394    return NULL;
    398395}
     396RT_EXPORT_SYMBOL(RTHeapSimpleAlloc);
    399397
    400398
     
    445443    return NULL;
    446444}
     445RT_EXPORT_SYMBOL(RTHeapSimpleAllocZ);
    447446
    448447
     
    665664    rtHeapSimpleFreeBlock(pHeapInt, pBlock);
    666665}
     666RT_EXPORT_SYMBOL(RTHeapSimpleFree);
    667667
    668668
     
    860860    return cbBlock;
    861861}
     862RT_EXPORT_SYMBOL(RTHeapSimpleSize);
    862863
    863864
     
    885886    return pHeapInt->cbHeap;
    886887}
     888RT_EXPORT_SYMBOL(RTHeapSimpleGetHeapSize);
    887889
    888890
     
    909911    return pHeapInt->cbFree;
    910912}
     913RT_EXPORT_SYMBOL(RTHeapSimpleGetFreeSize);
    911914
    912915
     
    941944    pfnPrintf("**** Done dumping Heap %p ****\n", Heap);
    942945}
    943 
    944 
    945 #if defined(IN_GUEST_R0) && defined(RT_OS_LINUX) && defined(IN_MODULE)
    946 EXPORT_SYMBOL(RTHeapSimpleAlloc);
    947 EXPORT_SYMBOL(RTHeapSimpleInit);
    948 EXPORT_SYMBOL(RTHeapSimpleFree);
    949 #endif
     946RT_EXPORT_SYMBOL(RTHeapSimpleDump);
     947
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