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