VirtualBox

Changeset 204

Show
Ignore:
Timestamp:
01/21/07 10:57:51 (2 years ago)
Author:
vboxsync
Message:

runtime.h now includes everything. Created a new header, initterm.h, which includes the RT*Init/Term() prototypes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/initterm.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - Runtime Init/Term. 
    43 */ 
     
    2019 */ 
    2120 
    22 #ifndef __iprt_Runtime_h__ 
    23 #define __iprt_Runtime_h__ 
     21#ifndef __iprt_initterm_h__ 
     22#define __iprt_initterm_h__ 
    2423 
    2524#include <iprt/cdefs.h> 
  • trunk/include/iprt/path.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - Path Manipulation. 
    43 */ 
  • trunk/include/iprt/process.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - Process Management. 
    43 */ 
  • trunk/include/iprt/runtime.h

    r1 r204  
    11/** @file 
    2  * 
    3  * InnoTek Portable Runtime - Runtime Init/Term. 
     2 * InnoTek Portable Runtime - Include Everything. 
    43 */ 
    54 
     
    2019 */ 
    2120 
    22 #ifndef __iprt_Runtime_h__ 
    23 #define __iprt_Runtime_h__ 
     21#ifndef __iprt_runtime_h__ 
     22#define __iprt_runtime_h__ 
    2423 
    2524#include <iprt/cdefs.h> 
    2625#include <iprt/types.h> 
     26#include <iprt/param.h> 
     27#include <iprt/initterm.h> 
    2728 
    28  
    29 __BEGIN_DECLS 
    30  
    31 /** @defgroup grp_rt    InnoTek Portable Runtime APIs 
    32  * @{ 
    33  */ 
    34  
    35 /** @defgroup grp_rt_initterm  Init / Term 
    36  * @{ 
    37  */ 
     29#include <iprt/alloc.h> 
     30#include <iprt/asm.h> 
     31#include <iprt/assert.h> 
     32#include <iprt/avl.h> 
     33#include <iprt/crc32.h> 
     34#include <iprt/crc64.h> 
     35#include <iprt/critsect.h> 
     36#include <iprt/dir.h> 
     37#include <iprt/err.h> 
     38#include <iprt/file.h> 
     39#include <iprt/fs.h> 
     40#include <iprt/ldr.h> 
     41#include <iprt/log.h> 
     42#include <iprt/md5.h> 
     43#include <iprt/mem.h> 
     44#include <iprt/path.h> 
     45#include <iprt/semaphore.h> 
     46#include <iprt/spinlock.h> 
     47#include <iprt/stdarg.h> 
     48#include <iprt/string.h> 
     49#include <iprt/system.h> 
     50#include <iprt/table.h> 
     51#include <iprt/thread.h> 
     52#include <iprt/time.h> 
     53#include <iprt/timer.h> 
     54#include <iprt/uni.h> 
     55#include <iprt/uuid.h> 
     56#include <iprt/zip.h> 
    3857 
    3958#ifdef IN_RING3 
    40 /** 
    41  * Initalizes the runtime library. 
    42  * 
    43  * @returns iprt status code. 
    44  * 
    45  * @param   fInitSUPLib     Set if SUPInit() shall be called during init (default). 
    46  *                          Clear if not to call it. 
    47  * @param   cbReserve       The number of bytes of contiguous memory that should be reserved by 
    48  *                          the runtime / support library. 
    49  *                          Set this to 0 if no reservation is required. (default) 
    50  *                          Set this to ~(size_t)0 if the maximum amount supported by the VM is to be 
    51  *                          attempted reserved, or the maximum available. 
    52  *                          This argument only applies if fInitSUPLib is true and we're in ring-3 HC. 
    53  */ 
    54 RTR3DECL(int) RTR3Init( 
    55 #ifdef __cplusplus 
    56     bool fInitSUPLib = true, 
    57     size_t cbReserve = 0 
    58 #else 
    59     bool fInitSUPLib, 
    60     size_t cbReserve 
    61 #endif 
    62     ); 
    63  
    64 /** 
    65  * Terminates the runtime library. 
    66  */ 
    67 RTR3DECL(void) RTR3Term(void); 
     59# include <iprt/stream.h> 
     60# include <iprt/tcp.h> 
     61# include <iprt/ctype.h> 
     62# include <iprt/alloca.h>  /** @todo iprt/alloca.h should be made available in R0 and GC too! */ 
     63# include <iprt/process.h> /** @todo iprt/process.h should be made available in R0 too (partly). */ 
    6864#endif 
    6965 
    70  
    7166#ifdef IN_RING0 
    72 /** 
    73  * Initalizes the ring-0 driver runtime library. 
    74  * 
    75  * @returns iprt status code. 
    76  * @param   fReserved       Flags reserved for the future. 
    77  */ 
    78 RTR0DECL(int) RTR0Init(unsigned fReserved); 
    79  
    80 /** 
    81  * Terminates the ring-0 driver runtime library. 
    82  */ 
    83 RTR0DECL(void) RTR0Term(void); 
     67# include <iprt/memobj.h> 
    8468#endif 
    85  
    86 /** @} */ 
    87  
    88 /** @} */ 
    89  
    90 __END_DECLS 
    9169 
    9270 
  • trunk/include/iprt/semaphore.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - Semaphore. 
    43 */ 
  • trunk/include/iprt/spinlock.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - Spinlocks. 
    43 */ 
     
    9190#ifdef __DOXYGEN__ 
    9291# define RTSPINLOCKTMP_INITIALIZER 
    93 #endif  
     92#endif 
    9493 
    9594 
  • trunk/include/iprt/stdarg.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - stdarg.h wrapper. 
    43 */ 
  • trunk/include/iprt/stdint.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - stdint.h wrapper (for backlevel compilers like MSC). 
    43 */ 
  • trunk/include/iprt/stream.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - I/O Stream. 
    43 */ 
  • trunk/include/iprt/string.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - String Manipluation. 
    43 */ 
  • trunk/include/iprt/system.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - System. 
    43 */ 
  • trunk/include/iprt/table.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - Abstract Table/Trees. 
    43 */ 
  • trunk/include/iprt/tcp.h

    r1 r204  
    11/** @file 
    2  * 
    32 * InnoTek Portable Runtime - TCP/IP. 
    43 */ 
  • trunk/include/iprt/uuid.h

    r1 r204  
    2626#include <iprt/types.h> 
    2727 
    28 #ifdef IN_RING0 
    29 # error "There are no RTUuid APIs available Ring-0 Host Context!" 
    30 #endif 
    31  
    3228__BEGIN_DECLS 
    3329 
     
    4339 * @param   pUuid           Where to store generated uuid. 
    4440 */ 
    45 RTR3DECL(int)  RTUuidCreate(PRTUUID pUuid); 
     41RTDECL(int)  RTUuidCreate(PRTUUID pUuid); 
    4642 
    4743/** 
     
    5147 * @param   pUuid           Where to store generated null uuid. 
    5248 */ 
    53 RTR3DECL(int)  RTUuidClear(PRTUUID pUuid); 
     49RTDECL(int)  RTUuidClear(PRTUUID pUuid); 
    5450 
    5551/** 
     
    5955 * @param   pUuid           uuid to check. 
    6056 */ 
    61 RTR3DECL(int)  RTUuidIsNull(PCRTUUID pUuid); 
     57RTDECL(int)  RTUuidIsNull(PCRTUUID pUuid); 
    6258 
    6359/** 
     
    6864 * @param   pUuid2          Second value to compare. 
    6965 */ 
    70 RTR3DECL(int)  RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2); 
     66RTDECL(int)  RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2); 
    7167 
    7268/** 
     
    7874 * @param   cchString       pszString buffer length, must be >= RTUUID_STR_LENGTH. 
    7975 */ 
    80 RTR3DECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString); 
     76RTDECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString); 
    8177 
    8278/** 
     
    8783 * @param   pszString       String with UUID text data. 
    8884 */ 
    89 RTR3DECL(int)  RTUuidFromStr(PRTUUID pUuid, const char *pszString); 
     85RTDECL(int)  RTUuidFromStr(PRTUUID pUuid, const char *pszString); 
    9086 
    9187/** @} */ 
  • trunk/src/VBox/Runtime/generic/uuid-generic.cpp

    r129 r204  
    4040 * @param   pUuid           Where to store generated uuid. 
    4141 */ 
    42 RTR3DECL(int)  RTUuidCreate(PRTUUID pUuid) 
     42RTDECL(int)  RTUuidCreate(PRTUUID pUuid) 
    4343{ 
    4444    /* validate input. */ 
     
    6666 * @param   pUuid           Where to store generated null uuid. 
    6767 */ 
    68 RTR3DECL(int)  RTUuidClear(PRTUUID pUuid) 
     68RTDECL(int)  RTUuidClear(PRTUUID pUuid) 
    6969{ 
    7070    AssertReturn(pUuid, VERR_INVALID_PARAMETER); 
     
    8181 * @param   pUuid           uuid to check. 
    8282 */ 
    83 RTR3DECL(int)  RTUuidIsNull(PCRTUUID pUuid) 
     83RTDECL(int)  RTUuidIsNull(PCRTUUID pUuid) 
    8484{ 
    8585    AssertReturn(pUuid, VERR_INVALID_PARAMETER); 
     
    9696 * @param   pUuid2          Second value to compare. 
    9797 */ 
    98 RTR3DECL(int)  RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 
     98RTDECL(int)  RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 
    9999{ 
    100100    /* 
     
    143143 * @param   cchString       pszString buffer length, must be >= RTUUID_STR_LENGTH. 
    144144 */ 
    145 RTR3DECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString) 
     145RTDECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString) 
    146146{ 
    147147    /* validate parameters */ 
     
    218218 * @param   pszString       String with UUID text data. 
    219219 */ 
    220 RTR3DECL(int)  RTUuidFromStr(PRTUUID pUuid, const char *pszString) 
     220RTDECL(int)  RTUuidFromStr(PRTUUID pUuid, const char *pszString) 
    221221{ 
    222222    /* 0xff if not a hex number, otherwise the value. (Assumes UTF-8 encoded strings.) */ 
  • trunk/src/VBox/Runtime/r3/linux/uuid-linux.cpp

    r1 r204  
    7373 * @param   pUuid           Where to store generated uuid. 
    7474 */ 
    75 RTR3DECL(int)  RTUuidCreate(PRTUUID pUuid) 
     75RTDECL(int)  RTUuidCreate(PRTUUID pUuid) 
    7676{ 
    7777    /* check params */ 
     
    9494 * @param   pUuid           Where to store generated null uuid. 
    9595 */ 
    96 RTR3DECL(int)  RTUuidClear(PRTUUID pUuid) 
     96RTDECL(int)  RTUuidClear(PRTUUID pUuid) 
    9797{ 
    9898    /* check params */ 
     
    114114 * @param   pUuid           uuid to check. 
    115115 */ 
    116 RTR3DECL(int)  RTUuidIsNull(PCRTUUID pUuid) 
     116RTDECL(int)  RTUuidIsNull(PCRTUUID pUuid) 
    117117{ 
    118118    /* check params */ 
     
    133133 * @param   pUuid2          Second value to compare. 
    134134 */ 
    135 RTR3DECL(int)  RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 
     135RTDECL(int)  RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 
    136136{ 
    137137    /* check params */ 
     
    153153 * @param   cchString       pszString buffer length, must be >= RTUUID_STR_LENGTH. 
    154154 */ 
    155 RTR3DECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString) 
     155RTDECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString) 
    156156{ 
    157157    /* check params */ 
     
    177177 * @param   pszString       String with UUID text data. 
    178178 */ 
    179 RTR3DECL(int)  RTUuidFromStr(PRTUUID pUuid, const char *pszString) 
     179RTDECL(int)  RTUuidFromStr(PRTUUID pUuid, const char *pszString) 
    180180{ 
    181181    /* check params */ 
  • trunk/src/VBox/Runtime/r3/win32/uuid-win32.cpp

    r1 r204  
    3939 * @param   pUuid           Where to store generated uuid. 
    4040 */ 
    41 RTR3DECL(int)  RTUuidCreate(PRTUUID pUuid) 
     41RTDECL(int)  RTUuidCreate(PRTUUID pUuid) 
    4242{ 
    4343    /* check params */ 
     
    6262 * @param   pUuid           Where to store generated null uuid. 
    6363 */ 
    64 RTR3DECL(int)  RTUuidClear(PRTUUID pUuid) 
     64RTDECL(int)  RTUuidClear(PRTUUID pUuid) 
    6565{ 
    6666    /* check params */ 
     
    8080 * @param   pUuid           uuid to check. 
    8181 */ 
    82 RTR3DECL(int)  RTUuidIsNull(PCRTUUID pUuid) 
     82RTDECL(int)  RTUuidIsNull(PCRTUUID pUuid) 
    8383{ 
    8484    /* check params */ 
     
    100100 * @param   pUuid2          Second value to compare. 
    101101 */ 
    102 RTR3DECL(int)  RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 
     102RTDECL(int)  RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 
    103103{ 
    104104    /* check params */ 
     
    121121 * @param   cchString       pszString buffer length, must be >= RTUUID_STR_LENGTH. 
    122122 */ 
    123 RTR3DECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString) 
     123RTDECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString) 
    124124{ 
    125125    /* check params */ 
     
    177177 * @param   pszString       String with UUID text data. 
    178178 */ 
    179 RTR3DECL(int)  RTUuidFromStr(PRTUUID pUuid, const char *pszString) 
     179RTDECL(int)  RTUuidFromStr(PRTUUID pUuid, const char *pszString) 
    180180{ 
    181181    /* check params */ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy