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.
7 #ifndef NATIVE_CLIENT_SRC_PUBLIC_NACL_DESC_H_
8 #define NATIVE_CLIENT_SRC_PUBLIC_NACL_DESC_H_ 1
10 #include "native_client/src/include/nacl_base.h"
11 #include "native_client/src/public/imc_types.h"
18 * Create a NaClDesc for a NaClHandle which has reliable identity information.
19 * That identity can be used for future validation caching.
21 * If the file_path string is empty, this returns a NaClDesc that is not marked
22 * as validation-cacheable.
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.
28 struct NaClDesc *NaClDescCreateWithFilePathMetadata(NaClHandle handle,
29 const char *file_path);