Skip to content

Remove bool return type from SLAC API#1461

Merged
Pietfried merged 1 commit into
mainfrom
refactor/remove-return-slac-api
Oct 27, 2025
Merged

Remove bool return type from SLAC API#1461
Pietfried merged 1 commit into
mainfrom
refactor/remove-return-slac-api

Conversation

@Pietfried
Copy link
Copy Markdown
Contributor

@Pietfried Pietfried commented Oct 27, 2025

Describe your changes

Remove return types of slac API commands to simplify the interface.

The affected commands are

  • enter_bcd
  • leave_bcd
  • dlink_terminate
  • dlink_error
  • dlink_pause

These commands are not expected to fail, and any failure cannot be handled in a meaningful or recoverable way. Removing the return values clarifies the intent and simplifies the API.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

james-ctc
james-ctc previously approved these changes Oct 27, 2025
Copy link
Copy Markdown
Member

@james-ctc james-ctc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@Pietfried
Copy link
Copy Markdown
Contributor Author

@james-ctc I had to adjust the interface hash file because of the respective changes to the interface. Ready for re-review.

@Pietfried Pietfried added this pull request to the merge queue Oct 27, 2025
@Pietfried Pietfried removed this pull request from the merge queue due to a manual request Oct 27, 2025
…the interface.

Commands are not expected to fail, and any failure cannot be handled in a meaningful or recoverable way. Removing the return values clarifies the intent and simplifies the API.

Signed-off-by: Piet Gömpel <pietgoempel@gmail.com>
@Pietfried Pietfried force-pushed the refactor/remove-return-slac-api branch from b45eeed to cb98ce2 Compare October 27, 2025 16:10
@Pietfried Pietfried enabled auto-merge October 27, 2025 16:10
@Pietfried Pietfried added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit b32b6fb Oct 27, 2025
12 checks passed
@Pietfried Pietfried deleted the refactor/remove-return-slac-api branch October 27, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants