GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> MSG / dev > msg_st / rhel5-32
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <PBS/MBA.h>
#include <MSG/MSG_pubdefs.h>
#include <MSG/MSG_msgs.h>
#include <MSG_prvdefs.h>
Functions | |
MSG_Level | MSG_getLevel () |
Get the current reporting level. | |
MSG_Level | MSG_getLevel4Task (void **tbd) |
No meaning in the single-threaded context ... call is ignored. | |
const char * | MSG_getTask () |
Return pointer to task name. | |
unsigned short | MSG_getTrace () |
Get the current trace buffer number. | |
MSG_Level | MSG_setLevel (MSG_Level newval) |
Set the current reporting level. | |
MSG_Level | MSG_setLevel4Task (void **tbd, MSG_Level newval) |
No meaning in the single-threaded context ... call is ignored. | |
unsigned int | MSG_setTask (const char *task) |
Set the task name. | |
unsigned short | MSG_setTrace (unsigned short newval) |
Set the current trace buffer number. | |
Variables | |
static MSG_TaskOption | MSG_taskOption = { 1, MSG_D_LEVEL, MSG_D_TRACE } |
Static variable providing the reporting level and trace buffer number. | |
static const char | MSG_defaultTask [] = { "UND>" } |
Static variable providing a default task name. | |
static const char * | MSG_task = MSG_defaultTask |
Variable to record the task name. |
CVS $Id: MSG_report_st.c,v 1.5 2011/03/25 01:05:53 apw Exp $
MSG_Level MSG_getLevel | ( | void | ) |
Get the current reporting level.
References _MSG_TaskOption::level.
Referenced by MSG_reportInternal().
MSG_Level MSG_getLevel4Task | ( | void ** | tbd | ) |
No meaning in the single-threaded context ... call is ignored.
tbd | (in) Pointer to arbitrary task's TBD block |
References _MSG_TaskOption::level.
const char* MSG_getTask | ( | void | ) |
Return pointer to task name.
Referenced by MSG_outputScan(), and MSG_reportInternal().
unsigned short MSG_getTrace | ( | void | ) |
Get the current trace buffer number.
References _MSG_TaskOption::trace.
Referenced by MSG_outputScan(), and MSG_reportInternal().
Set the current reporting level.
newval | (in) Reporting level to be set |
References _MSG_TaskOption::level, MSG_LVL_ERROR, and MSG_LVL_SUCCESS.
No meaning in the single-threaded context ... call is ignored.
tbd | (in) Pointer to arbitrary task's TBD block | |
newval | (in) Reporting level to be set |
References _MSG_TaskOption::level.
unsigned int MSG_setTask | ( | const char * | task | ) |
Set the task name.
task | (in) Pointer to task name |
MSG_ALOCFAIL | Could not allocate storage for task name string | |
MSG_TNM2LONG | Task name too long | |
MSG_SUCCESS | Success |
References MSG_L_TSKNAME.
unsigned short MSG_setTrace | ( | unsigned short | newval | ) |
Set the current trace buffer number.
newval | (in) Trace buffer number to set |
References _MSG_TaskOption::trace.