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 cfgmodules_etry_t* GetNxtCnfType(rsconf_t* cnf, cfgmodules_etry_t* node,
                                        eModType_t rqtdType)
{
    if (node == NULL)
    { /* start at beginning of module list */
        node = cnf->modules.root;
    }
    else
    {
        node = node->next;
    }

    if (rqtdType != eMOD_ANY)
    { /* if any, we already have the right one! */
        while (node != NULL && node->pMod->eType != rqtdType)
        {
            node = node->next;
        }
    }

    return node;
}
/* this function is like GetNxt(), but it returns pointers to
 * the configmodules entry, which than can be used to obtain the
 * actual module pointer. Note that it returns those for
 * modules of specific type only. Only modules from the provided
 * config are returned. Note that processing speed could be improved,
 * but this is really not relevant, as config file loading is not really
 * something we are concerned about in regard to runtime.
 */
this function is like GetNxt(), but it returns pointers to
the configmodules entry, which than can be used to obtain the
actual module pointer. Note that it returns those for
modules of specific type only. Only modules from the provided
config are returned. Note that processing speed could be improved,
but this is really not relevant, as config file loading is not really
something we are concerned about in regard to runtime.
this function is like GetNxt () but it returns pointers to the configmodules entry which than can be used to obtain the actual module pointer . Note that it returns those for modules of specific type only . Only modules from the provided config are returned . Note that processing speed could be improved but this is really not relevant as config file loading is not really something we are concerned about in regard to runtime .
static cfgmodules_etry_t* GetNxtCnfType(rsconf_t* cnf, cfgmodules_etry_t* node,
                                        eModType_t rqtdType)
{
    if (node == NULL)
    { 
        node = cnf->modules.root;
    }
    else
    {
        node = node->next;
    }
    if (rqtdType != eMOD_ANY)
    { 
        while (node != NULL && node->pMod->eType != rqtdType)
        {
            node = node->next;
        }
    }
    return node;
}
static cfgmodules_etry_t * GetNxtCnfType ( rsconf_t * cnf , cfgmodules_etry_t * node , eModType_t rqtdType ) { if ( node == NULL ) { node = cnf -> modules . root ; } else { node = node -> next ; } if ( rqtdType != eMOD_ANY ) { while ( node != NULL && node -> pMod -> eType != rqtdType ) { node = node -> next ; } } return node ; }
this function is like GetNxt(), but it returns pointers to
 the configmodules entry, which than can be used to obtain the
 actual module pointer.
this function is like GetNxt () but it returns pointers to the configmodules entry which than can be used to obtain the actual module pointer .
/* start at beginning of module list */ /* if any, we already have the right one! */