From 123efa45fdf66b210d71c24cb82e016885bec8b5 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sun, 13 Dec 2009 22:11:05 -0800 Subject: [PATCH] Update bindings --- bindings/python/apidefs/gcc-ILP32/ns3_module_core.py | 4 ++-- .../python/apidefs/gcc-ILP32/ns3_module_internet_stack.py | 5 +++++ bindings/python/apidefs/gcc-ILP32/ns3_module_node.py | 5 +++++ bindings/python/apidefs/gcc-LP64/ns3_module_core.py | 4 ++-- .../python/apidefs/gcc-LP64/ns3_module_internet_stack.py | 5 +++++ bindings/python/apidefs/gcc-LP64/ns3_module_node.py | 5 +++++ 6 files changed, 24 insertions(+), 4 deletions(-) diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py index 310306028..e0443794c 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_core.py @@ -489,8 +489,8 @@ def register_Ns3CallbackBase_methods(root_module, cls): def register_Ns3CommandLine_methods(root_module, cls): ## command-line.h: ns3::CommandLine::CommandLine() [constructor] cls.add_constructor([]) - ## command-line.h: ns3::CommandLine::CommandLine(ns3::CommandLine const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CommandLine const &', 'arg0')]) + ## command-line.h: ns3::CommandLine::CommandLine(ns3::CommandLine const & cmd) [copy constructor] + cls.add_constructor([param('ns3::CommandLine const &', 'cmd')]) ## command-line.h: void ns3::CommandLine::AddValue(std::string const & name, std::string const & help, ns3::Callback callback) [member function] cls.add_method('AddValue', 'void', diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py index a7fcc7b13..cf18876ea 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py @@ -2467,6 +2467,11 @@ def register_Ns3Ipv4L3Protocol_methods(root_module, cls): 'bool', [param('uint32_t', 'interfaceIndex'), param('uint32_t', 'addressIndex')], is_virtual=True) + ## ipv4-l3-protocol.h: ns3::Ipv4Address ns3::Ipv4L3Protocol::SelectSourceAddress(ns3::Ptr device, ns3::Ipv4Address dst, ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e scope) [member function] + cls.add_method('SelectSourceAddress', + 'ns3::Ipv4Address', + [param('ns3::Ptr< ns3::NetDevice const >', 'device'), param('ns3::Ipv4Address', 'dst'), param('ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e', 'scope')], + is_virtual=True) ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetMetric(uint32_t i, uint16_t metric) [member function] cls.add_method('SetMetric', 'void', diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py index d3f620a12..8926167ed 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py @@ -2774,6 +2774,11 @@ def register_Ns3Ipv4_methods(root_module, cls): 'bool', [param('uint32_t', 'interface'), param('uint32_t', 'addressIndex')], is_pure_virtual=True, is_virtual=True) + ## ipv4.h: ns3::Ipv4Address ns3::Ipv4::SelectSourceAddress(ns3::Ptr device, ns3::Ipv4Address dst, ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e scope) [member function] + cls.add_method('SelectSourceAddress', + 'ns3::Ipv4Address', + [param('ns3::Ptr< ns3::NetDevice const >', 'device'), param('ns3::Ipv4Address', 'dst'), param('ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e', 'scope')], + is_pure_virtual=True, is_virtual=True) ## ipv4.h: void ns3::Ipv4::SetDown(uint32_t interface) [member function] cls.add_method('SetDown', 'void', diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_core.py b/bindings/python/apidefs/gcc-LP64/ns3_module_core.py index af56e6f44..49112083f 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_core.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_core.py @@ -489,8 +489,8 @@ def register_Ns3CallbackBase_methods(root_module, cls): def register_Ns3CommandLine_methods(root_module, cls): ## command-line.h: ns3::CommandLine::CommandLine() [constructor] cls.add_constructor([]) - ## command-line.h: ns3::CommandLine::CommandLine(ns3::CommandLine const & arg0) [copy constructor] - cls.add_constructor([param('ns3::CommandLine const &', 'arg0')]) + ## command-line.h: ns3::CommandLine::CommandLine(ns3::CommandLine const & cmd) [copy constructor] + cls.add_constructor([param('ns3::CommandLine const &', 'cmd')]) ## command-line.h: void ns3::CommandLine::AddValue(std::string const & name, std::string const & help, ns3::Callback callback) [member function] cls.add_method('AddValue', 'void', diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py b/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py index a7fcc7b13..cf18876ea 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py @@ -2467,6 +2467,11 @@ def register_Ns3Ipv4L3Protocol_methods(root_module, cls): 'bool', [param('uint32_t', 'interfaceIndex'), param('uint32_t', 'addressIndex')], is_virtual=True) + ## ipv4-l3-protocol.h: ns3::Ipv4Address ns3::Ipv4L3Protocol::SelectSourceAddress(ns3::Ptr device, ns3::Ipv4Address dst, ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e scope) [member function] + cls.add_method('SelectSourceAddress', + 'ns3::Ipv4Address', + [param('ns3::Ptr< ns3::NetDevice const >', 'device'), param('ns3::Ipv4Address', 'dst'), param('ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e', 'scope')], + is_virtual=True) ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetMetric(uint32_t i, uint16_t metric) [member function] cls.add_method('SetMetric', 'void', diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_node.py b/bindings/python/apidefs/gcc-LP64/ns3_module_node.py index d3f620a12..8926167ed 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_node.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_node.py @@ -2774,6 +2774,11 @@ def register_Ns3Ipv4_methods(root_module, cls): 'bool', [param('uint32_t', 'interface'), param('uint32_t', 'addressIndex')], is_pure_virtual=True, is_virtual=True) + ## ipv4.h: ns3::Ipv4Address ns3::Ipv4::SelectSourceAddress(ns3::Ptr device, ns3::Ipv4Address dst, ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e scope) [member function] + cls.add_method('SelectSourceAddress', + 'ns3::Ipv4Address', + [param('ns3::Ptr< ns3::NetDevice const >', 'device'), param('ns3::Ipv4Address', 'dst'), param('ns3::Ipv4InterfaceAddress::InterfaceAddressScope_e', 'scope')], + is_pure_virtual=True, is_virtual=True) ## ipv4.h: void ns3::Ipv4::SetDown(uint32_t interface) [member function] cls.add_method('SetDown', 'void',