Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > b2392e2bab3459aa4eec68cd0e44713c > files > 159

mnogosearch-3.3.9-4mdv2010.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>UdmAgentAddLine</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="mnoGoSearch 3.3.9 reference manual"
HREF="index.html"><LINK
REL="UP"
TITLE="mnoGoSearch C API function reference"
HREF="msearch-c-api.html"><LINK
REL="PREVIOUS"
TITLE="UdmAgentFree"
HREF="msearch-c-api-udmagentfree.html"><LINK
REL="NEXT"
TITLE="UdmFind2"
HREF="msearch-c-api-udmfind2.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="mnogo.css"><META
NAME="Description"
CONTENT="mnoGoSearch - Full Featured Web site Open Source Search Engine Software over the Internet and Intranet Web Sites Based on SQL Database. It is a Free search software covered by GNU license."><META
NAME="Keywords"
CONTENT="shareware, freeware, download, internet, unix, utilities, search engine, text retrieval, knowledge retrieval, text search, information retrieval, database search, mining, intranet, webserver, index, spider, filesearch, meta, free, open source, full-text, udmsearch, website, find, opensource, search, searching, software, udmsearch, engine, indexing, system, web, ftp, http, cgi, php, SQL, MySQL, database, php3, FreeBSD, Linux, Unix, mnoGoSearch, MacOS X, Mac OS X, Windows, 2000, NT, 95, 98, GNU, GPL, url, grabbing"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#EEEEEE"
TEXT="#000000"
LINK="#000080"
VLINK="#800080"
ALINK="#FF0000"
><!--#include virtual="body-before.html"--><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
><SPAN
CLASS="application"
>mnoGoSearch</SPAN
> 3.3.9 reference manual: Full-featured search engine software</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="msearch-c-api-udmagentfree.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="msearch-c-api-udmfind2.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="c-api-UdmAgentAddLine"
></A
>UdmAgentAddLine</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN14290"
></A
><H2
>Name</H2
>UdmAgentAddLine&nbsp;--&nbsp;Adds a configuration command</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN14293"
></A
><H2
>Description</H2
><code
class="methodsynopsis"
>&#13;  <span
class="type"
>int  </span
>UdmAgentAddLine(<span
class="methodparam"
><span
class="type"
>UDM_AGENT* </span
><span
class="parameter"
>Agent</span
></span
><span
class="methodparam"
>, <span
class="type"
>const char* </span
><span
class="parameter"
>line</span
></span
>);&#13;</code
><P
>&#13;   Adds a configuration command into the search context of the search
  session, pointed by the <CODE
CLASS="parameter"
>Agent</CODE
> variable.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN14306"
></A
><H2
>Parameters</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>Agent</CODE
></DT
><DD
><P
>&#13;       Pointer to a variable of type <SPAN
CLASS="type"
>UDM_AGENT</SPAN
>,
       should be the address of an existing variable
       of <SPAN
CLASS="type"
>UDM_AGENT</SPAN
> type, previously initialized
       using a <CODE
CLASS="function"
>UdmAgentInit()</CODE
> call.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>line</CODE
></DT
><DD
><P
>&#13;       A configuration line, using the same syntax with 
       mnoGoSearch <TT
CLASS="filename"
>search.htm</TT
> commands.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN14324"
></A
><H2
>Return Values</H2
><P
>&#13;   <TT
CLASS="literal"
>UDM_OK</TT
> on success,
   <TT
CLASS="literal"
>UDM_ERROR</TT
> on error.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN14329"
></A
><H2
>Notes</H2
><P
>&#13;  <CODE
CLASS="function"
>UdmAgentAddLine()</CODE
> can fail if there
  was insufficient memory to complete the operation,
  or there was a syntax error in the line.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN14333"
></A
><H2
>Examples</H2
><P
>&#13;   <DIV
CLASS="example"
><A
NAME="AEN14336"
></A
><P
><B
>Example 1. <CODE
CLASS="function"
>UdmAgentAddLine</CODE
> example</B
></P
><PRE
CLASS="programlisting"
>&#13;
if (UDM_OK != UdmAgentAddLine(Agent, "DBAddr mysql://root@localhost/test/"))
{
  printf('Error: UdmAgentAddLine failed');
  exit(1);
}

    </PRE
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN14340"
></A
><H2
>See Also</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><CODE
CLASS="function"
><A
HREF="msearch-c-api-udmenvinit.html"
>UdmEnvInit</A
></CODE
></TD
></TR
><TR
><TD
><CODE
CLASS="function"
><A
HREF="msearch-c-api-udmenvfree.html"
>UdmEnvFree</A
></CODE
></TD
></TR
><TR
><TD
><CODE
CLASS="function"
><A
HREF="msearch-c-api-udmagentfree.html"
>UdmAgentFree</A
></CODE
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="msearch-c-api-udmagentfree.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="msearch-c-api-udmfind2.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>UdmAgentFree</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="msearch-c-api.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>UdmFind2</TD
></TR
></TABLE
></DIV
><!--#include virtual="body-after.html"--></BODY
></HTML
>