| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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 #ifndef MOJO_VALIDATION_PARSER_H_ | |
| 6 #define MOJO_VALIDATION_PARSER_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 #include <string.h> | |
| 10 | |
| 11 // Parses a validation test read in as a bunch of characters. | |
| 12 // | |
| 13 // On success, returns a null pointer and a allocates a buffer pointed to | |
| 14 // by *data that must be freed by the caller. *data_len contains the buffer's | |
| 15 // size. *num_handles contains the number of handles found by the parser. | |
| 16 // | |
| 17 // On failure, returns a buffer containing an error message which must be freed | |
| 18 // by the caller, null in *data, and 0 in *data_len. *num_handles contains 0. | |
| 19 extern "C" __attribute__((visibility("default"))) char* ParseValidationTest( | |
| 20 const char* input, // Input | |
| 21 size_t* num_handles, // Output | |
| 22 uint8_t** data, // Output | |
| 23 size_t* data_len); // Output | |
| 24 | |
| 25 #endif // MOJO_VALIDATION_PARSER_H__ | |
| OLD | NEW |