X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Fnative_btport.i;h=fef78264e8d5bb2cc768a394525ff91b03fe80ef;hb=038be9903108fbf49bef18e6f6bd6936e8fabde8;hp=c2b9867bce92d2886b54e7fbb656afeb8eb2bf51;hpb=26c5273ac725442e21e7d035f7ae4b3333456b69;p=babeltrace.git diff --git a/bindings/python/bt2/bt2/native_btport.i b/bindings/python/bt2/bt2/native_btport.i index c2b9867b..fef78264 100644 --- a/bindings/python/bt2/bt2/native_btport.i +++ b/bindings/python/bt2/bt2/native_btport.i @@ -49,7 +49,7 @@ enum bt_port_status bt_port_disconnect(struct bt_port *port); int bt_port_is_connected(struct bt_port *port); /* Functions (private) */ -struct bt_port *bt_port_from_private_port(struct bt_private_port *private_port); +struct bt_port *bt_port_from_private(struct bt_private_port *private_port); struct bt_private_connection *bt_private_port_get_private_connection( struct bt_private_port *private_port); struct bt_private_component *bt_private_port_get_private_component( @@ -69,8 +69,8 @@ static struct bt_notification_iterator *bt_py3_create_output_port_notif_iter( enum bt_notification_type *notification_types; output_port = (void *) port_addr; - assert(!PyErr_Occurred()); - assert(output_port); + BT_ASSERT(!PyErr_Occurred()); + BT_ASSERT(output_port); notification_types = bt_py3_notif_types_from_py_list(py_notif_types); notif_iter = bt_output_port_notification_iterator_create(output_port,