Wasabi ExpressPlay SDK for iOS
1.10
Main Page
Modules
Data Structures
Files
File List
Globals
Client
ThirdParty
Sushi
Source
Core
Interface
ShiTransaction.h
Go to the documentation of this file.
1
/*****************************************************************
2
|
3
| Sushi - Transaction
4
|
5
| $Id: ShiTransaction.h 7930 2014-06-25 11:05:10Z jebaseelir $
6
| Original author: Gilles Boccon-Gibod
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) 2005-2014 by Intertrust. All rights reserved.
14
|
15
****************************************************************/
21
#ifndef _SHI_TRANSACTION_H_
22
#define _SHI_TRANSACTION_H_
23
24
/*----------------------------------------------------------------------
25
| includes
26
+---------------------------------------------------------------------*/
27
#include "
ShiResults.h
"
28
#include "
ShiTypes.h
"
29
#include "
ShiList.h
"
30
#include "
ShiEngine.h
"
31
32
/*----------------------------------------------------------------------
33
| types
34
+---------------------------------------------------------------------*/
39
typedef
enum
{
40
SHI_TRANSACTION_TYPE_SERVICE_TOKEN_PROCESSING
,
41
SHI_TRANSACTION_TYPE_PERSONALIZATION
,
42
SHI_TRANSACTION_TYPE_USER_REGISTRATION
,
43
SHI_TRANSACTION_TYPE_LINK_ACQUISITION
,
44
SHI_TRANSACTION_TYPE_LINK_RELEASE
,
45
SHI_TRANSACTION_TYPE_SECURITY_DATA_UPDATE
,
46
SHI_TRANSACTION_TYPE_SECURITY_DATA_CERTIFICATION
,
47
SHI_TRANSACTION_TYPE_SUSPENSION_LIST_UPDATE
,
48
SHI_TRANSACTION_TYPE_METERING_DATA_UPDATE
,
49
SHI_TRANSACTION_TYPE_LICENSE_ACQUISITION
,
50
SHI_TRANSACTION_TYPE_CRL_UPDATE
,
51
SHI_TRANSACTION_TYPE_PERSONALITY_UPDATE
52
}
SHI_TransactionType
;
53
58
typedef
enum
{
59
SHI_TRANSACTION_STATE_STARTING
,
60
SHI_TRANSACTION_STATE_SUCCEEDED
,
61
SHI_TRANSACTION_STATE_FAILED
,
62
SHI_TRANSACTION_STATE_IN_PROGRESS
63
}
SHI_TransactionState
;
64
72
typedef
struct
{
73
SHI_EngineEvent
base
;
74
SHI_TransactionType
transaction_type
;
75
SHI_TransactionState
transaction_state
;
76
}
SHI_TransactionEvent
;
77
81
typedef
struct
{
82
SHI_TransactionEvent
base
;
83
SHI_Ordinal
current_step
;
84
SHI_Cardinal
total_steps
;
85
}
SHI_TransactionProgressEvent
;
86
92
typedef
struct
{
93
SHI_Result
code
;
94
const
char
*
message
;
95
const
char
*
service_exception
;
96
}
SHI_TransactionResult
;
97
101
typedef
struct
{
102
SHI_TransactionEvent
base
;
103
SHI_TransactionResult
result
;
104
}
SHI_TransactionEndEvent
;
105
106
#endif
/* _SHI_TRANSACTION_H_ */