61b40ee3 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
73e034df |
|
e79e504d |
<!--Converted with LaTeX2HTML 2008 (1.71) |
73e034df |
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> |
e79e504d |
<TITLE>Initialization</TITLE>
<META NAME="description" CONTENT="Initialization"> |
73e034df |
<META NAME="keywords" CONTENT="clamdoc">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
|
e79e504d |
<META NAME="Generator" CONTENT="LaTeX2HTML v2008"> |
73e034df |
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="clamdoc.css">
<LINK REL="next" HREF="node46.html">
<LINK REL="previous" HREF="node44.html"> |
ba4cac37 |
<LINK REL="up" HREF="node43.html"> |
73e034df |
<LINK REL="next" HREF="node46.html">
</HEAD>
<BODY > |
61b40ee3 |
<DIV CLASS="navigation"><!--Navigation Panel--> |
4ce30499 |
<A NAME="tex2html810" |
73e034df |
HREF="node46.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> |
4ce30499 |
<A NAME="tex2html806" |
ba4cac37 |
HREF="node43.html"> |
73e034df |
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> |
4ce30499 |
<A NAME="tex2html800" |
73e034df |
HREF="node44.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> |
4ce30499 |
<A NAME="tex2html808" |
73e034df |
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
<BR> |
4ce30499 |
<B> Next:</B> <A NAME="tex2html811" |
e79e504d |
HREF="node46.html">Database loading</A> |
4ce30499 |
<B> Up:</B> <A NAME="tex2html807" |
e79e504d |
HREF="node43.html">API</A> |
4ce30499 |
<B> Previous:</B> <A NAME="tex2html801" |
e79e504d |
HREF="node44.html">Header file</A> |
4ce30499 |
<B> <A NAME="tex2html809" |
73e034df |
HREF="node1.html">Contents</A></B>
<BR> |
61b40ee3 |
<BR></DIV> |
73e034df |
<!--End of Navigation Panel-->
|
e79e504d |
<H3><A NAME="SECTION00073200000000000000">
Initialization</A> |
73e034df |
</H3> |
e79e504d |
Before using libclamav, you should call <code>cl_init()</code> to initialize
it. When it's done, you're ready to create a new scan engine by calling
<code>cl_engine_new()</code>. To free resources allocated by the engine use
<code>cl_engine_free()</code>. Function prototypes: |
96e05490 |
<PRE> |
e79e504d |
int cl_init(unsigned int options);
struct cl_engine *cl_engine_new(void);
int cl_engine_free(struct cl_engine *engine); |
96e05490 |
</PRE> |
e79e504d |
<code>cl_init()</code> and <code>cl_engine_free()</code> return <code>CL_SUCCESS</code>
on success or another code on error. <code>cl_engine_new()</code> return
a pointer or NULL if there's not enough memory to allocate a new
engine structure. |
73e034df |
<P> |
ba4cac37 |
<BR><HR> |
73e034df |
<ADDRESS> |
4ce30499 |
SourceFire 2013-04-16 |
73e034df |
</ADDRESS>
</BODY>
</HTML> |