Skip to content

Commit

Permalink
TODO resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Apr 4, 2024
1 parent 46ae9f5 commit 19ddef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions include/zenoh-pico/net/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ void _z_sample_clear(_z_sample_t *sample);
void _z_sample_free(_z_sample_t **sample);
void _z_sample_copy(_z_sample_t *dst, const _z_sample_t *src);
_z_sample_t _z_sample_duplicate(const _z_sample_t *src);

#endif /* ZENOH_PICO_MEMORY_NETAPI_H */
5 changes: 2 additions & 3 deletions src/net/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ void _z_sample_copy(_z_sample_t *dst, const _z_sample_t *src) {
dst->keyexpr = _z_keyexpr_duplicate(src->keyexpr);
dst->payload = _z_bytes_duplicate(&src->payload);
dst->timestamp = _z_timestamp_duplicate(&src->timestamp);
// TODO(sashacmc):
// TODO(sashacmc): should be implemented after encoding rework
// _z_encoding_copy(dst->encoding, src->encoding);
dst->kind = src->kind;
#if Z_FEATURE_ATTACHMENT == 1
// TODO(sashacmc):
// z_attachment_t attachment;
dst->attachment = src->attachment;
#endif
}

Expand Down

0 comments on commit 19ddef3

Please sign in to comment.