From: Carsten Haitzler (Rasterman) Date: Tue, 6 Oct 2015 02:29:16 +0000 (+0900) Subject: eldbus - only do syntax checks if libdbus is new enough X-Git-Tag: v1.16.0-beta1~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d0c5a942378287ead37c6e8b459d9d874f761d2;p=platform%2Fupstream%2Fefl.git eldbus - only do syntax checks if libdbus is new enough --- diff --git a/src/lib/eldbus/eldbus_message.c b/src/lib/eldbus/eldbus_message.c index 56f87d2..f18196c 100644 --- a/src/lib/eldbus/eldbus_message.c +++ b/src/lib/eldbus/eldbus_message.c @@ -108,6 +108,9 @@ eldbus_message_method_call_new(const char *dest, const char *path, const char *i EINA_SAFETY_ON_NULL_RETURN_VAL(iface, NULL); EINA_SAFETY_ON_NULL_RETURN_VAL(method, NULL); +#ifdef DBUS_SYNTAX_H + // added to libdbus: + // f426c6cddd158d6324923f28117bc8e512d6f64f Fri Feb 24 12:43:55 2012 +0000 if (!dbus_validate_bus_name(dest, NULL)) { ERR("Invalid bus name '%s'", dest); @@ -123,6 +126,7 @@ eldbus_message_method_call_new(const char *dest, const char *path, const char *i ERR("Invalid interface '%s'", iface); return NULL; } +#endif msg = eldbus_message_new(EINA_TRUE); EINA_SAFETY_ON_NULL_GOTO(msg, fail);