-/** Set up the XML description of a return so that its name is unique.
- * @param state XML return state.
- * @param session Session.
- */
-void
-Return::make_unique (XMLNode &state, Session &session)
-{
- uint32_t const bitslot = session.next_return_id() + 1;
-
- char buf[32];
- snprintf (buf, sizeof (buf), "%" PRIu32, bitslot);
- state.property("bitslot")->set_value (buf);
-
- std::string const name = string_compose (_("return %1"), bitslot);
-
- state.property("name")->set_value (name);
-
- XMLNode* io = state.child ("IO");
- if (io) {
- io->property("name")->set_value (name);
- }
-}
-
-