Skip to content

Commit d05d347

Browse files
committed
Refactore storage/kvstore directory
1 parent 3a8989a commit d05d347

File tree

13 files changed

+12
-29
lines changed

13 files changed

+12
-29
lines changed

storage/kvstore/filesystemstore/mbed_lib.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

storage/kvstore/global_api/mbed_lib.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

storage/kvstore/filesystemstore/FileSystemStore.h renamed to storage/kvstore/include/kvstore/FileSystemStore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#ifndef MBED_FILE_SYSTEM_STORE_H
1919
#define MBED_FILE_SYSTEM_STORE_H
2020

21-
#include "storage/kvstore/include/KVStore.h"
21+
#include "kvstore/KVStore.h"
2222
#include "filesystem/FileSystem.h"
2323

2424
namespace mbed {

storage/kvstore/kv_map/KVMap.h renamed to storage/kvstore/include/kvstore/KVMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef _KV_MAP
1717
#define _KV_MAP
1818

19-
#include "storage/kvstore/include/KVStore.h"
19+
#include "kvstore/KVStore.h"
2020
#include "platform/PlatformMutex.h"
2121
#include "platform/SingletonPtr.h"
2222
#include "blockdevice/BlockDevice.h"

storage/kvstore/tdbstore/TDBStore.h renamed to storage/kvstore/include/kvstore/TDBStore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include <stdint.h>
2121
#include <stdio.h>
22-
#include "storage/kvstore/include/KVStore.h"
22+
#include "kvstore/KVStore.h"
2323
#include "blockdevice/BlockDevice.h"
2424
#include "blockdevice/BufferedBlockDevice.h"
2525
#include "PlatformMutex.h"

storage/kvstore/kv_map/mbed_lib.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

storage/kvstore/filesystemstore/FileSystemStore.cpp renamed to storage/kvstore/source/FileSystemStore.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include "FileSystemStore.h"
20-
#include "storage/kvstore/conf/kv_config.h"
19+
#include "kvstore/FileSystemStore.h"
20+
#include "kv_config/kv_config.h"
2121
#include "filesystem/Dir.h"
2222
#include "filesystem/File.h"
2323
#include "blockdevice/BlockDevice.h"
@@ -635,6 +635,3 @@ static char *string_ndup(const char *src, size_t size)
635635
string_copy[size] = '\0';
636636
return string_copy;
637637
}
638-
639-
640-

storage/kvstore/kv_map/KVMap.cpp renamed to storage/kvstore/source/KVMap.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
#include "storage/kvstore/include/KVStore.h"
18-
#include "storage/kvstore/kv_map/KVMap.h"
19-
#include "storage/kvstore/conf/kv_config.h"
17+
#include "kvstore/KVStore.h"
18+
#include "kvstore/KVMap.h"
19+
#include "kv_config/kv_config.h"
2020
#include <stdlib.h>
2121
#include "string.h"
2222
#include "mbed_error.h"
@@ -333,4 +333,3 @@ FileSystem *KVMap::get_external_filesystem_instance(const char *name)
333333
}
334334

335335
} // namespace mbed
336-

0 commit comments

Comments
 (0)