2022-06-03 19:15:11 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
* Copyright (C) 2015 Intel Corporation.
|
2019-05-07 06:35:01 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* file operation functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SPDK_FILE_H
|
|
|
|
#define SPDK_FILE_H
|
|
|
|
|
|
|
|
#include "spdk/stdinc.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load the input file content into a data buffer.
|
|
|
|
*
|
|
|
|
* \param file File handle.
|
|
|
|
* \param size Size of bytes read from the file.
|
|
|
|
*
|
|
|
|
* \return data contains the content on success, NULL on failure.
|
|
|
|
*/
|
|
|
|
void *spdk_posix_file_load(FILE *file, size_t *size);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|