Alexander Nagel wrote: > Hello all, Hi Alexander
> I wrote a program which uses the libclamav library which works fine so far. > But i have some questions about the struct cl_limits > - What are the default values of the sruct members? The defaults are hardcoded and documented in clamd.conf and clamscan manpage. > - Is there a function which returns the default values? Nope. > - Where are the limits of them e.g.: maxratio? See above. > - Is there a internal memory limit with archivememlim or is is the memory > limit of the process using libclamav? This one is a minor option. It only affects bzip2 decompression which offers 2 operating mode: a slow mode which uses a relatively small decompression buffer and a faster mode which uses a much larger one. See bzlib documentation for more info. Last, a word of warning. The related api are undergoing some major change. In the very near future you will need a different approach to set the limits and other options. If you are developing a new application you'd better stick to the new api which is available in svn. Unfortunately the new interface is not yet fully established nor documented and may be subject to some other _minor_ changes. HtH, -aCaB _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html Please submit your patches to our Bugzilla: http://bugs.clamav.net