120f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie/* 220f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * Copyright (C) 2015 The Android Open Source Project 320f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * 420f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * Licensed under the Apache License, Version 2.0 (the "License"); 520f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * you may not use this file except in compliance with the License. 620f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * You may obtain a copy of the License at 720f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * 820f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * http://www.apache.org/licenses/LICENSE-2.0 920f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * 1020f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * Unless required by applicable law or agreed to in writing, software 1120f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * distributed under the License is distributed on an "AS IS" BASIS, 1220f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1320f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * See the License for the specific language governing permissions and 1420f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie * limitations under the License. 1520f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie */ 1620f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie 17c1391f91c4f85f5f2f08b072486455b990817710François Gaffie#include <Plugin.h> 18c1391f91c4f85f5f2f08b072486455b990817710François Gaffie#include "LoggingElementBuilderTemplate.h" 1920f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie#include "PolicySubsystem.h" 2020f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie 2120f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffiestatic const char *const POLICY_SUBSYSTEM_NAME = "Policy"; 2220f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffieextern "C" 2320f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie{ 24c1391f91c4f85f5f2f08b072486455b990817710François Gaffievoid PARAMETER_FRAMEWORK_PLUGIN_ENTRYPOINT_V1(CSubsystemLibrary *subsystemLibrary, core::log::Logger& logger) 2520f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie{ 2620f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie subsystemLibrary->addElementBuilder(POLICY_SUBSYSTEM_NAME, 27c1391f91c4f85f5f2f08b072486455b990817710François Gaffie new TLoggingElementBuilderTemplate<PolicySubsystem>(logger)); 2820f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie} 2920f06f996337c9bf79d0b112083f6427a122ebabFrançois Gaffie} 30