MmdbBGTO.sgm 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!-- $XConsortium: MmdbBGTO.sgm /main/6 1996/09/08 20:05:25 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.DtMmdbBookGetTocObject">]]><refmeta><refentrytitle>
  10. DtMmdbBookGetTocObjectId</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  11. <refname><function>DtMmdbBookGetTocObjectId</function></refname><refpurpose>obtains
  12. the locator of a book's TOC section</refpurpose></refnamediv><refsynopsisdiv>
  13. <funcsynopsis>
  14. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  15. <funcdef>DtMmdbHandle* <function>DtMmdbBookGetTocObjectId</function></funcdef>
  16. <paramdef>DtMmdbInfoRequest* <parameter>request</parameter></paramdef>
  17. </funcsynopsis>
  18. </refsynopsisdiv><refsect1>
  19. <title>DESCRIPTION</title>
  20. <para>The <function>DtMmdbBookGetTocObjectId</function> function
  21. returns the object identifier of the specified book's TOC section.
  22. Use the <function>DtMmdbFreeHandleList</function>
  23. function to release the memory when the object identifier is no
  24. longer needed. Table lookup is
  25. involved when the identifier is specified by either the
  26. <symbol role="Variable">primary_oid</symbol> or
  27. <symbol role="Variable">sequence_num</symbol> field.
  28. </para>
  29. </refsect1><refsect1>
  30. <title>ARGUMENTS</title>
  31. <variablelist>
  32. <varlistentry><term><symbol role="Variable">request</symbol></term>
  33. <listitem>
  34. <para>Specifies the bookcase in the bookcase descriptor field, as well
  35. as a valid value in the <symbol role="Variable">primary_oid</symbol>, the
  36. <symbol role="Variable">secondary_oid</symbol>, or the
  37. <symbol role="Variable">sequence_num</symbol> field.
  38. The <symbol role="Variable">primary_oid</symbol> represents the
  39. DtInfo Database object identifier of the TOC section; the
  40. <symbol role="Variable">secondary_oid</symbol> represents the
  41. object identifier of the book itself; and the
  42. <symbol role="Variable">sequence_num</symbol> represents
  43. the sequence number of the book within the bookcase (0 based).
  44. If more than one of these fields have a valid value, the
  45. order of precedence is:
  46. <symbol role="Variable">primary_oid</symbol>,
  47. <symbol role="Variable">secondary_oid</symbol>, and, last,
  48. <symbol role="Variable">sequence_num</symbol>.
  49. </para>
  50. </listitem>
  51. </varlistentry>
  52. </variablelist>
  53. </refsect1><refsect1>
  54. <title>RETURN VALUE</title>
  55. <para>If <function>DtMmdbBookGetTocObjectId</function> completes
  56. successfully, it returns a pointer to the object identifier
  57. for the book's TOC section. If it fails, it returns a NULL pointer.
  58. </para>
  59. </refsect1><refsect1>
  60. <title>EXAMPLE</title>
  61. <para>The following shows how a <function>DtMmdbBookGetTocObjectId</function> call
  62. might be coded.</para>
  63. <informalexample>
  64. <programlisting>DtMmdbInfoRequest request;
  65. request.bookcase_descriptor = DtMmdbGetBookCase(myInfoLibPtr, "myBase");
  66. request.sequence_num = 1;
  67. DtMmdbBookGetTocObjectId(&amp;request);
  68. </programlisting>
  69. </informalexample>
  70. </refsect1><refsect1>
  71. <title>SEE ALSO</title>
  72. <para>TO BE SUPPLIED.
  73. </para>
  74. <!--
  75. &cdeman.DtMmdbBookGetTabList;,
  76. &cdeman.DtMmdbBookGetTabList;
  77. -->
  78. </refsect1></refentry>