blob: 1725ac4ef017b08e83c4abcf8a94bc5017c1458b [file] [log] [blame]
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include "linkerconfig/apex.h"
#include "linkerconfig/common.h"
#include "linkerconfig/context.h"
#include "linkerconfig/namespace.h"
namespace android {
namespace linkerconfig {
namespace contents {
typedef modules::Namespace NamespaceBuilder(const Context& ctx);
NamespaceBuilder BuildSystemDefaultNamespace;
NamespaceBuilder BuildSphalNamespace;
NamespaceBuilder BuildRsNamespace;
NamespaceBuilder BuildVendorDefaultNamespace;
NamespaceBuilder BuildSystemNamespace;
NamespaceBuilder BuildVndkInSystemNamespace;
NamespaceBuilder BuildProductDefaultNamespace;
NamespaceBuilder BuildUnrestrictedDefaultNamespace;
NamespaceBuilder BuildPostInstallNamespace;
NamespaceBuilder BuildRecoveryDefaultNamespace;
NamespaceBuilder BuildIsolatedDefaultNamespace;
modules::Namespace BuildVendorNamespace(const Context& ctx,
const std::string& name);
modules::Namespace BuildProductNamespace(const Context& ctx,
const std::string& name);
modules::Namespace BuildVndkNamespace(const Context& ctx,
VndkUserPartition vndk_user);
// Namespaces for APEX binaries
modules::Namespace BuildApexDefaultNamespace(const Context& ctx,
const modules::ApexInfo& apex_info);
modules::Namespace BuildApexEmptyDefaultNamespace(
const Context& ctx, const modules::ApexInfo& apex_info);
NamespaceBuilder BuildApexPlatformNamespace;
void AddVendorSubdirNamespaceProviders(const Context& ctx,
modules::LibProviders& providers);
} // namespace contents
} // namespace linkerconfig
} // namespace android