Refactore storage/kvstore directory

pull/13307/head
Rajkumar Kanagaraj 2020-07-17 12:07:09 -07:00
parent 3a8989a247
commit d05d3471fe
13 changed files with 12 additions and 29 deletions

View File

@ -1,3 +0,0 @@
{
"name": "filesystemstore"
}

View File

@ -1,3 +0,0 @@
{
"name": "kv-global-api"
}

View File

@ -18,7 +18,7 @@
#ifndef MBED_FILE_SYSTEM_STORE_H
#define MBED_FILE_SYSTEM_STORE_H
#include "storage/kvstore/include/KVStore.h"
#include "kvstore/KVStore.h"
#include "filesystem/FileSystem.h"
namespace mbed {

View File

@ -16,7 +16,7 @@
#ifndef _KV_MAP
#define _KV_MAP
#include "storage/kvstore/include/KVStore.h"
#include "kvstore/KVStore.h"
#include "platform/PlatformMutex.h"
#include "platform/SingletonPtr.h"
#include "blockdevice/BlockDevice.h"

View File

@ -19,7 +19,7 @@
#include <stdint.h>
#include <stdio.h>
#include "storage/kvstore/include/KVStore.h"
#include "kvstore/KVStore.h"
#include "blockdevice/BlockDevice.h"
#include "blockdevice/BufferedBlockDevice.h"
#include "PlatformMutex.h"

View File

@ -1,3 +0,0 @@
{
"name": "kv-map"
}

View File

@ -16,8 +16,8 @@
* limitations under the License.
*/
#include "FileSystemStore.h"
#include "storage/kvstore/conf/kv_config.h"
#include "kvstore/FileSystemStore.h"
#include "kv_config/kv_config.h"
#include "filesystem/Dir.h"
#include "filesystem/File.h"
#include "blockdevice/BlockDevice.h"
@ -635,6 +635,3 @@ static char *string_ndup(const char *src, size_t size)
string_copy[size] = '\0';
return string_copy;
}

View File

@ -14,9 +14,9 @@
* limitations under the License.
*/
#include "storage/kvstore/include/KVStore.h"
#include "storage/kvstore/kv_map/KVMap.h"
#include "storage/kvstore/conf/kv_config.h"
#include "kvstore/KVStore.h"
#include "kvstore/KVMap.h"
#include "kv_config/kv_config.h"
#include <stdlib.h>
#include "string.h"
#include "mbed_error.h"
@ -333,4 +333,3 @@ FileSystem *KVMap::get_external_filesystem_instance(const char *name)
}
} // namespace mbed

View File

@ -16,7 +16,7 @@
// ----------------------------------------------------------- Includes -----------------------------------------------------------
#include "TDBStore.h"
#include "kvstore/TDBStore.h"
#include <algorithm>
#include <string.h>

View File

@ -15,9 +15,9 @@
*/
#include "kvstore_global_api.h"
#include "storage/kvstore/conf/kv_config.h"
#include "storage/kvstore/kv_map/KVMap.h"
#include "storage/kvstore/include/KVStore.h"
#include "kv_config/kv_config.h"
#include "kvstore/KVMap.h"
#include "kvstore/KVStore.h"
#include "mbed_error.h"
using namespace mbed;
@ -201,4 +201,3 @@ int kv_reset(const char *kvstore_name)
return ret;
}

View File

@ -1,3 +0,0 @@
{
"name": "tdbstore"
}