LinuxSDK  V1.4.0.5
SwiDataTypes.h
Go to the documentation of this file.
1 
13 #ifndef __SWI_DATA_TYPES_H
14 #define __SWI_DATA_TYPES_H
15 
16 #ifndef SWI_API
17 #define SWI_API
18 #endif
19 
20 
21 typedef unsigned char swi_uint8;
22 typedef unsigned short swi_uint16;
23 typedef unsigned long swi_uint32;
24 typedef unsigned long long swi_uint64;
26 typedef signed char swi_int8;
27 typedef signed short swi_int16;
28 typedef signed long swi_int32;
29 typedef signed long long swi_int64;
31 typedef int swi_bool;
35 typedef char swi_char, *swi_charp;
45 typedef unsigned long swi_size_t;
46 
54 typedef long swi_ssize_t;
55 
61 typedef unsigned short swi_UCS2;
63 
64 /* Alignment operators */
65 #define ALIGN4 (sizeof(swi_uint32) -1)
66 #define ALIGN2 (sizeof(swi_uint16) -1)
67 
68 
69 /* function and variable scope modifiers */
70 
71 #define local static
72 #define package
73 #define global
75 /* note: currently package and global are only used manually,
76  * someday tools should make use of these indentifiers
77  * ie. prototype generation tools
78  */
79 
80  #define UTF8_MAX_CHAR_SIZE 4
81 
82 #define YES 1
83 #define NO 0
84 
85 #define TRUE 1
86 #define FALSE 0
87 #define EOS '\0'
88 
89 #ifndef NULL
90 #define NULL ((void *)0)
91 #endif
92 
93 #endif /* __SWI_DATA_TYPES_H */
94 /*
95  * $Log: SwiDataTypes.h,v $
96  */

Linux SDK V1.4.0.5
Copyright (c) 2011 Sierra Wireless, Inc. All rights reserved