com-library/libvcacom/vca_com.c
int deinit_vca_com(vca_com_t * com) {
  
  if(!com) {
    return -1;
  }

  switch (com->type) {
  case VCA_COM_MEM_SHARING:
  case VCA_COM_MEM_SHARING_HOST:
    deinit_vca_task_system(com->com);   
    break;
  case VCA_COM_ZMQ_SOCKET: 
    deinit_zmq_socket_to_host(com->com);
    break;
  default:
    return -1;
  }

  return 0;
}
// disconnect from host and free memory of com
disconnect from host and free memory of com
disconnect from host and free memory of com
int deinit_vca_com(vca_com_t * com) {
  if(!com) {
    return -1;
  }
  switch (com->type) {
  case VCA_COM_MEM_SHARING:
  case VCA_COM_MEM_SHARING_HOST:
    deinit_vca_task_system(com->com);   
    break;
  case VCA_COM_ZMQ_SOCKET: 
    deinit_zmq_socket_to_host(com->com);
    break;
  default:
    return -1;
  }
  return 0;
}
int deinit_vca_com ( vca_com_t * com ) { if ( ! com ) { return -1 ; } switch ( com -> type ) { case VCA_COM_MEM_SHARING : case VCA_COM_MEM_SHARING_HOST : deinit_vca_task_system ( com -> com ) ; break ; case VCA_COM_ZMQ_SOCKET : deinit_zmq_socket_to_host ( com -> com ) ; break ; default : return -1 ; } return 0 ; }
disconnect from host and free memory of com
disconnect from host and free memory of com