Fix build error and remove warnings 27/62427/1 accepted/tizen/common/20160323.183813 accepted/tizen/ivi/20160321.114059 accepted/tizen/mobile/20160321.114002 accepted/tizen/tv/20160321.114015 accepted/tizen/wearable/20160321.114034 submit/tizen/20160321.052611
authorHyunho Kang <hhstark.kang@samsung.com>
Wed, 16 Mar 2016 04:51:11 +0000 (13:51 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Wed, 16 Mar 2016 04:52:55 +0000 (13:52 +0900)
- remove unused functions

Change-Id: Id291d8143916adbed5edb0c0130b5e198ed2e429
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
CMakeLists.txt
include/notification_ipc.h
notification.pc.in
src/notification_ipc.c

index a61399eafd6069657cc1237286b7f18e5b2cf789..cf1810f61dc261e442e3745fa07d2e0168f03d50 100755 (executable)
@@ -65,6 +65,7 @@ pkg_check_modules(pkgs REQUIRED
        ecore
        eina
        libtzplatform-config
+       glib-2.0
        gio-2.0
 )
 
index 66d567d2262b4651a0cc7056143180fd015cfd95..2c91e0ff983909851caddd49ccd5ebe2c5861a6b 100755 (executable)
@@ -59,8 +59,6 @@ int notification_ipc_request_delete_multiple(notification_type_e type, char *pkg
 int notification_ipc_request_delete_single(notification_type_e type, char *pkgname, int priv_id);
 int notification_ipc_update_setting(notification_setting_h setting);
 int notification_ipc_update_system_setting(notification_system_setting_h system_setting);
-int notification_ipc_noti_setting_property_set(const char *pkgname, const char *property, const char *value);
-int notification_ipc_noti_setting_property_get(const char *pkgname, const char *property, char **value);
 int notification_ipc_request_load_noti_by_tag(notification_h noti, const char *pkgname, const char *tag);
 int notification_ipc_request_load_noti_grouping_list(notification_type_e type, int count,
                notification_list_h *list);
index f20fd1eb3312508a44b404bde82990570dd9d348..9653c3f0f7770a4d03b73c6c0ae8ab919a38041b 100644 (file)
@@ -6,6 +6,6 @@ includedir=@INCLUDEDIR@
 Name: notification
 Description: Notification Library
 Version: @VERSION@
-Requires: bundle capi-base-common capi-appfw-application
+Requires: bundle glib-2.0 capi-base-common capi-appfw-application
 Libs: -L${libdir} -lnotification
 Cflags: -I${includedir}
index eef8bf6b97dc26ea2902eff8b3b2fe7c298878f5..0453361ce4db262e6db6beb6be268762a02e09de 100755 (executable)
@@ -51,59 +51,6 @@ static int monitor_id = 0;
 static int provider_monitor_id = 0;
 static int is_master_started = 0;
 
-static const char *NOTI_DATA_STRING[] = {
-    "NOTIFICATION_DATA_TYPE_NOTI_TYPE",
-    "NOTIFICATION_DATA_TYPE_LAYOUT",
-    "NOTIFICATION_DATA_TYPE_GROUP_ID",
-    "NOTIFICATION_DATA_TYPE_INTERNAL_GROUP_ID",
-    "NOTIFICATION_DATA_TYPE_PRIV_ID",
-    "NOTIFICATION_DATA_TYPE_CALLER_PKGNAME",
-    "NOTIFICATION_DATA_TYPE_LAUNCH_PKGNAME",
-    "NOTIFICATION_DATA_TYPE_ARGS",
-    "NOTIFICATION_DATA_TYPE_GROUP_ARGS",
-    "NOTIFICATION_DATA_TYPE_EXECUTE_OPTION",
-    "NOTIFICATION_DATA_TYPE_SERVICE_RESPONDING",
-    "NOTIFICATION_DATA_TYPE_SERVICE_SINGLE_LAUNCH",
-    "NOTIFICATION_DATA_TYPE_SERVICE_MULTI_LAUNCH",
-    "NOTIFICATION_DATA_TYPE_BUTTON1_EVENT",
-    "NOTIFICATION_DATA_TYPE_BUTTON2_EVENT",
-    "NOTIFICATION_DATA_TYPE_BUTTON3_EVENT",
-    "NOTIFICATION_DATA_TYPE_BUTTON4_EVENT",
-    "NOTIFICATION_DATA_TYPE_BUTTON5_EVENT",
-    "NOTIFICATION_DATA_TYPE_BUTTON6_EVENT",
-    "NOTIFICATION_DATA_TYPE_ICON_EVENT",
-    "NOTIFICATION_DATA_TYPE_THUMBNAIL_EVENT",
-    "NOTIFICATION_DATA_TYPE_DOMAIN",
-    "NOTIFICATION_DATA_TYPE_DIR",
-    "NOTIFICATION_DATA_TYPE_TEXT",
-    "NOTIFICATION_DATA_TYPE_KEY",
-    "NOTIFICATION_DATA_TYPE_FORMAT_ARGS",
-    "NOTIFICATION_DATA_TYPE_NUM_FORMAT_ARGS",
-    "NOTIFICATION_DATA_TYPE_IMAGE_PATH",
-    "NOTIFICATION_DATA_TYPE_SOUND_TYPE",
-    "NOTIFICATION_DATA_TYPE_SOUND_PATH",
-    "NOTIFICATION_DATA_TYPE_VIBRATION_TYPE",
-    "NOTIFICATION_DATA_TYPE_VIBRATION_PATH",
-    "NOTIFICATION_DATA_TYPE_LED_OPERATION",
-    "NOTIFICATION_DATA_TYPE_LED_ARGB",
-    "NOTIFICATION_DATA_TYPE_LED_ON_MS",
-    "NOTIFICATION_DATA_TYPE_LED_OFF_MS",
-    "NOTIFICATION_DATA_TYPE_TIME",
-    "NOTIFICATION_DATA_TYPE_INSERT_TIME",
-    "NOTIFICATION_DATA_TYPE_FLAGS_FOR_PROPERTY",
-    "NOTIFICATION_DATA_TYPE_DISPLAY_APPLIST",
-    "NOTIFICATION_DATA_TYPE_PROGRESS_SIZE",
-    "NOTIFICATION_DATA_TYPE_PROGRESS_PERCENTAGE",
-    "NOTIFICATION_DATA_TYPE_APP_ICON_PATH",
-    "NOTIFICATION_DATA_TYPE_APP_NAME",
-    "NOTIFICATION_DATA_TYPE_TEMP_TITLE",
-    "NOTIFICATION_DATA_TYPE_TEMP_CONTENT",
-    "NOTIFICATION_DATA_TYPE_TAG",
-    "NOTIFICATION_DATA_TYPE_ONGOING_FLAG",
-    "NOTIFICATION_DATA_TYPE_AUTO_REMOVE",
-};
-
-
 typedef struct _result_cb_item {
        void (*result_cb)(int priv_id, int result, void *data);
        void *data;
@@ -1259,63 +1206,6 @@ int notification_ipc_update_system_setting(notification_system_setting_h system_
        return result;
 }
 
-int notification_ipc_noti_setting_property_set(const char *pkgname, const char *property, const char *value)
-{
-       int result;
-       GDBusMessage *reply = NULL;
-       GVariant *body;
-
-       result = _dbus_init();
-       if (result != NOTIFICATION_ERROR_NONE) {
-               NOTIFICATION_ERR("Can't init dbus %d", result);
-               return result;
-       }
-       body = g_variant_new("(sss)", pkgname, property, value);
-
-       result = _send_sync_noti(body, &reply, "set_noti_property");
-
-       if (reply)
-               g_object_unref(reply);
-
-       NOTIFICATION_DBG("notification_ipc_noti_setting_property_set done [result: %d]", result);
-       return result;
-}
-
-int notification_ipc_noti_setting_property_get(const char *pkgname, const char *property, char **value)
-{
-       int result;
-       GDBusMessage *reply = NULL;
-       GVariant *body;
-       GVariant *reply_body = NULL;
-       gchar *ret_val;
-
-       result = _dbus_init();
-
-       if (result != NOTIFICATION_ERROR_NONE) {
-               NOTIFICATION_ERR("Can't init dbus %d", result);
-               return result;
-       }
-
-       body = g_variant_new("(ss)", pkgname, property);
-       result = _send_sync_noti(body, &reply, "get_noti_property");
-
-       if (result == NOTIFICATION_ERROR_NONE) {
-               reply_body = g_dbus_message_get_body(reply);
-               g_variant_get(body, "(s)", &ret_val);
-
-               if (ret_val != NULL) {
-                       *value = g_strdup(ret_val);
-                       g_free(ret_val);
-               }
-       }
-
-       if(reply)
-               g_object_unref(reply);
-
-       NOTIFICATION_DBG("notification_ipc_noti_setting_property_get done [result: %d]", result);
-       return result;
-}
-
 EXPORT_API GVariant *notification_ipc_make_gvariant_from_noti(notification_h noti)
 {
        NOTIFICATION_DBG("make gvariant from noti");