19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
21
<LINK REL="next" HREF="node56.html">
21
22
<LINK REL="previous" HREF="node54.html">
22
<LINK REL="up" HREF="node43.html">
23
<LINK REL="up" HREF="node49.html">
23
24
<LINK REL="next" HREF="node56.html">
28
29
<DIV CLASS="navigation"><!--Navigation Panel-->
30
31
HREF="node56.html">
31
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
34
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
36
37
HREF="node54.html">
37
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
40
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
42
<B> Next:</B> <A NAME="tex2html929"
43
HREF="node56.html">CVD format</A>
44
<B> Up:</B> <A NAME="tex2html925"
45
HREF="node43.html">API</A>
46
<B> Previous:</B> <A NAME="tex2html921"
47
HREF="node54.html">clamav-config</A>
48
<B> <A NAME="tex2html927"
43
<B> Next:</B> <A NAME="tex2html948"
44
HREF="node56.html">Database checks</A>
45
<B> Up:</B> <A NAME="tex2html944"
46
HREF="node49.html">API</A>
47
<B> Previous:</B> <A NAME="tex2html938"
48
HREF="node54.html">Engine structure</A>
49
<B> <A NAME="tex2html946"
49
50
HREF="node1.html">Contents</A></B>
52
53
<!--End of Navigation Panel-->
54
<H3><A NAME="SECTION000731200000000000000">
55
<H3><A NAME="SECTION00073600000000000000">
57
You will find an example scanner application in the clamav source
58
package (/example). Provided you have ClamAV already installed, execute
59
the following to compile it:
58
When you create a new engine with <code>cl_engine_new()</code>, it will have
59
all internal settings set to default values as recommended by the
60
ClamAV authors. It's possible to check and modify the values (numerical
61
and strings) using the following set of functions:
61
gcc -Wall ex1.c -o ex1 -lclamav
63
int cl_engine_set_num(struct cl_engine *engine,
64
enum cl_engine_field field, long long num);
66
long long cl_engine_get_num(const struct cl_engine *engine,
67
enum cl_engine_field field, int *err);
69
int cl_engine_set_str(struct cl_engine *engine,
70
enum cl_engine_field field, const char *str);
72
const char *cl_engine_get_str(const struct cl_engine *engine,
73
enum cl_engine_field field, int *err);
75
Please don't modify the default values unless you know what you're doing.
76
Refer to the ClamAV sources (clamscan, clamd) for examples.