// -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*- // Copyright (c) 2001-2008 XORP, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software") // to deal in the Software without restriction, subject to the conditions // listed in the XORP LICENSE file. These conditions include: you must // preserve this copyright notice, and you cannot mention the copyright // holders in advertising related to the Software without their permission. // The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. This // notice is a summary of the XORP LICENSE file; the license in that file is // legally binding. // $XORP: xorp/libxipc/finder_client_xrl_target.hh,v 1.14 2008/07/23 05:10:41 pavlin Exp $ #ifndef __LIBXIPC_FINDER_CLIENT_XRL_TARGET_HH__ #define __LIBXIPC_FINDER_CLIENT_XRL_TARGET_HH__ #include "xrl/targets/finder_client_base.hh" class FinderClientXrlCommandInterface; class FinderClientXrlTarget : public XrlFinderclientTargetBase { public: FinderClientXrlTarget(FinderClientXrlCommandInterface* client, XrlCmdMap* cmds); XrlCmdError common_0_1_get_target_name(string& name); XrlCmdError common_0_1_get_version(string& version); XrlCmdError common_0_1_get_status(uint32_t& status, string& reason); XrlCmdError common_0_1_shutdown(); XrlCmdError finder_client_0_2_hello(); XrlCmdError finder_client_0_2_remove_xrl_from_cache(const string& xrl); XrlCmdError finder_client_0_2_remove_xrls_for_target_from_cache( const string& target); XrlCmdError finder_client_0_2_dispatch_tunneled_xrl(const string& xrl, uint32_t& xrl_errno, string& xrl_errtxt); protected: FinderClientXrlCommandInterface* _client; }; #endif // __LIBXIPC_FINDER_CLIENT_XRL_TARGET_HH__