mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@3 8ec27952-4edc-4aab-86aa-e87bb2611832
35 lines
558 B
C
35 lines
558 B
C
/**
|
|
* Some helper functions
|
|
*
|
|
* @author Steffen Vogel <steffen.vogel@rwth-aachen.de>
|
|
* @copyright 2014, Institute for Automation of Complex Power Systems, EONERC
|
|
*/
|
|
|
|
#ifndef _UTILS_H_
|
|
#define _UTILS_H_
|
|
|
|
#include <stdarg.h>
|
|
|
|
enum log_level
|
|
{
|
|
DEBUG,
|
|
INFO,
|
|
WARN,
|
|
ERROR,
|
|
FATAL
|
|
};
|
|
|
|
/**
|
|
* @brief Logs variadic messages to stdout
|
|
* @param lvl The log level
|
|
* @param fmt The format string (printf alike)
|
|
*/
|
|
void print(enum log_level lvl, const char *fmt, ...);
|
|
|
|
/**
|
|
* @brief Print short usage info to stdout
|
|
*/
|
|
void usage();
|
|
|
|
#endif /* _UTILS_H_ */
|
|
|