-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nasa#111, make dispatch tables and functions consistent
Standardize the dynamic handler functions to two basic types, one that accepts a PDU (recv) and one that does not (send). Also create several dispatch table types, one based on file directive code, one based on Tx sub state, and one based on Rx sub state. Change the dispatcher functions to use these common types and create new dispatcher functions where there was not a separate function already (this makes the pattern consistent). Make all "receive" helper functions accept a pointer to the recieved PDU and actually use that pointer to read the data. This substantially reduces reliance on the global and fixes some cases where a pointer was actually passed into a function, but ignored. This takes a significant step toward removing the global entirely, but does not do so yet.
- Loading branch information
Showing
14 changed files
with
723 additions
and
552 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.