• 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
multi_device_client_linux.c 10.1 KB