6afa9dd4343c3b66ff09f39735170ec8be5f282e braney Wed Sep 18 17:33:15 2024 -0700 add ability to set a timeout on remote loads diff --git src/inc/udc.h src/inc/udc.h index c0076cd..13ee8f4 100644 --- src/inc/udc.h +++ src/inc/udc.h @@ -185,16 +185,18 @@ void udcMMap(struct udcFile *file); /* Enable access to underlying file as memory using mmap. udcMMapFetch * must be called to actually access regions of the file. */ void *udcMMapFetch(struct udcFile *file, bits64 offset, bits64 size); /* Return pointer to a region of the file in memory, ensuring that regions is * cached.. udcMMap must have been called to enable access. This must be * called for first access to a range of the file or erroneous (zeros) data * maybe returned. Maybe called multiple times on a range or overlapping * returns. */ bool udcIsResolvable(char *url); /* check if third-party protocol resolving (e.g. for "s3://") is enabled and if a URL can be resolved this way to HTTP */ +void udcReadStopMessage(char *message); +// set message for errAbort on udcRead. If message is NULL, no abort is made #endif /* UDC_H */