Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / native_client / src / public / nacl_desc.h
1 /*
2  * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 #ifndef NATIVE_CLIENT_SRC_PUBLIC_NACL_DESC_H_
8 #define NATIVE_CLIENT_SRC_PUBLIC_NACL_DESC_H_ 1
9
10 #include "native_client/src/include/nacl_base.h"
11 #include "native_client/src/public/imc_types.h"
12
13 EXTERN_C_BEGIN
14
15 struct NaClDesc;
16
17 /*
18  * Create a NaClDesc for a NaClHandle which has reliable identity information.
19  * That identity can be used for future validation caching.
20  *
21  * If the file_path string is empty, this returns a NaClDesc that is not marked
22  * as validation-cacheable.
23  *
24  * On success, returns a new read-only NaClDesc that uses the passed handle,
25  * setting file path information internally.
26  * On failure, returns NULL.
27  */
28 struct NaClDesc *NaClDescCreateWithFilePathMetadata(NaClHandle handle,
29                                                     const char *file_path);
30
31 EXTERN_C_END
32
33 #endif