Uploaded image for project: 'Kaa'
  1. Kaa
  2. KAA-229

Improve C EP SDK modularization

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.6.2
    • Component/s: Endpoint: C
    • Labels:
      None
    • Environment:
      c_sdk_refactoring branch

      Description

      All of the C EP SDK modules must be reviewed and refactored so that:
      1. None of the module functions would accept kaa_context_t * context in any form (even as void*) and none of the specific modules would include kaa_context.h.
      2. There would be zero non-const static variables in the code.
      3. All of the module structure definitions must be forward-declared in .h file, and defined in .c files.
      4. Each non-static function in a module would accept <module_t> *__this as the first parameter. (<module_t> **<module>_p for <module>_create()).
      5. All of the module dependencies within Kaa must be resolved by keeping (but not owning) a pointer to the required module structure within the <module_t> structure of the dependent module.
      6. All of the user-defined modules' structures (such as the specific protocol implementation) must be passed to the kaa_init() function as arguments and set (but not owned) within the general Kaa context.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yzeygerman Yaroslav Zeygerman (Inactive)
              Reporter:
              akokhanovskyi Andrew Kokhanovskyi [Administrator]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration