Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S SIONlib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 85
    • Issues 85
    • List
    • Boards
    • Service Desk
    • Milestones
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • cstao-public
  • SIONlib
  • SIONlib
  • Issues
  • #212
Closed
Open
Issue created Jun 06, 2019 by Benedikt Steinbusch@bsteinbOwner

Make API creation foolproof

sion_generic_create_api creates an API that is in a completely invalid state and the various sion_generic_register... functions all register a single callback function, leaving the API again in an invalid state until all necessary callbacks have been registered. Why not have sion_generic_create_api take all necessary callbacks as an argument and create a valid API descriptor in a single step?

As there seem to be different levels of capability that require fewer or more callbacks to be defined, there could be several create functions, one per level or, a single create function that accepts NULL for optional callbacks and sets the correct capability level.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking