MmdbOpIL.sgm 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!-- $XConsortium: MmdbOpIL.sgm /main/7 1996/09/08 20:07:50 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.DtMmdbOpenInfoLib">]]><refmeta><refentrytitle>
  10. DtMmdbOpenInfoLib</refentrytitle><manvolnum>library call</manvolnum></refmeta><refnamediv>
  11. <refname><function>DtMmdbOpenInfoLib</function></refname><refpurpose>opens an
  12. infolib for service</refpurpose></refnamediv><refsynopsisdiv>
  13. <funcsynopsis>
  14. <funcsynopsisinfo>#include &lt;DtMmdb.h></funcsynopsisinfo>
  15. <funcdef>int <function>DtMmdbOpenInfoLib</function></funcdef>
  16. <paramdef>const char* <parameter>infolib_path</parameter></paramdef><paramdef>const char* <parameter>selected_base_name</parameter></paramdef><paramdef>DtMmdbBool <parameter>delayed_infolib_init</parameter></paramdef></funcsynopsis>
  17. </refsynopsisdiv><refsect1>
  18. <title>DESCRIPTION</title>
  19. <para>The <function>DtMmdbOpenInfoLib</function> function opens an
  20. infolib for user access and returns the descriptor for the
  21. infolib. It makes the database engine ready to provide service
  22. for an infolib. To obtain information about an infolib, use
  23. the <function>DtMmdbInfoLibGetInfo</function> function.
  24. </para>
  25. </refsect1><refsect1>
  26. <title>ARGUMENTS</title>
  27. <variablelist>
  28. <varlistentry><term><symbol role="Variable">infolib_path</symbol></term>
  29. <listitem>
  30. <para>Specifies the absolute path for the infolib.</para>
  31. </listitem>
  32. </varlistentry>
  33. <varlistentry><term><symbol role="Variable">selected_base_name</symbol></term>
  34. <listitem>
  35. <para>Specifies a single bookcase to be accessed in this session. A NULL
  36. value indicates that all bookcases will be accessed.</para>
  37. </listitem>
  38. </varlistentry>
  39. <varlistentry><term><symbol role="Variable">delayed_infolib_init</symbol></term>
  40. <listitem>
  41. <para>Specifies whether the bookcase activation will be delayed until access
  42. time. If you specify <systemitem class="Constant">DtMmdbTrue</systemitem>,
  43. <function>DtMmdbOpenInfoLib</function> postpones the activation. This is
  44. useful when you want faster Dtinfo Database Engine initialization.</para>
  45. </listitem>
  46. </varlistentry>
  47. </variablelist>
  48. </refsect1><refsect1>
  49. <title>RETURN VALUE</title>
  50. <variablelist>
  51. <varlistentry><term>-1</term>
  52. <listitem>
  53. <para>The initialization failed.</para>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry><term>>=0</term>
  57. <listitem>
  58. <para>The initialization succeeded. The returned integer represents a valid
  59. infolib descriptor.</para>
  60. </listitem>
  61. </varlistentry>
  62. </variablelist>
  63. </refsect1><refsect1>
  64. <title>EXAMPLE</title>
  65. <para>The following shows how a <function>DtMmdbOpenInfoLib</function> call
  66. might be coded.</para>
  67. <informalexample>
  68. <programlisting>DtMmdbOpenInfoLib(myInfoLibPath, "myBookCase", DtMmdbFalse);
  69. </programlisting>
  70. </informalexample>
  71. </refsect1><refsect1>
  72. <title>SEE ALSO</title>
  73. <para>&cdeman.DtMmdbInfoLibGetInfo;, &cdeman.DtMmdbCloseInfoLib;</para>
  74. </refsect1></refentry><?Pub Caret>
  75. <?Pub *0000003874>