MmdbSeGD.sgm 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!-- $XConsortium: MmdbSeGD.sgm /main/5 1996/09/08 20:08:49 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.DtMmdbSectionGetData">]]><refmeta><refentrytitle>
  10. DtMmdbSectionGetData</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  11. <refname><function>DtMmdbSectionGetData</function></refname><refpurpose>obtains
  12. the data for a section</refpurpose></refnamediv><refsynopsisdiv>
  13. <funcsynopsis>
  14. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  15. <funcdef>const char* <function>DtMmdbSectionGetData</function></funcdef>
  16. <paramdef>DtMmdbInfoRequest* <parameter>request</parameter></paramdef>
  17. <paramdef>unsigned int* <parameter>length</parameter></paramdef>
  18. </funcsynopsis>
  19. </refsynopsisdiv><refsect1>
  20. <title>DESCRIPTION</title>
  21. <para>The <function>DtMmdbSectionGetData</function> function
  22. returns the data for the specified section. Do not use the
  23. <function>free</function> function on the returned pointer. Table lookup is
  24. involved if the section identifier is specified by the
  25. <symbol role="Variable">locator_ptr</symbol> field.
  26. </para>
  27. </refsect1><refsect1>
  28. <title>ARGUMENTS</title>
  29. <variablelist>
  30. <varlistentry><term><symbol role="Variable">request</symbol></term>
  31. <listitem>
  32. <para>Specifies the bookcase in the bookcase descriptor field and
  33. either the section's Database Engine identifier (in the
  34. <symbol role="Variable">primary_oid</symbol> field) or the
  35. section's logical identifier (in the <symbol role="Variable">locator_ptr</symbol>
  36. field). If both of these fields have a value,
  37. <function>DtMmdbSectionGetData</function> ignores the
  38. <symbol role="Variable">locator_ptr</symbol> value.
  39. </para>
  40. </listitem>
  41. </varlistentry>
  42. <varlistentry><term><symbol role="Variable">length</symbol></term>
  43. <listitem>
  44. <para>Specifies the variable to receive the length of the
  45. returned data, if the returned pointer to the data is not NULL.
  46. </para>
  47. </listitem>
  48. </varlistentry>
  49. </variablelist>
  50. </refsect1><refsect1>
  51. <title>RETURN VALUE</title>
  52. <para>If <function>DtMmdbSectionGetData</function> completes
  53. successfully, it returns a pointer to a NULL-terminated data string.
  54. If it fails, it returns a NULL pointer.
  55. </para>
  56. </refsect1><refsect1>
  57. <title>EXAMPLE</title>
  58. <para>The following shows how a <function>DtMmdbSectionGetData</function> call
  59. might be coded.</para>
  60. <informalexample>
  61. <programlisting>DtMmdbInfoRequest request;
  62. /* fill the request */
  63. DtMmdbSectionGetData(&amp;request, 0);
  64. </programlisting>
  65. </informalexample>
  66. </refsect1><refsect1>
  67. <title>SEE ALSO</title>
  68. <para>TO BE SUPPLIED
  69. </para>
  70. </refsect1></refentry>