Skip to content

Commit 2508f63

Browse files
committed
fix: revert const attachment changes
1 parent 0db9975 commit 2508f63

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

include/zenoh-pico/net/query.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ typedef struct {
4949

5050
#if Z_FEATURE_QUERYABLE == 1
5151
_z_query_t _z_query_create(const _z_value_t *value, _z_keyexpr_t *key, const _z_slice_t *parameters, _z_session_t *zn,
52-
uint32_t request_id, _z_bytes_t attachment);
52+
uint32_t request_id, const _z_bytes_t attachment);
5353
void _z_queryable_clear(_z_queryable_t *qbl);
5454
void _z_queryable_free(_z_queryable_t **qbl);
5555
#endif

include/zenoh-pico/net/reply.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void _z_reply_free(_z_reply_t **hello);
6363
void _z_reply_copy(_z_reply_t *dst, const _z_reply_t *src);
6464
_z_reply_t _z_reply_create(_z_keyexpr_t keyexpr, z_reply_tag_t tag, _z_id_t id, const _z_bytes_t payload,
6565
const _z_timestamp_t *timestamp, _z_encoding_t encoding, z_sample_kind_t kind,
66-
_z_bytes_t attachment);
66+
const _z_bytes_t attachment);
6767

6868
typedef struct _z_pending_reply_t {
6969
_z_reply_t _reply;

include/zenoh-pico/net/sample.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ _z_sample_t _z_sample_duplicate(const _z_sample_t *src);
5656

5757
_z_sample_t _z_sample_create(_z_keyexpr_t *key, const _z_bytes_t payload, _z_timestamp_t timestamp,
5858
_z_encoding_t encoding, const z_sample_kind_t kind, const _z_qos_t qos,
59-
_z_bytes_t attachment);
59+
const _z_bytes_t attachment);
6060

6161
#endif /* ZENOH_PICO_SAMPLE_NETAPI_H */

src/net/query.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void _z_query_free(_z_query_t **query) {
6161

6262
#if Z_FEATURE_QUERYABLE == 1
6363
_z_query_t _z_query_create(const _z_value_t *value, _z_keyexpr_t *key, const _z_slice_t *parameters, _z_session_t *zn,
64-
uint32_t request_id, _z_bytes_t attachment) {
64+
uint32_t request_id, const _z_bytes_t attachment) {
6565
_z_query_t q = _z_query_null();
6666
q._request_id = request_id;
6767
q._zn = zn;

src/net/reply.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void _z_pending_reply_clear(_z_pending_reply_t *pr) {
8585

8686
_z_reply_t _z_reply_create(_z_keyexpr_t keyexpr, z_reply_tag_t tag, _z_id_t id, const _z_bytes_t payload,
8787
const _z_timestamp_t *timestamp, _z_encoding_t encoding, z_sample_kind_t kind,
88-
_z_bytes_t attachment) {
88+
const _z_bytes_t attachment) {
8989
_z_reply_t reply = _z_reply_null();
9090
reply._tag = tag;
9191
if (tag == Z_REPLY_TAG_DATA) {
@@ -103,7 +103,7 @@ _z_reply_t _z_reply_create(_z_keyexpr_t keyexpr, z_reply_tag_t tag, _z_id_t id,
103103
#else
104104
_z_reply_t _z_reply_create(_z_keyexpr_t keyexpr, z_reply_tag_t tag, _z_id_t id, const _z_bytes_t payload,
105105
const _z_timestamp_t *timestamp, _z_encoding_t encoding, z_sample_kind_t kind,
106-
_z_bytes_t attachment) {
106+
const _z_bytes_t attachment) {
107107
_ZP_UNUSED(keyexpr);
108108
_ZP_UNUSED(tag);
109109
_ZP_UNUSED(id);

src/net/sample.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ _z_sample_t _z_sample_duplicate(const _z_sample_t *src) {
8080
#if Z_FEATURE_SUBSCRIPTION == 1
8181
_z_sample_t _z_sample_create(_z_keyexpr_t *key, const _z_bytes_t payload, const _z_timestamp_t timestamp,
8282
_z_encoding_t encoding, const z_sample_kind_t kind, const _z_qos_t qos,
83-
_z_bytes_t attachment) {
83+
const _z_bytes_t attachment) {
8484
_z_sample_t s = _z_sample_null();
8585
s.keyexpr = _z_keyexpr_steal(key);
8686
s.kind = kind;
@@ -94,7 +94,7 @@ _z_sample_t _z_sample_create(_z_keyexpr_t *key, const _z_bytes_t payload, const
9494
#else
9595
_z_sample_t _z_sample_create(_z_keyexpr_t *key, const _z_bytes_t payload, const _z_timestamp_t timestamp,
9696
const _z_encoding_t encoding, const z_sample_kind_t kind, const _z_qos_t qos,
97-
_z_bytes_t attachment) {
97+
const _z_bytes_t attachment) {
9898
_ZP_UNUSED(key);
9999
_ZP_UNUSED(payload);
100100
_ZP_UNUSED(timestamp);

0 commit comments

Comments
 (0)