bug fix: TC-1152
[profile/ivi/ico-uxf-homescreen.git] / include / ico_syc_private.h
index e58d67f..8bc7c6e 100644 (file)
@@ -37,6 +37,28 @@ extern "C" {
 
 #define ICO_SYC_MAX_LEN         128
 
+/*
+ * package name
+ */
+#define ICO_SYC_PACKAGE_SYSTEMCONTROLLER    "org.tizen.ico.system-controller"
+#define ICO_SYC_PACKAGE_HOMESCREEN          "org.tizen.ico.homescreen"
+#define ICO_SYC_PACKAGE_STATUSBAR           "org.tizen.ico.statusbar"
+#define ICO_SYC_PACKAGE_ONSCREEN            "org.tizen.ico.onscreen"
+#define ICO_SYC_PACKAGE_LOGIN               "org.tizen.ico.login"
+#define ICO_SYC_PACKAGE_DIALER              "org.tizen.dialer"
+
+/*
+ * configuration file path
+ */
+#define ICO_SYC_CONFIGPATH_HOME             "ico"
+#define ICO_SYC_CONFIGPATH_HOME_CONFIG      ICO_SYC_CONFIGPATH_HOME "/config"
+#define ICO_SYC_CONFIGPATH_HOME_IMAGE       ICO_SYC_CONFIGPATH_HOME "/images"
+#define ICO_SYC_CONFIGPATH_HOME_SOUND       ICO_SYC_CONFIGPATH_HOME "/sound"
+#define ICO_SYC_CONFIGPATH_PACKAGE          "res"
+#define ICO_SYC_CONFIGPATH_PACKAGE_CONFIG   ICO_SYC_CONFIGPATH_PACKAGE "/config"
+#define ICO_SYC_CONFIGPATH_PACKAGE_IMAGE    ICO_SYC_CONFIGPATH_PACKAGE "/images"
+#define ICO_SYC_CONFIGPATH_PACKAGE_SOUND    ICO_SYC_CONFIGPATH_PACKAGE "/sound"
+
 /*============================================================================*/
 /* variable & table                                                           */
 /*============================================================================*/
@@ -265,6 +287,15 @@ void ico_syc_cb_region(ico_syc_callback_t callback, void *user_data,
 
 
 /*============================================================================*/
+/* NodeId <-> DisplayId macro                                                 */
+/*============================================================================*/
+#define ICO_SYC_ECUBASE 100
+#define ICO_SYC_DISPLAYID(nodeid)           (nodeid % ICO_SYC_ECUBASE)
+#define ICO_SYC_ECUID(nodeid)               (nodeid / ICO_SYC_ECUBASE)
+#define ICO_SYC_NODEID(ecuid, displayid)    (ecuid * ICO_SYC_ECUBASE + \
+                                             (displayid % ICO_SYC_ECUBASE))
+
+/*============================================================================*/
 /* log macro                                                                  */
 /*============================================================================*/
 #ifndef  _NO_USE_DLOG