diff options
| author | songyanchao <[email protected]> | 2023-04-28 06:17:30 +0000 |
|---|---|---|
| committer | songyanchao <[email protected]> | 2023-05-06 01:44:44 +0000 |
| commit | 6610119ec758422327c95ee700755e83d09df271 (patch) | |
| tree | 4ee8ffa2884c6d4f07c514240bf11679db81bc5a /include | |
| parent | 39b1d3445dda30f2bef08cd2ea3f3d1e8b4a4851 (diff) | |
✨ feat: metadata add user0v4.6.22-20230506
metadata add user0
Diffstat (limited to 'include')
| -rw-r--r-- | include/external/marsio.h | 5 | ||||
| -rw-r--r-- | include/internal/mrb_define.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/external/marsio.h b/include/external/marsio.h index f3314c5..1310fb0 100644 --- a/include/external/marsio.h +++ b/include/external/marsio.h @@ -111,6 +111,8 @@ enum mr_buff_metadata_type MR_BUFF_DIR = 4, /* payload offset */ MR_BUFF_PAYLOAD_OFFSET = 5, + /* user 0 */ + MR_BUFF_USER_0 = 254 }; #ifdef __cplusplus @@ -154,7 +156,8 @@ int marsio_thread_init(struct mr_instance * instance); int marsio_destory(struct mr_instance * instance); int marsio_poll_register_eventfd(struct mr_instance * instance, int eventfd, unsigned int tid); -int marsio_poll_wait(struct mr_instance * instance, struct mr_vdev * vdevs[], unsigned int nr_vdevs, unsigned int tid, int timeout); +int marsio_poll_wait(struct mr_instance * instance, struct mr_vdev * vdevs[], unsigned int nr_vdevs, unsigned int tid, + int timeout); struct mr_vdev * marsio_open_device(struct mr_instance * instance, const char * devsym, unsigned int nr_rxstream, unsigned int nr_txstream); diff --git a/include/internal/mrb_define.h b/include/internal/mrb_define.h index d491813..15054af 100644 --- a/include/internal/mrb_define.h +++ b/include/internal/mrb_define.h @@ -28,6 +28,7 @@ struct mrb_metadata uint16_t service_id; uint16_t payload_offset; + uint16_t user_0; /* Session Id */ uint64_t session_id; |
