| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 time_t mtime; | 42 time_t mtime; |
| 43 time_t ctime; | 43 time_t ctime; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 /* Note: copies file_name. This copy is deallocated by DestroyMetadata. */ | 46 /* Note: copies file_name. This copy is deallocated by DestroyMetadata. */ |
| 47 extern void MetadataFromFDCtor(struct NaClValidationMetadata *metadata, | 47 extern void MetadataFromFDCtor(struct NaClValidationMetadata *metadata, |
| 48 int file_desc, | 48 int file_desc, |
| 49 const char* file_name, | 49 const char* file_name, |
| 50 size_t file_name_length); | 50 size_t file_name_length); |
| 51 | 51 |
| 52 extern void MetadataFromNaClDescCtor(struct NaClValidationMetadata *metadata, |
| 53 struct NaClDesc *desc); |
| 54 |
| 52 extern void MetadataDtor(struct NaClValidationMetadata *metadata); | 55 extern void MetadataDtor(struct NaClValidationMetadata *metadata); |
| 53 | 56 |
| 54 EXTERN_C_END | 57 EXTERN_C_END |
| 55 | 58 |
| 56 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ */ | 59 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ */ |
| OLD | NEW |