00001 /*************************************************************************** 00002 * Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009 * 00003 * by Rick L. Vinyard, Jr. * 00004 * rvinyard@cs.nmsu.edu * 00005 * * 00006 * This file is part of the conexus library. * 00007 * * 00008 * The conexus library is free software; you can redistribute it and/or * 00009 * modify it under the terms of the GNU General Public License * 00010 * version 3 as published by the Free Software Foundation. * 00011 * * 00012 * The conexus library is distributed in the hope that it will be * 00013 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty * 00014 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00015 * General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU General Public License * 00018 * along with this software. If not see <http://www.gnu.org/licenses/>. * 00019 ***************************************************************************/ 00020 #ifndef CONEXUS_UTILITY_H 00021 #define CONEXUS_UTILITY_H 00022 00023 #include <conexus/factory.h> 00024 #include <conexus/registry.h> 00025 00026 namespace Conexus { 00027 00028 bool use_dispatcher_default(); 00029 00030 void set_use_dispatcher_default( bool use_dispatcher_default=true ); 00031 00048 void init( bool use_dispatcher_default=false, bool init_dbus=true ); 00049 00050 bool initialized(); 00051 00052 void set_default_multicast_hop_limit( unsigned hop_limit ); 00053 00054 void enable_default_multicast_loopback( bool enable=true ); 00055 00056 extern Factory::pointer __default_factory; 00057 00058 Factory& default_factory(); 00059 00060 bool set_default_factory( Factory::pointer new_factory ); 00061 00062 extern Registry::pointer __default_registry; 00063 00064 Registry& default_registry(); 00065 00066 bool set_default_registry( Registry::pointer new_registry ); 00067 } 00068 00069 #endif