blob: 1498127a8783e336053a5169dfa591c504793d16 [file] [log] [blame]
Joe Onorato1754d742016-11-21 17:51:35 -08001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Yi Jinb592e3b2018-02-01 15:17:04 -080016#pragma once
Joe Onorato1754d742016-11-21 17:51:35 -080017
18#ifndef SECTION_LIST_H
19#define SECTION_LIST_H
20
Yi Jinb592e3b2018-02-01 15:17:04 -080021#include <log/log_event_list.h> // include log_id_t enums.
Yi Jin3c034c92017-12-22 17:36:47 -080022
Yi Jin99c248f2017-08-25 18:11:58 -070023#include "Privacy.h"
Joe Onorato1754d742016-11-21 17:51:35 -080024#include "Section.h"
25
Yi Jin6cacbcb2018-03-30 14:04:52 -070026namespace android {
27namespace os {
28namespace incidentd {
29
Joe Onorato1754d742016-11-21 17:51:35 -080030/**
31 * This is the mapping of section IDs to the commands that are run to get those commands.
Yi Jin7e0b4e52017-09-12 20:00:25 -070032 * The section IDs are guaranteed in ascending order, NULL-terminated.
Joe Onorato1754d742016-11-21 17:51:35 -080033 */
34extern const Section* SECTION_LIST[];
35
Yi Jin0ed9b682017-08-18 14:51:20 -070036/**
37 * This is the mapping of section IDs to each section's privacy policy.
Yi Jin7e0b4e52017-09-12 20:00:25 -070038 * The section IDs are guaranteed in ascending order, not NULL-terminated since size is provided.
Yi Jin0ed9b682017-08-18 14:51:20 -070039 */
Yi Jinbe6de302017-10-24 12:30:24 -070040extern const Privacy** PRIVACY_POLICY_LIST;
Yi Jin0ed9b682017-08-18 14:51:20 -070041
Yi Jin7e0b4e52017-09-12 20:00:25 -070042extern const int PRIVACY_POLICY_COUNT;
43
Yi Jin6cacbcb2018-03-30 14:04:52 -070044} // namespace incidentd
45} // namespace os
46} // namespace android
47
Yi Jinb592e3b2018-02-01 15:17:04 -080048#endif // SECTION_LIST_H