📄 static_routes_xif.cc
字号:
/* * Copyright (c) 2001-2007 International Computer Science Institute * See LICENSE file for licensing, conditions, and warranties on use. * * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED * * Generated by 'clnt-gen'. */#ident "$XORP: xorp/xrl/interfaces/static_routes_xif.cc,v 1.12 2007/02/16 22:47:45 pavlin Exp $"#include "static_routes_xif.hh"boolXrlStaticRoutesV0p1Client::send_enable_static_routes( const char* dst_xrl_target_name, const bool& enable, const EnableStaticRoutesCB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/enable_static_routes"); x.args().add("enable", enable); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_enable_static_routes, cb));}/* Unmarshall enable_static_routes */voidXrlStaticRoutesV0p1Client::unmarshall_enable_static_routes( const XrlError& e, XrlArgs* a, EnableStaticRoutesCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_start_static_routes( const char* dst_xrl_target_name, const StartStaticRoutesCB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/start_static_routes"); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_start_static_routes, cb));}/* Unmarshall start_static_routes */voidXrlStaticRoutesV0p1Client::unmarshall_start_static_routes( const XrlError& e, XrlArgs* a, StartStaticRoutesCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_stop_static_routes( const char* dst_xrl_target_name, const StopStaticRoutesCB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/stop_static_routes"); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_stop_static_routes, cb));}/* Unmarshall stop_static_routes */voidXrlStaticRoutesV0p1Client::unmarshall_stop_static_routes( const XrlError& e, XrlArgs* a, StopStaticRoutesCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_add_route4( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const uint32_t& metric, const AddRoute4CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/add_route4"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); x.args().add("metric", metric); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_add_route4, cb));}/* Unmarshall add_route4 */voidXrlStaticRoutesV0p1Client::unmarshall_add_route4( const XrlError& e, XrlArgs* a, AddRoute4CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_add_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const uint32_t& metric, const AddRoute6CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/add_route6"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); x.args().add("metric", metric); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_add_route6, cb));}/* Unmarshall add_route6 */voidXrlStaticRoutesV0p1Client::unmarshall_add_route6( const XrlError& e, XrlArgs* a, AddRoute6CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_replace_route4( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const uint32_t& metric, const ReplaceRoute4CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/replace_route4"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); x.args().add("metric", metric); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_replace_route4, cb));}/* Unmarshall replace_route4 */voidXrlStaticRoutesV0p1Client::unmarshall_replace_route4( const XrlError& e, XrlArgs* a, ReplaceRoute4CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_replace_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const uint32_t& metric, const ReplaceRoute6CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/replace_route6"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); x.args().add("metric", metric); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_replace_route6, cb));}/* Unmarshall replace_route6 */voidXrlStaticRoutesV0p1Client::unmarshall_replace_route6( const XrlError& e, XrlArgs* a, ReplaceRoute6CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_delete_route4( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const DeleteRoute4CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/delete_route4"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_delete_route4, cb));}/* Unmarshall delete_route4 */voidXrlStaticRoutesV0p1Client::unmarshall_delete_route4( const XrlError& e, XrlArgs* a, DeleteRoute4CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_delete_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const DeleteRoute6CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/delete_route6"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_delete_route6, cb));}/* Unmarshall delete_route6 */voidXrlStaticRoutesV0p1Client::unmarshall_delete_route6( const XrlError& e, XrlArgs* a, DeleteRoute6CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_add_backup_route4( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const uint32_t& metric, const AddBackupRoute4CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/add_backup_route4"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); x.args().add("metric", metric); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_add_backup_route4, cb));}/* Unmarshall add_backup_route4 */voidXrlStaticRoutesV0p1Client::unmarshall_add_backup_route4( const XrlError& e, XrlArgs* a, AddBackupRoute4CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_add_backup_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const uint32_t& metric, const AddBackupRoute6CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/add_backup_route6"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); x.args().add("metric", metric); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_add_backup_route6, cb));}/* Unmarshall add_backup_route6 */voidXrlStaticRoutesV0p1Client::unmarshall_add_backup_route6( const XrlError& e, XrlArgs* a, AddBackupRoute6CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_replace_backup_route4( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const uint32_t& metric, const ReplaceBackupRoute4CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/replace_backup_route4"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); x.args().add("metric", metric); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_replace_backup_route4, cb));}/* Unmarshall replace_backup_route4 */voidXrlStaticRoutesV0p1Client::unmarshall_replace_backup_route4( const XrlError& e, XrlArgs* a, ReplaceBackupRoute4CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_replace_backup_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const uint32_t& metric, const ReplaceBackupRoute6CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/replace_backup_route6"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); x.args().add("metric", metric); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_replace_backup_route6, cb));}/* Unmarshall replace_backup_route6 */voidXrlStaticRoutesV0p1Client::unmarshall_replace_backup_route6( const XrlError& e, XrlArgs* a, ReplaceBackupRoute6CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_delete_backup_route4( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv4Net& network, const IPv4& nexthop, const DeleteBackupRoute4CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/delete_backup_route4"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_delete_backup_route4, cb));}/* Unmarshall delete_backup_route4 */voidXrlStaticRoutesV0p1Client::unmarshall_delete_backup_route4( const XrlError& e, XrlArgs* a, DeleteBackupRoute4CB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlStaticRoutesV0p1Client::send_delete_backup_route6( const char* dst_xrl_target_name, const bool& unicast, const bool& multicast, const IPv6Net& network, const IPv6& nexthop, const DeleteBackupRoute6CB& cb){ Xrl x(dst_xrl_target_name, "static_routes/0.1/delete_backup_route6"); x.args().add("unicast", unicast); x.args().add("multicast", multicast); x.args().add("network", network); x.args().add("nexthop", nexthop); return _sender->send(x, callback(this, &XrlStaticRoutesV0p1Client::unmarshall_delete_backup_route6, cb));}/* Unmarshall delete_backup_route6 */voidXrlStaticRoutesV0p1Client::unmarshall_delete_backup_route6( const XrlError& e, XrlArgs* a, DeleteBackupRoute6CB cb)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -