Fu Juntang
2021-09-17 5c912c70e9333298ff48f7ea15424f72ca977b99
src/socket/bus_server_socket_wrapper.cpp
@@ -40,4 +40,38 @@
      return -1;
   }
   
}
}
int bus_server_socket_wrapper_data_get(void * _socket, int val) {
  int ret;
  BusServerSocket *sockt = (BusServerSocket *)_socket;
  ret = sockt->get_data(val);
  return ret;
}
int bus_server_socket_wrapper_proc_check(void * _socket, int val, char *buf, int len, void **buf_ret, int *len_ret, \
                          const struct timespec *timeout, const int flag) {
  int ret;
  BusServerSocket *sockt = (BusServerSocket *)_socket;
  ret = sockt->check_proc(val, buf, len, buf_ret, len_ret, timeout, flag);
  return ret;
}
void bus_server_socket_wrapper_proc_release(void * _socket, int val) {
  BusServerSocket *sockt = (BusServerSocket *)_socket;
  sockt->remove_proc(val);
}