X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Fport.py;h=f7c236692e23d35951c00b85375ef58a887d9831;hb=2c6f8520ad68e1ca0c9554d705c39790e7d3ef5f;hp=a84edf56d7a117c9ca0d835ce341c733c08d4de7;hpb=5f25509b06eb8dd0a76d3068894d9f8fefd63178;p=babeltrace.git diff --git a/bindings/python/bt2/bt2/port.py b/bindings/python/bt2/bt2/port.py index a84edf56..f7c23669 100644 --- a/bindings/python/bt2/bt2/port.py +++ b/bindings/python/bt2/bt2/port.py @@ -103,6 +103,11 @@ class _UserComponentPort(_Port): return bt2.connection._Connection._create_from_ptr_and_get_ref(conn_ptr) + @property + def user_data(self): + ptr = self._as_self_port_ptr(self._ptr) + return native_bt.self_component_port_get_data(ptr) + class _UserComponentInputPort(_UserComponentPort, _InputPort): _as_self_port_ptr = staticmethod(native_bt.self_component_port_input_as_self_component_port)