summaryrefslogtreecommitdiffstats
path: root/ppapi/c/trusted/ppb_audio_trusted.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/c/trusted/ppb_audio_trusted.h')
-rw-r--r--ppapi/c/trusted/ppb_audio_trusted.h34
1 files changed, 26 insertions, 8 deletions
diff --git a/ppapi/c/trusted/ppb_audio_trusted.h b/ppapi/c/trusted/ppb_audio_trusted.h
index cac02f2..92076d3 100644
--- a/ppapi/c/trusted/ppb_audio_trusted.h
+++ b/ppapi/c/trusted/ppb_audio_trusted.h
@@ -2,25 +2,40 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#ifndef PPAPI_C_PPB_AUDIO_TRUSTED_H_
-#define PPAPI_C_PPB_AUDIO_TRUSTED_H_
+
+/* From trusted/ppb_audio_trusted.idl modified Sat Jul 16 16:51:03 2011. */
+
+#ifndef PPAPI_C_TRUSTED_PPB_AUDIO_TRUSTED_H_
+#define PPAPI_C_TRUSTED_PPB_AUDIO_TRUSTED_H_
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_resource.h"
+#include "ppapi/c/pp_stdint.h"
-#define PPB_AUDIO_TRUSTED_INTERFACE "PPB_AudioTrusted;0.6"
+/**
+ * @file
+ * This file defines the trusted audio interface.
+ */
+
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
/**
* This interface is to be used by proxy implementations. All
* functions should be called from the main thread only. The
* resource returned is an Audio resource; most of the PPB_Audio
* interface is also usable on this resource.
*/
+#define PPB_AUDIO_TRUSTED_INTERFACE_0_6 "PPB_AudioTrusted;0.6"
+#define PPB_AUDIO_TRUSTED_INTERFACE PPB_AUDIO_TRUSTED_INTERFACE_0_6
+
struct PPB_AudioTrusted {
/** Returns an audio resource. */
PP_Resource (*CreateTrusted)(PP_Instance instance);
-
/**
* Opens a paused audio interface, used by trusted side of proxy.
* Returns PP_ERROR_WOULD_BLOCK on success, and invokes
@@ -28,15 +43,14 @@ struct PPB_AudioTrusted {
* As this function should always be invoked from the main thread,
* do not use the blocking variant of PP_CompletionCallback.
*/
- int32_t (*Open)(PP_Resource audio, PP_Resource config,
+ int32_t (*Open)(PP_Resource audio,
+ PP_Resource config,
struct PP_CompletionCallback create_callback);
-
/**
* Get the sync socket. Use once Open has completed.
* Returns PP_OK on success.
*/
int32_t (*GetSyncSocket)(PP_Resource audio, int* sync_socket);
-
/**
* Get the shared memory interface. Use once Open has completed.
* Returns PP_OK on success.
@@ -45,5 +59,9 @@ struct PPB_AudioTrusted {
int* shm_handle,
uint32_t* shm_size);
};
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_TRUSTED_PPB_AUDIO_TRUSTED_H_ */
-#endif /* PPAPI_C_PPB_AUDIO_TRUSTED_H_ */