
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 52
edt_msg_set_level(msg_p, EDT_MSG_FATAL | EDT_MSG_WARNING);
if (edt_access(fname, 0) != 0)
edt_msg_output(msg_p, EDTAPP_MSG_WARNING, "file '%s' not
found", fname);
edt_msg_close
Description
Closes and frees up memory associated with a message handle. Use only on message handles that have
been explicitly initialized by edt_msg_init. Do not try to close the default message handle.
Syntax
int edt_msg_close(EdtMsgHandler *msg_p)
Arguments
msg_p
the message handle to close
Return
0 on success, -1 on failure
edt_msg_set_level
Description
Sets the "message level" flag bits that determine whether to call the message handler for a given
message. The flags set by this function are ANDed with the flags set in each edt_msg call, to determine
whether the call goes to the message function and actually results in any output.
Syntax
void edt_msg_set_level(EdtMsgHandler *msg_p, int newlevel)
Arguments
msg_p
the message handle
Example
edt_msg_set_level(edt_msg_default_level(),
EDT_MSG_FATAL|EDT_MSG_WARNING);
Return
Void
edt_msg_set_function
Description
Sets the function to call when a message event occurs. The default message function is printf (outputs
to the console); edt_msg_set_function allows programmers to substitute any type of message handler
(pop-up callback, file write, etc).
Syntax
void edt_msg_set_function(EdtErrorFunction f)
Comentarios a estos manuales