• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef HIAPPEVENT_FRAMEWORKS_NATIVE_LIB_HIAPPEVENT_CACHE_APP_EVENT_CACHE_COMMON_H
16 #define HIAPPEVENT_FRAMEWORKS_NATIVE_LIB_HIAPPEVENT_CACHE_APP_EVENT_CACHE_COMMON_H
17 
18 #include <string>
19 
20 namespace OHOS {
21 namespace HiviewDFX {
22 namespace AppEventCacheCommon {
23 constexpr int DB_SUCC = 0;
24 constexpr int DB_FAILED = -1;
25 const unsigned int HIAPPEVENT_DOMAIN = 0xD002D07;
26 
27 namespace Blocks {
28 const std::string TABLE = "blocks";
29 const std::string FIELD_SEQ = "seq";
30 const std::string FIELD_NAME = "name";
31 } // namespace Blocks
32 
33 namespace Block {
34 const std::string TABLE_PREFIX = "block_";
35 const std::string FIELD_SEQ = "seq";
36 const std::string FIELD_PACKAGE = "package";
37 const std::string FIELD_SIZE = "size";
38 } // namespace Block
39 } // namespace AppEventCacheCommon
40 } // namespace HiviewDFX
41 } // namespace OHOS
42 #endif // HIAPPEVENT_FRAMEWORKS_NATIVE_LIB_HIAPPEVENT_CACHE_APP_EVENT_CACHE_COMMON_H
43