Defines | Enumerations | Functions

/home/bifh6/cs2009q3-i386/work/applauncherd-0.30.5+rq730927+0m6/src/invoker/report.h File Reference

Go to the source code of this file.

Defines

#define ATTR_NORET
#define debug(msg,...)   report(report_debug, msg, ##__VA_ARGS__)
#define info(msg,...)   report(report_info, msg, ##__VA_ARGS__)
#define warning(msg,...)   report(report_warning, msg, ##__VA_ARGS__)
#define error(msg,...)   report(report_error, msg, ##__VA_ARGS__)

Enumerations

enum  report_output { report_console, report_syslog, report_none }
enum  report_type {
  report_debug, report_info, report_warning, report_error,
  report_fatal
}

Functions

void report_set_output (enum report_output new_output)
void report (enum report_type type, char *msg,...)
void ATTR_NORET die (int status, char *msg,...)

Define Documentation

#define ATTR_NORET

Definition at line 26 of file report.h.

#define debug (   msg,
  ... 
)    report(report_debug, msg, ##__VA_ARGS__)

Definition at line 47 of file report.h.

#define error (   msg,
  ... 
)    report(report_error, msg, ##__VA_ARGS__)

Definition at line 54 of file report.h.

#define info (   msg,
  ... 
)    report(report_info, msg, ##__VA_ARGS__)

Definition at line 52 of file report.h.

#define warning (   msg,
  ... 
)    report(report_warning, msg, ##__VA_ARGS__)

Definition at line 53 of file report.h.


Enumeration Type Documentation

Enumerator:
report_console 
report_syslog 
report_none 

Definition at line 29 of file report.h.

Enumerator:
report_debug 
report_info 
report_warning 
report_error 
report_fatal 

Definition at line 35 of file report.h.


Function Documentation

void ATTR_NORET die ( int  status,
char *  msg,
  ... 
)

Definition at line 99 of file report.c.

References report_fatal, and vreport().

void report ( enum report_type  type,
char *  msg,
  ... 
)

Definition at line 90 of file report.c.

References vreport().

void report_set_output ( enum report_output  new_output  ) 

Definition at line 29 of file report.c.

References output, and report_syslog.