MmdbSGTL.sgm 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!-- $XConsortium: MmdbSGTL.sgm /main/5 1996/09/08 20:08:41 rws $ -->
  2. <!-- (c) Copyright 1996 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1996 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1996 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1996 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1996 Novell, Inc. -->
  7. <!-- (c) Copyright 1996 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1996 Hitachi. -->
  9. <![ %CDE.C.CDE; [<refentry id="CDE.INFO.DtMmdbSectionGetTocLoc">]]><refmeta><refentrytitle>
  10. DtMmdbSectionGetTocLoc</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  11. <refname><function>DtMmdbSectionGetTocLoc</function></refname><refpurpose>obtains
  12. the locator for a book's TOC section</refpurpose></refnamediv><refsynopsisdiv>
  13. <funcsynopsis>
  14. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  15. <funcdef>const char* <function>DtMmdbSectionGetTocLoc</function></funcdef>
  16. <paramdef>DtMmdbInfoRequest* <parameter>request</parameter></paramdef>
  17. </funcsynopsis>
  18. </refsynopsisdiv><refsect1>
  19. <title>DESCRIPTION</title>
  20. <para>The <function>DtMmdbSectionGetTocLoc</function> function
  21. returns the locator of the TOC section of the book that contains
  22. the specified section. Table lookup is
  23. involved if the section identifier is specified by the
  24. <symbol role="Variable">locator_ptr</symbol> field.
  25. </para>
  26. </refsect1><refsect1>
  27. <title>ARGUMENTS</title>
  28. <variablelist>
  29. <varlistentry><term><symbol role="Variable">request</symbol></term>
  30. <listitem>
  31. <para>Specifies the bookcase in the bookcase descriptor field and
  32. either the section's Database Engine identifier (in the
  33. <symbol role="Variable">primary_oid</symbol> field) or the
  34. section's logical identifier (in the <symbol role="Variable">locator_ptr</symbol>
  35. field). If both of these fields have a value,
  36. <function>DtMmdbSectionGetTocLoc</function> uses the
  37. <symbol role="Variable">locator_ptr</symbol> value.
  38. </para>
  39. </listitem>
  40. </varlistentry>
  41. </variablelist>
  42. </refsect1><refsect1>
  43. <title>RETURN VALUE</title>
  44. <para>If <function>DtMmdbSectionGetTocLoc</function> completes
  45. successfully, it returns a pointer to the book's TOC section.
  46. If it fails, it returns a NULL pointer.
  47. </para>
  48. </refsect1><refsect1>
  49. <title>EXAMPLE</title>
  50. <para>The following shows how a <function>DtMmdbSectionGetTocLoc</function> call
  51. might be coded.</para>
  52. <informalexample>
  53. <programlisting>DtMmdbInfoRequest request;
  54. /* fill the request here */
  55. locator = DtMmdbSectionGetTocLoc(&amp;request);
  56. </programlisting>
  57. </informalexample>
  58. </refsect1><refsect1>
  59. <title>SEE ALSO</title>
  60. <para>TO BE SUPPLIED
  61. </para>
  62. </refsect1></refentry>