I've put up a mirror of the sitecopy site at: http://www.manyfish.co.uk/sitecopy/
since the primary host is down. The patch I committed to SVN for neon 0.27.x compatibility is attached. joe
Index: configure.in =================================================================== --- configure.in (revision 1299) +++ configure.in (working copy) @@ -14,7 +14,7 @@ dnl Boston, MA 02111-1307, USA. dnl This configure script is: -dnl Copyright (C) 2000-2006 Joe Orton ([EMAIL PROTECTED]) +dnl Copyright (C) 2000-2007 Joe Orton ([EMAIL PROTECTED]) dnl Portions are: dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. dnl Copyright (C) 1997 Janos Farkas ([EMAIL PROTECTED]) @@ -113,7 +113,7 @@ fi # Support neon 0.24, 0.25, 0.26. -NE_REQUIRE_VERSIONS([0], [24 25 26]) +NE_REQUIRE_VERSIONS([0], [24 25 26 27]) dnl But we don't use zlib or ACL support NEON_WITHOUT_ZLIB Index: src/davdriver.c =================================================================== --- src/davdriver.c (revision 1299) +++ src/davdriver.c (working copy) @@ -1,6 +1,6 @@ /* sitecopy WebDAV protocol driver module - Copyright (C) 2000-2006, Joe Orton <[EMAIL PROTECTED]> + Copyright (C) 2000-2007, Joe Orton <[EMAIL PROTECTED]> 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 @@ -79,7 +79,7 @@ #define ELM_resourcetype (NE_PROPS_STATE_TOP + 1) #define ELM_collection (NE_PROPS_STATE_TOP + 2) -/* The element definitinos for the complex prop handler. */ +/* The element definitions for the complex prop handler. */ static const struct ne_xml_idmap fetch_elms[] = { { "DAV:", "resourcetype", ELM_resourcetype }, { "DAV:", "collection", ELM_collection }, @@ -140,6 +140,7 @@ username, password); } +#if NE_VERSION_MINOR < 27 static void notify_cb(void *userdata, ne_conn_status status, const char *info) { @@ -155,6 +156,25 @@ #undef MAP } +#else +static void notify_status(void *userdata, ne_session_status status, + const ne_session_status_info *info) +{ + switch (status) { + case ne_status_lookup: + fe_connection(fe_namelookup, info->lu.hostname); + break; + case ne_status_connecting: + fe_connection(fe_connecting, NULL); + break; + case ne_status_connected: + fe_connection(fe_connected, NULL); + break; + default: + break; + } +} +#endif static int h2s(ne_session *sess, int errcode) { @@ -237,7 +257,11 @@ ne_ssl_set_verify(sess, verify_certificate, site); } +#if NE_VERSION_MINOR < 27 ne_set_status(sess, notify_cb, NULL); +#else + ne_set_notifier(sess, notify_status, NULL); +#endif if (site->http_limit) { #if NE_VERSION_MINOR > 25