Go to file
2025-01-26 22:39:26 +00:00
src Update main.c 2025-01-26 22:39:26 +00:00
.gitignore Update .gitignore 2025-01-04 21:47:43 +00:00
build Add build scripts and main.c 2024-12-28 23:54:27 +00:00
compile Add build scripts and main.c 2024-12-28 23:54:27 +00:00
README.md Update README.md 2025-01-26 22:37:33 +00:00

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