1181905Sed/* SPDX-License-Identifier: GPL-2.0+ */ 2181905Sed/* 3181905Sed * Copyright (c) 2022 Google, Inc. 4181905Sed * Written by Andrew Scull <ascull@google.com> 5181905Sed */ 6181905Sed 7181905Sed#ifndef __ASM_FUZZING_ENGINE_H 8181905Sed#define __ASM_FUZZING_ENGINE_H 9181905Sed 10181905Sed/** Function to get fuzzing engine input data. */ 11181905Sed/** 12181905Sed * sandbox_fuzzing_engine_get_input() - get an input from the sandbox fuzzing 13181905Sed * engine 14181905Sed * 15181905Sed * The function will return a pointer to the input data and the size of the 16181905Sed * data pointed to. The pointer will remain valid until the next invocation of 17181905Sed * this function. 18181905Sed * 19181905Sed * @data: output pointer to input data 20181905Sed * @size output size of input data 21181905Sed * Return: 0 if OK, -ve on error 22181905Sed */ 23181905Sedint sandbox_fuzzing_engine_get_input(const uint8_t **data, size_t *size); 24181905Sed 25181905Sed#endif /* __ASM_FUZZING_ENGINE_H */ 26181905Sed