Program Listing for File plugin.h

Return to documentation for file (rcsw/er/plugin/plugin.h)

#pragma once

/*******************************************************************************
 * Includes
 ******************************************************************************/
#include "rcsw/er/er.h"

#if RCSW_CONFIG_ER_PLUGIN == RCSW_ER_PLUGIN_SIMPLE
#include "rcsw/er/plugin/simple.h"
#elif RCSW_CONFIG_ER_PLUGIN == RCSW_ER_PLUGIN_LOG4CL
#include "rcsw/er/plugin/log4cl.h"
#elif RCSW_CONFIG_ER_PLUGIN == RCSW_ER_PLUGIN_ZLOG
#include "rcsw/er/plugin/zlog.h"
#else
/* assume a custom ER plugin */
#endif

/*******************************************************************************
 * Macros
 ******************************************************************************/

#ifndef RCSW_ER_PLUGIN_PRINTF
#error "RCSW_ER_PLUGIN_PRINTF() not defined"
#endif

#ifndef RCSW_ER_PLUGIN_INIT
#error "RCSW_ER_PLUGIN_INIT() not defined"
#endif

#ifndef RCSW_ER_PLUGIN_DEINIT
#error "RCSW_ER_PLUGIN_DEINIT() not defined"
#endif

#ifndef RCSW_ER_PLUGIN_REPORT
#error "RCSW_ER_PLUGIN_REPORT() not defined"
#endif

#ifndef RCSW_ER_PLUGIN_INSMOD
#error "RCSW_ER_PLUGIN_INSMOD() not defined"
#endif

#ifndef RCSW_ER_PLUGIN_HANDLE
#error "RCSW_ER_PLUGIN_HANDLE() not defined"
#endif

#ifndef RCSW_ER_PLUGIN_LVL_CHECK
#error "RCSW_ER_PLUGIN_LVL_CHECK() not defined"
#endif

#ifndef RCSW_ER_PLUGIN_MODNAME_COMPONENT_SEPARATOR
#error "RCSW_ER_PLUGIN_MODNAME_COMPONENT_SEPARATOR not defined"
#endif