Wasabi ExpressPlay SDK for Desktop Systems  1.10
WsbRightsEnabler.h
Go to the documentation of this file.
1 /*****************************************************************
2 |
3 | Wasabi - Rights Enabler API
4 |
5 | $Id: WsbRightsEnabler.h 10793 2014-06-25 12:46:08Z jebaseelir $
6 | Original author: Adam Miller
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) 2009-2014 by Intertrust. All rights reserved.
14 |
15 ****************************************************************/
21 #ifndef _WSB_RIGHTS_ENABLER_H_
22 #define _WSB_RIGHTS_ENABLER_H_
23 
24 /*----------------------------------------------------------------------
25 | includes
26 +---------------------------------------------------------------------*/
27 #include "WsbTypes.h"
28 #include "ShiData.h"
29 #include "WsbMediaFile.h"
30 
31 /*----------------------------------------------------------------------
32 | prototypes
33 +---------------------------------------------------------------------*/
39 
40 #if defined(__cplusplus)
41 extern "C" {
42 #endif
43 
44 /*----------------------------------------------------------------------
45 | constants
46 +---------------------------------------------------------------------*/
50 #define WSB_RIGHTSENABLER_OPTION_FLAG_DISABLE_SLA 0x00000001
51 #define WSB_RIGHTSENABLER_OPTION_FLAG_DISABLE_LINK_RENEWAL 0x00000002
52 #define WSB_RIGHTSENABLER_OPTION_FLAG_DISABLE_STORING_LICENSE_IN_FILE 0x00000004
53 
59 typedef enum {
64 
70 typedef enum {
74 
79 typedef enum {
83 
84 /*----------------------------------------------------------------------
85 | types
86 +---------------------------------------------------------------------*/
87 
92 typedef struct {
95 
105 typedef struct {
107  const char* url;
109 
121 typedef struct {
124  const void* license_data;
127  SHI_ActionResult* action_result;
129 
138 typedef struct {
142 
148 typedef struct {
149  void* instance;
151  (*handler)(void* instance, const WSB_RightsEnabler_Event* event);
153 
154 /*----------------------------------------------------------------------
155 | functions
156 +---------------------------------------------------------------------*/
157 
173 WSB_EXPORT WSB_Result
175  WSB_RightsEnabler** rights_enabler);
176 
177 
184 WSB_EXPORT WSB_Result
186  WSB_UInt32 option_flags);
187 
215 WSB_EXPORT WSB_Result
217  WSB_MediaFile* file,
218  const char** content_ids,
219  WSB_Cardinal content_ids_count,
220  const void* license_data,
221  WSB_Size license_data_size);
222 
261 WSB_EXPORT WSB_Result
263  const char* content_id,
264  const char* sla_url,
265  const void* license_data,
266  WSB_Size license_data_size);
267 
273 WSB_EXPORT WSB_Result
275 
278 #if defined(__cplusplus)
279 }
280 #endif
281 
282 #endif /* _WSB_RIGHTS_ENABLER_H_ */