diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2014-04-02 13:49:36 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2014-04-02 13:52:30 +0200 |
commit | d17d43ce5c43a83cbd7309f8d4fda3b802fa556a (patch) | |
tree | ffbb8b3dbb5aec5596ad7078e0ac1865f622d937 /gtk/channel-webdav.c | |
parent | d4814544eae305f974de2b0303d11ec67f54294c (diff) |
Make phodav an optional external dependency
Now that upstream provides a stable/versioned API, it will be
easier to deal with than with submodules.
Diffstat (limited to 'gtk/channel-webdav.c')
-rw-r--r-- | gtk/channel-webdav.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/channel-webdav.c b/gtk/channel-webdav.c index 2bee513..c619e48 100644 --- a/gtk/channel-webdav.c +++ b/gtk/channel-webdav.c @@ -15,6 +15,8 @@ You should have received a copy of the GNU Lesser General Public License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" + #include "spice-client.h" #include "spice-common.h" #include "spice-channel-priv.h" @@ -642,6 +644,7 @@ static void spice_webdav_handle_msg(SpiceChannel *channel, SpiceMsgIn *msg) +#ifdef USE_PHODAV static void new_connection(SoupSocket *sock, SoupSocket *new, gpointer user_data) @@ -715,12 +718,14 @@ static PhodavServer* webdav_server_new(SpiceSession *session) return dav; } +#endif /* USE_PHODAV */ static PhodavServer* phodav_server_get(SpiceSession *session, gint *port) { g_return_val_if_fail(SPICE_IS_SESSION(session), NULL); - PhodavServer *self; +#ifdef USE_PHODAV + PhodavServer *self = NULL; static GStaticMutex mutex = G_STATIC_MUTEX_INIT; g_static_mutex_lock(&mutex); @@ -735,4 +740,7 @@ static PhodavServer* phodav_server_get(SpiceSession *session, gint *port) *port = phodav_server_get_port(self); return self; +#else + g_return_val_if_reached(NULL); +#endif } |