fs: Make API naming adhere to the appropriate namespace

The namespace allocated for the filesystem API is fs_* and FS_*. That
means all symbols and defines should adhere to it.

Jira: ZEP-1155

Change-Id: I422310448b7c7c347f621aea6d7b1d97ef25c94d
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-10-30 08:57:35 +02:00
commit b108d02eba
5 changed files with 82 additions and 82 deletions

View file

@ -24,12 +24,12 @@
extern "C" {
#endif
ZFILE_DEFINE(FIL fp);
ZDIR_DEFINE(DIR dp);
FS_FILE_DEFINE(FIL fp);
FS_DIR_DEFINE(DIR dp);
#define MAX_FILE_NAME 12 /* Uses 8.3 SFN */
static inline off_t fs_tell(struct _zfile_object *zfp)
static inline off_t fs_tell(struct _fs_file_object *zfp)
{
return f_tell(&zfp->fp);
}

View file

@ -31,8 +31,8 @@ extern "C" {
* @param _file_object File structure used by underlying file system
*/
#define ZFILE_DEFINE(_file_object) \
struct _zfile_object { \
#define FS_FILE_DEFINE(_file_object) \
struct _fs_file_object { \
_file_object; \
}
@ -46,8 +46,8 @@ extern "C" {
* @param _dir_object Directory structure used by underlying file system
*/
#define ZDIR_DEFINE(_dir_object) \
struct _zdir_object { \
#define FS_DIR_DEFINE(_dir_object) \
struct _fs_dir_object { \
_dir_object; \
}