Improve:StorageManager include cleaner.
This commit is contained in:
parent
3b532d55c3
commit
21a97dc6f2
|
@ -12,4 +12,4 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#include "EmmcHandle.h"
|
||||
// #include "EmmcHandle.h"
|
|
@ -14,6 +14,9 @@
|
|||
*/
|
||||
#include "IStorageManager.h"
|
||||
#include "ILog.h"
|
||||
#include "StatusCode.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
sd_card_info::sd_card_info() : mEvent(StorageEvent::END), mTotalSizeMB(0), mFreeSizeMB(0)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -13,8 +13,15 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "SdCardHandle.h"
|
||||
#include "IHalCpp.h"
|
||||
#include "ILog.h"
|
||||
#include "IStorageManager.h"
|
||||
#include "LinuxApi.h"
|
||||
#include "StatusCode.h"
|
||||
#include "StorageBase.h"
|
||||
#include <memory>
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
void SdCardHandle::ReportEvent(const SdCardHalStatus &status)
|
||||
{
|
||||
LogInfo("SdCardHal: ReportEvent.\n");
|
||||
|
|
|
@ -14,11 +14,12 @@
|
|||
*/
|
||||
#include "StorageBase.h"
|
||||
#include "ILog.h"
|
||||
#include "IStorageManager.h"
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
bool StorageBase::CheckDirectory(const char *filepath)
|
||||
{
|
||||
LogInfo("CheckDirectory:%s\n", filepath);
|
||||
|
|
|
@ -13,7 +13,13 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
#include "StorageManagerImpl.h"
|
||||
#include "ILog.h"
|
||||
// #include "ILog.h"
|
||||
#include "IStorageManager.h"
|
||||
#include "SdCardHandle.h"
|
||||
#include "StatusCode.h"
|
||||
#include "StorageBase.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
StatusCode StorageManagerImpl::Init(void)
|
||||
{
|
||||
SdCardHandle::SdCardInit();
|
||||
|
|
|
@ -14,7 +14,10 @@
|
|||
*/
|
||||
#include "StorageManagerMakePtr.h"
|
||||
#include "ILog.h"
|
||||
#include "IStorageManager.h"
|
||||
#include "StatusCode.h"
|
||||
#include "StorageManagerImpl.h"
|
||||
#include <memory>
|
||||
bool CreateStorageManagerModule(void)
|
||||
{
|
||||
auto instance = std::make_shared<IStorageManager>();
|
||||
|
|
Loading…
Reference in New Issue
Block a user