1 /* 2 * Copyright (C) 2019 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 #include "linkerconfig/apex.h" 19 #include "linkerconfig/common.h" 20 #include "linkerconfig/context.h" 21 #include "linkerconfig/namespace.h" 22 23 namespace android { 24 namespace linkerconfig { 25 namespace contents { 26 27 typedef modules::Namespace NamespaceBuilder(const Context& ctx); 28 29 NamespaceBuilder BuildSystemDefaultNamespace; 30 NamespaceBuilder BuildSphalNamespace; 31 NamespaceBuilder BuildRsNamespace; 32 NamespaceBuilder BuildVendorDefaultNamespace; 33 NamespaceBuilder BuildSystemNamespace; 34 NamespaceBuilder BuildVndkInSystemNamespace; 35 NamespaceBuilder BuildProductDefaultNamespace; 36 NamespaceBuilder BuildUnrestrictedDefaultNamespace; 37 NamespaceBuilder BuildPostInstallNamespace; 38 NamespaceBuilder BuildRecoveryDefaultNamespace; 39 NamespaceBuilder BuildIsolatedDefaultNamespace; 40 41 modules::Namespace BuildVendorNamespace(const Context& ctx, 42 const std::string& name); 43 modules::Namespace BuildProductNamespace(const Context& ctx, 44 const std::string& name); 45 46 modules::Namespace BuildVndkNamespace(const Context& ctx, 47 VndkUserPartition vndk_user); 48 49 // Namespaces for APEX binaries 50 modules::Namespace BuildApexDefaultNamespace(const Context& ctx, 51 const modules::ApexInfo& apex_info); 52 modules::Namespace BuildApexEmptyDefaultNamespace( 53 const Context& ctx, const modules::ApexInfo& apex_info); 54 NamespaceBuilder BuildApexPlatformNamespace; 55 56 } // namespace contents 57 } // namespace linkerconfig 58 } // namespace android 59