openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/modules.c
static rsRetVal queryHostEtryPt(uchar* name, rsRetVal (**pEtryPoint)())
{
    DEFiRet;

    if ((name == NULL) || (pEtryPoint == NULL))
        ABORT_FINALIZE(RS_RET_PARAM_ERROR);

    if (!strcmp((char*)name, "regCfSysLineHdlr"))
    {
        *pEtryPoint = regCfSysLineHdlr;
    }
    else if (!strcmp((char*)name, "objGetObjInterface"))
    {
        *pEtryPoint = objGetObjInterface;
    }
    else if (!strcmp((char*)name, "OMSRgetSupportedTplOpts"))
    {
        *pEtryPoint = OMSRgetSupportedTplOpts;
    }
    else if (!strcmp((char*)name, "queryCoreFeatureSupport"))
    {
        *pEtryPoint = queryCoreFeatureSupport;
    }
    else
    {
        *pEtryPoint = NULL; /* to  be on the safe side */
        ABORT_FINALIZE(RS_RET_ENTRY_POINT_NOT_FOUND);
    }

finalize_it:
    RETiRet;
}
/* The following function is the queryEntryPoint for host-based entry points.
 * Modules may call it to get access to core interface functions. Please note
 * that utility functions can be accessed via shared libraries - at least this
 * is my current shool of thinking.
 * Please note that the implementation as a query interface allows to take
 * care of plug-in interface version differences. -- rgerhards, 2007-07-31
 * ... but often it better not to use a new interface. So we now add core
 * functions here that a plugin may request. -- rgerhards, 2009-04-22
 */
The following function is the queryEntryPoint for host-based entry points.
Modules may call it to get access to core interface functions. Please note
that utility functions can be accessed via shared libraries - at least this
is my current shool of thinking.
Please note that the implementation as a query interface allows to take
care of plug-in interface version differences. -- rgerhards, 2007-07-31
but often it better not to use a new interface. So we now add core
functions here that a plugin may request.
The following function is the queryEntryPoint for host - based entry points . Modules may call it to get access to core interface functions . Please note that utility functions can be accessed via shared libraries - at least this is my current shool of thinking . Please note that the implementation as a query interface allows to take care of plug - in interface version differences . -- rgerhards 2007 - 07 - 31 but often it better not to use a new interface . So we now add core functions here that a plugin may request .
static rsRetVal queryHostEtryPt(uchar* name, rsRetVal (**pEtryPoint)())
{
    DEFiRet;
    if ((name == NULL) || (pEtryPoint == NULL))
        ABORT_FINALIZE(RS_RET_PARAM_ERROR);
    if (!strcmp((char*)name, "regCfSysLineHdlr"))
    {
        *pEtryPoint = regCfSysLineHdlr;
    }
    else if (!strcmp((char*)name, "objGetObjInterface"))
    {
        *pEtryPoint = objGetObjInterface;
    }
    else if (!strcmp((char*)name, "OMSRgetSupportedTplOpts"))
    {
        *pEtryPoint = OMSRgetSupportedTplOpts;
    }
    else if (!strcmp((char*)name, "queryCoreFeatureSupport"))
    {
        *pEtryPoint = queryCoreFeatureSupport;
    }
    else
    {
        *pEtryPoint = NULL; 
        ABORT_FINALIZE(RS_RET_ENTRY_POINT_NOT_FOUND);
    }
finalize_it:
    RETiRet;
}
static rsRetVal queryHostEtryPt ( uchar * name , rsRetVal ( * * pEtryPoint ) ( ) ) { DEFiRet ; if ( ( name == NULL ) || ( pEtryPoint == NULL ) ) ABORT_FINALIZE ( RS_RET_PARAM_ERROR ) ; if ( ! strcmp ( ( char * ) name , " " ) ) { * pEtryPoint = regCfSysLineHdlr ; } else if ( ! strcmp ( ( char * ) name , " " ) ) { * pEtryPoint = objGetObjInterface ; } else if ( ! strcmp ( ( char * ) name , " " ) ) { * pEtryPoint = OMSRgetSupportedTplOpts ; } else if ( ! strcmp ( ( char * ) name , " " ) ) { * pEtryPoint = queryCoreFeatureSupport ; } else { * pEtryPoint = NULL ; ABORT_FINALIZE ( RS_RET_ENTRY_POINT_NOT_FOUND ) ; } finalize_it : RETiRet ; }
The following function is the queryEntryPoint for host-based entry points.
The following function is the queryEntryPoint for host - based entry points .
/* to  be on the safe side */