Common Desktop Environment: ToolTalk Messaging Overview


Tt_message   ttdt_file_notice(
     Tt_message      context,
  	  Tttk_op         op,
  	  T_scope         scope,
  	  const char *    pathname,
  	  int             send_and_destroy );  

The ttdt_file_notice() function creates and, optionally, sends a standard ToolTalk notice about a file. Use this function to create the following standard file notices: Created, Deleted, Moved, Reverted, Saved, and Modified.

Note -

The ttdt_file_event() function is a higher-level interface than the ttdt_file_notice() function and is the preferred method to send all notices except the Moved notice.

If an error occurs, an error pointer is returned. Use tt_ptr_error to find out the Tt_status. Table A-7 describes possible errors returned by this function.

Table A-7 Possible Errors Returned by ttdt_file_notice

Error Returned 



The ttsession process is not available. The ToolTalk service tries to restart ttsession if it is not running. This error indicates that the ToolTalk service is either not installed or not installed correctly. 


The process identifier specified is out of date or invalid. 


There is not enough memory available to perform the operation. 


The ToolTalk service has received the maximum amount of active messages (2000) it can properly handle. 


The ToolTalk service could not access the ToolTalk database needed for this operation. 


The ToolTalk service did not find the specified ToolTalk database in the expected place. 


The operation was moved, and the value of the send_and_destroy parameter was true.


The path name was null, or was a ToolTalk error pointer.