SrchGetK.sgm 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!-- $XConsortium: dtsrgkey.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.DtSearchGetKeytypes">]]>
  10. <refmeta>
  11. <refentrytitle>
  12. DtSearchGetKeytypes
  13. </refentrytitle>
  14. <manvolnum>library call</manvolnum>
  15. </refmeta>
  16. <refnamediv>
  17. <refname><function>DtSearchGetKeytypes</function></refname>
  18. <refpurpose>Access the Keytypes array for a DtSearch database</refpurpose>
  19. </refnamediv>
  20. <refsynopsisdiv>
  21. <FuncSynopsis>
  22. <FuncSynopsisInfo>#include &lt;Dt/Search.h></FuncSynopsisInfo>
  23. <FuncDef>int <Function>DtSearchGetKeytypes</Function></FuncDef>
  24. <ParamDef>char <Parameter>*dbname</Parameter></ParamDef>
  25. <ParamDef>int <Parameter>*ktcount</Parameter></ParamDef>
  26. <ParamDef>DtSrKeytype <Parameter>**keytypes</Parameter></ParamDef>
  27. </FuncSynopsis>
  28. </refsynopsisdiv>
  29. <refsect1>
  30. <title>DESCRIPTION</title>
  31. <para>The <function>DtSearchGetKeytypes</function> function returns a pointer
  32. to the keytypes array of the specified database. The caller may modify
  33. the <symbol role="Variable">is_selected</symbol> member of any
  34. DtSrKeytype but should not alter any other member values.
  35. </para>
  36. <para>This function may be called anytime after <function>DtSearchInit</function>.</para>
  37. </refsect1><refsect1>
  38. <title>ARGUMENTS</title>
  39. <variablelist>
  40. <varlistentry><term><symbol role="Variable">dbname</symbol></term>
  41. <listitem>
  42. <para>Specifies for which database the keytypes are requested. It is any one
  43. of the database name strings from the array returned from
  44. <function>DtSearchInit</function> or
  45. <function>DtSearchReinit</function>. If <symbol role="Variable">dbname</symbol>
  46. is NULL, the first database name string
  47. in the array is used.
  48. </para>
  49. </listitem>
  50. </varlistentry>
  51. <varlistentry><term><symbol role="Variable">ktcount</symbol></term>
  52. <listitem>
  53. <para>Specifies the address of the integer where the keytypes array size will be stored.
  54. </para>
  55. </listitem>
  56. </varlistentry>
  57. <varlistentry><term><symbol role="Variable">keytypes</symbol></term>
  58. <listitem>
  59. <para>Specifies the address where pointer to keytypes array will be stored.
  60. </para>
  61. </listitem>
  62. </varlistentry>
  63. </variablelist>
  64. </refsect1><refsect1>
  65. <title>RETURN VALUE</title>
  66. <para>Returns <systemitem class="constant">DtSrOK</systemitem> and keytypes
  67. pointer and size.
  68. </para>
  69. <para>Any API function can also return <systemitem class="constant">DtSrREINIT</systemitem> or the return codes for fatal
  70. engine errors, as well as messages on the MessageList, at any time.
  71. </para>
  72. </refsect1><refsect1>
  73. <title>SEE ALSO</title>
  74. <para>&cdeman.dtsrcreate;,
  75. &cdeman.DtSearchQuery;,
  76. &cdeman.DtSrAPI;,
  77. &cdeman.DtSearch;
  78. </para>
  79. </refsect1>
  80. </refentry>