MmdbTGPI.sgm 2.5 KB

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