NetworkHandler: make status callback private, reorder functions #16

Merged Jookia merged 1 commit into LuminaSensum:main from LuminaSensum:networking_rework on 5 Apr 2023
@xogium xogium commented on 5 Apr 2023

The status callback function now gets privately declared at the earliest
possible moment, to both allow for reordering of code and avoid calling
this function directly from any other part of the code

  • void changed to static void in status_callback declaration
  • this now makes it possible to define network_init before
    status_callback, as status_callback is declared much earlier
@Jookia Jookia referenced the pull request on 5 Apr 2023

NetworkHandler: make status callback private, reorder functions

@Jookia Jookia merged commit 7473724 into main from networking_rework on 5 Apr 2023
@Jookia Jookia closed this pull request on 5 Apr 2023
@Jookia Jookia deleted the networking_rework branch on 5 Apr 2023

Nice! Thanks.

Labels

Priority
default
Milestone
No milestone
Assignee
No one assigned
2 participants
@xogium @Jookia