Skip to content

Allow UID to be reset via C API (extends #260)#280

Merged
cboulay merged 2 commits into
devfrom
cboulay/pr260-reset-uid
Jun 17, 2026
Merged

Allow UID to be reset via C API (extends #260)#280
cboulay merged 2 commits into
devfrom
cboulay/pr260-reset-uid

Conversation

@cboulay

@cboulay cboulay commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Extends #260 by @zeyus, which exposes the existing stream_info_impl::reset_uid() through the C API. Useful for generating a UID on a locally-constructed stream_info that has not yet been associated with an inlet.

This PR keeps @zeyus's original commit and adds a small follow-up commit:

  • Collapse the lsl_reset_uid C wrapper to the one-line style of its siblings and drop a stray blank line.
  • Add a matching stream_info::reset_uid() wrapper to include/lsl_cpp.h for C++/C API parity.

Verified locally on macOS: configures and builds, and _lsl_reset_uid is present in the exported symbols of the shared library.

Closes #260.

🤖 Generated with Claude Code

zeyus and others added 2 commits June 16, 2026 22:44
Collapse the C wrapper to the one-line style of its siblings and expose
a matching stream_info::reset_uid() in the C++ header for API parity.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cboulay cboulay merged commit 486f00d into dev Jun 17, 2026
22 of 23 checks passed
@cboulay cboulay deleted the cboulay/pr260-reset-uid branch June 17, 2026 03:21
@zeyus

zeyus commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@cboulay Wasn't sure where to mention this to you, but if you're interested, my liblsl.dart related paper finally got published in JOSS https://joss.theoj.org/papers/10.21105/joss.10425 :)

cboulay added a commit to labstreaminglayer/pylsl that referenced this pull request Jun 20, 2026
Wraps the new lsl_reset_uid C function (sccn/liblsl#280), which
regenerates a stream_info's UID. Useful for assigning a UID to a
locally-constructed StreamInfo before it is bound to an outlet/inlet.
Raises NotImplementedError on older liblsl that lacks the symbol.
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.

2 participants