blob: dfd2312df668adf70cd98c9aea785238af59b1c8 [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 */
16
17#ifndef SECTION_LIST_H
18#define SECTION_LIST_H
19
Yi Jin99c248f2017-08-25 18:11:58 -070020#include "Privacy.h"
Joe Onorato1754d742016-11-21 17:51:35 -080021#include "Section.h"
22
23/**
24 * This is the mapping of section IDs to the commands that are run to get those commands.
Yi Jin7e0b4e52017-09-12 20:00:25 -070025 * The section IDs are guaranteed in ascending order, NULL-terminated.
Joe Onorato1754d742016-11-21 17:51:35 -080026 */
27extern const Section* SECTION_LIST[];
28
Yi Jin0ed9b682017-08-18 14:51:20 -070029/**
30 * This is the mapping of section IDs to each section's privacy policy.
Yi Jin7e0b4e52017-09-12 20:00:25 -070031 * The section IDs are guaranteed in ascending order, not NULL-terminated since size is provided.
Yi Jin0ed9b682017-08-18 14:51:20 -070032 */
Yi Jinbe6de302017-10-24 12:30:24 -070033extern const Privacy** PRIVACY_POLICY_LIST;
Yi Jin0ed9b682017-08-18 14:51:20 -070034
Yi Jin7e0b4e52017-09-12 20:00:25 -070035extern const int PRIVACY_POLICY_COUNT;
36
Joe Onorato1754d742016-11-21 17:51:35 -080037#endif // SECTION_LIST_H
38