SrchRein.sgm 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!-- $XConsortium: dtsrrein.sgm 1996 -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<refentry id="CDE.SEARCH.DtSearchReinit">]]>
  10. <refmeta><refentrytitle>DtSearchReinit</refentrytitle>
  11. <manvolnum>library call</manvolnum>
  12. </refmeta>
  13. <refnamediv>
  14. <refname><function>DtSearchReinit</function></refname>
  15. <refpurpose>Reinitialize the DtSearch online API
  16. </refpurpose></refnamediv><refsynopsisdiv>
  17. <funcsynopsis>
  18. <funcsynopsisinfo>#include &lt;Dt/Search.h></funcsynopsisinfo>
  19. <funcdef>int <function>DtSearchReinit</function></funcdef>
  20. <paramdef>char <parameter>***dbnames</parameter></paramdef>
  21. <paramdef>int <parameter>*dbcount</parameter></paramdef>
  22. </funcsynopsis></refsynopsisdiv><refsect1>
  23. <title>DESCRIPTION</title>
  24. <para><function>DtSearchReinit</function> closes and reopens databases and
  25. other files as necessary, and reinitializes the search engine API.
  26. </para>
  27. <para>It is typically used after either databases or the ocf file have been externally
  28. changed to force the search engine to reinitialize itself, and to acquire
  29. the new database names if any.
  30. </para>
  31. <para>It can also be used after any function returns
  32. <systemitem class="constant">DtSrREINIT</systemitem> to acquire
  33. the new database names.
  34. </para>
  35. </refsect1>
  36. <refsect1>
  37. <title>ARGUMENTS</title>
  38. <variablelist>
  39. <varlistentry><term><symbol role="Variable">dbnames</symbol></term>
  40. <listitem>
  41. <para>Specifies the address where a pointer to an array of static database
  42. name string pointers will be placed. The
  43. <symbol role="Variable">dbnames</symbol> pointer from a previous
  44. <function>DtSearchInit</function> or <function>DtSearchReinit</function>
  45. may no longer be valid. Each string identifies a single successfully
  46. opened database.
  47. </para>
  48. <para>A database name string from this array is required for most other API
  49. function calls. The <symbol role="Variable">dbn</symbol> member in
  50. <structname>DtSrResult</structname> is an index into this array.
  51. </para>
  52. </listitem>
  53. </varlistentry>
  54. <varlistentry><term><symbol role="Variable">dbcount</symbol></term>
  55. <listitem>
  56. <para>Specifies a pointer where the size of the
  57. <symbol role="Variable">dbnames</symbol> array will be stored.
  58. </para>
  59. </listitem>
  60. </varlistentry>
  61. </variablelist>
  62. </refsect1>
  63. <refsect1>
  64. <title>RETURN VALUE</title>
  65. <para><function>DtSearchReinit</function> returns <systemitem class="constant">DtSrOK</systemitem> and the current
  66. <symbol role="Variable">dbnames</symbol> array if the reinitialization was
  67. successful or if reinitialization was not necessary.
  68. </para>
  69. <para>It returns <systemitem class="constant">DtSrERROR</systemitem> and
  70. messages on the MessageList on any other condition.
  71. </para>
  72. </refsect1>
  73. <refsect1>
  74. <title>SEE ALSO</title>
  75. <para>&cdeman.DtSrAPI;,
  76. &cdeman.DtSearchInit;,
  77. &cdeman.DtSearchGetMessages;,
  78. &cdeman.dtsrocffile;,
  79. &cdeman.DtSearch;
  80. </para>
  81. </refsect1></refentry>