Wasabi ExpressPlay SDK for iOS
1.10
Main Page
Modules
Data Structures
Files
File List
Globals
Client
ThirdParty
Sushi
Source
Common
Core
ShiTypes.h
Go to the documentation of this file.
1
/*****************************************************************
2
|
3
| Sushi - Common Types
4
|
5
| $Id: ShiTypes.h 7930 2014-06-25 11:05:10Z jebaseelir $
6
| Original author: Sylvain Rebaud
7
|
8
| This software is provided to you pursuant to your agreement
9
| with Intertrust Technologies Corporation ("Intertrust").
10
| This software may be used only in accordance with the terms
11
| of the agreement.
12
|
13
| Copyright (c) 2006-2014 by Intertrust. All rights reserved.
14
|
15
****************************************************************/
21
#ifndef _SHI_TYPES_H_
22
#define _SHI_TYPES_H_
23
24
/*----------------------------------------------------------------------
25
| generic types
26
+---------------------------------------------------------------------*/
27
typedef
unsigned
int
SHI_UInt32
;
28
typedef
signed
int
SHI_Int32
;
29
typedef
unsigned
short
SHI_UInt16
;
30
typedef
signed
short
SHI_Int16
;
31
typedef
unsigned
char
SHI_UInt8
;
32
typedef
signed
char
SHI_Int8
;
33
typedef
float
SHI_Float
;
35
/*----------------------------------------------------------------------
36
| macros
37
+---------------------------------------------------------------------*/
38
#if !defined(NULL)
39
#if defined (__cplusplus)
40
#define NULL 0
41
#else
42
#define NULL ((void*) 0)
43
#endif
44
#endif
45
46
/*----------------------------------------------------------------------
47
| support for shared object symbols
48
+---------------------------------------------------------------------*/
49
#if __GNUC__ >= 4
50
#define SHI_PUBLIC_API __attribute__ ((visibility ("default")))
51
#else
52
#define SHI_PUBLIC_API
53
#endif
54
55
/*----------------------------------------------------------------------
56
| types
57
+---------------------------------------------------------------------*/
62
typedef
enum
{
63
SHI_FALSE
= 0,
64
SHI_TRUE
= 1
65
}
SHI_Boolean
;
66
74
typedef
int
SHI_Result
;
75
84
typedef
SHI_UInt32
SHI_Flags
;
85
89
typedef
SHI_UInt32
SHI_Mask
;
90
95
typedef
SHI_UInt32
SHI_Size
;
96
100
typedef
SHI_Int32
SHI_Offset
;
101
106
typedef
SHI_UInt32
SHI_Range
;
107
112
typedef
SHI_UInt32
SHI_Cardinal
;
113
118
typedef
SHI_UInt32
SHI_Ordinal
;
119
123
typedef
SHI_UInt8
SHI_Byte
;
124
128
typedef
struct
{
129
SHI_Int32
year
;
130
SHI_Int32
month
;
131
SHI_Int32
day
;
132
SHI_Int32
hours
;
133
SHI_Int32
minutes
;
134
SHI_Int32
seconds
;
135
SHI_Int32
milliseconds
;
136
}
SHI_DateTime
;
137
141
typedef
struct
{
142
const
unsigned
char
*
data
;
143
SHI_Size
data_size
;
144
}
SHI_ByteArray
;
145
146
#endif
/* _SHI_TYPES_H_ */