VirtualBox

Changeset 204 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 21, 2007 9:57:51 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17688
Message:

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

Location:
trunk/include/iprt
Files:
13 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/initterm.h

    r195 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/** @} */
Note: See TracChangeset for help on using the changeset viewer.

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