diff options
| author | luwenpeng <[email protected]> | 2024-11-22 10:30:51 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2024-11-22 10:41:15 +0800 |
| commit | 6c9e6e3fbe0f31ad79d8f47c4f983e639dfef30d (patch) | |
| tree | f289517887555a4a7ec09fd3fe69317907ca0bb1 /include | |
| parent | 5dbaa671608f9e33d909c92849f337e676b6631c (diff) | |
support packet_tag_set/get()
Diffstat (limited to 'include')
| -rw-r--r-- | include/stellar/packet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/stellar/packet.h b/include/stellar/packet.h index 2760261..b2d3f22 100644 --- a/include/stellar/packet.h +++ b/include/stellar/packet.h @@ -183,7 +183,10 @@ const char *packet_get_payload_data(const struct packet *pkt); uint16_t packet_get_payload_len(const struct packet *pkt); void packet_set_exdata(struct packet *pkt, int idx, void *ex_ptr); -void *packet_get_exdata(struct packet *pkt, int idx); +void *packet_get_exdata(const struct packet *pkt, int idx); + +void packet_tag_set(struct packet *pkt, uint64_t key_bits, uint64_t val_bits); +void packet_tag_get(const struct packet *pkt, uint64_t *key_bits, uint64_t *val_bits); /****************************************************************************** * packet manager |
