mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-06 15:01:57 +00:00
Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
53 lines
1.0 KiB
C
53 lines
1.0 KiB
C
/*
|
|
* Copyright (c) 2016 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _FS_INTERFACE_H_
|
|
#define _FS_INTERFACE_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* @brief Macro to define _zfile_object structure
|
|
*
|
|
* This structure contains information about the open files. This
|
|
* structure will be passed to the api functions as an opaque
|
|
* pointer.
|
|
*
|
|
* @param _file_object File structure used by underlying file system
|
|
*/
|
|
|
|
#define FS_FILE_DEFINE(_file_object) \
|
|
struct _fs_file_object { \
|
|
_file_object; \
|
|
}
|
|
|
|
/*
|
|
* @brief Macro to define _zdir_object structure
|
|
*
|
|
* This structure contains information about the open directories. This
|
|
* structure will be passed to the directory api functions as an opaque
|
|
* pointer.
|
|
*
|
|
* @param _dir_object Directory structure used by underlying file system
|
|
*/
|
|
|
|
#define FS_DIR_DEFINE(_dir_object) \
|
|
struct _fs_dir_object { \
|
|
_dir_object; \
|
|
}
|
|
|
|
#ifdef CONFIG_FILE_SYSTEM_FAT
|
|
#include <fs/fat_fs.h>
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _FS_INTERFACE_H_ */
|