diff options
author | Jonathan Brielmaier <[email protected]> | 2019-07-30 15:20:18 +0200 |
---|---|---|
committer | Martin Wimpress <[email protected]> | 2019-08-18 21:14:45 +0100 |
commit | 45d85850235bbcb6b59b1443d22f0e8203cce566 (patch) | |
tree | 362a0b33a9114b3e27af63eec1b41646d540e058 /sendto/plugins | |
parent | 9535aeeb72d9f0496df0188d9ffb92c1a3939745 (diff) | |
download | caja-extensions-45d85850235bbcb6b59b1443d22f0e8203cce566.tar.bz2 caja-extensions-45d85850235bbcb6b59b1443d22f0e8203cce566.tar.xz |
Build either with gupnp version 1.0 or 1.2.
This fixes https://github.com/mate-desktop/caja-extensions/issues/52.
* (configure.ac): Check also for gupnp-1.2 and set HAS_GUPNP_VERSION_1_2
to yes if found.
* (sendto/plugins/upnp/upnp.c): Use gupnp_context_manager_create when
building with gupnp-1.2 as gupnp_context_manager_new was removed.
Signed-off-by: Jonathan Brielmaier <[email protected]>
Co-authored-by: Gianfranco Costamagna <[email protected]>
Diffstat (limited to 'sendto/plugins')
-rw-r--r-- | sendto/plugins/upnp/upnp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sendto/plugins/upnp/upnp.c b/sendto/plugins/upnp/upnp.c index b381587..81a4f0a 100644 --- a/sendto/plugins/upnp/upnp.c +++ b/sendto/plugins/upnp/upnp.c @@ -206,7 +206,11 @@ init (NstPlugin *plugin) return FALSE; g_free (upload_cmd); +#ifdef HAS_GUPNP_VERSION_1_2 + context_manager = gupnp_context_manager_create (0); +#else context_manager = gupnp_context_manager_new (NULL, 0); +#endif g_assert (context_manager != NULL); g_signal_connect (context_manager, "context-available", G_CALLBACK (on_context_available), NULL); |