From 38f4e948f24b5c7b95d8374ea075dc7240e14c81 Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Wed, 29 Aug 2018 19:52:02 +0300 Subject: [PATCH] purple: simplify appshare server flagging DRY removal. --- src/purple/purple-buddy.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/purple/purple-buddy.c b/src/purple/purple-buddy.c index f55a5a2e..2e8f0e76 100644 --- a/src/purple/purple-buddy.c +++ b/src/purple/purple-buddy.c @@ -3,7 +3,7 @@ * * pidgin-sipe * - * Copyright (C) 2010-2017 SIPE Project + * Copyright (C) 2010-2018 SIPE Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -665,18 +665,14 @@ static void sipe_purple_buddy_add_new_domain_cb(PurpleBuddy *buddy, gc); } -#ifdef HAVE_APPSHARE_SERVER -static void sipe_purple_buddy_share_desktop_cb(PurpleBuddy *buddy, +static void sipe_purple_buddy_share_desktop_cb(SIPE_UNUSED_PARAMETER PurpleBuddy *buddy, SIPE_UNUSED_PARAMETER gpointer parameter) { +#ifdef HAVE_APPSHARE_SERVER sipe_core_appshare_share_desktop(PURPLE_BUDDY_TO_SIPE_CORE_PUBLIC, purple_buddy_get_name(buddy)); +#endif } -#else -static void sipe_purple_buddy_share_desktop_cb(SIPE_UNUSED_PARAMETER PurpleBuddy *buddy, - SIPE_UNUSED_PARAMETER gpointer parameter) -{} -#endif // HAVE_APPSHARE_SERVER typedef void (*buddy_menu_callback)(PurpleBuddy *buddy, gpointer parameter); -- 2.11.4.GIT