+static
+enum bt_component_status text_new_connection(struct bt_port *own_port,
+ struct bt_connection *connection)
+{
+ enum bt_component_status ret = BT_COMPONENT_STATUS_OK;
+ struct bt_component *component;
+ struct text_component *text;
+
+ component = bt_port_get_component(own_port);
+ assert(component);
+ text = bt_component_get_private_data(component);
+ assert(text);
+ assert(!text->input_iterator);
+ text->input_iterator = bt_connection_create_notification_iterator(
+ connection);
+
+ if (!text->input_iterator) {
+ ret = BT_COMPONENT_STATUS_ERROR;
+ }
+ bt_put(component);
+ return ret;
+}
+