Home | History | Annotate | Download | only in hdr
      1 /*
      2  * Copyright (C) 2014 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #ifndef XPL_TYPES_H
     18 #define XPL_TYPES_H
     19 
     20 /**
     21     \file xpl_Types.h
     22     \brief The xpl_Types.h header file contains constants and basic types definition
     23 */
     24 
     25 #include <stdbool.h>
     26 
     27 /************** CONSTANTS ****************************************************/
     28 
     29 #ifndef TRUE
     30 /** Define TRUE */
     31 #define TRUE  1
     32 #endif
     33 
     34 #ifndef FALSE
     35 /** Define FALSE */
     36 #define FALSE 0
     37 #endif
     38 
     39 #ifndef XPL_NULL
     40 /** Define XPL_NULL */
     41   #define XPL_NULL (0)
     42 #endif
     43 
     44 #ifndef NULL
     45 /** Define NULL */
     46   #define NULL ((void*) 0)
     47 #endif
     48 
     49 
     50 /************** STRUCTURES, ENUMS, AND TYPEDEFS ******************************/
     51 
     52 #ifndef INT8
     53 /** Definition INT8 as signed char */
     54 typedef signed char INT8;
     55 #endif
     56 
     57 #ifndef UINT8
     58 /** Definition UINT8 as unsigned char */
     59 typedef unsigned char UINT8;
     60 #endif
     61 
     62 #ifndef INT16
     63 /** Definition INT16 as short integer */
     64 typedef short int INT16;
     65 #endif
     66 
     67 #ifndef UINT16
     68 /**  Definition UINT16 as unsigned short integer*/
     69 typedef unsigned short int UINT16;
     70 #endif
     71 
     72 #ifndef INT32
     73 /** Definition INT32 as integer*/
     74 typedef int INT32;
     75 #endif
     76 
     77 #ifndef UINT32
     78 /** Definition UINT32 as unsigned integer */
     79 typedef unsigned int UINT32;
     80 #endif
     81 
     82 #ifndef INT64
     83 /** Definition INT64 as long integer */
     84 typedef long long int INT64;
     85 #endif
     86 
     87 #ifndef UINT64
     88 /** Definition UINT64 as unsigned long integer */
     89 typedef unsigned long long int UINT64;
     90 #endif
     91 
     92 
     93 #ifndef BOOLEAN
     94 /** Definition BOOLEAN as unsigned char*/
     95 typedef unsigned char BOOLEAN;
     96 #endif
     97 
     98 #ifndef BOOLTYPE
     99 /**
    100 *  BOOLTYPE introduced for EZX backward compatibility .
    101 *  It should be used in DmtData and DmtNode constructor and access methods only.
    102 */
    103 typedef bool BOOLTYPE;
    104 #endif
    105 
    106 /** Definition CPCHAR as c onstant character pointer */
    107 typedef const char* CPCHAR;
    108 
    109 #ifndef FLOAT
    110 /** Definition FLOAT as float*/
    111 typedef float FLOAT;
    112 #endif
    113 
    114 #endif /* XPL_TYPES_H */
    115