+ XMLNode& node (Processor::state (full_state));
+
+ if (_own_input) {
+ node.add_property ("own-input", "yes");
+ if (_input) {
+ XMLNode& i (_input->state (full_state));
+ // i.name() = X_("output");
+ node.add_child_nocopy (i);
+ }
+ } else {
+ node.add_property ("own-input", "no");
+ if (_input) {
+ node.add_property ("input", _input->name());
+ }
+ }
+
+ if (_own_output) {
+ node.add_property ("own-output", "yes");
+ if (_output) {
+ XMLNode& o (_output->state (full_state));
+ node.add_child_nocopy (o);
+ }
+ } else {
+ node.add_property ("own-output", "no");
+ if (_output) {
+ node.add_property ("output", _output->name());
+ }
+ }