Add feature definition about background management
[platform/core/appfw/app-core.git] / src / base / appcore_base_private.h
index 9e596fe..6c4b95d 100644 (file)
 #include <stdbool.h>
 #include <dlog.h>
 
+typedef enum {
+       TIZEN_PROFILE_UNKNOWN = 0,
+       TIZEN_PROFILE_MOBILE = 0x1,
+       TIZEN_PROFILE_WEARABLE = 0x2,
+       TIZEN_PROFILE_TV = 0x4,
+       TIZEN_PROFILE_IVI = 0x8,
+       TIZEN_PROFILE_COMMON = 0x10,
+} appcore_base_tizen_profile_t;
+
 #ifndef EXPORT_API
 #  define EXPORT_API __attribute__ ((visibility("default")))
 #endif
                } \
        } while (0)
 
+appcore_base_tizen_profile_t appcore_base_get_tizen_profile(void);
+
+#define TIZEN_FEATURE_BACKGROUND_MANAGEMENT \
+       (!(appcore_base_get_tizen_profile() & TIZEN_PROFILE_TV))
 
 extern void aul_finalize();