zephyr/subsys/fs/fs_impl.h
Gerard Marull-Paretas 5113c1418d subsystems: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all subsystems code to
the new prefix <zephyr/...>. Note that the conversion has been scripted,
refer to zephyrproject-rtos#45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-09 12:07:35 +02:00

37 lines
799 B
C

/*
* Copyright (c) 2019 Peter Bigot Consulting, LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/* Utility functions for use by filesystem implementations. */
#ifndef ZEPHYR_SUBSYS_FS_FS_IMPL_H_
#define ZEPHYR_SUBSYS_FS_FS_IMPL_H_
#include <zephyr/fs/fs.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Strip the mount point prefix from a path.
*
* @param path an absolute path beginning with a mount point.
*
* @param mp a pointer to the mount point within which @p path is found
*
* @return the absolute path within the mount point. Behavior is
* undefined if @p path does not start with the mount point prefix.
*/
const char *fs_impl_strip_prefix(const char *path,
const struct fs_mount_t *mp);
#ifdef __cplusplus
}
#endif
#endif /* ZEPHYR_SUBSYS_FS_FS_IMPL_H_ */