Imported Upstream version 3.3.3
[debian/amanda] / xfer-src / xfer.h
index a1f378cb76155c772422df46a9604dcabd508bf9..48d8583d69b94585793c5276311c6e53aea23c7e 100644 (file)
@@ -1,9 +1,10 @@
 /*
- * Copyright (c) 2008, 2009, 2010 Zmanda, Inc.  All Rights Reserved.
+ * Copyright (c) 2008-2012 Zmanda, Inc.  All Rights Reserved.
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 as published
- * by the Free Software Foundation.
+ * 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 the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
@@ -90,6 +91,8 @@ struct Xfer {
     /* Used to coordinate handing off file descriptors among elements of this
      * xfer */
     GMutex *fd_mutex;
+
+    int cancelled;
 };
 
 typedef struct Xfer Xfer;
@@ -158,8 +161,10 @@ char *xfer_repr(Xfer *xfer);
  * correctly).
  *
  * @param xfer: the Xfer object
+ * @param offset: the offset to start the transfer from (must be 0)
+ * @param size: the Xfer object: the number of bytes to transfer.
  */
-void xfer_start(Xfer *xfer);
+void xfer_start(Xfer *xfer, gint64 offset, gint64 size);
 
 /* Abort a running transfer.  This essentially tells the source to stop
  * producing data and allows the remainder of the transfer to "drain".  Thus