Commit Graph

11 Commits

Author SHA1 Message Date
Andy McFadden
1169554de3 Changed the DataSource API to take resource release callback pointers
instead of a "doClose" argument.  NufxLib should no longer try to free
anything allocated by the application (or vice-versa).

The DataSource "copy" function now does refcounting instead of copying.
This was done as part of cleaning up some memory leaks in the DataSource
code.

The samples were all updated with the changes to the API (and the
occasional minor valgrind-inspired bug fix).
2003-02-09 01:53:51 +00:00
Andy McFadden
ba99fa7372 Updated copyright notices. 2003-02-08 22:43:24 +00:00
Andy McFadden
3841a233b2 Added support for kNuValMaskDataless, which hides records with no data
threads by giving them an empty data fork (and, if it's an extended
file, an empty resource fork).  This allows applications to simply
ignore the bogus records and let NufxLib do the dirty work.

Fixed dataless thread handling for the original (non-masked) case.  We
weren't creating empty resource forks when required, so a dataless
record with a forked-file storage type wouldn't be recreated properly
if extracted and then added.

Added version numbers to the public header, so applications can test
for "compiled" version vs "linked" version.
2003-01-10 22:47:24 +00:00
Andy McFadden
5c0f57cf71 Implemented "percentComplete" field in progress update. 2002-12-28 03:10:09 +00:00
Andy McFadden
8fefff8cfa Update copyright notices and legalese. 2002-10-11 20:15:50 +00:00
Andy McFadden
d41016e6c1 Added support for compressing data with libbz2. Disabled by default.
Generalized compression method enable/disable.  Now any method can be
removed.  Applications can call NuTestFeature() to figure out what is
supported by the copy of NufxLib they're linked against.
2002-10-09 23:12:06 +00:00
Andy McFadden
cb401c7280 Added optional support for zlib deflate compression. The auto-config
checks for the presence of both "-lz" and "zlib.h".

Made various minor tweaks.
2002-10-01 01:05:42 +00:00
Andy McFadden
18a61d2d31 Added support for 12-bit and 16-bit LZC (UNIX "compress") compression format. 2002-09-28 00:56:08 +00:00
Andy McFadden
da51322d48 Added support for SQueeze compression format (both compress and expand).
Twiddled some comments in random places.
2002-09-26 22:11:12 +00:00
Andy McFadden
768a224513 Reformatted files to use spaces instead of hard tabs. No substantitve changes. 2002-09-21 00:49:42 +00:00
cvs
5615fa90d4 Imported sources. 2000-05-23 01:55:31 +00:00