SrchMsgs.sgm 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!-- $XConsortium: dtsrmsgs.sgm 1996 -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<refentry id="CDE.SEARCH.DtSearchMessages">]]><refmeta>
  10. <refentrytitle>DtSearchMessages</refentrytitle><manvolnum>library call
  11. </manvolnum></refmeta>
  12. <refnamediv>
  13. <refname><function>DtSearchMessages</function></refname>
  14. <refpurpose>Access and manipulate messages on the DtSearch MessageList
  15. </refpurpose>
  16. </refnamediv>
  17. <refsynopsisdiv>
  18. <funcsynopsis>
  19. <funcsynopsisinfo>#include &lt;Dt/Search.h></funcsynopsisinfo>
  20. <funcdef>int <function>DtSearchHasMessages</function></funcdef>
  21. <paramdef></paramdef>
  22. <funcdef>void <function>DtSearchAddMessage</function></funcdef>
  23. <paramdef>const char <parameter>*msg</parameter></paramdef>
  24. <funcdef>char <function>*DtSearchGetMessages</function></funcdef>
  25. <paramdef></paramdef>
  26. <funcdef>void <function>DtSearchFreeMessages</function></funcdef>
  27. <paramdef></paramdef>
  28. </funcsynopsis>
  29. </refsynopsisdiv>
  30. <refsect1>
  31. <title>DESCRIPTION</title>
  32. <para>The DtSearch online search engine may assemble detailed user messages
  33. to explain various errors and failures. These messages are designed
  34. to provide a user with enough information to correct the error.
  35. Often more than one message is assembled onto the MessageList
  36. as the result of a single API call. The calling code may also
  37. append messages to the MessageList prior to display to the user.
  38. All messages remain on the MessageList and new messages are
  39. appended to the preexisting list until the list is specifically
  40. freed by the calling code.</para>
  41. <para><function>DtSearchHasMessages</function> returns zero if
  42. the MessageList is empty, and returns nonzero if there are any information
  43. or error messages currently on the MessageList.
  44. </para>
  45. <para><function>DtSearchAddMessage</function> appends a message to the end of
  46. the MessageList. A message is defined as a zero-terminated C string.
  47. </para>
  48. <para><function>DtSearchGetMessages</function> returns a static text buffer
  49. containing all current messages on the MessageList. The messages are
  50. returned as a single flat, zero-terminated C string, with two ASCII
  51. linefeed characters between messages (giving the appearance of a blank
  52. line between messages). It is expected that the calling code will
  53. display the text in a message dialog box or its equivalent. The returned
  54. buffer address is valid until the next call. If the MessageList is
  55. currently empty, this function returns a pointer to an empty string.
  56. </para>
  57. <para><function>DtSearchFreeMessages</function> clears all messages on the
  58. MessageList. It is usually called after the user has dismissed a dialog
  59. box displaying the current messages.
  60. </para>
  61. </refsect1>
  62. <refsect1>
  63. <title>SEE ALSO</title>
  64. <para>&cdeman.DtSrAPI;
  65. </para>
  66. </refsect1></refentry>