Pepper_31_C_interfaces
ppp_media_source_samsung.h
Go to the documentation of this file.
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2  * Use of this source code is governed by a BSD-style license that can be
3  * found in the LICENSE file.
4  */
5 
6 /* From samsung/ppp_media_source_samsung.idl,
7  * modified Thu Dec 12 17:47:01 2013.
8  */
9 
10 #ifndef PPAPI_C_SAMSUNG_PPP_MEDIA_SOURCE_SAMSUNG_H_
11 #define PPAPI_C_SAMSUNG_PPP_MEDIA_SOURCE_SAMSUNG_H_
12 
13 #include "ppapi/c/pp_bool.h"
14 #include "ppapi/c/pp_instance.h"
15 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_stdint.h"
18 #include "ppapi/c/pp_var.h"
19 #include "ppapi/c/samsung/pp_media_source_samsung.h"
20 
21 #define PPP_MEDIASOURCE_SAMSUNG_INTERFACE_0_9 "PPP_MediaSource_Samsung;0.9"
22 #define PPP_MEDIASOURCE_SAMSUNG_INTERFACE PPP_MEDIASOURCE_SAMSUNG_INTERFACE_0_9
23 
24 /**
25  * @file
26  * This file defines the <code>PPP_MediaSource_Samsung</code> interface.
27  */
28 
29 
30 /**
31  * @addtogroup Interfaces
32  * @{
33  */
34 /**
35  * Interface which allows PNaCl application to receive events regarding
36  * state of buffers and requests to send more data to the player.
37  *
38  * All methods from this interface accepts |user_data| as the first parameter
39  * which is set when registering interface.
40  */
42  /**
43  * Signals error during processing given data source (e.g. decoding error).
44  */
45  void (*Error)(PP_Instance instance,
46  PP_Resource media,
47  struct PP_Var id,
48  PP_SourceError reason,
49  void* user_data);
50  /**
51  * Signals activation of given data source.
52  */
53  void (*SourceOpen)(PP_Instance instance, PP_Resource media, void* user_data);
54  /**
55  * Called when source is still attached to a media element, but endOfStream()
56  * has been called.
57  */
58  void (*SourceEnded)(PP_Instance instance, PP_Resource media, void* user_data);
59  /**
60  * Signals unaatached data source to a media elemenet.
61  */
62  void (*SourceClose)(PP_Instance instance, PP_Resource media, void* user_data);
63  /**
64  * Signals succesfull appending data to source
65  */
66  void (*AppendEnd)(PP_Instance instance,
67  PP_Resource media,
68  struct PP_Var id,
69  void* user_data);
70 };
71 
73 /**
74  * @}
75  */
76 
77 #endif /* PPAPI_C_SAMSUNG_PPP_MEDIA_SOURCE_SAMSUNG_H_ */
78 
void(* SourceOpen)(PP_Instance instance, PP_Resource media, void *user_data)
void(* SourceClose)(PP_Instance instance, PP_Resource media, void *user_data)
void(* Error)(PP_Instance instance, PP_Resource media, struct PP_Var id, PP_SourceError reason, void *user_data)
int32_t PP_Resource
Definition: pp_resource.h:40
Definition: pp_var.h:155
int32_t PP_Instance
Definition: pp_instance.h:34
void(* AppendEnd)(PP_Instance instance, PP_Resource media, struct PP_Var id, void *user_data)
void(* SourceEnded)(PP_Instance instance, PP_Resource media, void *user_data)