Home | History | Annotate | Download | only in src
      1 /*
      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 #pragma once
     17 
     18 #ifndef SECTION_LIST_H
     19 #define SECTION_LIST_H
     20 
     21 #include <log/log_event_list.h>  // include log_id_t enums.
     22 
     23 #include "Privacy.h"
     24 #include "Section.h"
     25 
     26 namespace android {
     27 namespace os {
     28 namespace incidentd {
     29 
     30 /**
     31  * This is the mapping of section IDs to the commands that are run to get those commands.
     32  * The section IDs are guaranteed in ascending order, NULL-terminated.
     33  */
     34 extern const Section* SECTION_LIST[];
     35 
     36 /**
     37  * This is the mapping of section IDs to each section's privacy policy.
     38  * The section IDs are guaranteed in ascending order, not NULL-terminated since size is provided.
     39  */
     40 extern const Privacy** PRIVACY_POLICY_LIST;
     41 
     42 extern const int PRIVACY_POLICY_COUNT;
     43 
     44 }  // namespace incidentd
     45 }  // namespace os
     46 }  // namespace android
     47 
     48 #endif  // SECTION_LIST_H
     49