/* Registers the event callback functions that should be called by the CAN interface.  */
static void PCanUsbRegisterEvents(tCanEvents const *events)
/* Registers the event callback functions that should be called by the CAN interface.  */
static void PCanUsbRegisterEvents(tCanEvents const *events)
{
  assert(events != NULL);
  if (events != NULL)
  {
    pCanUsbEventsList = realloc(pCanUsbEventsList,
                                (sizeof(tCanEvents) * (pCanUsbEventsEntries + 1)));
    assert(pCanUsbEventsList != NULL);
    if (pCanUsbEventsList != NULL)
    {
      pCanUsbEventsEntries++;
      pCanUsbEventsList[pCanUsbEventsEntries - 1] = *events;
    }
    else
    {
      pCanUsbEventsEntries = 0;
    }
  }
}