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