Download CDA CD 60 Specifications
Transcript
PCI CD and PCI CDa edt_msg Description Submits a message to the default message handler, which will conditionally (based on the flag bits) send the message as an argument to the default message handler function. Uses the default message handle, and is equivalent to calling edt_msg_output(edt_msg_default_handle(), ...). To submit a message for handling from other than the default message handle, use edt_msg_output. Syntax int edt_msg(int level, char *format, ...) Arguments level an integer variable that contains flag bits indicating what 'level' message it is. Flag bits are described in the overview. format a string and arguments describing the format. Uses vsprintf to print formatted text to a string, and sends the result to the handler subroutine. Refer to the printf manual page for formatting flags and options. Return Void Example edt_msg(EDTAPP_MSG_WARNING, "file '%s' not found", fname); edt_msg_output Description Submits a message using the msg_p message handle, which will conditionally (based on the flag bits) send the message as an argument to the handle's message handler function. To submit a message for handling by the default message handle, edt_msg. Syntax int edt_msg_output(EdtMsgHandler *msg_p, int level, char *format, ...) Arguments msg_p pointer to message handler, initiailzed by edt_msg_init level an integer variable that contains flag bits indicating what 'level' message it is. Flag bits are described in the overview. format a string and arguments describing the format. Uses vsprintf to print formatted text to a string, and sends the result to the handler subroutine. Refer to the printf manual page for formatting flags and options. Return Void Example EdtMsgHandler msg_p; edt_msg_init(&msg_p); edt_msg_set_function(msg_p, (EdtMsgFunction *)my_error_popup); Document Number: 008-00965-06 Template: edt.dot EDT Public Revision: I December 2004 Page 51