src/inc/udc.h 1.8

1.8 2009/02/18 00:32:40 galt
Adding FTP support for udc cache lib
Index: src/inc/udc.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/udc.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -b -B -U 4 -r1.7 -r1.8
--- src/inc/udc.h	11 Feb 2009 23:43:10 -0000	1.7
+++ src/inc/udc.h	18 Feb 2009 00:32:40 -0000	1.8
@@ -84,13 +84,21 @@
     bits64 size;	/* Remote file size */
     };
 
 boolean udcInfoViaHttp(char *url, struct udcRemoteFileInfo *retInfo);
-/* Sets size and last modified time of URL
+/* Gets size and last modified time of URL
  * and returns status of HEAD GET. */
 
 int udcDataViaHttp(char *url, bits64 offset, int size, void *buffer);
 /* Fetch a block of data of given size into buffer using the http: protocol.
  * Returns number of bytes actually read.  Does an errAbort on
  * error.  Typically will be called with size in the 8k - 64k range. */
 
+int udcDataViaFtp(char *url, bits64 offset, int size, void *buffer);
+/* Fetch a block of data of given size into buffer using the ftp: protocol.
+ * Returns number of bytes actually read.  Does an errAbort on
+ * error.  Typically will be called with size in the 8k - 64k range. */
+
+boolean udcInfoViaFtp(char *url, struct udcRemoteFileInfo *retInfo);
+/* Gets size and last modified time of FTP URL */
+
 #endif /* UDC_H */