00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #ifndef _terimber_ostypes_h_
00029 #define _terimber_ostypes_h_
00030 
00031 
00032 typedef signed char                     sb1_t;
00033 typedef unsigned char           ub1_t;
00034 
00035 #if defined(_MSC_VER) && (_MSC_VER > 1200) 
00036 
00037 typedef __int16                         sb2_t;
00038 typedef unsigned __int16        ub2_t;
00039 typedef __int32                         sb4_t;
00040 typedef unsigned __int32        ub4_t;
00041 typedef __int64                         sb8_t;
00042 typedef unsigned __int64        ub8_t;
00043 
00044 #if defined(_MSC_VER) && (_MSC_VER < 1400) 
00045 #ifndef wchar_t
00046 typedef unsigned short          wchar_t;
00047 #endif
00048 #endif
00049 
00050 #else
00051 
00052 typedef short                           sb2_t;
00053 typedef unsigned short          ub2_t;
00054 typedef long                            sb4_t;
00055 typedef unsigned long           ub4_t;
00056 typedef __int64                         sb8_t;
00057 typedef unsigned __int64        ub8_t;
00058 
00059 #ifndef wchar_t
00060 typedef unsigned short          wchar_t;
00061 #endif
00062 
00063 #endif
00064 
00065 
00066 typedef struct _terimber_guid_
00067 {
00068         ub4_t Data1;
00069         ub2_t Data2;
00070         ub2_t Data3;
00071         ub1_t Data4[8];
00072 } guid_t;
00073 
00074 const guid_t null_uuid = {0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
00075 
00076 
00077 guid_t uuid_gen();
00078 
00079 #endif // _terimber_ostypes_h_