* Sunnyvale, CA 94085, USA, or: http://www.zmanda.com
*/
* Sunnyvale, CA 94085, USA, or: http://www.zmanda.com
*/
xfer->status = XFER_INIT;
xfer->status_mutex = g_mutex_new();
xfer->status_cond = g_cond_new();
xfer->status = XFER_INIT;
xfer->status_mutex = g_mutex_new();
xfer->status_cond = g_cond_new();
/* Free our references to the elements, and also set the 'xfer'
* attribute of each to NULL, making them "unattached" (although
/* Free our references to the elements, and also set the 'xfer'
* attribute of each to NULL, making them "unattached" (although
g_debug("Starting %s", xfer_repr(xfer));
/* set the status to XFER_START and add a reference to our count, so that
g_debug("Starting %s", xfer_repr(xfer));
/* set the status to XFER_START and add a reference to our count, so that
/* now tell them all to start, in order from destination to source */
for (i = xfer->elements->len; i >= 1; i--) {
XferElement *xe = (XferElement *)g_ptr_array_index(xfer->elements, i-1);
/* now tell them all to start, in order from destination to source */
for (i = xfer->elements->len; i >= 1; i--) {
XferElement *xe = (XferElement *)g_ptr_array_index(xfer->elements, i-1);