Wasabi ExpressPlay SDK for iOS  1.10
WsbMediaSegmentDecrypter.h
Go to the documentation of this file.
1 /*****************************************************************
2 |
3 | Wasabi - Marlin Media Segment Decrypter
4 |
5 | $Id: WsbMediaSegmentDecrypter.h 11000 2014-09-16 10:02:37Z jebaseelir $
6 | Original author: Edin Hodzic (dino@concisoft.com)
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) 2014 by Intertrust. All rights reserved.
14 |
15 ****************************************************************/
16 
23 #ifndef _WSB_MEDIA_SEGMENT_DECRYPTER_H_
24 #define _WSB_MEDIA_SEGMENT_DECRYPTER_H_
25 
26 /*----------------------------------------------------------------------
27 | includes
28 +---------------------------------------------------------------------*/
29 #include "WsbTypes.h"
30 
31 /*----------------------------------------------------------------------
32 | types
33 +---------------------------------------------------------------------*/
39 typedef struct {
46  const char* ext_x_key_line;
49  unsigned int segment_number;
51 
56 typedef enum {
59 
64 
65 /*----------------------------------------------------------------------
66 | prototypes
67 +---------------------------------------------------------------------*/
68 #if defined(__cplusplus)
69 extern "C" {
70 #endif
71 
83 WSB_EXPORT WSB_Result
84 WSB_MediaSegmentDecrypter_Create(const char* source_url,
86  WSB_MediaSegmentDecrypter** decrypter);
87 
94 WSB_EXPORT WSB_Result
96 
108 WSB_EXPORT WSB_Result
110  const void* init_data);
111 
133 WSB_EXPORT WSB_Result
135  const WSB_UInt8* in,
136  unsigned int in_size,
137  WSB_UInt8* out,
138  unsigned int* out_size);
139 
140 #if defined(__cplusplus)
141 }
142 #endif
143 
144 #endif // _WSB_MEDIA_SEGMENT_DECRYPTER_H_