MmdbSsGD.sgm 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!-- $XConsortium: MmdbSsGD.sgm /main/5 1996/09/08 20:09:07 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.DtMmdbStylesheetGetData">]]><refmeta><refentrytitle>
  10. DtMmdbStylesheetGetData</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  11. <refname><function>DtMmdbStylesheetGetData</function></refname><refpurpose>obtains
  12. the data for a stylesheet object</refpurpose></refnamediv><refsynopsisdiv>
  13. <funcsynopsis>
  14. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  15. <funcdef>const char* <function>DtMmdbStylesheetGetData</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>DtMmdbStylesheetGetData</function> function
  22. returns the data for the stylesheet used by 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>DtMmdbStylesheetGetData</function> uses 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 (in bytes), 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>DtMmdbStylesheetGetData</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>DtMmdbStylesheetGetData</function> call
  59. might be coded.</para>
  60. <informalexample>
  61. <programlisting>DtMmdbInfoRequest request;
  62. /* fill the request here */
  63. request.primary_oid = DtMmdbSectionGetStyleSheetId(&amp;request);
  64. DtMmdbStylesheetGetName(&amp;request);
  65. </programlisting>
  66. </informalexample>
  67. </refsect1><refsect1>
  68. <title>SEE ALSO</title>
  69. <para>TO BE SUPPLIED
  70. </para>
  71. </refsect1></refentry>