예제 #1
0
BOOLEAN checkMarshallStatus (FORMATTER_PTR formatter)
{
  if (!X_IPC_INITIALIZED()) {
    RETURN_ERROR(IPC_Not_Initialized);
  } else if (formatter && formatter->type == BadFormatFMT) {
    RETURN_ERROR(IPC_Illegal_Formatter);
  } else {
    return IPC_OK;
  }
}
예제 #2
0
파일: ipc.c 프로젝트: Paresh1693/carmen
fd_set IPC_getConnections (void)
{
  if (!X_IPC_INITIALIZED()) {
    fd_set nullSet;
    FD_ZERO(&nullSet);
    return nullSet;
  } else {
    return *x_ipcGetConnections();
  }
}