~aleteoryx/muditaos

ref: b11770434583059571260d88feab7a99d458eb92 muditaos/module-db/Databases/SettingsDB.cpp -rw-r--r-- 437 bytes
b1177043 — Radoslaw Wicik [EGD-4219] Convert service-evtmgr and service-lwip to library 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <vfs.hpp>
#include "SettingsDB.hpp"
const char *SettingsDB::dbName = USER_PATH("settings.db");

SettingsDB::SettingsDB() : Database(dbName), settings(this), settings_v2(this)
{
    if (settings.create() == false || settings_v2.create() == false)
        return;

    isInitialized_ = true;
}