//------------------------------------------------------------------------------ //! @author Elvin Sindrilaru //! @brief Namespace on Quarkdb plugin interface implementation //------------------------------------------------------------------------------ /************************************************************************ * EOS - the CERN Disk Storage System * * Copyright (C) 2016 CERN/Switzerland * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation, either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program. If not, see .* ************************************************************************/ #pragma once #include "common/plugin_manager/Plugin.hh" #include "namespace/Namespace.hh" //------------------------------------------------------------------------------ //! Plugin exit function called by the PluginManager when doing cleanup //------------------------------------------------------------------------------ extern "C" int32_t ExitFunc(); //------------------------------------------------------------------------------ //! Plugin registration entry point called by the PluginManager //------------------------------------------------------------------------------ extern "C" PF_ExitFunc PF_initPlugin(const PF_PlatformServices* services); EOSNSNAMESPACE_BEGIN //! Forward declaration class IContainerMDSvc; //------------------------------------------------------------------------------ //! Class NsQuarkdbPlugin //------------------------------------------------------------------------------ class NsQuarkdbPlugin { public: //---------------------------------------------------------------------------- //! Create namespace group //! //! @param services pointer to other services that the plugin manager might //! provide //! //! @return pointer to namespace group //---------------------------------------------------------------------------- static void* CreateGroup(PF_PlatformServices* services); //---------------------------------------------------------------------------- //! Destroy namespace group //! //! @return 0 if successful, otherwise errno //---------------------------------------------------------------------------- static int32_t DestroyGroup(void*); }; EOSNSNAMESPACE_END