Changeset 204 in vbox
- Timestamp:
- Jan 21, 2007 9:57:51 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 17688
- Location:
- trunk
- Files:
-
- 16 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/initterm.h
r195 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - Runtime Init/Term. 4 3 */ … … 20 19 */ 21 20 22 #ifndef __iprt_ Runtime_h__23 #define __iprt_ Runtime_h__21 #ifndef __iprt_initterm_h__ 22 #define __iprt_initterm_h__ 24 23 25 24 #include <iprt/cdefs.h> -
trunk/include/iprt/path.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - Path Manipulation. 4 3 */ -
trunk/include/iprt/process.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - Process Management. 4 3 */ -
trunk/include/iprt/runtime.h
r1 r204 1 1 /** @file 2 * 3 * InnoTek Portable Runtime - Runtime Init/Term. 2 * InnoTek Portable Runtime - Include Everything. 4 3 */ 5 4 … … 20 19 */ 21 20 22 #ifndef __iprt_ Runtime_h__23 #define __iprt_ Runtime_h__21 #ifndef __iprt_runtime_h__ 22 #define __iprt_runtime_h__ 24 23 25 24 #include <iprt/cdefs.h> 26 25 #include <iprt/types.h> 26 #include <iprt/param.h> 27 #include <iprt/initterm.h> 27 28 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> 38 57 39 58 #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). */ 68 64 #endif 69 65 70 71 66 #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> 84 68 #endif 85 86 /** @} */87 88 /** @} */89 90 __END_DECLS91 69 92 70 -
trunk/include/iprt/semaphore.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - Semaphore. 4 3 */ -
trunk/include/iprt/spinlock.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - Spinlocks. 4 3 */ … … 91 90 #ifdef __DOXYGEN__ 92 91 # define RTSPINLOCKTMP_INITIALIZER 93 #endif 92 #endif 94 93 95 94 -
trunk/include/iprt/stdarg.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - stdarg.h wrapper. 4 3 */ -
trunk/include/iprt/stdint.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - stdint.h wrapper (for backlevel compilers like MSC). 4 3 */ -
trunk/include/iprt/stream.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - I/O Stream. 4 3 */ -
trunk/include/iprt/string.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - String Manipluation. 4 3 */ -
trunk/include/iprt/system.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - System. 4 3 */ -
trunk/include/iprt/table.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - Abstract Table/Trees. 4 3 */ -
trunk/include/iprt/tcp.h
r1 r204 1 1 /** @file 2 *3 2 * InnoTek Portable Runtime - TCP/IP. 4 3 */ -
trunk/include/iprt/uuid.h
r1 r204 26 26 #include <iprt/types.h> 27 27 28 #ifdef IN_RING029 # error "There are no RTUuid APIs available Ring-0 Host Context!"30 #endif31 32 28 __BEGIN_DECLS 33 29 … … 43 39 * @param pUuid Where to store generated uuid. 44 40 */ 45 RT R3DECL(int) RTUuidCreate(PRTUUID pUuid);41 RTDECL(int) RTUuidCreate(PRTUUID pUuid); 46 42 47 43 /** … … 51 47 * @param pUuid Where to store generated null uuid. 52 48 */ 53 RT R3DECL(int) RTUuidClear(PRTUUID pUuid);49 RTDECL(int) RTUuidClear(PRTUUID pUuid); 54 50 55 51 /** … … 59 55 * @param pUuid uuid to check. 60 56 */ 61 RT R3DECL(int) RTUuidIsNull(PCRTUUID pUuid);57 RTDECL(int) RTUuidIsNull(PCRTUUID pUuid); 62 58 63 59 /** … … 68 64 * @param pUuid2 Second value to compare. 69 65 */ 70 RT R3DECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2);66 RTDECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2); 71 67 72 68 /** … … 78 74 * @param cchString pszString buffer length, must be >= RTUUID_STR_LENGTH. 79 75 */ 80 RT R3DECL(int) RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString);76 RTDECL(int) RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString); 81 77 82 78 /** … … 87 83 * @param pszString String with UUID text data. 88 84 */ 89 RT R3DECL(int) RTUuidFromStr(PRTUUID pUuid, const char *pszString);85 RTDECL(int) RTUuidFromStr(PRTUUID pUuid, const char *pszString); 90 86 91 87 /** @} */ -
trunk/src/VBox/Runtime/generic/uuid-generic.cpp
r129 r204 40 40 * @param pUuid Where to store generated uuid. 41 41 */ 42 RT R3DECL(int) RTUuidCreate(PRTUUID pUuid)42 RTDECL(int) RTUuidCreate(PRTUUID pUuid) 43 43 { 44 44 /* validate input. */ … … 66 66 * @param pUuid Where to store generated null uuid. 67 67 */ 68 RT R3DECL(int) RTUuidClear(PRTUUID pUuid)68 RTDECL(int) RTUuidClear(PRTUUID pUuid) 69 69 { 70 70 AssertReturn(pUuid, VERR_INVALID_PARAMETER); … … 81 81 * @param pUuid uuid to check. 82 82 */ 83 RT R3DECL(int) RTUuidIsNull(PCRTUUID pUuid)83 RTDECL(int) RTUuidIsNull(PCRTUUID pUuid) 84 84 { 85 85 AssertReturn(pUuid, VERR_INVALID_PARAMETER); … … 96 96 * @param pUuid2 Second value to compare. 97 97 */ 98 RT R3DECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2)98 RTDECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 99 99 { 100 100 /* … … 143 143 * @param cchString pszString buffer length, must be >= RTUUID_STR_LENGTH. 144 144 */ 145 RT R3DECL(int) RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString)145 RTDECL(int) RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString) 146 146 { 147 147 /* validate parameters */ … … 218 218 * @param pszString String with UUID text data. 219 219 */ 220 RT R3DECL(int) RTUuidFromStr(PRTUUID pUuid, const char *pszString)220 RTDECL(int) RTUuidFromStr(PRTUUID pUuid, const char *pszString) 221 221 { 222 222 /* 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 73 73 * @param pUuid Where to store generated uuid. 74 74 */ 75 RT R3DECL(int) RTUuidCreate(PRTUUID pUuid)75 RTDECL(int) RTUuidCreate(PRTUUID pUuid) 76 76 { 77 77 /* check params */ … … 94 94 * @param pUuid Where to store generated null uuid. 95 95 */ 96 RT R3DECL(int) RTUuidClear(PRTUUID pUuid)96 RTDECL(int) RTUuidClear(PRTUUID pUuid) 97 97 { 98 98 /* check params */ … … 114 114 * @param pUuid uuid to check. 115 115 */ 116 RT R3DECL(int) RTUuidIsNull(PCRTUUID pUuid)116 RTDECL(int) RTUuidIsNull(PCRTUUID pUuid) 117 117 { 118 118 /* check params */ … … 133 133 * @param pUuid2 Second value to compare. 134 134 */ 135 RT R3DECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2)135 RTDECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 136 136 { 137 137 /* check params */ … … 153 153 * @param cchString pszString buffer length, must be >= RTUUID_STR_LENGTH. 154 154 */ 155 RT R3DECL(int) RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString)155 RTDECL(int) RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString) 156 156 { 157 157 /* check params */ … … 177 177 * @param pszString String with UUID text data. 178 178 */ 179 RT R3DECL(int) RTUuidFromStr(PRTUUID pUuid, const char *pszString)179 RTDECL(int) RTUuidFromStr(PRTUUID pUuid, const char *pszString) 180 180 { 181 181 /* check params */ -
trunk/src/VBox/Runtime/r3/win32/uuid-win32.cpp
r1 r204 39 39 * @param pUuid Where to store generated uuid. 40 40 */ 41 RT R3DECL(int) RTUuidCreate(PRTUUID pUuid)41 RTDECL(int) RTUuidCreate(PRTUUID pUuid) 42 42 { 43 43 /* check params */ … … 62 62 * @param pUuid Where to store generated null uuid. 63 63 */ 64 RT R3DECL(int) RTUuidClear(PRTUUID pUuid)64 RTDECL(int) RTUuidClear(PRTUUID pUuid) 65 65 { 66 66 /* check params */ … … 80 80 * @param pUuid uuid to check. 81 81 */ 82 RT R3DECL(int) RTUuidIsNull(PCRTUUID pUuid)82 RTDECL(int) RTUuidIsNull(PCRTUUID pUuid) 83 83 { 84 84 /* check params */ … … 100 100 * @param pUuid2 Second value to compare. 101 101 */ 102 RT R3DECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2)102 RTDECL(int) RTUuidCompare(PCRTUUID pUuid1, PCRTUUID pUuid2) 103 103 { 104 104 /* check params */ … … 121 121 * @param cchString pszString buffer length, must be >= RTUUID_STR_LENGTH. 122 122 */ 123 RT R3DECL(int) RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString)123 RTDECL(int) RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString) 124 124 { 125 125 /* check params */ … … 177 177 * @param pszString String with UUID text data. 178 178 */ 179 RT R3DECL(int) RTUuidFromStr(PRTUUID pUuid, const char *pszString)179 RTDECL(int) RTUuidFromStr(PRTUUID pUuid, const char *pszString) 180 180 { 181 181 /* check params */
Note:
See TracChangeset
for help on using the changeset viewer.