1. 30 Apr, 2020 2 commits
    • George Nash's avatar
      Add callbacks for ownership status · a0f1d9e1
      George Nash authored
      Add a callback that is invoked when doxm "owned" value is
      Add an API to query the current ownership status of a device.
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
    • George Nash's avatar
      Add APIs to Java · 492817f0
      George Nash authored
      This exposes oc_endpoint_string_parse_path to Java
      under OCEndpointUtil.endpointStringParsePath
      Ignore oc_ri_is_client_cb_valid this function is not
      expected to be used in Java.
      With oc_endpoint_string_parse_path exposed to Java we are
      able to update the OCEndpointUtil.stringToEndpoint method so
      it can take only one parameter. Since developers are already
      using the stringToEndpoint method that takes two parameters
      we need to still provide that method.
      The stringToEndpoint that takes two parameters has a return
      value in one of the parameters.  Although this works it is
      very unsual in Java to use code this way. Now users can call
      the single parameter version of stringToEndpoint and if they
      need the path from that endpoint they can call
      endpointStringParsePath using the same endpoint string. More
      method call but much closer to what a Java developer would
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
  2. 28 Apr, 2020 2 commits
  3. 27 Apr, 2020 10 commits
  4. 23 Apr, 2020 1 commit
  5. 20 Apr, 2020 1 commit
  6. 16 Apr, 2020 1 commit
  7. 15 Apr, 2020 8 commits
  8. 10 Apr, 2020 1 commit
    • George Nash's avatar
      Overwrite the SWIG generated freeEndpoint code to avoid double free memory error · 4dca743c
      George Nash authored
      The OCEndpointUtil.freeEndpoint method will free the memory associated with an
      endpoint. If the Java code thinks that it is responsible for freeing the
      memory it will also free the endpoint when the GC is run. This results in
      freeing memory that was already freed and may be in use by other memory.
      This updates the JNI code to check if Java thinks it is responsible for the
      memory associated with the endpoint being freews.  If so it will update
      the OCEndpoint in question so it no longer thinks its responsible for the
      native memory associated with the OCEndpoint. I addition the copy of the
      C pointer held in the OCEndpoint class is set to 0 (i.e. NULL) to avoid
      having a floating pointer that could cause other problems.
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
  9. 09 Apr, 2020 1 commit
  10. 02 Apr, 2020 5 commits
  11. 30 Mar, 2020 2 commits
  12. 27 Mar, 2020 1 commit
  13. 20 Mar, 2020 1 commit
  14. 12 Mar, 2020 3 commits
  15. 11 Mar, 2020 1 commit