Moved LFS_TRACE calls to API wrapper functions

This removes quite a bit of extra code needed to entertwine the
LFS_TRACE calls into the original funcions.

Also changed temporary return type to match API declaration where
necessary.
This commit is contained in:
Christopher Haster 2020-11-28 12:37:01 -06:00
parent 00a9ba7826
commit 45afded784
3 changed files with 141 additions and 229 deletions

367
lfs.c

File diff suppressed because it is too large Load Diff

2
lfs.h
View File

@ -16,6 +16,7 @@ extern "C"
{
#endif
/// Version info ///
// Software library version
@ -657,6 +658,7 @@ int lfs_fs_traverse(lfs_t *lfs, int (*cb)(void*, lfs_block_t), void *data);
int lfs_migrate(lfs_t *lfs, const struct lfs_config *cfg);
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif

View File

@ -43,6 +43,7 @@ extern "C"
{
#endif
// Macros, may be replaced by system specific wrappers. Arguments to these
// macros must not have side-effects as the macros can be removed for a smaller
// code footprint