Wasabi ExpressPlay SDK for Desktop Systems  1.23.0
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,
65 } SHI_Boolean;
66 
74 typedef int SHI_Result;
75 
85 
90 
96 
101 
107 
113 
119 
124 
128 typedef struct {
136 } SHI_DateTime;
137 
141 typedef struct {
142  const unsigned char* data;
144 } SHI_ByteArray;
145 
146 #endif /* _SHI_TYPES_H_ */
Definition: ShiTypes.h:63
unsigned int SHI_UInt32
32-bit (or more) unsigned integer
Definition: ShiTypes.h:27
unsigned short SHI_UInt16
16-bit unsigned integer
Definition: ShiTypes.h:29
SHI_Int32 month
Definition: ShiTypes.h:130
signed short SHI_Int16
16-bit signed integer
Definition: ShiTypes.h:30
SHI_Int32 hours
Definition: ShiTypes.h:132
signed char SHI_Int8
8-bit signed integer
Definition: ShiTypes.h:32
SHI_UInt32 SHI_Size
An unsigned integer used to represent a measurable quantity (e.g., the size of a file).
Definition: ShiTypes.h:95
SHI_Int32 day
Definition: ShiTypes.h:131
Definition: ShiTypes.h:64
SHI_UInt32 SHI_Ordinal
An unsigned integer that represents a position in a sequence (such as an index into a list of element...
Definition: ShiTypes.h:118
SHI_UInt32 SHI_Mask
An unsigned integer used to represent a bit mask.
Definition: ShiTypes.h:89
SHI_Int32 minutes
Definition: ShiTypes.h:133
unsigned char SHI_UInt8
8-bit unsigned integer
Definition: ShiTypes.h:31
SHI_Int32 year
Definition: ShiTypes.h:129
const unsigned char * data
Pointer to the bytes in the array.
Definition: ShiTypes.h:142
SHI_UInt8 SHI_Byte
An 8-bit byte.
Definition: ShiTypes.h:123
SHI_UInt32 SHI_Cardinal
An unsigned integer used to represent a quantity that can be counted (such as a number of elements in...
Definition: ShiTypes.h:112
signed int SHI_Int32
32-bit (or more) signed integer
Definition: ShiTypes.h:28
SHI_Size data_size
Number of bytes in the array.
Definition: ShiTypes.h:143
SHI_Int32 milliseconds
Definition: ShiTypes.h:135
SHI_Boolean
Boolean type used for variables that can be true (SHI_TRUE) or false (SHI_FALSE). ...
Definition: ShiTypes.h:62
float SHI_Float
IEEE float.
Definition: ShiTypes.h:33
SHI_Int32 SHI_Offset
A signed integer used to represent an offset from a base position value.
Definition: ShiTypes.h:100
A date and time.
Definition: ShiTypes.h:128
An untyped array of bytes.
Definition: ShiTypes.h:141
SHI_UInt32 SHI_Range
An unsigned integer used to represent the difference between a maximum value and a minimum value...
Definition: ShiTypes.h:106
SHI_UInt32 SHI_Flags
Type used to represent a bit pattern signifying a combination of flags that can be on or off...
Definition: ShiTypes.h:84
SHI_Int32 seconds
Definition: ShiTypes.h:134
int SHI_Result
Signed integer value representing a function or method result (return value).
Definition: ShiTypes.h:74