blob: 1d754767f2295ea29db11d934d15ba40b9ea7a46 [file] [log] [blame]
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
namespace apk_cache {
// APK Cache base directory. All files including the database are stored here.
extern const char kApkCacheDir[];
// Expose database files to old cache cleaner so that it will not delete the
// database. Will be removed once old cache cleaner is removed.
extern const int kDatabaseFilesCount;
extern const char* const kDatabaseFiles[];
// APK Cache index database file name.
extern const char kDatabaseFile[];
// APK Cache files directory name. All cached files are stored under this.
extern const char kFilesBase[];
// Session status for testing.
extern const int32_t kSessionStatusOpen;
extern const int32_t kSessionStatusClosed;
// File types for testing.
extern const char kFileTypeBaseApk[];
// Generate file name from given file entry id.
std::string GetFileNameById(int64_t id);
} // namespace apk_cache