1. 27 Mar, 2020 3 commits
  2. 20 Mar, 2020 1 commit
  3. 12 Mar, 2020 3 commits
  4. 11 Mar, 2020 2 commits
  5. 06 Mar, 2020 1 commit
    • George Nash's avatar
      Only only list the files with bad formatting whitespace_commit_checker · a1d54270
      George Nash authored
      When originally written the whitespace_commit_checker did not save
      a list of the files that had bad formatting. The idea was that
      the developer could run clang-format on any of the files and it
      would not be a big deal.  However, if the change is large this
      results in the tool saying you have x file(s) with bad formating
      but then shows every file that was changed. Just showing the files
      with bad formatting seems to make more since. It lets the developer
      focuse only on the files that need fixing.
      
      Also fixed typo in the output text.
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      a1d54270
  6. 03 Mar, 2020 6 commits
  7. 02 Mar, 2020 1 commit
  8. 28 Feb, 2020 1 commit
    • George Nash's avatar
      Add clang-format tool to the CI build · 41155cc7
      George Nash authored
      This adds the clang-format tool to the CI build. This enables
      catching formating errors on from contributers that have not
      installed the pre-commit hook.
      
      This change was integrated into the same build as the doxygen
      build script.  This was done to reduce the number of CI build
      pipelines needed to pass the build.
      
      Copyright block added to the build_doc.sh script. The scripts
      also print out some blocks of text to indicate there run status
      making it easer to instantly see the results of the build
      output.
      
      The new script added to the .gitignore if it is found in the
      top of the project  incase users want to use it localy on
      their own computers. Similar to the reason the _clang-format
      file is in the ignore file.
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      41155cc7
  9. 27 Feb, 2020 3 commits
  10. 26 Feb, 2020 1 commit
  11. 25 Feb, 2020 1 commit
  12. 24 Feb, 2020 1 commit
  13. 21 Feb, 2020 1 commit
  14. 06 Feb, 2020 3 commits
  15. 05 Feb, 2020 2 commits
  16. 04 Feb, 2020 2 commits
  17. 03 Feb, 2020 2 commits
  18. 29 Jan, 2020 2 commits
  19. 28 Jan, 2020 3 commits
    • George Nash's avatar
      Document random PIN and reset functions in oc_api.h · 86d25d49
      George Nash authored
      This adds doxygen documentation for:
       - oc_random_pin_cb_t - callback function
       - oc_set_random_pin_callback
       - oc_reset
       - oc_reset_device
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      86d25d49
    • George Nash's avatar
      Documentation for oc_set_factory_presets_cb · d0884c70
      George Nash authored
      Doxygen documentation added for
       - oc_set_factory_presets_cb
       - oc_factory_presets_cb_t
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      d0884c70
    • George Nash's avatar
      Add oc_endpoint_string_parse_path function · 752a8cfc
      George Nash authored
      This enables getting just the uri portion of an endpoint from
      an endpoint string.
      
      This is useful for a few reasons.
      - The introspection contains an endpoint string to
        the introspection data. Since we typically already have the
        endpoint there is no need to used the oc_string_to_endpoint
        function and allocate another copy of the endpoint when we are
        only interested in the path part of the string.
      
      - Language bindings with Java. Functions that return multiple
        values through variables require unusual workarounds to get
        a clean Java API.  By making this availible in a separate
        function we can make two functions with only one
        responability. Making the Java APIs cleaner.
      
      While testing the oc_endpoint_string_parse_path function
      multiple failures showed up in the StringToEndpoint unit test.
      Once I figured out the failures were due to the fact that my
      build did not have IPV4=1 I updated the StringToEndpoint test so
      it will not test IPV4 strings if OC_IPV4 is not defined.
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      752a8cfc
  20. 25 Jan, 2020 1 commit
    • George Nash's avatar
      Add OC_STORAGE define that is set in oc_config.h · b0e9dac7
      George Nash authored
      Persistant storage is currently only enabled if OC_SECURITY
      is defined.  This has lead implementation problems when
      implementing features like introspection, cloud, or
      software-update which also require persistant storage.
      
      This commit replaces the `#ifdef OC_SECURITY` with
      `#ifdef OC_STORAGE` in oc_storage.c.
      
      Inside config.h OC_STORAGE is defined if OC_SECURITY, OC_IDD_API
      OC_SOFTWARE_UPDATE, or OC_SECURITY is defined.
      
      Also updated samples that call oc_storage_config so they call it
      if OC_STORAGE is defined instead of OC_SECURITY.
      
      Removed the dummy storage implmentation from the
      oc_cloud_storage.c since OC_STORAGE is now defined by default
      when OC_CLOUD is defined.
      
      Some preprocessor check were added to check it one of the
      features that require OC_STORAGE is set but OC_STORAGE is not
      set. This will cause a build error and inform developers to
      check oc_config.h to make sure OC_STORAGE is set there.
      
      Change-Id: I9a9242349e939393f190cab373fe7d0252ae656c
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      b0e9dac7