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