// Copyright (c) 2005-2008 Hartmut Kaiser // Copyright (c) 2005-2008 Michael Miceli (mmicel2@cct.lsu.edu) // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) // saga adaptor includes #include // adaptor includes #include "hbase_advert_adaptor.hpp" #include "hbase_advert_advert.hpp" #include "hbase_advert_advertdirectory.hpp" SAGA_ADAPTOR_REGISTER (hbase_advert::adaptor); //////////////////////////////////////////////////////////////////////// namespace hbase_advert { // register function for the SAGA engine saga::impl::adaptor_selector::adaptor_info_list_type adaptor::adaptor_register (saga::impl::session * s) { // list of implemented cpi's saga::impl::adaptor_selector::adaptor_info_list_type list; // create empty preference list // these list should be filled with properties of the adaptor, // which can be used to select adaptors with specific preferences. // Example: // 'security' -> 'gsi' // 'logging' -> 'yes' // 'auditing' -> 'no' preference_type prefs; // create advert and advert directory cpi infos (each adaptor // instance gets its own uuid) and add cpi_infos to list advert_cpi_impl::register_cpi (list, prefs, adaptor_uuid_); advertdirectory_cpi_impl::register_cpi (list, prefs, adaptor_uuid_); // and return list return list; } } // namespace hbase_advert ////////////////////////////////////////////////////////////////////////