remove VENDOR define. 94/58394/4
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Sat, 30 Jan 2016 10:25:34 +0000 (11:25 +0100)
committerMichal Pawluk <m.pawluk@samsung.com>
Sun, 31 Jan 2016 17:44:48 +0000 (09:44 -0800)
VENDOR was always equal to "org.tizen" in previous build config.
Introduce two separate defines for emial and message apps.

Change-Id: I17f5644f8f25f0dde4cdb5772e632e0165d7c6a8
Signed-off-by: Lukasz Stanislawski <l.stanislaws@samsung.com>
inc/main.h
src/ticker.c

index 251cc14..341779b 100644 (file)
@@ -75,6 +75,8 @@
 #define MENUSCREEN_PKG_NAME "org.tizen.menuscreen"
 #define APP_TRAY_PKG_NAME "org.tizen.app-tray"
 #define SEARCH_PKG_NAME "org.tizen.sfinder"
+#define TIZEN_EMAIL_PACKAGE "org.tizen.email"
+#define TIZEN_MESSAGE_PACKAGE "org.tizen.message"
 
 #define MSG_DOMAIN_CONTROL_INDICATOR 0x10001
 #define MSG_ID_INDICATOR_REPEAT_EVENT 0x10002
index 0fc89c0..0ce9bad 100644 (file)
@@ -98,7 +98,7 @@ static int _check_is_noti_from_email(char *pkgname)
 {
        retv_if(!pkgname, 0);
 
-       if (strcmp(pkgname, VENDOR".email") == 0 || strcmp(pkgname, "/usr/bin/eas-engine") == 0) {
+       if (strcmp(pkgname, TIZEN_EMAIL_PACKAGE) == 0 || strcmp(pkgname, "/usr/bin/eas-engine") == 0) {
                return 1;
        } else {
                return 0;
@@ -109,7 +109,7 @@ static int _check_is_noti_from_message(char *pkgname)
 {
        retv_if(!pkgname, 0);
 
-       if (strcmp(pkgname, VENDOR".message") == 0 || strcmp(pkgname, "/usr/bin/msg-server") == 0) {
+       if (strcmp(pkgname, TIZEN_MESSAGE_PACKAGE) == 0 || strcmp(pkgname, "/usr/bin/msg-server") == 0) {
                return 1;
        } else {
                return 0;