CDA CD 60 Spezifikationen Seite 50

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 91
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 49
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 50
EDT_MSG_INFO_1 (defined as EDTAPP_MSG_INFO_1 | EDTLIB_MSG_INFO_2 |
PDVLIB_MSG_INFO_2)
EDT_MSG_INFO_2 (defined as EDTAPP_MSG_INFO_2 | EDTLIB_MSG_INFO_2 |
PDVLIB_MSG_INFO_2)
Message levels are defined by flag bits, and each bit can be set or cleared individually. So for
example if you want a message handler to be called for fatal and warning application messages
only, you would specify EDTAPP_MSG_FATAL | EDTAPP_MSG_WARNING.
As you can see, the edt and pci dv libraries have their own message flags. These can be turned
on and off from within an application, and also by setting the environment variables
EDTDEBUG and PDVDEBUG, respectively, to values greater than zero.
Application programs would normally specify combinations of either the EDTAPP_MSG_ or
EDT_MSG flags for their messages.
Files
edt_error.h: header file (automatically included if edtinc.h is included)
edt_error.c: message subroutines
The EdtMsgHandler structure is defined in edt_error.h. Application programmers should not access
structure elements directly; instead always go through the error subroutines.
edt_msg_init
Description
Initializes a message handle to defaults. The message file is initialized to stderr. The output subroutine
pointer is set to fprintf (console output). The message level is set to EDT_MSG_WARNING |
EDT_MSG_FATAL.
Syntax
void edt_msg_init(EdtMsgHandler *msg_p)
Arguments
msg_p
pointer to message handler structure to initialize
Return
Void
Example
EdtMsgHandler msg_p;
edt_msg_init(&msg_p);
See Also
edt_msg_output
Seitenansicht 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 90 91

Kommentare zu diesen Handbüchern

Keine Kommentare