You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c++ libcyphal needs api to detect already existing subscription (without "touching" one if any).
Here is proposal:
/// This function allows to check the effect of canardRxSubscribe() and canardRxUnsubscribe().
/// The return value is 1 if the specified subscription exists, 0 otherwise.
/// The return value is a negated invalid argument error if any of the input arguments are invalid.
int8_t canardRxGetSubscription(CanardInstance* const ins,
const CanardTransferKind transfer_kind,
const CanardPortID port_id,
CanardRxSubscription* const out_subscription);
The text was updated successfully, but these errors were encountered:
I actually wanted to mention this earlier but forgot: since we'll have to find that specific subscription in the tree anyway, should we not keep canardRxGetSubscription as it is more versatile? There are sensible use cases where one might want to find an existing subscription to modify it.
serges147
changed the title
Extend api with canardRxGetSubscription
Extend api with canardRxHasSubscriptionMay 6, 2024
c++ libcyphal needs api to detect already existing subscription (without "touching" one if any).
Here is proposal:
The text was updated successfully, but these errors were encountered: