3 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 #ifndef __DEF_CONFIG_H_
18 #define __DEF_CONFIG_H_
22 /* Configuration default values */
23 /* note: 0 means unlimited */
24 #define SYSTEM_MAX_USE 0
25 #define SYSTEM_KEEP_FREE 0
26 #define MAX_RETENTION_SEC 0
27 #define MAX_CRASH_DUMP 0
31 #define CRASH_SECTION "CrashManager"
34 REP_TYPE_INVALID = -1,
37 REP_TYPE_DEFAULT = REP_TYPE_FULL,
40 typedef struct config {
45 int max_retention_sec;
47 enum ReportType report_type;
48 char *crash_root_path;
57 bool config_init(config_t *c, const char *const path);
58 void config_free(config_t *c);