From e1da179b80e4437372a23398f9b1234abb4da643 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 20 Feb 2012 16:45:50 +0000 Subject: [PATCH] Bug 1349 - TypeId.LookupAttributeByName Python bindings missing --- bindings/python/ns3modulescan.py | 2 +- src/core/bindings/callbacks_list.py | 2 +- src/core/bindings/modulegen__gcc_ILP32.py | 2 +- src/core/bindings/modulegen__gcc_LP64.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/python/ns3modulescan.py b/bindings/python/ns3modulescan.py index ed542b5bb..36436d399 100644 --- a/bindings/python/ns3modulescan.py +++ b/bindings/python/ns3modulescan.py @@ -54,7 +54,7 @@ type_annotations = { 'params': {'seed':{'direction':'out', 'array_length':'6'}} }, - 'bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInfo * info) const [member function]': { + 'bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInformation * info) const [member function]': { 'params': {'info':{'transfer_ownership': 'false'}} }, 'static bool ns3::TypeId::LookupByNameFailSafe(std::string name, ns3::TypeId * tid) [member function]': { diff --git a/src/core/bindings/callbacks_list.py b/src/core/bindings/callbacks_list.py index 6bacc3b33..ff97a3a30 100644 --- a/src/core/bindings/callbacks_list.py +++ b/src/core/bindings/callbacks_list.py @@ -1,4 +1,4 @@ callback_classes = [ - ['void', 'unsigned char*', 'long', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], + ['void', 'unsigned char*', 'int', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ['bool', 'std::string', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty', 'ns3::empty'], ] diff --git a/src/core/bindings/modulegen__gcc_ILP32.py b/src/core/bindings/modulegen__gcc_ILP32.py index 634f86d55..df4c74797 100644 --- a/src/core/bindings/modulegen__gcc_ILP32.py +++ b/src/core/bindings/modulegen__gcc_ILP32.py @@ -1429,7 +1429,7 @@ def register_Ns3TypeId_methods(root_module, cls): ## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInformation * info) const [member function] cls.add_method('LookupAttributeByName', 'bool', - [param('std::string', 'name'), param('ns3::TypeId::AttributeInformation *', 'info')], + [param('std::string', 'name'), param('ns3::TypeId::AttributeInformation *', 'info', transfer_ownership=False)], is_const=True) ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function] cls.add_method('LookupByName', diff --git a/src/core/bindings/modulegen__gcc_LP64.py b/src/core/bindings/modulegen__gcc_LP64.py index 13c2b6329..abc04f048 100644 --- a/src/core/bindings/modulegen__gcc_LP64.py +++ b/src/core/bindings/modulegen__gcc_LP64.py @@ -1429,7 +1429,7 @@ def register_Ns3TypeId_methods(root_module, cls): ## type-id.h (module 'core'): bool ns3::TypeId::LookupAttributeByName(std::string name, ns3::TypeId::AttributeInformation * info) const [member function] cls.add_method('LookupAttributeByName', 'bool', - [param('std::string', 'name'), param('ns3::TypeId::AttributeInformation *', 'info')], + [param('std::string', 'name'), param('ns3::TypeId::AttributeInformation *', 'info', transfer_ownership=False)], is_const=True) ## type-id.h (module 'core'): static ns3::TypeId ns3::TypeId::LookupByName(std::string name) [member function] cls.add_method('LookupByName',