From 607ac3ae8bfc017e10a7907e69dcbc3ab2a0fb63 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期五, 05 二月 2021 13:54:56 +0800 Subject: [PATCH] add stop method --- src/socket/shm_socket.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/socket/shm_socket.h b/src/socket/shm_socket.h index 03ee831..e7c0dda 100644 --- a/src/socket/shm_socket.h +++ b/src/socket/shm_socket.h @@ -14,13 +14,15 @@ }; - + +#define BUS_ACTION_STOP 1 typedef struct shm_packet_t { int key; size_t size; void * buf; char uuid[64]; + int action; } shm_packet_t; @@ -50,6 +52,8 @@ int shm_close_socket(shm_socket_t * socket) ; +int shm_socket_stop(shm_socket_t *sockt); + int shm_socket_bind(shm_socket_t * socket, int key) ; -- Gitblit v1.8.0