event-system/README.md
2025-01-01 20:11:16 +00:00

857 B

Event system

Testing some (potentially stupid 😅) ideas for a generic event system implmentation in C

Example usage

Todos

  • Implement system initialisation
  • Implement system deinitialisation
  • Implement registering new events
    • Re-use a free slot if one exists
    • Register a event new when not out of capacity and no free events exist
    • Re-allocate to add more events when out of capacity
  • Implement removing a previously registered event~~
  • Implement adding new event listeners
    • Re-use a free slot if one exists
    • Register a new listeners when not out of capacity and no free listeners exist
    • Re-allocate to add more listeners when out of capacity
  • Implement removing an existing listener
  • Implement emitting an event