Go to the documentation of this file.00001
00002 #ifndef UNIF_TYPES_20080314_H_
00003 #define UNIF_TYPES_20080314_H_
00004
00005 #ifdef __cplusplus
00006 extern "C"{
00007 #endif
00008
00009 #if defined(WIN32) || defined(WIN64)
00010 typedef unsigned __int8 uint8_t;
00011 typedef unsigned __int16 uint16_t;
00012 typedef unsigned __int32 uint32_t;
00013 typedef unsigned __int64 uint64_t;
00014
00015 typedef __int8 int8_t;
00016 typedef __int16 int16_t;
00017 typedef __int32 int32_t;
00018 typedef __int64 int64_t;
00019
00020 #elif defined (__BEOS__)
00021 #include <support/SupportDefs.h>
00022 typedef int8 int8_t;
00023 typedef int16 int16_t;
00024 typedef int32 int32_t;
00025 typedef int64 int64_t;
00026
00027 typedef uint8 uint8_t;
00028 typedef uint16 uint16_t;
00029 typedef uint32 uint32_t;
00030 typedef uint64 uint64_t;
00031 #elif defined (Linux)
00032 #include <stdint.h>
00033 #elif defined(SunOS)
00034 #include <sys/types.h>
00035 #endif
00036
00037
00038 typedef enum {
00039 UNIF_OK,
00040 UNIF_END_OF_FILE,
00041 UNIF_BAD_HEADER,
00042 UNIF_BAD_REVISION_NUMBER,
00043 UNIF_DIRTY_HEADER,
00044 UNIF_OPEN_FAILED,
00045 UNIF_CLOSE_FAILED,
00046 UNIF_READ_FAILED,
00047 UNIF_WRITE_FAILED,
00048 UNIF_OUT_OF_MEMORY,
00049 UNIF_INPUT_FAIL
00050 } UNIF_RETURN_CODE;
00051
00052
00053 typedef enum {
00054 UNIF_OPEN_READ,
00055 UNIF_OPEN_WRITE
00056 } UNIF_OPEN_MODE;
00057
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061
00062 #endif
00063