Skip to content

[Bug] api inconpleteness: missing z_sample_attachment_mut, may be more #1190

@milyin

Description

@milyin

Describe the bug

The access to internal owned object can be performed in two ways: ro and rw. For example for the z_owned_sample_t the mentods z_sample_payload(const z_loaned_sample_t*) and z_sample_payload_mut(z_loaned_sample_t*). The second one allows to perform z_take operation to process the payload outside of the sample.

It's necessary to:

  • provide the same method for attacment for api completeness.
  • review the api: check if all mehods for accessing internal owned object have both const and mut accesors

To reproduce

System info

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions