*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> DtSearchGetMessages (3)              
Title
Content
Arch
Section
 

Contents


 DtSearchMessages(library call)               DtSearchMessages(library call)




 NAME    [Toc]    [Back]
      DtSearchMessages - Access and manipulate messages on the DtSearch
      MessageList

 SYNOPSIS    [Toc]    [Back]
      #include <Dt/Search.h>
      int DtSearchHasMessages(
      ,
      void DtSearchAddMessage(
      const char *msg,
      char *DtSearchGetMessages(
      ,
      void DtSearchFreeMessages(
      );

 DESCRIPTION    [Toc]    [Back]
      The DtSearch online search engine may assemble detailed user messages
      to explain various errors and failures. These messages are designed to
      provide a user with enough information to correct the error.  Often
      more than one message is assembled onto the MessageList as the result
      of a single API call. The calling code may also append messages to the
      MessageList prior to display to the user.  All messages remain on the
      MessageList and new messages are appended to the preexisting list
      until the list is specifically freed by the calling code.

      DtSearchHasMessages returns zero if the MessageList is empty, and
      returns nonzero if there are any information or error messages
      currently on the MessageList.

      DtSearchAddMessage appends a message to the end of the MessageList. A
      message is defined as a zero-terminated C string.

      DtSearchGetMessages returns a static text buffer containing all
      current messages on the MessageList. The messages are returned as a
      single flat, zero-terminated C string, with two ASCII linefeed
      characters between messages (giving the appearance of a blank line
      between messages). It is expected that the calling code will display
      the text in a message dialog box or its equivalent. The returned
      buffer address is valid until the next call. If the MessageList is
      currently empty, this function returns a pointer to an empty string.

      DtSearchFreeMessages clears all messages on the MessageList. It is
      usually called after the user has dismissed a dialog box displaying
      the current messages.

 SEE ALSO    [Toc]    [Back]
      DtSrAPI(3)


                                    - 1 -       Formatted:  January 24, 2005
[ Back ]
      
      
 Similar pages
Name OS Title
DtSearchGetKeytypes HP-UX Access the Keytypes array for a DtSearch database
mdGetStatus IRIX manipulate MIDI messages
writesrv Tru64 Lets users send messages to and receive messages from a remote system
mailauth Tru64 manipulate alternate authorization database for Post Office Protocol (POP), Internet Message Access ...
DtSearchReinit HP-UX Reinitialize the DtSearch online API
DtSearchSetMaxResults HP-UX Set the DtSearch maximum results value
DtSearchMergeResults HP-UX Merge two DtSearch results lists into one
DtSearchSortResults HP-UX Sort DtSearch results lists
DtSearchGetMaxResults HP-UX Obtain the DtSearch maximum results value
DtSearchQuery HP-UX Perform a DtSearch database search for a specified query
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service