[ISF_HAS_VCONF=no])
# Check edbus library
-PKG_CHECK_MODULES(EDBUS, [edbus])
+PKG_CHECK_MODULES(EDBUS, [edbus],
+ [ISF_HAS_EDBUS=yes],
+ [ISF_HAS_EDBUS=no])
# Check bluetooth library
PKG_CHECK_MODULES(BLUETOOTH, [capi-network-bluetooth],
AC_DEFINE(HAVE_FEEDBACK,1,[Have Feedback functions.])
fi
+if test "$ISF_HAS_EDBUS" = "yes"; then
+ AC_DEFINE(HAVE_EDBUS,1,[Have edbus functions.])
+fi
+
if test "$ISF_HAS_NOTIFICATION" = "yes" && test "$enable_notification" = "yes"; then
AC_DEFINE(HAVE_NOTIFICATION,1,[Have Notification functions.])
fi
#include <notification.h>
#include <notification_internal.h>
#endif
+#ifdef HAVE_EDBUS
#include <E_DBus.h>
+#endif
#ifdef HAVE_BLUETOOTH
#include <bluetooth.h>
#endif
#endif
#endif /* CANDIDATE */
+#ifdef HAVE_EDBUS
static E_DBus_Connection *edbus_conn;
static E_DBus_Signal_Handler *edbus_handler;
+#endif
#if ENABLE_REMOTE_INPUT
static Remote_Input* remote_input_impl = NULL;
return ret;
}
+#ifdef HAVE_EDBUS
static void usb_keyboard_signal_cb (void *data, DBusMessage *msg)
{
DBusError err;
return 0;
}
+#endif
#ifdef HAVE_NOTIFICATION
static void delete_notification (NotificationData *noti_data)
vconf_notify_key_changed (VCONFKEY_ISF_HW_KEYBOARD_INPUT_DETECTED, keyboard_mode_changed_cb, NULL);
#endif
+#ifdef HAVE_EDBUS
if (0 != register_edbus_signal_handler ())
LOGW ("register edbus signal fail");
+#endif
try {
/* Update ISE list */
#endif
#endif
+#ifdef HAVE_EDBUS
unregister_edbus_signal_handler ();
+#endif
if (_info_manager) {
try {