clamav/docs/html/node47.html

86 lines
2.7 KiB
HTML
Raw Normal View History

2008-03-03 19:11:41 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2008-03-03 19:11:41 +00:00
<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
2009-02-25 19:49:26 +00:00
<TITLE>Limits</TITLE>
<META NAME="description" CONTENT="Limits">
<META NAME="keywords" CONTENT="clamdoc">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
2008-03-03 19:11:41 +00:00
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="clamdoc.css">
<LINK REL="next" HREF="node48.html">
2009-02-25 19:49:26 +00:00
<LINK REL="previous" HREF="node43.html">
<LINK REL="up" HREF="node32.html">
<LINK REL="next" HREF="node48.html">
</HEAD>
<BODY >
2008-03-03 19:11:41 +00:00
<DIV CLASS="navigation"><!--Navigation Panel-->
2009-02-25 19:49:26 +00:00
<A NAME="tex2html817"
HREF="node48.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
2009-02-25 19:49:26 +00:00
<A NAME="tex2html813"
HREF="node32.html">
2007-10-08 19:22:34 +00:00
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
2009-02-25 19:49:26 +00:00
<A NAME="tex2html807"
HREF="node46.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
2009-02-25 19:49:26 +00:00
<A NAME="tex2html815"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR>
2009-02-25 19:49:26 +00:00
<B> Next:</B> <A NAME="tex2html818"
HREF="node48.html">Database reloading</A>
<B> Up:</B> <A NAME="tex2html814"
HREF="node32.html">LibClamAV</A>
<B> Previous:</B> <A NAME="tex2html808"
HREF="node46.html">Engine structure</A>
&nbsp; <B> <A NAME="tex2html816"
HREF="node1.html">Contents</A></B>
<BR>
2008-03-03 19:11:41 +00:00
<BR></DIV>
<!--End of Navigation Panel-->
2009-02-25 19:49:26 +00:00
<H2><A NAME="SECTION00075000000000000000">
Limits</A>
</H2>
When you create a new engine with <code>cl_engine_new()</code>, it will have
all internal settings set to default values as recommended by the
2009-03-16 16:04:29 +00:00
ClamAV authors. It's possible to check and modify the values (numerical
and strings) using the following set of functions:
2009-02-25 19:49:26 +00:00
<PRE>
2009-03-16 16:04:29 +00:00
int cl_engine_set_num(struct cl_engine *engine,
enum cl_engine_field field, long long num);
2009-02-25 19:49:26 +00:00
2009-03-16 16:04:29 +00:00
long long cl_engine_get_num(const struct cl_engine *engine,
enum cl_engine_field field, int *err);
int cl_engine_set_str(struct cl_engine *engine,
enum cl_engine_field field, const char *str);
const char *cl_engine_get_str(const struct cl_engine *engine,
enum cl_engine_field field, int *err);
2009-02-25 19:49:26 +00:00
</PRE>
Please don't modify the default values unless you know what you're doing.
2009-03-16 16:04:29 +00:00
Refer to the ClamAV sources (clamscan, clamd) for examples.
<P>
<BR><HR>
<ADDRESS>
Tomasz Kojm
2009-08-06
</ADDRESS>
</BODY>
</HTML>