src/inc/udc.h 1.6

1.6 2009/02/11 21:57:21 galt
moving some udc http declarations to .h file so I can call them for testing
Index: src/inc/udc.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/udc.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -B -U 4 -r1.5 -r1.6
--- src/inc/udc.h	9 Feb 2009 04:33:23 -0000	1.5
+++ src/inc/udc.h	11 Feb 2009 21:57:21 -0000	1.6
@@ -76,5 +76,21 @@
 /* Prefix used by convention to indicate a file should be accessed via udc.  This is
  * followed by the local path name or a url, so in common practice you see things like:
  *     udc:http://genome.ucsc.edu/goldenPath/hg18/tracks/someTrack.bb */
 
+struct udcRemoteFileInfo
+/* Information about a remote file. */
+    {
+    bits64 updateTime;	/* Last update in seconds since 1970 */
+    bits64 size;	/* Remote file size */
+    };
+
+static boolean udcInfoViaHttp(char *url, struct udcRemoteFileInfo *retInfo);
+/* Sets 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. */
+
 #endif /* UDC_H */