Main Page Modules Class Hierarchy Data Structures File List Data Fields Globals Related Pages

# oscl_types.h

Go to the documentation of this file.

    00001 // -*- c++ -*-
    00002 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    00003
    00004 //       O S C L _ T Y P E S   ( B A S I C   T Y P E D E F S )
    00005
    00006 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
    00007
    00019 #ifndef OSCL_TYPES_H_INCLUDED
    00020 #define OSCL_TYPES_H_INCLUDED
    00021
    00022
    00023 // include the config header for the platform
    00024 #ifndef OSCLCONFIG_H_INCLUDED
    00025 #include "osclconfig.h"
    00026 #endif
    00027
    00029 typedef int c_bool;
    00030
    00031
    00033 typedef void OsclAny;
    00034
    00036 typedef char mbchar;
    00037
    00039 #if !defined(__USE_MISC)
    00040 // uint is defined in some Linux platform sys\types.h
    00041 typedef unsigned int uint;
    00042 #endif
    00043
    00045 typedef uint8 octet;
    00046
    00048 typedef float OsclFloat;
    00049
    00050 #ifndef OSCL_INT64_TYPES_DEFINED
    00051 //use native type
    00052 typedef OSCL_NATIVE_INT64_TYPE int64;
    00053 typedef OSCL_NATIVE_UINT64_TYPE uint64;
    00054 #define OSCL_INT64_TYPES_DEFINED
    00055 #endif
    00056
    00057 // define OSCL_WCHAR
    00058 typedef OSCL_NATIVE_WCHAR_TYPE oscl_wchar;
    00059
    00061 typedef oscl_wchar OSCL_TCHAR;
    00062
    00063 // The definition of the MemoryFragment will probably
    00064 // be OS-dependant since the goal is to allow this data
    00065 // structure to be passed directly to I/O routines that take
    00066 // scatter/gather arrays.
    00067 #if ( OSCL_MEMFRAG_PTR_BEFORE_LEN )
    00068
    00069 struct OsclMemoryFragment
    00070 {
    00071     void *ptr;
    00072     uint32 len;
    00073 };
    00074
    00075 #else
    00076 struct OsclMemoryFragment
    00077 {
    00078     uint32 len;
    00079     void *ptr;
    00080 };
    00081 #endif
    00082
    00083
    00087 #endif  // OSCL_TYPES_H_INCLUDED