Use pointers-to-const where relevant

Explicitly declare const a function parameter intended to be read-only.
This commit is contained in:
Romain Vimont
2018-01-19 15:12:22 +01:00
parent 53cd59605a
commit 90c69d2c79
7 changed files with 25 additions and 26 deletions

View File

@@ -24,6 +24,6 @@ void controller_stop(struct controller *controller);
void controller_join(struct controller *controller);
// expose simple API to hide control_event_queue
SDL_bool controller_push_event(struct controller *controller, struct control_event *event);
SDL_bool controller_push_event(struct controller *controller, const struct control_event *event);
#endif