- add sources.
[platform/framework/web/crosswalk.git] / src / ppapi / c / dev / ppb_crypto_dev.h
1 /* Copyright (c) 2012 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 dev/ppb_crypto_dev.idl modified Wed Nov  7 13:40:08 2012. */
7
8 #ifndef PPAPI_C_DEV_PPB_CRYPTO_DEV_H_
9 #define PPAPI_C_DEV_PPB_CRYPTO_DEV_H_
10
11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_stdint.h"
13
14 #define PPB_CRYPTO_DEV_INTERFACE_0_1 "PPB_Crypto(Dev);0.1"
15 #define PPB_CRYPTO_DEV_INTERFACE PPB_CRYPTO_DEV_INTERFACE_0_1
16
17 /**
18  * @file
19  * This file defines the PPB_Crypto_Dev interface.
20  */
21
22
23 /**
24  * @addtogroup Interfaces
25  * @{
26  */
27 struct PPB_Crypto_Dev_0_1 {
28   /**
29    * Fills the given buffer with random bytes. This is potentially slow so only
30    * request the amount of data you need.
31    */
32   void (*GetRandomBytes)(char* buffer, uint32_t num_bytes);
33 };
34
35 typedef struct PPB_Crypto_Dev_0_1 PPB_Crypto_Dev;
36 /**
37  * @}
38  */
39
40 #endif  /* PPAPI_C_DEV_PPB_CRYPTO_DEV_H_ */
41