/* * Copyright (c) 2014-2020 Samsung Electronics Co., Ltd. All rights reserved. * * This file is licensed under the terms of MIT License or the Apache License * Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details. * See the LICENSE file or the notice below for Apache License Version 2.0 * details. * * 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. */ /* * @file client-common.cpp * @author Bartlomiej Grzelewski (b.grzelewski@samsung.com) * @version 1.0 * @brief This file is implementation of client-common functions. */ #include #include namespace { void securityClientEnableLogSystem(void) { auto& logSystem = SecurityManager::Singleton::Instance(); if (!logSystem.IsTagSet()) logSystem.SetTag("SECURITY_MANAGER_CLIENT"); } } // namespace anonymous static void init_lib(void) __attribute__ ((constructor)); static void init_lib(void) { securityClientEnableLogSystem(); } static void fini_lib(void) __attribute__ ((destructor)); static void fini_lib(void) { }