• George Nash's avatar
    Removed include security/oc_acl.h from oc_obt.h · 197f479e
    George Nash authored
    - Removed #include "security/oc_acl.h" from oc_obt.h
    - Added forward declaration of oc_ace_res_s and typedef of oc_ace_res_t
    - Added forward declaration of oc_sec_ace_s and typedef of oc_sec_ace_t
    - moved enum oc_ace_connection_type_t from oc_acl.h to oc_obt.h
    - moved enum oc_ace_wildcart_t from oc_acl.h to oc_obt.h
    - moved enum oc_ace_permission_t from oc_acl.h to oc_obt.h
    - removed typedef of oc_ace_res_t from oc_acl.h it is now forward declared in oc_obt.h
    - removed typedef of oc_sec_ace_t from oc_acl.h is it now forward declared in oc_obt.h
    The header file oc_acl.h is not part of the public API
    by including is in a public header file we are inadvertently
    making it part of the public API since the only way to build
    code that includes oc_obt.h was to also include the internal
    header oc_acl.h
    This moves the parts of oc_acl.h that were required for oc_obt.h
    from oc_acl.h to oc_obt.h and reverses the include order so the
    internal header now relies on the public header.
    Change-Id: Ia9e6bcde832880912de8e7e8e2e370001ad69847
    Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
    Reviewed-on: https://gerrit.iotivity.org/gerrit/29444Tested-by: default avatarIoTivity Jenkins <jenkins-daemon@iotivity.org>
    Reviewed-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
oc_obt.h 3.58 KB