MmdbSGBI.sgm 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!-- $XConsortium: MmdbSGBI.sgm /main/6 1996/09/08 20:07:59 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.DtMmdbSectionGetBookId">]]><refmeta><refentrytitle>
  10. DtMmdbSectionGetBookId</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  11. <refname><function>DtMmdbSectionGetBookId</function></refname><refpurpose>obtains
  12. the object identifier of a book
  13. </refpurpose></refnamediv><refsynopsisdiv>
  14. <funcsynopsis>
  15. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  16. <funcdef>DtMmdbHandle* <function>DtMmdbSectionGetBookId</function></funcdef>
  17. <paramdef>DtMmdbInfoRequest* <parameter>request</parameter></paramdef>
  18. </funcsynopsis>
  19. </refsynopsisdiv><refsect1>
  20. <title>DESCRIPTION</title>
  21. <para>The <function>DtMmdbSectionGetBookId</function> function
  22. returns the object identifier of the book that contains the
  23. specified section. Use the <function>DtMmdbFreeHandle</function> function
  24. to release the identifier when it is no longer needed. Table lookup is
  25. involved if the section identifier is specified by the
  26. <symbol role="Variable">locator_ptr</symbol> field.
  27. </para>
  28. </refsect1><refsect1>
  29. <title>ARGUMENTS</title>
  30. <variablelist>
  31. <varlistentry><term><symbol role="Variable">request</symbol></term>
  32. <listitem>
  33. <para>Specifies the bookcase in the bookcase descriptor field and
  34. either the section's Database Engine identifier (in the
  35. <symbol role="Variable">primary_oid</symbol> field) or the
  36. section's logical identifier (in the <symbol role="Variable">locator_ptr</symbol>
  37. field). If both of these fields have a value,
  38. <function>DtMmdbSectionGetBookId</function> uses the
  39. <symbol role="Variable">locator_ptr</symbol> value.
  40. </para>
  41. </listitem>
  42. </varlistentry>
  43. </variablelist>
  44. </refsect1><refsect1>
  45. <title>RETURN VALUE</title>
  46. <para>If <function>DtMmdbSectionGetBookId</function> completes
  47. successfully, it returns a pointer to the book's object identifier.
  48. If it fails, it returns a NULL pointer.
  49. </para>
  50. </refsect1><refsect1>
  51. <title>EXAMPLE</title>
  52. <para>The following shows how a <function>DtMmdbSectionGetBookId</function> call
  53. might be coded.</para>
  54. <informalexample>
  55. <programlisting>DtMmdbInfoRequest request;
  56. /* fill the request here */
  57. handle = DtMmdbSectionGetTocLoc(&amp;request);
  58. </programlisting>
  59. </informalexample>
  60. </refsect1><refsect1>
  61. <title>SEE ALSO</title>
  62. <para>&cdeman.DtMmdbFreeHandle;
  63. </para>
  64. </refsect1></refentry>